/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    padding-top: 1px;
    
}

.breadcrumb {
    background-color: #f7f6f6;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    }

.breadcrumb a {
    text-decoration: none;
            color: #007bff;
}

.price {
    font-size: 1.3em;
    color: #28a745; /* Green color for price */
    font-weight: bold;
}



/* Quantity Section */
.quantity-section {
    margin-bottom: 20px;
}

.quantity-section label {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-controls .btn {
    padding: 5px 12px;
    font-size: 1.2em;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-controls .btn:hover {
    background-color: #e9ecef;
}

.quantity-controls .quantity-input {
    width: 100px;
    margin: 0 10px;
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
}


/* Slide-In Cart Popup */
.slide-in-cart {
    position: fixed;
    top: 0;
    right: -400px; /* Initially hidden */
    width: 400px;
    height: 100%;
    background-color: #fff;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease-in-out;
    z-index: 1000;
    border-radius: 10px 0 0 10px; /* Rounded corners for desktop */
}

.slide-in-cart.open {
    right: 0; /* Slide in */
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
    font-weight: bold;
}

.cart-header h5 {
    margin: 0;
    font-size: 1.2em;
}

/* Cart Body */
.cart-body {
    padding: 15px;
    overflow-y: auto;
    max-height: 70vh;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    margin-right: 10px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 0.9em;
    color: #666;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item-quantity button {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cart-item-quantity button:hover {
    background-color: #f8f9fa;
}

.cart-item-quantity input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
    padding: 5px;
    border-radius: 5px;
}

.cart-item-total {
    font-size: 1em;
    font-weight: bold;
    color: #28a745;
}

/* Cart Footer */
.cart-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    background-color: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.cart-footer .btn {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border-radius: 8px;
    background-color: #28a745;
    color: white;
    transition: background-color 0.3s ease;
}

.cart-footer .btn:hover {
    background-color: #218838;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .product-title {
        font-size: 2em !important; /* Force font size */
    }

    .product-description {
        font-size: 1em !important; /* Force font size */
    }

    .price {
        font-size: 1.5em !important; /* Force font size */
    }

    .original-price {
        font-size: 1.2em !important; /* Force font size */
        text-decoration: line-through !important; /* Force strikethrough */
    }

    .offer-price {
        font-size: 1.5em !important; /* Force font size */
    }

    .add-to-cart-btn {
        width: 100% !important; /* Force full width */
        padding: 15px !important; /* Force padding */
        font-size: 1.1em !important; /* Force font size */
        justify-content: center;
    }

    .slide-in-cart {
        width: 100%; /* Full width on mobile */
        right: -100%; /* Initially hidden */
        border-radius: 0; /* Remove border radius for full-width mobile view */
    }
}

@media (max-width: 767px) {
    .row {
        flex-direction: column !important; /* Force column layout */
    }

    .col-md-6 {
        width: 100% !important; /* Force full width */
        padding: 10px !important; /* Force padding */
    }

    .product-title {
        font-size: 1.8em !important; /* Force font size */
    }

    .product-description {
        font-size: 0.95em !important; /* Force font size */
    }

    .price {
        font-size: 1.4em !important; /* Force font size */
    }

    .original-price {
        font-size: 1.1em !important; /* Force font size */
        text-decoration: line-through !important; /* Force strikethrough */
    }

    .offer-price {
        font-size: 1.4em !important; /* Force font size */
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.6em !important; /* Force font size */
    }

    .product-description {
        font-size: 0.9em !important; /* Force font size */
    }

    .price {
        font-size: 1.3em !important; /* Force font size */
    }

    .original-price {
        font-size: 1em !important; /* Force font size */
        text-decoration: line-through !important; /* Force strikethrough */
    }

    .offer-price {
        font-size: 1.3em !important; /* Force font size */
    }
}