/* Import theme colors - this file can be customized and is excluded from git */
@import url('theme-color.css');

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

/* CRITICAL: Font Awesome icons MUST come first to override any global rules */
i[class*="fa"],
i[class^="fa"],
[class^="fa-"],
.fa,
.fas,
.far,
.fal,
.fab,
.fa-solid,
.fa-regular,
.fa-light,
.fa-brands,
.fa-thin,
.fa-duotone {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-style: normal !important;
    font-weight: 900 !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Font Awesome specific weights */
.fas,
.fa-solid {
    font-weight: 900 !important;
}

.far,
.fa-regular {
    font-weight: 400 !important;
}

.fal,
.fa-light {
    font-weight: 300 !important;
}

.fab,
.fa-brands {
    font-weight: 400 !important;
}

/* Ensure icons inside ANY element maintain Font Awesome font */
i[class*="fa"],
i[class^="fa"],
button i[class*="fa"],
.btn i[class*="fa"],
a i[class*="fa"],
.nav-link i[class*="fa"],
.navbar i[class*="fa"],
.hero-badge i[class*="fa"],
.btn-cta i[class*="fa"],
span i[class*="fa"],
div i[class*="fa"],
input i[class*="fa"],
p i[class*="fa"],
h1 i[class*="fa"],
h2 i[class*="fa"],
h3 i[class*="fa"],
h4 i[class*="fa"],
h5 i[class*="fa"],
h6 i[class*="fa"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
}

/* Form elements use Space Grotesk */
input,
textarea,
select {
    font-family: 'Space Grotesk', sans-serif;
}

/* Buttons use Space Grotesk unless they contain icons */
button {
    font-family: 'Space Grotesk', sans-serif;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9375rem;
    /* 15px - reduced from default 16px */
    background: var(--primary-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Header Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 1px 3px var(--shadow-light);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(77, 106, 146, 0.1);
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.625rem;
    /* 26px - reduced from 2rem (32px) */
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

/* Responsive Logo */
.site-logo {
    height: auto;
    max-width: 100%;
    transition: all 0.3s ease;
    object-fit: contain;
}

/* Desktop - Large screens */
@media (min-width: 1400px) {
    .site-logo {
        max-height: 70px;
        max-width: 250px;
    }
}

/* Desktop - Standard */
@media (min-width: 1200px) and (max-width: 1399px) {
    .site-logo {
        max-height: 65px;
        max-width: 220px;
    }
}

/* Tablet - Large */
@media (min-width: 992px) and (max-width: 1199px) {
    .site-logo {
        max-height: 60px;
        max-width: 200px;
    }
}

/* Tablet - Small */
@media (min-width: 768px) and (max-width: 991px) {
    .site-logo {
        max-height: 55px;
        max-width: 180px;
    }
}

/* Mobile - Large */
@media (min-width: 576px) and (max-width: 767px) {
    .site-logo {
        max-height: 50px;
        max-width: 160px;
    }
}

/* Mobile - Small */
@media (max-width: 575px) {
    .site-logo {
        max-height: 45px;
        max-width: 140px;
    }
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    /* 15px - reduced from 1rem (16px) */
    margin: 0 1rem;
    padding: 0.5rem 0 !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-blue) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.btn-login {
    margin-top: 1rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: 30px;
    padding: 0.625rem 1.625rem;
    /* Reduced padding */
    font-weight: 600;
    font-size: 0.875rem;
    /* 14px - reduced from 0.95rem */
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(77, 106, 146, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 106, 146, 0.3);
    color: white;
}

/* Enhanced Hero Section */
.hero-section {
    min-height: auto;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    overflow: hidden;
    margin-top: 80px !important;
    background-color: var(--accent-blue);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/front/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(60px) translateY(60px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 0.35rem 0.875rem;
    /* Reduced padding */
    margin-bottom: 1rem;
    font-size: 0.75rem;
    /* 12px - reduced from 0.8rem */
    font-weight: 500;
    color: var(--accent-blue);
    box-shadow: 0 4px 15px rgba(77, 106, 146, 0.1);
    backdrop-filter: blur(10px);
}

.hero-badge i {
    margin-right: 0.4rem;
    color: var(--accent-green);
    font-size: 0.8rem;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    /* 36px - reduced from 2.75rem (44px) */
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.9375rem;
    /* 15px - reduced from 1rem (16px) */
    margin-bottom: 1.5rem;
    color: var(--text-medium);
    font-weight: 400;
    line-height: 1.5;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-cta {
    padding: 0.625rem 1.5rem;
    /* Reduced padding */
    font-size: 0.875rem;
    /* 14px - reduced from 0.95rem */
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0;
    min-width: 160px;
    /* Reduced from 180px */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-wholesale {
    background: var(--gradient-accent);
    color: white;
}

.btn-wholesale:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(77, 106, 146, 0.3);
    color: white;
}

.btn-retail {
    background: white;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.btn-retail:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(77, 106, 146, 0.3);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.625rem;
    /* 26px - reduced from 2rem (32px) */
    font-weight: 700;
    color: var(--accent-blue);
    display: block;
}

.hero-stat-label {
    font-size: 0.8125rem;
    /* 13px - reduced from 0.9rem */
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Checkout page specific hero-card padding */
.checkout-page .hero-card {
    padding: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-summary-card {
    /* border-top: 4px solid var(--accent-blue); */
    position: sticky;
    top: 1px;
}

@media (max-width: 991px) {
    .checkout-summary-card {
        position: static;
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
}

/* Premium Checkout Enhancements */
.premium-checkout-card {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(77, 106, 146, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-checkout-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.payment-method-container {
    transition: all 0.2s ease;
}

.payment-method-container:hover {
    background-color: #f1f5f9 !important;
    border-color: var(--accent-blue) !important;
}

.payment-method-option .form-check-input:checked+.form-check-label span {
    color: var(--accent-blue) !important;
}

.checkout-summary-card {
    border-radius: 12px;
    overflow: hidden;
}

.hero-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.hero-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    /* 18px - reduced from 1.3rem */
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-card p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.hero-card-features {
    list-style: none;
    padding: 0;
}

.hero-card-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.hero-card-features li i {
    color: var(--accent-green);
    margin-right: 0.8rem;
    font-size: 1rem;
}

/* Floating elements */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.floating-1 {
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.floating-2 {
    bottom: 20%;
    left: 5%;
    animation: float 8s ease-in-out infinite reverse;
}

.floating-3 {
    top: 50%;
    right: 5%;
    animation: float 7s ease-in-out infinite;
}

.floating-element-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

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

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.375rem;
    /* 38px - reduced from 3rem (48px) */
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    position: relative;
}

.section-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Buyer Types Section */
.buyer-types {
    padding: 60px 0;
    background: var(--secondary-light);
}

.buyer-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 25px;
    padding: 3rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.buyer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.buyer-card:hover::before {
    transform: scaleX(1);
}

.buyer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(77, 106, 146, 0.15);
    border-color: var(--accent-blue);
}

.buyer-icon {
    font-size: 4rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    display: block;
}

.buyer-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    /* 24px - reduced from 1.8rem (28.8px) */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.buyer-card p {
    color: var(--text-medium);
    font-size: 0.9375rem;
    /* 15px - reduced from 1.1rem */
    line-height: 1.7;
    margin-bottom: 2rem;
}

.discount-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--gradient-accent);
    color: white;
    padding: 0.625rem 1.25rem;
    /* Reduced padding */
    border-radius: 25px;
    font-size: 0.8125rem;
    /* 13px - reduced from 0.9rem */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(77, 106, 146, 0.3);
}

.features {
    margin-bottom: 2rem;
}

.features .row>div {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-medium);
}

.features i {
    color: var(--accent-green);
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background: var(--primary-light);
}

.product-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(77, 106, 146, 0.1);
    border-color: var(--accent-blue);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, var(--secondary-light), var(--tertiary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
}

.product-image i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    padding: 10px;
}

.product-info h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    /* 18px - reduced from 1.3rem (20.8px) */
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.price-original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9375rem;
    /* 15px - reduced from 1rem */
}

.price-discounted {
    color: var(--accent-orange);
    font-size: 1.25rem;
    /* 20px - reduced from 1.5rem (24px) */
    font-weight: 700;
    margin-left: 0.5rem;
}

.product-info .text-muted {
    color: var(--text-light);
    font-style: italic;
    /* margin-top: 1rem; */
}

/* How It Works Section */
.how-it-works {
    padding: 60px 0;
    background: var(--secondary-light);
}

.how-it-works .section-heading-component {
    margin-bottom: 2rem;
}

.how-it-works .row>[class*="col-"] {
    margin-bottom: 1rem;
}

.step-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    transition: all 0.4s ease;
    margin-bottom: 5rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(77, 106, 146, 0.1);
    border-color: var(--accent-blue);
}

.step-number {
    background: var(--gradient-accent);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(77, 106, 146, 0.3);
}

.step-icon {
    font-size: 3rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.step-card h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    /* 18px - reduced from 1.3rem */
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-medium);
    font-size: 0.9375rem;
    /* 15px - explicit size */
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 30px 0;
    background: var(--secondary-light);
}

.about-section .lead {
    font-size: 1rem;
    /* 16px - reduced from 1.3rem */
    color: var(--text-medium);
    line-height: 1.7;
}

.about-feature {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-feature:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 35px rgba(77, 106, 146, 0.1);
}

.about-feature i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

/* Cart Page Spacing */
@media (min-width: 992px) {
    .cart-page-row {
        align-items: flex-start;
    }

    .cart-items-column {
        margin-bottom: 0;
        padding-right: 0.75rem;
    }

    .order-summary-column {
        margin-top: 0;
        padding-left: 0.75rem;
    }

    /* Ensure both columns start at the same vertical position */
    .cart-items-column .hero-card,
    .order-summary-column .hero-card {
        margin-top: 0;
    }
}

@media (max-width: 991.98px) {
    .cart-page-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cart-items-column {
        margin-bottom: 0.5rem !important;
        width: 100% !important;
        flex: none !important;
    }

    .order-summary-column {
        margin-top: 0.5rem !important;
        width: 100% !important;
        flex: none !important;
    }
}

.about-feature h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    /* 18px - explicit size */
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-feature p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: var(--primary-light);
}

.contact-form {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 25px;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.contact-form h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    /* 20px - explicit size */
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.form-control,
.form-select {
    background: var(--primary-light);
    border: 2px solid var(--border-light);
    color: var(--text-dark);
    border-radius: 15px;
    padding: 0.625rem 0.75rem;
    /* Reduced padding - 10px to 10px 12px */
    font-size: 0.9375rem;
    /* 15px - explicit size */
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--primary-light);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(77, 106, 146, 0.15);
    color: var(--text-dark);
}

.form-control::placeholder {
    color: var(--text-light);
}

.contact-info {
    padding: 2rem 0;
}

.contact-info h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    /* 20px - explicit size */
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.contact-item {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    border-color: var(--accent-blue);
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(77, 106, 146, 0.1);
}

.contact-item i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.contact-item small {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--secondary-light);
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
}

.footer h4,
.footer h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.footer h4 {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer ul li a {
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.social-icons a {
    color: var(--text-medium);
    font-size: 1.8rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
}

.disclaimer {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
    font-size: 1rem;
    color: var(--text-medium);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 50px 0 30px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1.2rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
        /* Reduced from 2rem */
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        /* Reduced from 0.95rem */
        margin-bottom: 1.5rem;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .btn-cta {
        width: 100%;
        margin: 0;
        font-size: 0.875rem;
        /* Reduced from 0.95rem */
        padding: 0.625rem 1.25rem;
        /* Reduced padding */
        min-width: auto;
    }

    /* Hide hero stats on mobile/tablet */
    .hero-stats {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 25px;
    }

    .hero-title {
        font-size: 1.5rem;
        /* Reduced from 1.75rem */
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.8125rem;
        /* Reduced from 0.9rem */
        margin-bottom: 1.25rem;
    }

    .hero-buttons {
        margin-bottom: 1.25rem;
        gap: 0.65rem;
    }

    .btn-cta {
        font-size: 0.8125rem;
        /* Reduced from 0.9rem */
        padding: 0.625rem 1.125rem;
        /* Reduced padding */
    }

    .floating-element {
        display: none;
    }

    .buyer-card,
    .contact-form {
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
        /* Reduced from 2.5rem */
    }

    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 35px 0 20px;
        margin-top: 60px !important;
    }

    .hero-badge {
        font-size: 0.6875rem;
        /* Reduced from 0.75rem */
        padding: 0.3rem 0.875rem;
        /* Reduced padding */
        margin-bottom: 0.75rem;
    }

    .hero-title {
        font-size: 1.375rem;
        /* Reduced from 1.5rem */
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.8125rem;
        /* Reduced from 0.85rem */
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .hero-buttons {
        margin-bottom: 1rem;
        gap: 0.6rem;
    }

    .btn-cta {
        font-size: 0.8125rem;
        /* Reduced from 0.85rem */
        padding: 0.5625rem 1.125rem;
        /* Reduced padding */
    }

    /* Ensure hero stats are hidden */
    .hero-stats {
        display: none !important;
    }

    .discount-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }

    .navbar-brand {
        font-size: 1.375rem;
        /* Reduced from 1.6rem */
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-right {
    animation: slideInRight 0.8s ease forwards;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation link hover effects for hash links */
.navbar-nav .nav-link[href*="#"] {
    position: relative;
}

.navbar-nav .nav-link[href*="#"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link[href*="#"]:hover::after {
    width: 100%;
}

/* Active navigation state */
.navbar-nav .nav-link.active {
    color: var(--accent-blue) !important;
}

.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(77, 106, 146, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.3s ease forwards;
    padding: 0;
    margin: 0;
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 106, 146, 0.4);
    background: var(--accent-blue);
}

.back-to-top-btn i {
    transition: transform 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Enhanced button hover states */
.btn-cta {
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-cta:hover::before {
    left: 100%;
}

/* Custom focus states */
.form-control:focus,
.btn:focus {
    outline: none;
}

/* Loading spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}


/* Product Image Styles */
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alert Styles */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}



/* shop page design  */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.object-fit-cover {
    object-fit: cover;
}

.product-image-container {
    transition: all 0.3s ease;
}

.product-image-container:hover {
    transform: scale(1.05);
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(77, 106, 146, 0.25) !important;
    border-color: var(--accent-blue) !important;
}

.page-link:hover {
    background: var(--gradient-accent) !important;
    color: white !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.badge {
    font-size: 0.6875rem;
    /* 11px - reduced from 0.75rem (12px) */
    padding: 0.375rem 0.625rem;
    /* Reduced padding */
    border-radius: 20px;
}

.btn-wholesale {
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.625rem 1.25rem;
    /* Reduced padding */
    font-size: 0.875rem;
    /* 14px - explicit size */
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-wholesale:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 106, 146, 0.3);
    color: white;
}

.page-header {
    background: var(--gradient-hero) !important;
    position: relative;
    z-index: 10;
}

@media (max-width: 991.98px) {
    /* .page-header {
        margin-top: 60px !important;
    } */

    .sidebar-sticky {
        position: relative;
        top: auto;
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-medium);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border-radius: 15px;
}

/* Custom Loading Spinner */
.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    animation-delay: 0.2s;
    border-top-color: var(--accent-blue);
    opacity: 0.7;
}

.spinner-ring:nth-child(3) {
    animation-delay: 0.4s;
    border-top-color: var(--accent-blue);
    opacity: 0.4;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner-border {
    color: var(--accent-blue) !important;
}

.text-primary {
    color: var(--accent-blue) !important;
}

/* Button loading states */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Cart Icon Overlay */
.cart-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.product-image-container:hover .cart-icon-overlay {
    opacity: 1;
}

.cart-icon-overlay .btn {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cart-icon-overlay .btn i {
    font-size: 1.2rem;
    line-height: 1;
}

.cart-icon-overlay .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.cart-icon-overlay .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Header Cart Counter Badge */
.cart-counter-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 2px solid white;
    animation: cartBadgePop 0.3s ease-out;
    z-index: 10;
    line-height: 1;
    text-align: center;
}

/* Cart icon container styling */
.navbar-nav .nav-link[href*="cart"] {
    padding: 0.5rem 0.75rem !important;
    margin: 0 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link[href*="cart"]:hover {
    background: rgba(77, 106, 146, 0.1);
    transform: translateY(-1px);
}

@keyframes cartBadgePop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animation for cart count updates */
.cart-counter-badge.count-updated {
    animation: cartBadgeUpdate 0.6s ease-out;
}

@keyframes cartBadgeUpdate {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3) rotate(5deg);
    }

    50% {
        transform: scale(1.1) rotate(-5deg);
    }

    75% {
        transform: scale(1.2) rotate(3deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Responsive adjustments for cart counter */
@media (max-width: 768px) {
    .cart-counter-badge {
        font-size: 0.65rem;
        min-width: 16px;
        height: 16px;
        top: -6px;
        right: -6px;
    }
}

/* Custom Pagination Styles - Compact Design */
.custom-pagination {
    margin-top: 2rem;
    animation: fadeInUp 0.4s ease-out;
}

.custom-pagination .pagination {
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.custom-pagination .page-item {
    margin: 0;
}

.custom-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    user-select: none;
}

.custom-pagination .page-link:hover {
    color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 106, 146, 0.12);
}

.custom-pagination .page-link:active {
    transform: translateY(0);
}

.custom-pagination .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(77, 106, 146, 0.1);
}

.custom-pagination .page-item.active .page-link {
    color: white;
    background: var(--gradient-accent);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(77, 106, 146, 0.25);
}

.custom-pagination .page-item.active .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 106, 146, 0.35);
}

.custom-pagination .page-item.disabled .page-link {
    color: var(--text-light);
    background: rgba(248, 250, 252, 0.8);
    border-color: var(--border-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

.custom-pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    color: var(--text-light);
    background: rgba(248, 250, 252, 0.8);
}

/* Previous/Next buttons */
.custom-pagination .page-item:first-child .page-link,
.custom-pagination .page-item:last-child .page-link {
    min-width: 90px;
    font-weight: 600;
    font-size: 0.8125rem;
    background: rgba(77, 106, 146, 0.05);
}

.custom-pagination .page-item:first-child .page-link:hover,
.custom-pagination .page-item:last-child .page-link:hover {
    background: rgba(77, 106, 146, 0.1);
}

.custom-pagination .page-item:first-child .page-link {
    border-radius: 8px 4px 4px 8px;
}

.custom-pagination .page-item:last-child .page-link {
    border-radius: 4px 8px 8px 4px;
}

/* Page numbers */
.custom-pagination .page-item:not(:first-child):not(:last-child) .page-link {
    min-width: 38px;
    padding: 0.5rem;
}

/* Ellipsis styling */
.custom-pagination .page-item.disabled .page-link {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: default;
    min-width: 24px;
    padding: 0.5rem 0.25rem;
}

.custom-pagination .page-item.disabled .page-link:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-pagination {
        margin-top: 1.5rem;
    }

    .custom-pagination .pagination {
        gap: 0.3rem;
    }

    .custom-pagination .page-link {
        min-width: 34px;
        height: 34px;
        padding: 0.4rem 0.6rem;
        font-size: 0.8125rem;
    }

    .custom-pagination .page-item:first-child .page-link,
    .custom-pagination .page-item:last-child .page-link {
        min-width: 75px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .custom-pagination {
        margin-top: 1.25rem;
    }

    .custom-pagination .pagination {
        gap: 0.25rem;
    }

    .custom-pagination .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }

    .custom-pagination .page-item:first-child .page-link,
    .custom-pagination .page-item:last-child .page-link {
        min-width: 65px;
        font-size: 0.6875rem;
    }
}

/* Loading state for pagination */
.custom-pagination .page-link.loading {
    pointer-events: none;
    opacity: 0.7;
}

.custom-pagination .page-link.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: pagination-spin 0.8s linear infinite;
}

@keyframes pagination-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Page info styling */
.custom-pagination .text-center small {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}




/* checkout page  */
.checkout-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Payment Method Styles - responsive and theme-aligned */
.payment-method-container {
    transition: all 0.25s ease;
    border: 1px solid var(--border-light) !important;
    font-size: 0.875rem;
    background: var(--secondary-light);
}

.payment-method-container--selected,
.payment-method-container:hover {
    border-color: var(--accent-blue) !important;
    background: var(--tertiary-light);
    background: color-mix(in srgb, var(--accent-blue) 8%, var(--secondary-light));
    box-shadow: 0 2px 8px var(--shadow-light);
}

.payment-method-option {
    margin: 0;
    display: flex;
    align-items: flex-start;
}

.payment-method-option .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    margin-left: 0;
    margin-right: 0.75rem;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid var(--border-light);
}

.payment-method-option .form-check-input:checked {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.payment-method-label {
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    flex: 1;
    min-width: 0;
    display: block;
}

.payment-method-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-method-icon {
    color: var(--accent-blue);
    font-size: 1rem;
    flex-shrink: 0;
}

.payment-method-title {
    color: var(--text-dark);
    font-size: 0.9375rem;
    font-weight: 700;
}

.payment-method-desc {
    color: var(--text-light);
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0.5rem 0 0.75rem 0;
}

.payment-method-methods-label {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.payment-method-hint {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

/* PayFast options list – each option is a selectable card (one radio per row) */
.payment-method-options-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-method-options-list > li {
    margin: 0;
    padding: 0;
}

.payment-method-option-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--primary-light);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 52px;
}

.payment-method-option-card:hover {
    border-color: var(--accent-blue);
    background: var(--tertiary-light);
}

.payment-method-option-card--selected,
.payment-method-option-card:has(.payment-method-option-input:checked) {
    border-color: var(--accent-blue);
    background: var(--tertiary-light);
    background: color-mix(in srgb, var(--accent-blue) 10%, var(--secondary-light));
    box-shadow: 0 0 0 1px var(--accent-blue);
}

.payment-method-option-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.payment-method-option-radio {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    background: var(--primary-light);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-method-option-card--selected .payment-method-option-radio,
.payment-method-option-card:has(.payment-method-option-input:checked) .payment-method-option-radio {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
    box-shadow: inset 0 0 0 3px var(--primary-light);
}

.payment-method-option-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.payment-method-row-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    min-width: 0;
}

.payment-method-row-logos {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* PayFast logo pack images – responsive, SVG preferred for sharpness */
.payment-method-logo-img {
    height: 28px;
    width: auto;
    max-width: 52px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.payment-method-logo-img--wide {
    max-width: 120px;
    height: 26px;
}

.payment-method-logo-img--png {
    max-width: 100px;
    height: 26px;
}

.payment-method-logo {
    font-size: 1.25rem;
}

/* PayFast method logos – brand colors (as in PayFast UI) */
.payment-method-logo--visa { color: #1A1F71; }
.payment-method-logo--mastercard { color: #EB001B; }
.payment-method-logo--amex { color: #006FCF; }
.payment-method-logo--samsungpay { color: #000000; }
.payment-method-logo--eft { color: #0066B3; }
.payment-method-logo--bankqr { color: #1e3a5f; }
.payment-method-logo--info { color: #64748b; }
.payment-method-logo--scantopay { color: #E31837; }
.payment-method-logo--maestro { color: #EB001B; }
.payment-method-logo--visaelectron { color: #1A1F71; }

.payment-method-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.payment-method-cards-img {
    max-height: 28px;
    width: auto;
    display: block;
}

.payment-method-badge-text {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Payment method responsive: stack cleanly on small screens */
@media (max-width: 575.98px) {
    .payment-method-container {
        padding: 0.875rem !important;
    }

    .payment-method-option {
        align-items: flex-start;
    }

    .payment-method-option .form-check-input {
        width: 1.1rem;
        height: 1.1rem;
        margin-top: 0.2rem;
    }

    .payment-method-title {
        font-size: 0.875rem;
    }

    .payment-method-desc {
        font-size: 0.75rem;
        margin-top: 0.4rem;
        margin-bottom: 0.5rem;
    }

    .payment-method-methods-label {
        font-size: 0.6875rem;
        margin-bottom: 0.35rem;
    }

    .payment-method-hint {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .payment-method-options-list {
        gap: 0.4rem;
    }

    .payment-method-option-card {
        padding: 0.6rem 0.75rem;
        min-height: 48px;
    }

    .payment-method-option-radio {
        width: 1.1rem;
        height: 1.1rem;
    }

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

    .payment-method-logo-img {
        height: 22px;
        max-width: 44px;
    }

    .payment-method-logo-img--wide {
        max-width: 95px;
        height: 22px;
    }

    .payment-method-logo-img--png {
        max-width: 80px;
        height: 22px;
    }

    .payment-method-logo {
        font-size: 1rem;
    }

    .payment-method-badge {
        margin-top: 0.25rem;
    }

    .payment-method-cards-img {
        max-height: 24px;
    }

    .payment-method-badge-text {
        font-size: 0.5625rem;
    }
}

@media (max-width: 380px) {
    .payment-method-option-content {
        flex-wrap: wrap;
    }

    .payment-method-row-logos {
        width: 100%;
        justify-content: flex-end;
    }
}

.payment-method-container .form-check-input.is-invalid {
    border-color: #dc3545;
}

.payment-method-error {
    color: #dc3545;
    font-size: 0.875rem;
}

/* Order summary dropdown toggle - theme active state */
.checkout-order-summary-toggle {
    font-size: 0.875rem;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: var(--primary-light);
    color: var(--text-dark);
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.checkout-order-summary-toggle:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--tertiary-light);
    background: color-mix(in srgb, var(--accent-blue) 6%, var(--primary-light));
}

.checkout-order-summary-toggle--active {
    border-color: var(--accent-blue);
    background: var(--tertiary-light);
    background: color-mix(in srgb, var(--accent-blue) 10%, var(--secondary-light));
    color: var(--accent-blue);
}

.checkout-order-summary-toggle--active .checkout-order-summary-toggle-icon {
    color: var(--accent-blue);
}

/* Autocomplete Suggestions Styles */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-suggestions.show {
    display: block;
}

.autocomplete-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.autocomplete-suggestion-item:hover,
.autocomplete-suggestion-item.selected {
    background-color: var(--accent-blue);
    color: white;
}

.autocomplete-suggestion-item:last-child {
    border-bottom: none;
}

.autocomplete-suggestion-item .suggestion-main {
    font-weight: 500;
    font-size: 0.95rem;
}

.autocomplete-suggestion-item .suggestion-detail {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 2px;
}

.autocomplete-suggestion-item:hover .suggestion-detail,
.autocomplete-suggestion-item.selected .suggestion-detail {
    opacity: 0.9;
}

/* Checkout Form - Reduced Spacing Between Fields */
.checkout-form-row {
    margin-bottom: 0.5rem;
}

.checkout-form-field {
    margin-bottom: 0.75rem;
}

.checkout-map-search {
    margin-bottom: 0.5rem !important;
}

.checkout-map-container {
    margin-bottom: 0.75rem !important;
}

.checkout-submit-desktop {
    margin-top: 1rem;
}

/* Sticky Place Order Button - Mobile */
.sticky-checkout-place-order {
    display: none;
}

@media (max-width: 991.98px) {
    .sticky-checkout-place-order {
        display: flex;
        justify-content: center;
        position: fixed;
        bottom: 5.5rem;
        /* Above bottom-nav */
        left: 0;
        right: 0;
        z-index: 1040;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        box-shadow: none;
        border: none;
        pointer-events: none;
    }

    .sticky-place-order-btn {
        pointer-events: auto;
        padding: 0.6rem 1.75rem !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        border-radius: 50px !important;
        white-space: nowrap;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }

    .sticky-place-order-btn {
        padding: 0.4375rem 1rem;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 6px;
        white-space: nowrap;
        box-shadow: 0 2px 6px rgba(77, 106, 146, 0.25);
        transition: all 0.2s ease;
        border: none;
        line-height: 1.2;
    }

    .sticky-place-order-btn:active {
        transform: scale(0.98);
    }

    .sticky-place-order-btn:hover:not(:disabled) {
        box-shadow: 0 3px 10px rgba(77, 106, 146, 0.3);
    }

    .sticky-place-order-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    /* Hide desktop submit button on mobile */
    .checkout-submit-desktop {
        display: none !important;
    }

    /* Order summary positioning - show at top on mobile */
    .checkout-page .row {
        display: flex;
        flex-direction: column;
    }

    .checkout-order-summary {
        margin-top: 0 !important;
        margin-bottom: 0.75rem !important;
        order: -1;
        width: 100%;
    }

    .checkout-page .col-lg-8 {
        width: 100%;
        order: 2;
        margin-bottom: 0.5rem !important;
    }

    .checkout-summary-card {
        margin-bottom: 0.75rem;
    }

    /* Add padding to bottom of page to prevent content from being hidden */
    .checkout-page {
        padding-bottom: 9.5rem !important;
    }

    /* Reduce spacing in order summary */
    .checkout-summary-card .card-body {
        padding: 1rem !important;
    }

    .checkout-summary-card h5 {
        margin-bottom: 0.75rem !important;
        font-size: 1rem !important;
    }

    .checkout-summary-card .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    .cart-items-summary {
        margin-bottom: 0.75rem !important;
    }

    .cart-item-summary {
        margin-bottom: 0.5rem !important;
        padding: 0.75rem !important;
    }

    .summary-details {
        padding: 0.875rem !important;
        margin-bottom: 0.75rem !important;
    }

    .summary-details>div {
        margin-bottom: 0.4rem !important;
    }

    .summary-details hr {
        margin: 0.5rem 0 !important;
    }
}

/* Checkout Page Responsive Input Styling for Mobile */
@media (max-width: 768px) {

    /* Reduce input sizes */
    .checkout-page .form-control,
    .checkout-page .form-control-sm,
    .checkout-page .form-select,
    .checkout-page .form-select-sm {
        padding: 0.4rem 0.65rem;
        font-size: 0.8125rem;
        line-height: 1.4;
        height: auto;
        min-height: 36px;
    }

    .checkout-page textarea.form-control,
    .checkout-page textarea.form-control-sm {
        padding: 0.4rem 0.65rem;
        font-size: 0.8125rem;
        line-height: 1.4;
        min-height: 60px;
    }

    /* Smaller labels */
    .checkout-page .form-label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    /* Further reduce spacing between fields */
    .checkout-form-row {
        margin-bottom: 0.4rem;
    }

    .checkout-form-field {
        margin-bottom: 0.6rem;
    }

    /* Smaller input group buttons */
    .checkout-page .input-group-sm>.form-control,
    .checkout-page .input-group-sm>.btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Reduce card padding */
    .checkout-page .card-body.p-3 {
        padding: 1rem !important;
    }

    /* Smaller headings */
    .checkout-page h4,
    .checkout-page h5 {
        font-size: 1rem !important;
    }

    /* Payment method adjustments */
    .payment-method-option .form-check-label {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .payment-cards-image {
        margin-top: 0.5rem;
        margin-left: 0 !important;
    }

    /* Smaller map height on mobile */
    .checkout-page .map-container {
        height: 150px !important;
    }

    /* Compact error messages */
    .checkout-page .invalid-feedback {
        font-size: 0.6875rem;
        margin-top: 0.25rem;
    }

    /* Smaller buttons */
    .checkout-page .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    /* Reduce page header */
    .checkout-page .page-header {
        padding: 1rem 0 !important;
    }

    .checkout-page .hero-title {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 576px) {

    /* Extra small screens - even more compact */
    .checkout-page .form-control,
    .checkout-page .form-control-sm,
    .checkout-page .form-select,
    .checkout-page .form-select-sm {
        padding: 0.35rem 0.55rem;
        font-size: 0.75rem;
        min-height: 34px;
    }

    .checkout-page .form-label {
        font-size: 0.6875rem;
    }

    .checkout-form-row {
        margin-bottom: 0.35rem;
    }

    .checkout-form-field {
        margin-bottom: 0.5rem;
    }

    .checkout-page textarea.form-control,
    .checkout-page textarea.form-control-sm {
        min-height: 55px;
    }

    .checkout-page .card-body.p-3 {
        padding: 0.75rem !important;
    }

    .checkout-page {
        padding-bottom: 9.5rem !important;
    }
}

/* Sticky Add to Cart Button - Product Detail Page - Mobile */
.sticky-add-to-cart {
    display: none;
}

@media (max-width: 991.98px) {
    .sticky-add-to-cart {
        display: flex;
        justify-self: center !important;
        justify-content: center;
        position: fixed;
        bottom: 5.5rem;
        /* Above bottom nav */
        left: 0;
        right: 0;
        z-index: 1040;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        box-shadow: none;
        border: none;
        pointer-events: none;
        /* Allow clicks to pass through container */
    }

    .sticky-cart-btn {
        pointer-events: auto;
        /* Re-enable for button */
        font-size: 0.85rem !important;
        border-radius: 50px !important;
        font-weight: 700 !important;
        padding: 0.6rem 1.75rem !important;
        width: auto !important;
        /* max-width: 90%; */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }

    .sticky-cart-btn {
        font-size: 0.75rem;
        border-radius: 6px;
        font-weight: 600;
        padding: 0.5rem 1rem;
        line-height: 1.2;
    }

    /* Add padding to product detail page on mobile */
    .product-detail-wrapper {
        padding-bottom: 9.5rem !important;
    }
}

@media (max-width: 576px) {
    .sticky-add-to-cart {
        bottom: 5.25rem !important;
    }

    .sticky-cart-btn {
        padding: 0.5rem 1.5rem !important;
        font-size: 0.8rem !important;
    }

    .product-detail-wrapper {
        padding-bottom: 9.5rem !important;
    }
}

.cart-item-summary {
    transition: all 0.3s ease;
}

.cart-item-summary:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.summary-details {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 15px;
}


.form-control:focus,
.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(77, 106, 146, 0.25);
}

.form-label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    /* 15px - explicit size */
}

/* Validation Styles */
.form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 2.02 2.02L7.14 4.5l.94.94L5.26 8.5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Map Styles */
.map-container {
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.map-container:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 15px -3px rgba(77, 106, 146, 0.1);
}

#map {
    border-radius: 8px;
    z-index: 1;
}

/* South Africa Only Message Styling */
.sa-only-message {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 1000 !important;
    max-width: 350px !important;
    margin: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
    animation: slideInDown 0.3s ease-out !important;
}

.sa-only-message .btn-close {
    padding: 0.5rem !important;
    margin: 0 !important;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Leaflet map improvements */
.leaflet-container {
    font-family: inherit;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-size: 14px;
    color: var(--text-dark);
}

.leaflet-popup-tip {
    background: white;
}

.map-search-container {
    position: relative;
}

.map-search-container .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

.map-search-container .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.map-search-container .form-control:focus {
    border-right-color: var(--accent-blue);
}

.map-search-container .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(77, 106, 146, 0.25);
}

/* Province dropdown styling */
.form-select option {
    padding: 8px;
}

/* Address field styling */
#address {
    resize: vertical;
    min-height: 80px;
}

/* Form Processing Overlay Styles */
.form-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(3px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    animation: fadeIn 0.3s ease-in-out;
}

.form-processing-content {
    text-align: center;
    padding: 2rem;
}

/* Redirect Loading Overlay Styles */
.redirect-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.redirect-loading-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: slideInUp 0.5s ease-out;
}

.redirect-countdown {
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
}

.redirect-countdown small {
    color: white !important;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    /* .page-header {
        margin-top: 60px !important;
    } */

    .hero-title {
        font-size: 2rem !important;
        /* Reduced from 2.5rem */
    }
}

@media (max-width: 767.98px) {
    .redirect-loading-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .redirect-loading-content h4 {
        font-size: 1.25rem;
    }

    .redirect-loading-content p {
        font-size: 0.9rem;
    }

    .form-processing-content {
        padding: 1.5rem;
    }

    .form-processing-content h5 {
        font-size: 1.1rem;
    }

    .form-processing-content p {
        font-size: 0.9rem;
    }
}

/* ============================================
   HOMEPAGE CATEGORIES SECTION
   ============================================ */
.homepage-categories-section {
    padding: 60px 0;
    background: var(--secondary-light);
}

.homepage-category-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 20px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    min-height: 140px;
}

.homepage-category-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-accent);
    transition: height 0.4s ease;
}

.homepage-category-card:hover .homepage-category-gradient {
    height: 100%;
    opacity: 0.95;
}

.homepage-category-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.homepage-category-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.625rem;
    /* 26px - reduced from 2rem (32px) */
    font-weight: 800;
    color: var(--accent-blue);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.homepage-category-card:hover .homepage-category-number {
    color: white;
    opacity: 0.3;
}

.homepage-category-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9375rem;
    /* 15px - reduced from 1.1rem */
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.5rem 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.homepage-category-card:hover .homepage-category-name {
    color: white;
}

.homepage-category-arrow-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
}

.homepage-category-arrow {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 106, 146, 0.1);
    border-radius: 50%;
    color: var(--accent-blue);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.homepage-category-card:hover .homepage-category-arrow {
    background: white;
    transform: translateX(5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.homepage-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Add shine effect on hover */
.homepage-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.homepage-category-card:hover::before {
    left: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .homepage-categories-section {
        padding: 50px 0;
    }

    .homepage-category-card {
        min-height: 120px;
    }

    .homepage-category-content {
        padding: 1.25rem;
    }

    .homepage-category-number {
        font-size: 1.25rem;
        /* Reduced from 1.5rem */
    }

    .homepage-category-name {
        font-size: 0.875rem;
        /* Reduced from 1rem */
    }

    .homepage-category-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* ============================================
   HOMEPAGE SALE SECTION
   ============================================ */
.homepage-sale-section {
    padding: 60px 0;
    background: var(--primary-light);
}

.homepage-sale-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.875rem;
    /* 14px - reduced from 1rem */
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    /* Reduced padding */
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    animation: homepage-sale-pulse 2s infinite;
}

@keyframes homepage-sale-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
    }
}

.homepage-sale-product-card {
    position: relative;
}

.homepage-sale-product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.homepage-sale-product-badge .badge {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
}

.homepage-sale-product-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.homepage-sale-product-image img {
    transition: transform 0.4s ease;
}

.homepage-sale-product-card:hover .homepage-sale-product-image img {
    transform: scale(1.1);
}

.homepage-sale-product-title {
    font-size: 0.9375rem;
    /* 15px - reduced from 1rem */
    font-weight: 600;
    margin-bottom: 0.75rem;
    min-height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.homepage-sale-product-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.homepage-sale-product-title a:hover {
    color: var(--accent-blue);
}

.homepage-sale-price-section {
    margin-bottom: 1rem;
}

.homepage-sale-product-card .price-original {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.homepage-sale-product-card .price-discounted {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.homepage-sale-price-section .badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    white-space: nowrap;
}

.homepage-sale-empty-icon {
    opacity: 0.5;
}

/* Temu-Style Product Cards */
.temu-product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Shop Page Specific - More compact product card */
.shop-page .temu-product-card {
    border-radius: 10px;
}

.temu-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.temu-product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* Square aspect ratio */
    overflow: hidden;
    background: #f8f9fa;
    display: block;
}

.temu-product-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
}

.temu-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.temu-product-card:hover .temu-product-image {
    transform: scale(1.05);
}

.temu-product-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #dee2e6;
}

/* Product Badges Container - Layout for sale and special offer badges */
.product-badges-container {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
    z-index: 5;
    pointer-events: none;
}

.product-badges-container>* {
    pointer-events: auto;
}

.product-offer-badge-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-top: 0 !important;
    margin-left: auto;
}

/* MOQ/DOP Discount Type Badges */
.discount-type-badge {
    position: absolute;
    bottom: 0.375rem;
    left: 0.375rem;
    z-index: 6;
    font-size: 0.5625rem;
    font-weight: 600;
    padding: 0.125rem 0.3125rem;
    border-radius: 3px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    line-height: 1.1;
    max-width: calc(50% - 2px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.discount-type-badge.badge-moq {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.discount-type-badge.badge-dop {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.discount-type-badge.badge-both {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    font-size: 0.5rem;
    padding: 0.1rem 0.25rem;
    max-width: calc(60% - 2px);
}

/* Discount Info Badge (shows discount details) */
.discount-info-badge {
    position: absolute;
    bottom: 0.375rem;
    left: 0.375rem;
    z-index: 7;
    /* Higher than action icons (z-index: 4) */
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.25rem 0.375rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    max-width: calc(100% - 4rem);
    /* Leave space for action icons on the right (32px + 6px gap + 32px = ~4rem) */
}

.discount-info-badge small {
    color: white;
    display: block;
}

.discount-info-badge strong {
    font-weight: 600;
    color: #10b981;
}

/* Product Detail Page Badge */
.product-detail-discount-badge {
    bottom: 0.75rem;
    left: 0.75rem;
    font-size: 0.625rem;
    padding: 0.25rem 0.4375rem;
    z-index: 6;
}

.product-detail-discount-badge.badge-both {
    font-size: 0.5625rem;
    padding: 0.1875rem 0.375rem;
}

/* Quick View Badge */
.qv-discount-badge {
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 0.5625rem;
    padding: 0.125rem 0.3125rem;
    z-index: 6;
}

.qv-discount-badge.badge-both {
    font-size: 0.5rem;
    padding: 0.1rem 0.25rem;
}

.temu-discount-badge {
    position: relative;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    font-size: 8px;
    font-weight: normal;
    padding: 1px 3px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 65, 108, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    flex-shrink: 0;
    white-space: nowrap;
    max-width: calc(50% - 2px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.temu-action-icons-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 99;
    /* Always visible - quick view and cart icons show without hover */
}

.temu-product-card:hover .temu-action-icons-overlay {
    opacity: 1;
    transform: translateY(0);
}

.temu-quick-view-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2563eb;
    font-size: 10px;
}

.temu-quick-view-btn:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(77, 106, 146, 0.25);
}

.temu-quick-cart-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2563eb;
    font-size: 10px;
}

.temu-quick-cart-btn:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(77, 106, 146, 0.25);
}

.temu-quick-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.temu-product-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Shop Page Specific - Smaller product info and spacing */
.shop-page .temu-product-info {
    padding: 8px 10px;
}

/* Shop Page Specific - Reduce grid gap for more compact layout */
.shop-page .row.g-3 {
    --bs-gutter-y: 0.5rem;
    --bs-gutter-x: 0.5rem;
}

.temu-product-title {
    font-size: 0.8125rem;
    /* 13px - reduced from 0.875rem (14px) */
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #1f2937;
}

/* Shop Page Specific - Smaller product title */
.shop-page .temu-product-title {
    font-size: 0.75rem;
    margin-bottom: 6px;
    min-height: 2.4em;
    line-height: 1.3;
}

.temu-product-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.temu-product-title a:hover {
    color: #2563eb;
}

.temu-price-section {
    margin-top: auto;
}

/* Shop Page Specific - Compact price section */
.shop-page .temu-price-section {
    margin-top: 4px;
}

.temu-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.product-stock-info {
    margin-top: 2px;
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Shop Page Specific - Smaller price row gap */
.shop-page .temu-price-row {
    gap: 6px;
}

.temu-current-price {
    font-size: 1rem;
    /* 16px - reduced from 1.125rem (18px) */
    font-weight: 700;
    color: #ef4444;
    line-height: 1.2;
}

/* Shop Page Specific - Smaller prices */
.shop-page .temu-current-price {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.1;
}

.temu-original-price {
    font-size: 0.8125rem;
    /* 13px - reduced from 0.875rem (14px) */
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

/* Shop Page Specific - Smaller original price */
.shop-page .temu-original-price {
    font-size: 0.6875rem;
}

/* Responsive adjustments for Temu cards */
@media (max-width: 576px) {
    .temu-product-card {
        border-radius: 8px;
    }

    .temu-product-title {
        font-size: 0.75rem;
        /* Reduced from 0.8rem */
        min-height: 2.4em;
    }

    .temu-current-price {
        font-size: 0.9375rem;
        /* Reduced from 1rem */
    }

    .temu-original-price {
        font-size: 0.6875rem;
        /* Reduced from 0.75rem */
    }

    /* Shop Page Specific - Even smaller on mobile */
    .shop-page .temu-product-info {
        padding: 6px 8px;
    }

    .shop-page .temu-product-title {
        font-size: 0.6875rem;
        margin-bottom: 4px;
        min-height: 2.2em;
        line-height: 1.25;
    }

    .shop-page .temu-current-price {
        font-size: 0.8125rem;
        font-weight: 600;
    }

    .shop-page .temu-original-price {
        font-size: 0.625rem;
    }

    .shop-page .temu-price-row {
        gap: 4px;
    }

    .product-badges-container {
        top: 6px;
        left: 6px;
        right: 6px;
        gap: 3px;
        flex-wrap: wrap;
    }

    .temu-discount-badge {
        max-width: calc(50% - 1.5px);
    }

    /* .product-offer-badge-wrapper {
        max-width: calc(50% - 1.5px);
    } */
    .offer-badge {
        font-size: 8px !important;
        padding: 1px 3px !important;
    }

    /* .offer-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    } */

    .temu-discount-badge {
        font-size: 8px;
        padding: 1px 3px;
    }

    /* .offer-badge {
        padding: 4px 10px;
        font-size: 0.65rem;
    } */

    .temu-quick-cart-btn,
    .temu-quick-view-btn {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
}

/* Quick View Modal Styles - Optimized with Bootstrap */
.modal.show {
    display: block !important;
}

.modal.show .modal-dialog {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Quick View Modal Customizations */
.modal-xl {
    max-width: 1200px;
}

.modal-content {
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-body {
    padding: 0;
}

/* Quick View Image Section */
.quick-view-image-section {
    background: #f8f9fa;
}

.quick-view-image-section .position-relative {
    transition: all 0.3s ease;
}

.quick-view-image-section img {
    transition: transform 0.3s ease;
}

.quick-view-image-section img:hover {
    transform: scale(1.02);
}

/* Quick View Thumbnail Styles */
.quick-view-thumbnail {
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-view-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(77, 106, 146, 0.2);
}

/* Quick View Details Section */
.quick-view-details-section {
    max-height: 90vh;
    overflow-y: auto;
}

/* Loading State for Add to Cart */
.btn[wire\:loading] {
    pointer-events: none;
    opacity: 0.7;
}

.btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.temu-quick-view-images {
    padding: 20px;
}

.temu-main-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.temu-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
}

.temu-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: #333;
}

.temu-image-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.temu-image-prev {
    left: 12px;
}

.temu-image-next {
    right: 12px;
}

.temu-thumbnail-images {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.temu-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.temu-thumbnail:hover {
    border-color: #2563eb;
    transform: scale(1.05);
}

.temu-thumbnail.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(77, 106, 146, 0.2);
}

.temu-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.temu-quick-view-details {
    padding: 20px;
}

.temu-quick-view-title {
    font-size: 1.25rem;
    /* 20px - reduced from 1.5rem (24px) */
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
}

.temu-sales-info {
    font-size: 0.875rem;
    color: #6b7280;
}

.temu-bestseller-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.temu-quick-view-price {
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.temu-quick-current-price {
    font-size: 1.625rem;
    /* 26px - reduced from 2rem (32px) */
    font-weight: 700;
    color: #ef4444;
}

.temu-quick-original-price {
    font-size: 1.0625rem;
    /* 17px - reduced from 1.25rem (20px) */
    color: #9ca3af;
    text-decoration: line-through;
}

.temu-quick-discount-badge {
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.temu-clearance-banner {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.temu-product-options {
    padding: 16px 0;
}

.temu-option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.temu-color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.temu-color-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.temu-color-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.temu-variant-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.temu-variant-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #374151;
}

.temu-variant-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.temu-variant-btn.active {
    border-color: #2563eb;
    background: #2563eb;
    color: white;
}

.temu-variant-btn small {
    display: block;
    font-size: 0.75rem;
    margin-top: 2px;
    opacity: 0.8;
}

.temu-service-badge .btn {
    border-width: 2px;
    font-weight: 600;
}

.temu-quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.temu-quick-view-actions {
    margin-top: 24px;
}

.temu-add-to-cart-btn {
    font-weight: 700;
    font-size: 0.9375rem;
    /* 15px - explicit size */
    padding: 12px;
    /* Reduced from 16px */
    border-radius: 8px;
    margin-bottom: 12px;
}

.temu-view-details-link {
    display: block;
    text-align: center;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.temu-view-details-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ============================================
   QUICK VIEW MODAL - Clean Modern Design
   ============================================ */

/* Overlay & Animation */
.qv-overlay {
    display: block !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px);
    z-index: 1055;
    animation: qvFadeIn 0.2s ease-out;
}

@keyframes qvFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Dialog */
.qv-dialog {
    max-width: 1000px;
    margin: 2vh auto;
    padding: 15px;
    animation: qvSlideUp 0.3s ease-out;
}

@keyframes qvSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Content - ABSOLUTE SHADOW REMOVAL */
.qv-modal,
.qv-modal.modal-content,
.qv-dialog.modal-dialog {
    background: var(--primary-light);
    border-radius: 12px;
    overflow: hidden;
    max-height: 96vh;
    border: none !important;
    display: flex;
    flex-direction: column;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.qv-modal .modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.qv-modal .row {
    flex: 1;
    overflow: hidden;
    display: flex;
    margin: 0;
}

/* Close Button - ABSOLUTELY NO SHADOWS OR BORDERS */
.qv-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1060;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none !important;
    background: var(--tertiary-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.qv-close:hover {
    background: var(--border-light);
    transform: rotate(90deg);
}

.qv-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border-top-color: #fff;
    animation: qvSpin 0.7s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes qvSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Images Section - NO SHADOWS */
.qv-images {
    background: var(--secondary-light);
    padding: 20px;
    position: relative;
}

.qv-main-img-wrap {
    position: relative;
    margin-bottom: 12px;
    background: var(--primary-light);
    border-radius: 8px;
    overflow: hidden;
}

.qv-main-img {
    position: relative;
    width: 100%;
    padding-top: 80%;
    /* Consistent aspect ratio */
    background: var(--primary-light);
    border: none !important;
    box-shadow: none !important;
}

.qv-main-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none !important;
    box-shadow: none !important;
}

/* GLOBAL FLAT DESIGN - REMOVE ALL SHADOWS */
.qv-overlay,
.qv-dialog,
.qv-modal,
.qv-close,
.qv-nav,
.qv-thumb,
.qv-badge,
.qv-best,
.qv-price,
.qv-current,
.qv-discount,
.qv-shipping,
.qv-desc,
.qv-var-btn,
.qv-btn,
.qv-primary,
.qv-qty-ctrl,
.qv-link,
.qv-main-img-wrap,
.qv-main-img,
.qv-main-img img {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    text-shadow: none !important;
}

.qv-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    opacity: 0;
}

.qv-main-img-wrap:hover .qv-nav {
    opacity: 1;
}

.qv-prev {
    left: 8px;
}

.qv-next {
    right: 8px;
}

.qv-nav:hover {
    background: #fff;
    color: var(--accent-blue);
}

/* Image Counter */
.qv-counter {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Thumbnails - NO SHADOWS */
.qv-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
}

.qv-thumbs::-webkit-scrollbar {
    display: none;
}

.qv-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--primary-light);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.qv-thumb.active {
    border-color: var(--accent-blue);
}

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

/* Details Section */
.qv-details {
    padding: 24px;
    max-height: 96vh;
    overflow-y: auto;
    background: var(--primary-light);
    display: flex;
    flex-direction: column;
    /* Hide scrollbar but keep scrolling */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.qv-details::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.qv-title {
    font-size: 1.25rem;
    /* 20px - reduced from 1.5rem (24px) */
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 12px;
}

.qv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.qv-badge {
    padding: 5px 10px;
    background: var(--tertiary-light);
    color: var(--text-medium);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.qv-price {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.qv-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-orange);
}

/* Reduced from 1.75rem */
.qv-original {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.9375rem;
    margin-left: 8px;
}

/* Reduced from 1rem */
.qv-discount {
    background: var(--tertiary-light);
    color: var(--accent-orange);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Stock & Shipping - NO SHADOWS */
.qv-stock {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.qv-shipping {
    padding: 6px 12px;
    background: var(--secondary-light);
    color: var(--accent-green);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: none !important;
}

.qv-desc {
    margin-bottom: 15px;
    padding: 12px;
    background: var(--secondary-light);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-medium);
}

/* Variants - NO SHADOWS */
.qv-variant-group {
    margin-bottom: 12px;
}

.qv-variant-group .qv-var-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.qv-variant-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qv-var-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    background: var(--primary-light);
    color: var(--text-medium);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none !important;
}

.qv-var-btn.active {
    background: var(--text-dark);
    color: var(--primary-light);
    border-color: var(--text-dark);
    box-shadow: none !important;
}

.qv-var-btn:hover:not(:disabled) {
    background: var(--secondary-light);
    border-color: var(--accent-blue);
}

.qv-var-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qv-selected-config {
    margin-top: 12px;
    padding: 10px;
    background: rgba(77, 106, 146, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
}

.qv-selected-config strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.qv-config-badge {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 4px 8px;
    background: var(--accent-blue);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Quantity & Buttons - NO SHADOWS */
.qv-qty-ctrl {
    display: inline-flex;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.qv-qty-ctrl button {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--secondary-light);
    cursor: pointer;
    color: var(--text-dark);
}

.qv-qty-ctrl input {
    width: 45px;
    height: 34px;
    border: none;
    text-align: center;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--text-dark);
}

.qv-btn {
    width: 100%;
    padding: 10px;
    /* Reduced from 12px */
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    /* 14px - explicit size */
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.qv-primary {
    background: var(--accent-blue);
    color: var(--primary-light);
    margin-bottom: 10px;
}

.qv-primary:hover {
    background: var(--text-dark);
}

.qv-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN (Guaranteed Visibility)
   ============================================ */

@media (max-width: 991.98px) {

    .qv-dialog,
    .qv-dialog.modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    .qv-modal,
    .qv-modal.modal-content {
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        display: block !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: none !important;
        border: none !important;
        background: #fff !important;
    }

    .qv-modal .modal-body,
    .qv-modal .row {
        display: block !important;
        height: auto !important;
        min-height: 100% !important;
        /* Ensure content area expands */
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .qv-images {
        display: block !important;
        width: 100% !important;
        padding: 10px !important;
        background: #f9fafb !important;
        border: none !important;
        text-align: center !important;
        min-height: 200px;
    }

    .qv-main-img-wrap {
        margin: 0 auto 8px !important;
        max-width: 180px !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .qv-main-img {
        max-height: 120px !important;
        padding-top: 60% !important;
        box-shadow: none !important;
        border: none !important;
    }

    .qv-details {
        display: block !important;
        width: 100% !important;
        padding: 24px 20px 80px !important;
        /* Added bottom padding */
        background: #fff !important;
        height: auto !important;
        min-height: 500px !important;
        /* Force visibility */
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: #000 !important;
        z-index: 100 !important;
        position: relative !important;
        scrollbar-width: none !important;
        /* Firefox */
        -ms-overflow-style: none !important;
        /* IE and Edge */
    }

    .qv-details::-webkit-scrollbar {
        display: none !important;
        /* Chrome, Safari and Opera */
    }

    /* Force all content visible with black text */
    .qv-details * {
        opacity: 1 !important;
        visibility: visible !important;
        color: #000 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .qv-current {
        color: var(--accent-orange) !important;
        font-size: 1.25rem !important;
    }

    /* Reduced from 1.5rem */
    .qv-discount {
        color: var(--accent-orange) !important;
        background: var(--tertiary-light) !important;
    }

    .qv-badge {
        background: var(--tertiary-light) !important;
        border: none !important;
    }

    .qv-primary {
        background: var(--accent-blue) !important;
        color: var(--primary-light) !important;
        height: 50px !important;
    }

    .qv-meta,
    .qv-variant-opts,
    .qv-qty-ctrl,
    .qv-badge,
    .qv-current,
    .qv-original {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .qv-title {
        font-size: 1.125rem !important;
        /* Reduced from 1.3rem */
        font-weight: 800 !important;
        margin-bottom: 12px !important;
        line-height: 1.2 !important;
        display: block !important;
    }

    .qv-nav {
        opacity: 1 !important;
        display: flex !important;
        width: 32px !important;
        height: 32px !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
    }

    .qv-thumb {
        width: 50px !important;
        height: 50px !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .qv-main-img-wrap {
        max-width: 150px !important;
    }

    .qv-main-img {
        max-height: 100px !important;
    }

    .qv-details {
        padding: 15px !important;
    }

    .qv-title {
        font-size: 1rem !important;
    }
}

/* Floating Cart Button */
.floating-cart-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: var(--primary-light);
    border: none;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9997;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cart-btn:hover {
    width: 45px;
    padding-right: 10px;
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--primary-light);
    border: none;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9996;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 1.5rem;
}

.floating-whatsapp-btn:hover {
    width: 45px;
    padding-left: 5px;
    background: linear-gradient(135deg, #2fe578 0%, #1a9d8f 100%);
    color: var(--primary-light);
    transform: translateY(-50%) scale(1.05);
}

.floating-whatsapp-btn i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.floating-whatsapp-btn:hover i {
    transform: scale(1.1);
}


/* Ensure buttons don't overlap on smaller screens - keep floating cart visible on responsive so users can open cart sidebar */
@media (max-width: 991px) {
    .floating-whatsapp-btn {
        top: 40%;
    }

    .floating-cart-btn {
        top: 55%;
        right: 0;
    }
}

@media (max-width: 576px) {
    .floating-whatsapp-btn {
        top: 35%;
    }

    .floating-cart-btn {
        top: 50%;
        right: 0;
    }
}

.floating-cart-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--accent-orange);
    color: var(--primary-light);
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.4rem;
    font-weight: 500;
    border: 1px solid white;
}

.cart-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

/* Cart Sidebar */
.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    border-left: 1px solid #e5e7eb;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    flex-shrink: 0;
}

.cart-sidebar-header h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.cart-count-badge {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.875rem;
}

.cart-sidebar-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.cart-sidebar-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.cart-sidebar-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 16px;
    position: relative;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.cart-sidebar-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-sidebar-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.5rem;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.cart-item-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-item-title a:hover {
    color: #2563eb;
}

.cart-item-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cart-price-current {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent-orange);
}

.cart-price-original {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.qty-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.qty-value {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 0.8125rem;
}

.cart-remove-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cart-remove-btn:hover {
    background: #fee2e2;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.cart-empty i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 16px;
}

.cart-empty p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.cart-sidebar-footer {
    padding: 8px 12px 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-light);
    background: var(--secondary-light);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-total-amount {
    color: var(--accent-blue);
    font-size: 0.9375rem;
}

/* Cart sidebar footer: two equal buttons via grid */
.cart-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.cart-footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 0.4rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.cart-footer-btn i {
    font-size: 0.75rem;
}

.cart-footer-btn--outline {
    background: transparent;
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.cart-footer-btn--outline:hover {
    background: var(--accent-blue);
    color: var(--primary-light);
}

.cart-footer-btn--primary {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--primary-light);
}

.cart-footer-btn--primary:hover {
    opacity: 0.9;
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .cart-sidebar-footer {
        padding-bottom: 10px;
    }
}

@media (max-width: 400px) {
    .cart-sidebar-footer {
        padding-bottom: 10px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-notification {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: none !important;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 260px;
    max-width: 380px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: var(--accent-orange);
}

.toast-info {
    border-left-color: var(--accent-blue);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.toast-content i {
    font-size: 1.25rem;
}

.toast-success .toast-content i {
    color: var(--accent-green);
}

.toast-error .toast-content i {
    color: var(--accent-orange);
}

.toast-info .toast-content i {
    color: var(--accent-blue);
}

.toast-content span {
    color: #1f2937;
    font-weight: 500;
    font-size: 0.9375rem;
}

.toast-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Text link "View cart" inside toast (not a button) */
.toast-view-cart-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
    font-size: inherit;
    margin-left: 0.35rem;
}
.toast-view-cart-link:hover {
    color: #1d4ed8;
}

/* Premium "Added to cart" toast (large-retailer style) - kept for any server-driven use */
.toast-added-to-cart {
    min-width: 320px;
    max-width: 380px;
    padding: 0;
    overflow: hidden;
    border-left: 4px solid var(--accent-green, #10b981);
    display: flex;
    align-items: stretch;
    gap: 0;
}

.toast-added-to-cart .toast-cart-check-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.toast-added-to-cart .toast-cart-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-green, #10b981);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    animation: toast-check-pop 0.35s ease-out;
}

@keyframes toast-check-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.toast-added-to-cart .toast-added-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px 14px 16px;
}

.toast-added-to-cart .toast-cart-product {
    flex-shrink: 0;
}

.toast-added-to-cart .toast-cart-product-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.toast-added-to-cart .toast-cart-product-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.25rem;
}

.toast-added-to-cart .toast-added-text {
    flex: 1;
    min-width: 0;
}

.toast-added-to-cart .toast-added-title {
    display: block;
    color: var(--accent-green, #059669);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}

.toast-added-to-cart .toast-added-name {
    color: #1f2937;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.toast-added-to-cart .toast-view-cart-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent-blue, #1e3a5f);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.toast-added-to-cart .toast-view-cart-btn:hover {
    background: #2d4a6f;
    color: #fff;
    transform: translateY(-1px);
}

.toast-added-to-cart .toast-cart-close {
    align-self: flex-start;
    margin: 8px 8px 0 0;
    padding: 4px;
}

/* Responsive Cart Sidebar */
@media (max-width: 991px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
        height: 100dvh;
        max-height: 100dvh;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    }

    .cart-sidebar.active {
        right: 0;
    }

    .floating-cart-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .floating-cart-badge {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .floating-whatsapp-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .floating-whatsapp-btn i {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .floating-whatsapp-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .floating-whatsapp-btn i {
        font-size: 1.2rem;
    }

    .floating-whatsapp-btn:hover {
        width: 45px;
    }

    .floating-cart-btn {
        width: 40px;
        height: 40px;
    }

    .floating-cart-btn:hover {
        width: 45px;
    }
}

@media (max-width: 576px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast-notification {
        min-width: auto;
        max-width: 100%;
    }

    .toast-added-to-cart {
        min-width: auto;
        max-width: 100%;
    }

    .toast-added-to-cart .toast-added-body {
        padding: 12px 10px 12px 12px;
    }

    .toast-added-to-cart .toast-cart-product-img,
    .toast-added-to-cart .toast-cart-product-placeholder {
        width: 48px;
        height: 48px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .homepage-sale-section {
        padding: 50px 0;
    }

    .homepage-sale-badge {
        font-size: 0.8125rem;
        /* Reduced from 0.9rem */
        padding: 0.5rem 1rem;
        /* Reduced padding */
    }

    .homepage-sale-product-badge {
        top: 10px;
        right: 10px;
    }

    .homepage-sale-product-image {
        height: 180px;
    }
}

/* ============================================
   CATEGORY FILTERED PRODUCTS SECTION
   ============================================ */
.category-filtered-section {
    padding: 60px 0;
    background: var(--primary-light);
}

/* Horizontal Scrollable Category Filter */
.category-filter-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.category-filter-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.category-filter-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.category-filter-btn {
    flex-shrink: 0;
    padding: 6px 6px;
    border: 2px solid var(--border-light);
    background: var(--primary-light);
    color: var(--text-medium);
    border-radius: 25px;
    font-size: 10px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: none !important;
}

.category-filter-btn:hover:not(:disabled) {
    border-color: var(--accent-blue);
    background: var(--secondary-light);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.category-filter-btn.active {
    background: var(--gradient-accent);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(77, 106, 146, 0.2);
}

.category-filter-btn.active:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 106, 146, 0.3);
}

.category-filter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.category-filter-btn i {
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .category-filtered-section {
        padding: 50px 0;
    }

    .category-filter-btn {
        padding: 6px 6px;
        font-size: 9px;
    }
}

@media (max-width: 768px) {
    .category-filtered-section {
        padding: 40px 0;
    }

    .category-filter-scroll {
        gap: 8px;
        padding: 6px 0 14px;
    }

    .category-filter-btn {
        padding: 4px 4px;
        font-size: 9px;
    }

    .category-filter-btn i {
        font-size: 9px;
    }
}

@media (max-width: 576px) {
    .category-filter-scroll {
        gap: 6px;
        padding: 4px 0 12px;
    }

    .category-filter-btn {
        padding: 4px 4px;
        font-size: 9px;
    }

    .category-filter-btn i {
        display: none;
        /* Hide icons on very small screens */
    }
}

/* ============================================
   Header Enhancements
   ============================================ */

/* Rotating Banner Messages */
.free-shipping-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-messages-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-message {
    position: absolute;
    width: 100%;
    top: 100%;
    opacity: 0;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-message.active {
    position: relative;
    top: 0;
    opacity: 1;
    transform: translateY(0);
    font-size: 11px;
    /* Reduced from 12px */
}

.banner-message:not(.active) {
    transform: translateY(-100%);
    font-size: 11px;
    /* Reduced from 12px */
}

/* Responsive Banner Message Font Size */
@media (min-width: 992px) {

    .banner-message.active,
    .banner-message:not(.active) {
        font-size: 13px;
        /* Reduced from 15px */
    }

    .free-shipping-banner {
        min-height: 35px;
    }
}

/* Responsive Logo */
.site-logo {
    height: auto;
    max-width: 100%;
    transition: all 0.3s ease;
    object-fit: contain;
}

/* Desktop - Large screens */
@media (min-width: 1400px) {
    .site-logo {
        max-height: 70px;
        max-width: 250px;
    }
}

/* Desktop - Standard */
@media (min-width: 1200px) and (max-width: 1399px) {
    .site-logo {
        max-height: 65px;
        max-width: 220px;
    }
}

/* Tablet - Large */
@media (min-width: 992px) and (max-width: 1199px) {
    .site-logo {
        max-height: 60px;
        max-width: 200px;
    }
}

/* Tablet - Small */
@media (min-width: 768px) and (max-width: 991px) {
    .site-logo {
        max-height: 45px;
        max-width: 130px;
    }
}

/* Mobile - Large */
@media (min-width: 576px) and (max-width: 767px) {
    .site-logo {
        max-height: 40px;
        max-width: 120px;
    }
}

/* Mobile - Small */
@media (max-width: 575px) {
    .site-logo {
        max-height: 35px;
        max-width: 110px;
    }
}

/* Enhanced Menu Toggle Button */
.custom-navbar-toggler {
    padding: 0.5rem;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1050;
}

.custom-navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.custom-navbar-toggler:hover {
    transform: scale(1.05);
}

.navbar-toggler-icon-custom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon-custom span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--accent-blue);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: absolute;
    left: 0;
    right: 0;
}

/* Default closed state - Hamburger icon (3 horizontal lines) */
.navbar-toggler-icon-custom span:nth-child(1) {
    top: 0;
    transform-origin: center;
}

.navbar-toggler-icon-custom span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: center;
}

.navbar-toggler-icon-custom span:nth-child(3) {
    bottom: 0;
    transform-origin: center;
}

/* Closed state - ensure proper hamburger display */
.custom-navbar-toggler[aria-expanded="false"] .navbar-toggler-icon-custom span:nth-child(1),
.custom-navbar-toggler:not([aria-expanded]) .navbar-toggler-icon-custom span:nth-child(1) {
    top: 0;
    transform: translateY(0) rotate(0deg);
}

.custom-navbar-toggler[aria-expanded="false"] .navbar-toggler-icon-custom span:nth-child(2),
.custom-navbar-toggler:not([aria-expanded]) .navbar-toggler-icon-custom span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    width: 100%;
}

.custom-navbar-toggler[aria-expanded="false"] .navbar-toggler-icon-custom span:nth-child(3),
.custom-navbar-toggler:not([aria-expanded]) .navbar-toggler-icon-custom span:nth-child(3) {
    bottom: 0;
    transform: translateY(0) rotate(0deg);
}

/* Open state - X icon */
.custom-navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.custom-navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
    width: 0;
}

.custom-navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Search Button */
.mobile-search-btn {
    padding: 0.5rem !important;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.mobile-search-btn:hover {
    background: rgba(77, 106, 146, 0.1);
    transform: scale(1.1);
}

.mobile-search-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(77, 106, 146, 0.25);
    outline: none;
}

.mobile-search-btn i {
    transition: transform 0.3s ease;
}

.mobile-search-btn:hover i {
    transform: scale(1.15);
}

/* Hide search icon in desktop menu when mobile search is visible */
@media (max-width: 991px) {
    .navbar-nav .nav-link[href="javascript:void(0)"] {
        display: none;
    }
}

/* Responsive Menu Icon Sizes */
@media (min-width: 992px) {
    .navbar-toggler-icon-custom {
        width: 30px;
        height: 24px;
    }

    .navbar-toggler-icon-custom span {
        height: 3.5px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .navbar-toggler-icon-custom {
        width: 28px;
        height: 22px;
    }

    .navbar-toggler-icon-custom span {
        height: 3px;
    }
}

@media (max-width: 767px) {
    .navbar-toggler-icon-custom {
        width: 26px;
        height: 20px;
    }

    .navbar-toggler-icon-custom span {
        height: 2.5px;
    }
}

@media (max-width: 575px) {
    .navbar-toggler-icon-custom {
        width: 24px;
        height: 18px;
    }

    .navbar-toggler-icon-custom span {
        height: 2px;
    }
}

/* Additional Header Enhancements */
.navbar {
    transition: all 0.3s ease;
    padding: 0.75rem 0 !important;
}

.navbar-brand {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

/* Smooth transitions for navbar collapse */
.navbar-collapse {
    transition: all 0.3s ease;
}

/* Enhanced nav links on mobile */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0 !important;
        border-bottom: 1px solid var(--border-light);
        transition: all 0.2s ease;
    }

    .navbar-nav .nav-link:hover {
        background: var(--secondary-light);
        padding-left: 1.5rem !important;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    /* Hide search icon in desktop menu when mobile search button is visible */
    .navbar-nav .nav-link[href="javascript:void(0)"] {
        display: none;
    }

    .mobile-search-btn {
        text-decoration: none !important;
    }
}

/* ============================================
   OFFERS SHOWCASE SECTION
   ============================================ */
.offers-showcase {
    padding: 30px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.offers-showcase .section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.offers-showcase .text-muted {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* Offers Slider Container */
.offers-slider-container {
    max-width: 100%;
    padding: 0 45px;
}

.offers-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-bottom: -10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.offers-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.offers-grid {
    display: flex;
    gap: 0.75rem;
    padding: 5px 0;
}

.offer-item {
    flex: 0 0 auto;
    width: 240px;
    max-width: 90vw;
}

/* Offer Card */
.offer-card {
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.offers-showcase .offer-card.hero-card {
    padding: 0 !important;
}

.offer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.offer-card .card-body {
    padding: 0.625rem;
}

.offer-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

/* Offer Badges */
.offer-live-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

.offer-live-badge .badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
    animation: offerPulse 2s infinite;
}

.offer-multiple-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
}

.offer-multiple-badge .badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
}

@keyframes offerPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* Products Display */
.products-display {
    margin-bottom: 0.5rem;
}

.offer-product-image-wrapper {
    position: relative;
    background: white;
    border-radius: 6px;
    padding: 6px;
    overflow: hidden;
}

.offer-product-image-wrapper.free-product {
    border: 1.5px dashed #10b981;
}

.offer-product-image-wrapper img {
    width: 100%;
    height: 75px;
    object-fit: contain;
    border-radius: 3px;
}

.offer-product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px;
    background: var(--secondary-light);
    border-radius: 3px;
    color: var(--text-light);
}

.offer-product-image-placeholder i {
    font-size: 1.5rem;
}

.offer-product-image-placeholder.free-placeholder {
    border: 1.5px dashed #10b981;
    color: var(--accent-green);
}

.offer-free-badge {
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 2;
}

.offer-free-badge .badge {
    font-size: 0.5625rem;
    padding: 0.1875rem 0.375rem;
    font-weight: 700;
    border-radius: 0 0 4px 0;
}

.offer-qty-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
}

.offer-product-name {
    font-size: 0.6875rem;
    color: var(--text-medium);
    margin-top: 0.375rem;
    text-align: center;
    line-height: 1.2;
}

/* Order Based Offer */
.offer-order-based-icon {
    font-size: 2rem;
    margin-bottom: 0.375rem;
}

.offer-order-amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
}

.offer-arrow-icon {
    font-size: 1rem;
    color: var(--accent-green);
    margin: 0.375rem 0;
}

/* Product Based Offer */
.offer-products-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.offer-buy-product,
.offer-get-product {
    flex: 1;
}

.offer-product-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--accent-green);
    animation: offerBounce 2s infinite;
}

@keyframes offerBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Offer Details Box */
.offer-details-box {
    text-align: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1.5px solid #10b981;
}

.offer-details-box p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #065f46;
    line-height: 1.3;
}

.offer-details-box small {
    display: block;
    margin-top: 0.1875rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #047857;
}

.offer-details-box i {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

/* Offer Duration */
.offer-duration {
    text-align: center;
    margin-bottom: 0.5rem;
}

.offer-duration small {
    font-size: 0.6875rem;
    color: var(--text-light);
}

.offer-duration i {
    font-size: 0.6875rem;
    margin-right: 0.1875rem;
}

/* Offer Action Button */
.offer-action-btn {
    font-size: 0.8125rem;
    padding: 0.4375rem;
    border-radius: 18px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
}

.offer-action-btn i {
    font-size: 0.8125rem;
    margin-right: 0.25rem;
}

/* Navigation Arrows */
.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    border: none;
    box-shadow: 0 3px 12px rgba(77, 106, 146, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 100;
}

.slider-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 18px rgba(77, 106, 146, 0.4);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow-left {
    left: 10px;
}

.slider-arrow-right {
    right: 10px;
}

/* Offer Popup */
.offer-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.offer-popup-content {
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
}

.offer-popup-content .btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 100;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.offer-popup-content .btn-close::before {
    content: '×' !important;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-dark) !important;
    font-weight: 700;
    display: block;
}

.offer-popup-content .btn-close::after {
    display: none !important;
}

.offer-popup-content .btn-close:hover {
    background: white !important;
    opacity: 1 !important;
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.offer-popup-content .p-4 {
    padding: 1rem !important;
}

.offer-popup-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    text-align: center;
    padding-right: 2rem;
}

.offer-popup-title i {
    font-size: 1rem;
    margin-right: 0.375rem;
}

.offer-popup-info {
    margin-bottom: 0.75rem;
}

.offer-popup-info .alert {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 6px;
    margin-bottom: 0;
}

.offer-options-list {
    margin-bottom: 0.75rem;
}

.offer-option-detail {
    padding: 0.75rem;
    margin-bottom: 0.625rem;
    border-radius: 6px;
    background: var(--secondary-light);
    border: 1px solid var(--border-light);
}

.offer-option-detail h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--text-dark);
}

.offer-option-images {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.offer-option-buy,
.offer-option-get {
    flex: 1;
    text-align: center;
}

.offer-option-buy img,
.offer-option-get img {
    max-height: 100px;
    object-fit: contain;
    background: white;
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.4375rem;
}

.offer-option-get img {
    border: 1.5px dashed #10b981;
}

.offer-option-buy p,
.offer-option-get p {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.1875rem;
    line-height: 1.3;
}

.offer-option-get p {
    color: var(--accent-green);
}

.offer-option-buy .badge,
.offer-option-get .badge {
    font-size: 0.625rem;
    padding: 0.1875rem 0.4375rem;
}

.offer-option-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--accent-green);
}

.offer-option-price {
    font-size: 0.6875rem;
    color: var(--text-light);
    margin-top: 0.1875rem;
}

.offer-popup-action {
    margin-top: 0.75rem;
}

.offer-popup-action .btn {
    font-size: 0.875rem;
    padding: 0.5625rem;
    border-radius: 18px;
    font-weight: 600;
}

/* Loading State */
.offers-loading {
    padding: 3rem 0;
    text-align: center;
}

.offers-loading p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    margin-top: 0.75rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .offers-showcase {
        padding: 25px 0;
    }

    .offer-popup-overlay {
        padding: 0.625rem;
    }

    .offer-popup-content {
        max-width: 95%;
    }

    .offer-popup-content .p-4 {
        padding: 0.9375rem !important;
    }

    .offer-popup-content .btn-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 28px;
        height: 28px;
    }

    .offer-popup-content .btn-close::before {
        font-size: 1.375rem;
    }

    .offer-popup-title {
        font-size: 1.0625rem;
        margin-bottom: 0.6875rem;
        padding-right: 2rem;
    }

    .offer-popup-info {
        margin-bottom: 0.6875rem;
    }

    .offer-popup-info .alert {
        padding: 0.5625rem 0.75rem;
        font-size: 0.75rem;
    }

    .offer-options-list {
        margin-bottom: 0.6875rem;
    }

    .offer-option-detail {
        padding: 0.6875rem;
        margin-bottom: 0.5625rem;
    }

    .offer-option-detail h5 {
        font-size: 0.8125rem;
        margin-bottom: 0.5625rem;
    }

    .offer-option-images {
        gap: 0.5625rem;
    }

    .offer-option-buy img,
    .offer-option-get img {
        max-height: 95px;
        padding: 0.5rem;
        margin-bottom: 0.4375rem;
    }

    .offer-popup-action {
        margin-top: 0.6875rem;
    }

    .offers-showcase .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }

    .offers-showcase .text-muted {
        font-size: 0.8125rem;
        margin-bottom: 0.625rem;
    }

    .offers-slider-container {
        padding: 0 38px;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .slider-arrow-left {
        left: 5px;
    }

    .slider-arrow-right {
        right: 5px;
    }

    .offer-item {
        width: 220px;
    }

    .offer-card .card-body {
        padding: 0.5625rem;
    }

    .offer-card h4 {
        font-size: 0.8125rem;
        min-height: 32px;
        margin-bottom: 0.4375rem;
    }

    .offer-product-image-wrapper img {
        height: 65px;
    }

    .offer-product-image-placeholder {
        height: 65px;
    }

    .offer-product-image-placeholder i {
        font-size: 1.25rem;
    }

    .offer-order-based-icon {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }

    .offer-order-amount {
        font-size: 0.8125rem;
        margin-bottom: 0.25rem;
    }

    .offer-arrow-icon {
        font-size: 0.875rem;
        margin: 0.25rem 0;
    }

    .products-display {
        margin-bottom: 0.4375rem;
    }

    .offer-details-box {
        padding: 0.4375rem;
        margin-bottom: 0.4375rem;
    }

    .offer-duration {
        margin-bottom: 0.4375rem;
    }

    .offers-grid {
        gap: 0.625rem;
    }
}

@media (max-width: 767.98px) {
    .offers-showcase {
        padding: 20px 0;
    }

    .offers-showcase .section-title {
        font-size: 1.375rem;
        margin-bottom: 0.75rem;
    }

    .offers-showcase .text-muted {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .offers-slider-container {
        padding: 0 32px;
    }

    .offer-item {
        width: 200px;
    }

    .offer-card .card-body {
        padding: 0.5rem;
    }

    .offer-card h4 {
        font-size: 0.75rem;
        min-height: 30px;
        margin-bottom: 0.375rem;
    }

    .offer-product-image-wrapper {
        padding: 5px;
    }

    .offer-product-image-wrapper img {
        height: 55px;
    }

    .offer-product-image-placeholder {
        height: 55px;
    }

    .offer-product-image-placeholder i {
        font-size: 1.125rem;
    }

    .offer-product-name {
        font-size: 0.625rem;
        margin-top: 0.25rem;
    }

    .offer-order-based-icon {
        font-size: 1.5rem;
    }

    .offer-order-amount {
        font-size: 0.75rem;
    }

    .offer-arrow-icon {
        font-size: 0.8125rem;
    }

    .products-display {
        margin-bottom: 0.375rem;
    }

    .offer-details-box {
        padding: 0.375rem;
        margin-bottom: 0.375rem;
    }

    .offer-details-box p {
        font-size: 0.6875rem;
    }

    .offer-details-box small {
        font-size: 0.625rem;
    }

    .offer-duration {
        margin-bottom: 0.375rem;
    }

    .offer-duration small {
        font-size: 0.625rem;
    }

    .offer-action-btn {
        font-size: 0.75rem;
        padding: 0.375rem;
    }

    .offer-popup-overlay {
        padding: 0.5rem;
    }

    .offer-popup-content {
        max-width: 100%;
        margin: 0;
        max-height: 95vh;
    }

    .offer-popup-content .p-4 {
        padding: 0.875rem !important;
    }

    .offer-popup-content .btn-close {
        top: 0.4375rem;
        right: 0.4375rem;
        width: 28px;
        height: 28px;
    }

    .offer-popup-content .btn-close::before {
        font-size: 1.375rem;
    }

    .offer-popup-title {
        font-size: 1rem;
        margin-bottom: 0.625rem;
        padding-right: 1.75rem;
    }

    .offer-popup-title i {
        font-size: 0.9375rem;
    }

    .offer-popup-info {
        margin-bottom: 0.625rem;
    }

    .offer-popup-info .alert {
        padding: 0.5625rem 0.6875rem;
        font-size: 0.75rem;
    }

    .offer-options-list {
        margin-bottom: 0.625rem;
    }

    .offer-option-detail {
        padding: 0.625rem;
        margin-bottom: 0.5rem;
    }

    .offer-option-detail h5 {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }

    .offer-option-images {
        gap: 0.5rem;
    }

    .offer-option-buy img,
    .offer-option-get img {
        max-height: 85px;
        padding: 0.4375rem;
        margin-bottom: 0.375rem;
    }

    .offer-option-buy p,
    .offer-option-get p {
        font-size: 0.6875rem;
    }

    .offer-option-arrow {
        font-size: 0.9375rem;
    }

    .offer-popup-action {
        margin-top: 0.625rem;
    }

    .offer-popup-action .btn {
        font-size: 0.8125rem;
        padding: 0.5rem;
    }

    .offers-grid {
        gap: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .offers-showcase {
        padding: 18px 0;
    }

    .offers-showcase .section-title {
        font-size: 1.25rem;
        margin-bottom: 0.625rem;
    }

    .offers-showcase .text-muted {
        font-size: 0.6875rem;
        margin-bottom: 0.4375rem;
    }

    .offers-slider-container {
        padding: 0 28px;
    }

    .slider-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }

    .slider-arrow-left {
        left: 0;
    }

    .slider-arrow-right {
        right: 0;
    }

    .offer-item {
        width: 180px;
    }

    .offer-card .card-body {
        padding: 0.4375rem;
    }

    .offer-card h4 {
        font-size: 0.6875rem;
        min-height: 28px;
        margin-bottom: 0.3125rem;
    }

    .offer-live-badge,
    .offer-multiple-badge {
        top: 0.375rem;
    }

    .offer-live-badge {
        right: 0.375rem;
    }

    .offer-multiple-badge {
        left: 0.375rem;
    }

    .offer-product-image-wrapper {
        padding: 4px;
    }

    .offer-product-image-wrapper img {
        height: 50px;
    }

    .offer-product-image-placeholder {
        height: 50px;
    }

    .offer-product-image-placeholder i {
        font-size: 1rem;
    }

    .offer-product-name {
        font-size: 0.5625rem;
        margin-top: 0.25rem;
    }

    .offer-order-based-icon {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .offer-order-amount {
        font-size: 0.6875rem;
        margin-bottom: 0.25rem;
    }

    .offer-arrow-icon {
        font-size: 0.75rem;
        margin: 0.25rem 0;
    }

    .offer-product-arrow {
        font-size: 0.875rem;
    }

    .products-display {
        margin-bottom: 0.3125rem;
    }

    .offer-details-box {
        padding: 0.3125rem;
        margin-bottom: 0.3125rem;
    }

    .offer-details-box p {
        font-size: 0.625rem;
    }

    .offer-details-box small {
        font-size: 0.5625rem;
        margin-top: 0.125rem;
    }

    .offer-details-box i {
        font-size: 0.6875rem;
        margin-right: 0.1875rem;
    }

    .offer-duration {
        margin-bottom: 0.3125rem;
    }

    .offer-duration small {
        font-size: 0.5625rem;
    }

    .offer-duration i {
        font-size: 0.5625rem;
    }

    .offer-action-btn {
        font-size: 0.6875rem;
        padding: 0.3125rem;
    }

    .offer-action-btn i {
        font-size: 0.6875rem;
        margin-right: 0.1875rem;
    }

    .offer-live-badge .badge,
    .offer-multiple-badge .badge {
        font-size: 0.5625rem;
        padding: 0.1875rem 0.4375rem;
    }

    .offer-qty-badge {
        width: 20px;
        height: 20px;
        font-size: 0.625rem;
        top: 2px;
        right: 2px;
    }

    .offer-free-badge {
        top: 2px;
        left: 2px;
    }

    .offer-free-badge .badge {
        font-size: 0.5rem;
        padding: 0.125rem 0.3125rem;
    }

    .offers-grid {
        gap: 0.4375rem;
        padding: 3px 0;
    }

    .offer-popup-overlay {
        padding: 0.375rem;
    }

    .offer-popup-content {
        margin: 0;
        max-height: 98vh;
    }

    .offer-popup-content .p-4 {
        padding: 0.75rem !important;
    }

    .offer-popup-content .btn-close {
        width: 26px;
        height: 26px;
        top: 0.375rem;
        right: 0.375rem;
    }

    .offer-popup-content .btn-close::before {
        font-size: 1.25rem;
    }

    .offer-popup-title {
        font-size: 0.9375rem;
        margin-bottom: 0.5625rem;
        padding-right: 1.5rem;
    }

    .offer-popup-title i {
        font-size: 0.875rem;
        margin-right: 0.25rem;
    }

    .offer-popup-info {
        margin-bottom: 0.5625rem;
    }

    .offer-popup-info .alert {
        padding: 0.5rem 0.625rem;
        font-size: 0.6875rem;
    }

    .offer-options-list {
        margin-bottom: 0.5625rem;
    }

    .offer-option-detail {
        padding: 0.5625rem;
        margin-bottom: 0.4375rem;
    }

    .offer-option-detail h5 {
        font-size: 0.75rem;
        margin-bottom: 0.4375rem;
    }

    .offer-option-images {
        gap: 0.375rem;
        flex-direction: column;
    }

    .offer-option-buy,
    .offer-option-get {
        width: 100%;
    }

    .offer-option-arrow {
        transform: rotate(90deg);
        margin: 0.125rem 0;
        font-size: 0.875rem;
    }

    .offer-option-buy img,
    .offer-option-get img {
        max-height: 75px;
        padding: 0.375rem;
        margin-bottom: 0.3125rem;
    }

    .offer-option-buy p,
    .offer-option-get p {
        font-size: 0.625rem;
    }

    .offer-option-buy .badge,
    .offer-option-get .badge {
        font-size: 0.5625rem;
        padding: 0.125rem 0.375rem;
    }

    .offer-option-price {
        font-size: 0.625rem;
    }

    .offer-popup-action {
        margin-top: 0.5625rem;
    }

    .offer-popup-action .btn {
        font-size: 0.75rem;
        padding: 0.4375rem;
    }

    .offer-popup-content-hero-card {
        padding: 5px !important;
    }
}

/* Discount Groups Section - Smooth Slide Animation */
.discount-groups-section {
    position: relative;
}

.discount-groups-expanded {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height, opacity, transform;
}

.discount-groups-expanded>* {
    transition: opacity 0.3s ease-in-out 0.1s;
}

/* Smooth scroll behavior for discount groups */
.discount-groups-section {
    scroll-margin-top: 1rem;
}

/* Enhanced animation for discount groups list items */
.discount-groups-list>div {
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

.discount-groups-expanded[x-show="true"] .discount-groups-list>div {
    animation: fadeInUp 0.4s ease-out forwards;
}

.discount-groups-expanded[x-show="true"] .discount-groups-list>div:nth-child(1) {
    animation-delay: 0.05s;
}

.discount-groups-expanded[x-show="true"] .discount-groups-list>div:nth-child(2) {
    animation-delay: 0.1s;
}

.discount-groups-expanded[x-show="true"] .discount-groups-list>div:nth-child(3) {
    animation-delay: 0.15s;
}

.discount-groups-expanded[x-show="true"] .discount-groups-list>div:nth-child(4) {
    animation-delay: 0.2s;
}

.discount-groups-expanded[x-show="true"] .discount-groups-list>div:nth-child(5) {
    animation-delay: 0.25s;
}

.discount-groups-expanded[x-show="true"] .discount-groups-list>div:nth-child(n+6) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CATEGORIES PAGE (design from categories )
   ============================================ */
.categories-page {
    min-height: 60vh;
    background: var(--secondary-light);
    color: var(--text-dark);
    font-family: 'Space Grotesk', sans-serif;
}

.categories-page .categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Header */
.categories-page .categories-header {
    text-align: center;
    margin-bottom: 40px;
}

.categories-page .categories-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    font-family: 'Space Grotesk', sans-serif;
}

.categories-page .categories-header p {
    max-width: 680px;
    margin: 12px auto 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Filters */
.categories-page .categories-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.categories-page .categories-filters button {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: var(--primary-light);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.categories-page .categories-filters button.active {
    background: var(--accent-blue);
    color: var(--primary-light);
    border-color: var(--accent-blue);
}

.categories-page .categories-filters button:hover:not(.active) {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Grid */
.categories-page .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    row-gap: 32px;
}

/* Card */
.categories-page .category-card {
    background: var(--primary-light);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
}

.categories-page .category-card.hide {
    display: none;
}

.categories-page .category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(77, 106, 146, 0.12);
    border-color: var(--accent-blue);
}

/* Icon box */
.categories-page .category-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--gradient-accent);
    color: var(--primary-light);
    font-size: 1.625rem;
    margin-bottom: 18px;
}

.categories-page .category-card[data-type="danger"] .category-icon {
    background: linear-gradient(135deg, #dc2626, var(--accent-pink));
}

.categories-page .category-card[data-type="outdoor"] .category-icon {
    background: linear-gradient(135deg, #15803d, var(--accent-green));
}

.categories-page .category-card[data-type="tactical"] .category-icon {
    background: linear-gradient(135deg, #334155, var(--accent-purple));
}

.categories-page .category-card[data-type="training"] .category-icon {
    background: linear-gradient(135deg, #7c3aed, var(--accent-purple));
}

/* Card text */
.categories-page .category-card .card-title,
.categories-page .category-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-family: 'Space Grotesk', sans-serif;
}

.categories-page .category-card .card-title a,
.categories-page .category-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-page .category-card:hover h3 {
    color: var(--accent-blue);
}

.categories-page .category-card p,
.categories-page .category-card .card-text {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Meta row (count + button) */
.categories-page .category-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.categories-page .category-count {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-medium);
}

/* View link (minimal text + arrow, like "View →") */
.categories-page .category-view-link {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.categories-page .category-view-link:hover {
    color: var(--accent-blue);
}

/* Note box */
.categories-page .category-note-box {
    border-left: 3px solid var(--accent-blue);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.categories-page .category-note-box p {
    margin: 0;
    line-height: 1.5;
    color: var(--text-medium);
    font-size: 0.875rem;
}

.categories-page .category-note-box i {
    color: var(--accent-blue);
}

/* Categories page responsive */
@media (max-width: 768px) {
    .categories-page .categories-container {
        padding: 40px 16px;
    }

    .categories-page .categories-header h1 {
        font-size: 1.75rem;
    }

    .categories-page .categories-header p {
        font-size: 0.9375rem;
    }

    .categories-page .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        row-gap: 24px;
    }

    .categories-page .category-card {
        padding: 22px;
        border-radius: 16px;
    }
}

/* ============================================
   CATEGORY PRODUCTS PAGE
   ============================================ */
.category-products-page {
    min-height: 60vh;
}

/* Category List Styles - Match Shop Page Simple Design */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.4rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 1.5px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--primary-light);
}

.category-item:hover {
    border-color: var(--accent-blue);
    background: var(--secondary-light);
}

.category-item.active {
    border-color: var(--accent-blue);
    background: rgba(77, 106, 146, 0.1);
}

.category-radio {
    margin-right: 0.6rem;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-blue);
}

.category-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-dark);
    font-weight: 500;
}

.category-item.active .category-label {
    color: var(--text-dark);
}

.product-count {
    font-size: 0.75rem;
    color: var(--text-medium);
    font-weight: 400;
    margin-left: 0.5rem;
}

.category-item.active .product-count {
    color: var(--text-medium);
}

/* Legacy subcategory-item styles for backward compatibility */
.subcategory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--secondary-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.subcategory-item:hover {
    background: var(--tertiary-light);
    color: var(--accent-blue);
    text-decoration: none;
    border-color: var(--accent-blue);
    transform: translateX(5px);
}

.subcategory-item.active {
    background: var(--gradient-accent);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(77, 106, 146, 0.2);
}

.subcategory-item.active .badge {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.subcategory-item .badge {
    background: var(--tertiary-light);
    color: var(--text-medium);
    transition: all 0.3s ease;
}

/* Price Input Groups */
.price-input-group {
    margin-bottom: 0.75rem;
}

.price-input-group:last-child {
    margin-bottom: 0;
}

.price-input-group .form-label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
}

.price-input-group .form-control {
    background: var(--primary-light);
    border: 2px solid var(--border-light);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.price-input-group .form-control:focus {
    background: var(--primary-light);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(77, 106, 146, 0.15);
    color: var(--text-dark);
}

/* Category Products Page Buttons */
.category-products-page .btn-outline-secondary {
    border: 2px solid var(--border-light);
    color: var(--text-medium);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-products-page .btn-outline-secondary:hover {
    background: var(--secondary-light);
    color: var(--text-dark);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 106, 146, 0.15);
}

.category-products-page .filter-switch-item {
    color: var(--text-dark);
}

.category-products-page .filter-switch:checked {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.category-products-page .modern-select {
    background: var(--primary-light);
    border: 2px solid var(--border-light);
    color: var(--text-dark);
}

/* Filter Sidebar Styles for Category Products Page - Match Shop Page */
.category-products-page .modern-filter-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.75rem;
}

.category-products-page .filter-section {
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.category-products-page .filter-section:last-child {
    margin-bottom: 0;
}

.category-products-page .filter-section-header {
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-light);
}

.category-products-page .filter-section-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    margin: 0;
}

.category-products-page .filter-section-title i {
    margin-right: 0.5rem;
}

.category-products-page .filter-section-content {
    padding-top: 0.2rem;
}

.category-products-page .sort-group {
    margin-bottom: 0.75rem;
    position: relative;
}

.category-products-page .sort-group:last-child {
    margin-bottom: 0;
}

.category-products-page .sort-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.category-products-page .price-input-group .form-label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.75rem;
}

/* Clear Filters Button */
.category-products-page .btn-clear-filters {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-products-page .btn-clear-filters:hover {
    color: var(--accent-purple);
    background: var(--secondary-light);
    text-decoration: none;
}

.category-products-page .modern-select:focus {
    background: var(--primary-light);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(77, 106, 146, 0.15);
    color: var(--text-dark);
}

/* Category Note Display */
/* .category-note-container {
    background: var(--secondary-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 800px;
    text-align: left;
} */

.category-note-container p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.category-card .category-note {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-medium);
    margin-bottom: 0.75rem;
    min-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* No Categories/Subcategories Message */
.no-categories {
    padding: 1rem;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.875rem;
    background: var(--secondary-light);
    border-radius: 8px;
    border: 1px dashed var(--border-light);
}

.no-categories i {
    color: var(--text-light);
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-card {
        border-radius: 10px;
    }

    .subcategory-item {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .price-input-group .form-control {
        font-size: 0.875rem;
    }

    /* .category-note-container {
      padding: 1rem;
        margin: 1rem auto; 
} */

    .category-note-container p {
        font-size: 0.9375rem;
    }

    .category-list {
        max-height: 300px;
    }
}

.privacy-card {
    background: var(--accent-blue) !important;
}

/* Cookie consent (privy) – smaller size on mobile only; desktop unchanged 
@media (max-width: 767.98px) {
    .cookie-consent-wrapper {
        max-width: 280px !important;
        width: 280px !important;
        bottom: 12px !important;
        left: 50% !important;
        margin-left: -140px;
    }

    .cookie-consent-wrapper .privacy-card {
        font-size: 0.8125rem;
    }

    .cookie-consent-wrapper .privacy-card .text-center.text-white {
        padding: 0.5rem 0.65rem !important;
    }

    .cookie-consent-wrapper .privacy-card .fa-shield-alt {
        font-size: 1.25rem !important;
    }

    .cookie-consent-wrapper .privacy-card h6 {
        font-size: 0.8rem !important;
    }

    .cookie-consent-wrapper .privacy-card .card-body {
        padding: 0.5rem 0.65rem !important;
    }

    .cookie-consent-wrapper .privacy-card .card-body p {
        font-size: 0.7rem !important;
        line-height: 1.35;
        margin-bottom: 0.5rem !important;
    }

    .cookie-consent-wrapper .privacy-card .card-body a {
        font-size: 0.7rem !important;
    }

    .cookie-consent-wrapper .privacy-card .btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
    }

    .cookie-consent-wrapper .privacy-card .btn .fa-check {
        font-size: 0.65rem !important;
    }

    .cookie-consent-wrapper .privacy-card .btn-close {
        font-size: 0.6rem !important;
        margin: 0.25rem !important;
    }
}
    */