/* ======================
   Product Detail Page
   ====================== */

/* Product Gallery */
.product-gallery {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.main-swiper {
    height: 400px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
}

.main-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb-swiper {
    margin-top: 10px;
    padding: 5px;
    background: #fff;
}

.thumb-swiper .swiper-slide {
    opacity: 0.6;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* Product Info */
.product-info {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    font-size: 16px;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.btn-add-to-cart,
.btn-buy-now {
    flex: 1;
    min-width: 160px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-add-to-cart:hover {
    background-color: #e67a00;
    border-color: #e67a00;
    color: white;
}

.btn-buy-now {
    background-color: #28a745;
    color: white;
    border: 2px solid #28a745;
}

.btn-buy-now:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: white;
}

/* Product Tabs */
.product-tabs {
    margin-top: 40px;
}

.nav-tabs {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    border: none;
    padding: 12px 20px;
    margin-right: 5px;
    border-radius: 0;
    position: relative;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--primary-color);
}

.nav-tabs .nav-link:hover {
    border: none;
    border-bottom: 3px solid #e9ecef;
}

.tab-content {
    padding: 20px 0;
}

/* Specifications */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.specs-table th {
    width: 30%;
    font-weight: 500;
    color: #495057;
}

/* Similar Products */
.similar-products {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Reviews Section */
.reviews-section {
    padding: 60px 0;
}

.review-item {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 600;
    color: #333;
}

.review-date {
    color: #6c757d;
    font-size: 14px;
}

.review-rating {
    color: #ffc107;
    margin-bottom: 10px;
}

.review-text {
    color: #495057;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .main-swiper {
        height: 350px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .product-price {
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    .main-swiper {
        height: 300px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-add-to-cart,
    .btn-buy-now {
        width: 100%;
    }
    
    .product-info {
        margin-top: 20px;
    }
}

@media (max-width: 575.98px) {
    .main-swiper {
        height: 250px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-price {
        font-size: 22px;
    }
}

/* Hero Section Styles */
.hero-section {
    margin-top: 0;
    padding: 15px;
    background-color: #000000;
    position: relative;
    overflow: hidden;
    min-height: 300px; /* Set a minimum height */
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./images/logo.jpg');
    background-size: 180px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

.hero-card {
    padding: 16px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero-slide-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.hero-slide-image:hover {
    transform: scale(1.02);
}

.swiper-slide {
    padding: 0;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px; /* Match this with your image aspect ratio */
    background: white;
}

/* Adjust swiper navigation for dark background */
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.heroSwiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

.heroSwiper .swiper-pagination-bullet-active {
    background: #fff;
}

/* Adjust swiper navigation buttons */
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    color: #000;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Adjust pagination */
.heroSwiper .swiper-pagination-bullet {
    background: #000;
    opacity: 0.5;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Profile Dropdown Styles */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.navbar .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    font-size: 0.9rem;
    color: var(--primary-color); /* Change icon color to black */
}

.navbar .dropdown-divider {
    margin: 0.25rem 0;
}

/* Profile Icon Styling */
.navbar .fa-user-circle {
    transition: all 0.2s ease;
    font-size: 1.5rem;
    color: var(--primary-color); /* Change icon color to black */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.navbar .nav-link:hover .fa-user-circle {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Navigation Icons Container */
.navbar .navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem; /* Increased gap between icons */
}

/* Add margin before profile icon to match spacing */
.navbar .dropdown.d-none.d-lg-block {
    margin-left: 1rem;
}

/* Individual Nav Icons */
.navbar .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

/* Cart and Wishlist Icons */
.navbar .nav-link[href*="cart"] i,
.navbar .nav-link[href*="wishlist"] i {
    font-size: 1.25rem;
    color: black; /* Change icon color to black */
}

/* Badge Styling */
.navbar .cart-count-badge,
.navbar .wishlist-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.75rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0;
    box-sizing: border-box;
    pointer-events: none;
}

/* Active State for Profile Dropdown */
.navbar .dropdown.show .fa-user-circle {
    color: var(--primary-color);
}

/* Mobile Profile Icon */
@media (max-width: 991.98px) {
    .navbar .fa-user-circle {
        font-size: 1.4rem;
    }
    
    .navbar .nav-link {
        padding: 0.5rem 0.75rem;
    }

    /* Wishlist remove button overlay fix */
    .remove-from-wishlist {
      position: relative;
      z-index: 2;
    }

    /* Auth Page Specific Styles for Mobile */
    #loginRow, #signupRow {
        flex-direction: column;
    }

    #loginSection, #loginTextSection,
    #signupSection, #signupTextSection {
        width: 100%;
        border: none !important; /* Remove borders for stacked sections */
        padding: 2rem 1rem !important; /* Adjust padding for mobile */
    }

    #loginTextSection, #signupTextSection {
        order: -1; /* Place text section above form on mobile */
        margin-bottom: 1rem; /* Add some space between sections */
    }

    #loginSection, #signupSection {
        margin-top: 1rem; /* Add space between text and form */
    }
}

/* Product Gallery Thumbnails - Fixed Height, Square, Full Image */
.thumbSwiper {
    margin: 10px 0 5px 0;
    width: 100%;
    max-width: 100%;
    padding: 5px 0 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    box-sizing: border-box;
    height: 80px;
}

.thumbSwiper .swiper-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    height: auto;
    padding: 2px 0;
    width: 100%;
    flex-wrap: nowrap;
}

.thumbSwiper .swiper-slide {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    margin: 0 !important;
    transition: all 0.2s;
    cursor: pointer;
}

.thumbSwiper .swiper-slide-thumb-active {
    border-color: var(--primary-color, #d32f2f);
}

.thumbSwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

/* Main Product Image - Full Size */
.mainSwiper {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.mainSwiper .swiper-slide {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
}

.mainSwiper .swiper-slide img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    padding: 0;
    border: none;
    background: transparent;
    object-fit: contain;
}

.mainSwiper .swiper-button-next,
.mainSwiper .swiper-button-prev {
    display: none !important;
}

/* Reset and Base Styles */

/* Price Range Slider Styles */
.price-slider-container {
    height: 40px;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.price-track {
    position: absolute;
    height: 5px;
    background-color: #ddd;
    width: 100%;
    z-index: 1;
    border-radius: 3px;
}

.price-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    width: 100%;
    position: absolute;
    background-color: transparent;
    pointer-events: none;
    z-index: 2;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-slider:focus {
    outline: none;
}

.min-price {
    z-index: 3;
}

.max-price {
    z-index: 4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000 !important;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #212529; /* Consider changing this too if needed */
    --background-color: #fffbf8; /* New default background color */
    --white: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color); /* Use the new background color variable */
    color: var(--text-color); /* Use the text color variable */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding-top: 76px;
    padding-bottom: 110px; /* Adjust based on the height of the bottom bar */
}

/* Navbar Styles */
.navbar {
    background-color: #626262 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 54px;
    background: none;
}

.logo-container img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
    background: #fff;
    border-radius: 8px;
    padding: 2px 8px;
}

.nav-link {
    color: black !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
}

.hero-section .swiper {
    width: 100%;
    height: 100%;
}

.hero-section .swiper-wrapper {
    box-sizing: content-box; /* Ensure padding doesn't affect width */
    width: 100%; /* Set a width to allow horizontal movement */
    height: 100%; /* Ensure wrapper takes full height */
}

.hero-section .swiper-slide {
    height: 100%; /* Ensure slide takes full height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .hero-slide-link {
    display: block; /* Make the link fill the slide */
    width: 100%;
    height: 100%;
}

.hero-section .hero-slide-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from 'cover' to 'contain' */
}

.hero-section .swiper-pagination-bullet {
    background: #fff;
}

.hero-section .swiper-button-next, .hero-section .swiper-button-prev {
    color: #fff;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
}

.hero-content {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

/* Shop by Category: Only image and name, no extra white space or card background */
.category-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 auto 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: none !important;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: none !important;
    margin: 0 auto 0.5rem auto;
    border-radius: 16px !important;
    box-shadow: none !important;
    display: block;
}

.category-card h3 {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 1rem;
    text-align: center;
    background: none !important;
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.2;
}

/* Featured Products */
.featured-products {
    background-color: var(--light-gray);
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 80%; /* 4:5 Aspect Ratio - shorter height */
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.add-to-cart {
    width: 100%;
    padding: 0.5rem;
    margin-top: auto;
}

/* Product Card Action Buttons */
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.product-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.product-action-btn.like-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    z-index: 2;
    color: transparent;
    -webkit-text-stroke: 2px black;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}

.product-action-btn.like-btn i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.product-action-btn.like-btn.active {
    color: #dc3545;
    -webkit-text-stroke: 1px #dc3545;
    text-shadow: -1px -1px 0 #dc3545, 1px -1px 0 #dc3545, -1px 1px 0 #dc3545, 1px 1px 0 #dc3545;
}

.product-action-btn.like-btn:hover i {
    transform: scale(1.1);
}

/* Product Card Hover Effect */
.product-card {
    position: relative;
}

/* Wishlist & Product Card: unify into single main box */
.product-card {
    /* ensure parent card handles border-radius and background */
}
.product-card .product-image {
    background: transparent !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}
.product-card .product-info {
    background: transparent !important;
    border: none !important;
    padding: 0.5rem 0.75rem !important;
    margin: 0 !important;
}
.product-card .btn {
    /* adjust bottom margin if needed */
    margin-top: 0.5rem;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #626262;
    color: white;
    padding: 4rem 0;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 5px 0 0 5px;
}

.newsletter-form .btn {
    padding: 0.75rem 2rem;
    border-radius: 0 5px 5px 0;
    background-color: var(--dark-color);
    border: none;
}

/* Footer */
.footer {
    background-color: #434343;
    color: white;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Swiper Customization */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        margin-top: 0.5rem;
    }
    
    .category-card img {
        height: 180px;
        object-fit: contain;
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
    
    .price {
        font-size: 1.1rem;
    }
    /* Add margin below mobile search box */
    .container.d-lg-none.mt-2 {
        margin-bottom: 1.2rem !important;
    }
    /* Add margin above hero section */
    .hero-section {
        margin-top: 0.5rem;
        padding: 1.5rem 0 1.5rem 0;
    }
    /* Section spacing */
    .categories-section,
    .featured-products,
    .newsletter-section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        margin-bottom: 1rem;
    }
    /* Category cards wider and centered */
    .category-card {
        max-width: 95vw;
        margin-left: auto;
        margin-right: auto;
        padding: 0.7rem 0.3rem;
    }
    .product-image {
        position: relative;
        padding-top: 100%;
        background-color: #f8f9fa;
    }
    .product-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 10px;
    }
    /* Add more margin below search box */
    .search-box-form {
        margin-bottom: 1.2rem;
    }
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-size: 1.1rem;
    font-weight: 500;
}

.lb-data .lb-number {
    font-size: 0.9rem;
}

/* Search Box Improvements */
.search-box-form {
    width: 100%;
}
.search-box {
    position: relative;
    background-color: var(--light-gray);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(37,99,235,0.07);
    border: 1px solid #e5e7eb;
}
.search-box input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    /* Change placeholder color to white */
    &::placeholder {
        color: #222 !important;
        opacity: 1 !important;
    }
    &::-webkit-input-placeholder {
        color: #222 !important;
        opacity: 1 !important;
    }
    &::-moz-placeholder {
        color: #222 !important;
        opacity: 1 !important;
    }
    &:-ms-input-placeholder {
        color: #222 !important;
        opacity: 1 !important;
    }
}
.search-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s;
}
.search-btn:hover {
    background: var(--secondary-color);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 5px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.suggestion-header {
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748b;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--dark-color);
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #f1f5f9;
}

.suggestion-icon {
    margin-right: 12px;
    color: var(--primary-color); /* Changed from #64748b to primary-color */
    width: 20px;
    text-align: center;
}

.suggestion-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 12px;
}

.suggestion-item.active {
    background-color: #e2e8f0;
}

.suggestion-item.view-all {
    border-top: 1px solid #e2e8f0;
    font-weight: 500;
    color: var(--primary-color);
    padding: 12px 16px;
}

.no-results {
    padding: 16px;
    text-align: center;
    color: #64748b;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    width: 100%;
    text-align: center;
}

.loading-indicator .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.loading-indicator p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* Mobile Spacing Fixes */
@media (max-width: 991.98px) {
    .search-box-form {
        width: 100%;
    }
    .search-box {
        width: 100%;
    }
}

/* Remove extra margin from mobile search box */
@media (max-width: 991.98px) {
    .container.d-lg-none.mt-2 {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Hero Section */
.hero {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.hero .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--dark-color); /* Changed from #ff5252 to dark-color */
    transform: translateY(-2px);
}


/* Horizontally scrollable category rows */
.category-row.horizontal-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e5e7eb;
}
.category-row.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 4px;
}
.category-row.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
.category-row.horizontal-scroll::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 4px;
}
.category-row.horizontal-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
    max-width: 100%;
    overflow-x: hidden;
}
.category-row .category-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    padding: 1rem 0.5rem;
    flex: 0 0 auto;
    width: 140px;
}
@media (max-width: 768px) {
    .category-row .category-card {
        width: 100%;
        min-width: auto;
        max-width: 100%;
        height: auto;
        min-height: 170px;
        padding: 0.8rem 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        text-align: center;
        box-sizing: border-box;
    }
    .category-row.horizontal-scroll {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0.5rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    .category-card img {
        height: 100%;
        width: 100%;
        object-fit: contain;
        margin-bottom: 0.5rem;
    }
    .category-card h3 {
        font-size: 0.9rem;
        padding: 0 0.3rem;
        margin: 0;
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 992px) {
  .categories-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .category-row.horizontal-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    overflow-x: unset;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
  }
  .category-row .category-card {
    width: 100%;
    max-width: 220px;
    min-width: 0;
    margin: 0 auto;
  }

  }
  .category-card h3 {
      font-size: 1.1rem;
}

/* Horizontally scrollable featured products row */
.featured-products-row.horizontal-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e5e7eb;
}
.featured-products-row.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 4px;
}
.featured-products-row.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
.featured-products-row.horizontal-scroll::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 4px;
}
.featured-products-row .product-card {
    min-width: 180px;
    max-width: 220px;
    flex: 0 0 auto;
}
@media (min-width: 992px) {
    .featured-products-row.horizontal-scroll {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        overflow-x: unset;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
    }
    .featured-products-row .product-card {
        min-width: 0;
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
    }
}

/* Navbar mobile layout */
@media (max-width: 991.98px) {
    .navbar {
        min-height: 60px;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
    .navbar .navbar-brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        margin: 0;
        padding: 0;
    }
    .logo-container {
        height: 38px;
        padding: 0;
    }
    .logo-container img {
        height: 34px;
        padding: 0 2px;
        border-radius: 4px;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    }
    .navbar .navbar-toggler {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        padding: 0.25rem 0.5rem;
    }
    .navbar .d-lg-none.order-3 {
        position: absolute !important;
        right: 0.75rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 3;
        padding: 0;
    }
}

@media (max-width: 991.98px) {
    .featured-products-row.horizontal-scroll {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        overflow-x: unset;
        overflow-y: auto;
        max-height: 70vh;
        padding-bottom: 0.5rem;
    }
    .featured-products-row .product-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
}

/* Offers Image Styles */
.offers-section .offer-image-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

.offers-section .offer-main-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Show Offer Image on Mobile, Hide Swiper */
/* Mobile Styles */
@media (max-width: 767.98px) {
    .hero-section,
    .swiper-slide,
    .hero-card {
        min-height: unset;
        padding: 0;
    }
    .hero-section {
        padding: 0;
        position: relative;
        width: 100%;
        overflow: hidden;
        height: auto;
    }
    
    .hero-card {
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
    }
    
    .swiper {
        width: 100%;
        margin: 0;
    }
    
    .swiper-slide {
        background: transparent;
        width: 100% !important;
        height: auto !important;
        margin: 0;
        padding: 0;
    }
    
    .swiper-wrapper {
        width: 100%;
        height: auto !important;
    }
    
    .hero-slide-image {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 0;
    }
    
    /* Navigation buttons */
    .swiper-button-next,
    .swiper-button-prev {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    
    .swiper-button-next {
        right: 10px;
    }
    
    .swiper-button-prev {
        left: 10px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
        color: #000;
    }
}

/* Desktop Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    color: #000;
}

.swiper-button-next {
    right: 20px;
}

.swiper-button-prev {
    left: 20px;
}

/* Tablet and larger */
@media (min-width: 768px) {
    .offers-section .offer-image-container {
        display: block;
    }
}

/* Hide Offer Image on Desktop, Show Swiper (handled by Bootstrap classes in HTML) */
@media (min-width: 992px) {
    .offers-section .offer-image-container {
        display: none;
    }
}

/* Hero Offer Image Styles */
.hero-offer-image-container {
    margin-top: 2rem;
    text-align: center;
}

.hero-offer-image {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Category Page Styles */
.category-header {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-top: 0;
    text-align: center;
}

.category-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.category-header p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Section Styles */
.filter-section {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
}

.filter-group {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-group h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
}

.filter-group .form-control,
.filter-group .form-select {
    font-size: 0.9rem;
    padding: 0.5rem;
}

.filter-group .form-check {
    margin-bottom: 0.5rem;
}

.filter-group .form-check-label {
    font-size: 0.9rem;
    color: #555;
}

.filter-toggle {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 25px;
    background: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.filter-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
}

.filter-toggle i {
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-header {
        padding: 0.8rem 0;
    }
    
    .category-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .category-header p {
        font-size: 0.9rem;
    }
    
    .filter-section {
        padding: 0.3rem 0;
    }
    
    .filter-group {
        margin-bottom: 0.5rem;
    }
    
    #filterCollapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

.category-products {
    padding: 2rem 0;
}

.category-products .product-card {
    min-width: 0;
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.category-products .product-card:hover {
    transform: translateY(-5px);
}

.category-products .product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.category-products .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-products .product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-products .product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.category-products .product-info .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-products .product-info .btn {
    margin-top: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-header h1 {
        font-size: 2rem;
    }
    
    .category-products .product-card {
        margin-bottom: 1rem;
    }
    
    .category-products .product-info h3 {
        font-size: 0.9rem;
    }
    
    .category-products .product-info .price {
        font-size: 1rem;
    }
}

/* Custom Filter & Sort Panel */
/* This overrides Bootstrap's .offcanvas-bottom to create a left-side, vertically centered panel */
#filterOffcanvas,
#sortOffcanvas {
    /* Placement */
    position: fixed;
    top: 50%;
    left: 0;
    right: auto; /* Override Bootstrap's right:0 */
    bottom: auto; /* Override Bootstrap's bottom:0 */
    transform: translateX(-100%) translateY(-50%);
    transition: transform 0.3s ease-in-out;

    /* Sizing */
    height: fit-content;
    max-height: 90vh; /* Add scroll if content is too tall */
    width: 370px;
    max-width: 90vw;

    /* Styling */
    border: none;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background-color: var(--white);
    
    /* Internal Layout & Stacking */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1055;
}

/* Override Bootstrap's 'show' state transform */
#filterOffcanvas.show,
#sortOffcanvas.show {
    transform: translateX(0) translateY(-50%);
}

/* Custom Scrollbar for these panels */
#filterOffcanvas::-webkit-scrollbar,
#sortOffcanvas::-webkit-scrollbar {
    width: 6px;
}
#filterOffcanvas::-webkit-scrollbar-track,
#sortOffcanvas::-webkit-scrollbar-track {
    background: transparent;
}
#filterOffcanvas::-webkit-scrollbar-thumb,
#sortOffcanvas::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Generic styles for any offcanvas header/body can be kept separate if needed */
.offcanvas-header {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-title {
    font-size: 1.25rem;
    font-weight: 500;
    }

    .offcanvas-body {
    padding: 1.5rem;
}

/* --- Scoped Product Card Styles for Sections OTHER than Product Detail Page --- */
/* These styles apply to product cards in sections like featured, similar, category, etc. */
.featured-products .product-card,
.similar-products .product-card,
.category-products .product-card,
.featured-products-row .product-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1rem !important;
    text-align: center;
}

.featured-products .product-card .product-info h3,
.similar-products .product-card .product-info h3,
.category-products .product-card .product-info h3 {
        font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
}

.featured-products .product-card .price,
.similar-products .product-card .price,
.category-products .product-card .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* 4. Restore icon formatting (size, color, alignment) */
.navbar .nav-link i,
.navbar .nav-icon i {
    color: var(--primary-color);
  font-size: 1.3rem;
  vertical-align: middle;
  line-height: 1;
}

/* Fix: Product names on category page should be black, not blue links */
.category-products .product-info h3 a {
    color: var(--dark-color) !important;
    text-decoration: none !important;
}

.category-products .product-info h3 a:hover {
    text-decoration: underline !important;
}

/* Checkout Stepper */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
  gap: 0;
}

.checkout-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  min-width: 100px;
    z-index: 1;
}

.checkout-steps .step .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  background: #fff;
  border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
  font-size: 20px;
  color: #888;
  margin-bottom: 8px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.checkout-steps .step.active .step-icon {
  border-color: var(--primary-color, #007bff);
  color: var(--primary-color, #007bff);
  background: #f0f8ff;
}

.checkout-steps .step .step-label {
  font-size: 15px;
  color: #888;
    font-weight: 500;
}

.checkout-steps .step.active .step-label {
  color: var(--primary-color, #007bff);
}

.checkout-steps .step-connector {
  flex: 1 1 0;
  height: 2px;
  background: #d1d5db;
  margin: 0 8px;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.checkout-steps .step-connector.active {
  background: var(--primary-color, #007bff);
}

.shop-products .product-info h3 a {
    color: var(--dark-color) !important;
    text-decoration: none !important;
}
.shop-products .product-info h3 a:hover {
    text-decoration: underline !important;
}

.product-card .product-info h3 a {
    color: var(--dark-color) !important;
    text-decoration: none !important;
}
.product-card .product-info h3 a:hover {
    text-decoration: underline !important;
}

/* Remove line under 'Shop by Category' on homepage */
h2.section-title.text-center.mb-4:after {
        display: none !important;
}

.fixed-bottom-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 60px;
  padding: 0px;
  background: #fffbf8 !important;
  z-index: 1050;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
  border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  gap: 0.5rem;
}
.fixed-bottom-footer a, .fixed-bottom-footer span, .fixed-bottom-footer i {
  color: #000 !important;
  text-align: center;
  font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
  flex-direction: row;
  gap: 0.25rem;
  position: relative;
}
.fixed-bottom-footer a {
    flex-direction: column;
  gap: 0.1rem;
  min-width: 44px;
  min-height: 36px;
}
.fixed-bottom-footer i {
  font-size: 1.3rem;
}
.fixed-bottom-footer .cart-count-badge,
.fixed-bottom-footer .wishlist-count-badge {
  background: #000 !important;
  color: #fff !important;
  font-size: 0.8rem;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
    border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 10px;
  z-index: 2;
  padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  font-weight: bold;
}
@media (min-width: 992px) {
  .fixed-bottom-footer {
    display: none !important;
  }
}

.fixed-bottom-footer .row {
  flex-wrap: nowrap !important;
  gap: 0.1rem !important;
}
.fixed-bottom-footer .col {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.fixed-bottom-footer {
  gap: 0.1rem !important;
}

.offcanvas.offcanvas-start {
  background: #626262 !important;
  width: 50vw !important;
  max-width: 320px;
  color: #fff;
}
.offcanvas.offcanvas-start .offcanvas-body,
.offcanvas.offcanvas-start .offcanvas-header {
  color: #fff;
}
.offcanvas.offcanvas-start .nav-link {
  color: #fff !important;
}

@media (max-width: 991.98px) {
  .fixed-filter-sort-footer,
  .filter-sort-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 60px; /* Height of .fixed-bottom-footer */
    width: 100vw;
    z-index: 1060;
    border-radius: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
  }
  .fixed-bottom-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    z-index: 1100;
  }
}
@media (min-width: 992px) {
  .filter-sort-footer,
  .fixed-filter-sort-footer {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1101 !important;
    width: 100vw;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    background: #fff;
  }
}

/* Custom Payment Selection Modal Styles */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.payment-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.payment-option-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-option-label {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
}

.payment-method-name {
    font-size: 1.1rem;
}

.payment-option-description {
    margin-left: 1.75rem;
    margin-top: 0.25rem;
}

.available-methods {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

.method-item {
  display: flex;
  align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

.method-item i {
    font-size: 1.2rem;
}

/* Form check input styling */
.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* Modal customization */
#paymentSelectionModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#paymentSelectionModal .modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

#paymentSelectionModal .modal-footer {
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Order Timeline Section Styles - Updated to match checkout steps */
#order-timeline-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}
.order-timeline {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    background: transparent;
}
.order-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    color: #888;
    position: relative;
    font-family: inherit;
}
.order-step .circle {
    width: 48px;
    height: 48px;
    background: #f5faff;
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    border: 2px solid #d1d5db;
    transition: background 0.2s, border 0.2s;
}
.order-step.active .circle {
    background: #e6f0fa;
    color: #111;
    border: 2px solid #111;
}
.order-step .timeline-date {
    font-weight: bold;
    margin-bottom: 0.25rem;
        font-size: 1.1rem;
    color: #111;
    transition: color 0.2s;
}
.order-step.active .timeline-date {
    color: #111;
}
.order-step .timeline-label {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #111;
    transition: color 0.2s;
}
.order-step.active .timeline-label {
    color: #111;
}
.order-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    right: -50%;
    width: 100%;
    height: 3px;
    background: #111;
    z-index: 0;
    transition: background 0.2s;
}
.order-step.active:not(:last-child)::after {
    background: #111;
}
@media (max-width: 600px) {
    #order-timeline-section {
        padding: 1rem 0.25rem;
    }
    /* Removed flex-direction: column and related styles for .order-timeline and .order-step to keep timeline horizontal on mobile */
}

.product-info-accordion {
    background: transparent;
}
.product-info-accordion .accordion-item {
    background: transparent;
}
.product-info-accordion .accordion-header {
    background: transparent;
}
.product-info-accordion .accordion-button {
    background: transparent;
}
.product-info-accordion .accordion-body {
    background: transparent;
}

/* Remove gap between filter/sort footer and fixed bottom nav on mobile */
.filter-sort-footer,
.fixed-filter-sort-footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}
.filter-sort-footer, .fixed-filter-sort-footer {
    background: var(--background-color) !important;
    box-shadow: none !important;
}
.filter-sort-footer button, .fixed-filter-sort-footer button {
    color: #000 !important;
    border-color: #000 !important;
}
.filter-sort-footer button i, .fixed-filter-sort-footer button i {
    color: #000 !important;
}

body, .container, .main-content, .category-products, .products-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure fixed bottom nav is always on top */
.fixed-bottom-footer {
    z-index: 1100 !important;
}

/* On mobile, make sure filter-sort-footer is just above the fixed-bottom-footer */
@media (max-width: 767px) {
    .filter-sort-footer,
    .fixed-filter-sort-footer {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }
    .footer, .main-footer {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* WhatsApp Floating Button - Desktop: bottom-right, Mobile: above fixed footer */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 12000;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  font-size: 2.2rem;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.whatsapp-float:hover {
  background: #1ebe57;
  transform: scale(1.08);
}
@media (max-width: 991.98px) {
  .whatsapp-float {
    right: 18px;
    bottom: 70px; /* Place above fixed bottom footer (footer is 60px high + margin) */
    left: auto;
    z-index: 12001;
  }
}

/* Offer Box Global Style */
.offer-box {
  background: #e3f4fd;
  color: #186a8d;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(33, 147, 176, 0.10), 0 1.5px 6px 0 rgba(0,0,0,0.06);
  padding: 18px 28px;
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 8px;
  border: 1.5px solid #b2eaff;
  gap: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.offer-box .offer-icon {
  font-size: 2rem;
  margin-right: 10px;
  filter: drop-shadow(0 2px 6px #fff5);
  flex-shrink: 0;
}
.offer-box .offer-text {
  font-size: 1.13rem;
  font-weight: 500;
  text-shadow: 0 1px 4px #fff2;
}
@media (max-width: 767px) {
  .offer-box {
    font-size: 1rem;
    padding: 12px 8px;
    border-radius: 10px;
    gap: 8px;
  }
  .offer-box .offer-icon {
    font-size: 1.3rem;
    margin-right: 5px;
  }
  .offer-box .offer-text {
    font-size: 0.98rem;
  }
}