/* Import Poppins font - MUST BE AT TOP */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CRITICAL DROPDOWN FIXES - Override Bootstrap with maximum specificity */

/* Force all dropdowns to respect viewport boundaries - MAXIMUM PRIORITY */
.dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    min-width: 200px !important;
    max-width: 280px !important;
    overflow: hidden !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    /* CRITICAL: Force dropdown to NEVER exceed viewport width */
    max-width: calc(100vw - 20px) !important;
    box-sizing: border-box !important;
    /* Prevent horizontal overflow */
    word-wrap: break-word !important;
    white-space: normal !important;
}

/* Right-aligned dropdowns (user menu) - FORCE positioning */
.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    /* Ensure it doesn't go off-screen */
    max-width: calc(100vw - 20px) !important;
    position: absolute !important;
}

/* Navbar dropdowns - HIGHEST SPECIFICITY */
.navbar .dropdown-menu,
.navbar-nav .dropdown-menu,
.navbar-expand-lg .navbar-nav .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    min-width: 220px !important;
    max-width: 280px !important;
    /* CRITICAL: Ensure dropdown never causes horizontal scroll */
    max-width: calc(100vw - 20px) !important;
    position: absolute !important;
    transform: translate3d(0, 0, 0) !important;
    /* Force within viewport */
    right: max(0px, calc(100vw - 300px)) !important;
}

/* When dropdown is shown - ABSOLUTE positioning override */
.dropdown-menu.show {
    position: absolute !important;
    transform: translate3d(0, 0, 0) !important;
    /* Force it to stay within screen bounds */
    left: auto !important;
    right: 0 !important;
    max-width: calc(100vw - 20px) !important;
}

/* Bootstrap dropdown JavaScript override */
.dropdown-menu[data-bs-popper] {
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    max-width: calc(100vw - 20px) !important;
}

/* Force dropdown positioning within viewport bounds - EMERGENCY FIX */
@media (max-width: 1200px) {
    .dropdown-menu,
    .dropdown-menu-end,
    .navbar-nav .dropdown-menu {
        max-width: 250px !important;
        min-width: 180px !important;
        /* Force positioning to prevent overflow */
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        position: absolute !important;
    }
}

@media (max-width: 992px) {
    .dropdown-menu,
    .dropdown-menu-end,
    .navbar-nav .dropdown-menu {
        max-width: 240px !important;
        min-width: 160px !important;
        /* Emergency positioning fix */
        right: 0 !important;
        left: auto !important;
        transform: translateX(0) !important;
        position: absolute !important;
        /* Ensure it fits on tablets */
        max-width: calc(100vw - 40px) !important;
    }
}

@media (max-width: 768px) {
    .dropdown-menu,
    .dropdown-menu-end,
    .navbar-nav .dropdown-menu {
        max-width: 220px !important;
        min-width: 140px !important;
        /* Mobile-first positioning */
        right: 0 !important;
        left: auto !important;
        transform: translateX(0) !important;
        position: absolute !important;
        /* Critical mobile fix */
        max-width: calc(100vw - 30px) !important;
        right: max(0px, calc(100vw - 250px)) !important;
    }
}

@media (max-width: 480px) {
    .dropdown-menu,
    .dropdown-menu-end,
    .navbar-nav .dropdown-menu {
        max-width: 200px !important;
        min-width: 120px !important;
        /* Smallest screens - maximum constraint */
        right: 0 !important;
        left: auto !important;
        transform: translateX(0) !important;
        position: absolute !important;
        /* Ensure it fits on small phones */
        max-width: calc(100vw - 20px) !important;
        right: max(0px, calc(100vw - 220px)) !important;
    }
}

/* Prevent body scroll when dropdown is open on mobile */
body.dropdown-open {
    overflow: hidden !important;
}

/* Additional viewport safety measures */
.dropdown-menu {
    /* Fallback positioning */
    left: auto !important;
    right: 0 !important;
    /* Ensure content doesn't overflow */
    word-break: break-word !important;
    hyphens: auto !important;
}

/* Override any Bootstrap JavaScript positioning */
.dropdown-toggle::after {
    display: none !important;
}

/* Force dropdown container positioning */
.dropdown {
    position: relative !important;
}

/* Emergency horizontal scroll prevention */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Specific fix for user profile dropdown */
.navbar-nav .dropdown:last-child .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    max-width: calc(100vw - 20px) !important;
    position: absolute !important;
}

/* Enable normal scrolling */
html, body {
    overflow-x: auto;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 100%;
}

/* Custom scrollbar styling for webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--brand-background);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-gold-dark);
}

/* Scrollbar styling for Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-gold) var(--brand-background);
}

/* Brand color variables */
:root {
    --brand-background: #121212;
    --brand-gold-light: #d4af37;
    --brand-gold: #b8860b;
    --brand-gold-dark: #a67c00;
    --brand-text-light: #f5f5dc;
    --brand-text-dark: #bfb76b;

    /* Define custom breakpoints */
    --breakpoint-xs: 576px;  /* Small phones */
    --breakpoint-sm: 768px;  /* Large phones/small tablets */
    --breakpoint-md: 992px;  /* Tablets */
    --breakpoint-lg: 1200px; /* Desktops */
    --breakpoint-xl: 1400px; /* Large desktops */
}

/* Global typography */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--brand-background);
    color: var(--brand-text-light);
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--brand-gold);
}

/* Custom styles for enhanced navbar */

.navbar-custom {
    position: relative;
    padding: 0.5rem 0;
    color: #800080;
    min-height: 60px;
}

.navbar-logo {
    height: clamp(40px, 8vw, 60px);
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-right: 0.5rem;
    pointer-events: auto !important;
}

.navbar-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Further reduced overlay opacity for even more logo contrast */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    z-index: 0;
    pointer-events: none;
}

.navbar-custom .container,
.navbar-custom .navbar-collapse {
    position: relative;
    z-index: 1;
}

/* Modern header styles */
.modern-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: var(--brand-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    color: var(--brand-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
    background-color: var(--brand-gold);
    color: var(--brand-background);
    outline: none;
}

/* Responsive adjustments for modern header */
@media (max-width: 768px) {
    .modern-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 992px) {
    .modern-header {
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 40px;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links li a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

.navbar-custom .nav-link,
.navbar-custom .navbar-brand,
.navbar-custom .form-control,
.navbar-custom .btn {
    color: #ffffff !important; /* pure white for maximum contrast */
    text-shadow: 0 0 5px rgba(0,0,0,0.7); /* subtle shadow for readability */
}

.navbar-custom .nav-link:hover,
.navbar-custom .btn:hover {
    color: var(--brand-gold-dark) !important; /* darker gold on hover */
    text-shadow: 0 0 8px rgba(184,134,11,0.9);
}

.navbar-custom .form-control {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    color: #800080;
}

.navbar-custom .form-control::placeholder {
    color: #800080;
}

.navbar-custom .btn {
    background-color: #800080;
    border: none;
}

.navbar-custom .btn:hover {
    background-color: #4b004b;
}

.navbar-custom .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.9);
    color: #800080;
    min-width: 200px;
    max-width: 300px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: absolute;
    left: 0;
    right: auto;
    transform: translateX(0);
    z-index: 1000;
}

.navbar-custom .dropdown-menu.show {
    left: 0;
    right: auto;
    transform: translateX(0);
}

/* Ensure dropdown stays within viewport */
.navbar-custom .dropdown {
    position: relative;
}

.navbar-custom .dropdown-menu-end {
    right: 0;
    left: auto;
}

.navbar-custom .dropdown-menu-end.show {
    right: 0;
    left: auto;
}

/* Comprehensive dropdown positioning fixes */
.dropdown-menu {
    position: absolute !important;
    z-index: 1000;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    min-width: 200px;
    max-width: 300px;
    overflow: hidden;
    /* Force dropdown to stay within viewport */
    max-width: min(300px, calc(100vw - 20px)) !important;
    box-sizing: border-box;
}

/* Right-aligned dropdowns (like user menu) */
.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
}

/* Ensure dropdowns don't extend beyond viewport */
.dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
}

/* Force dropdown positioning within viewport bounds */
.dropdown-menu.show {
    position: absolute !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Specific fix for user profile dropdown */
.navbar-nav .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 220px;
    max-width: 280px;
    /* Critical: Ensure dropdown never causes horizontal scroll */
    max-width: calc(100vw - 20px) !important;
    position: absolute !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Force all dropdowns to respect viewport boundaries */
.dropdown-menu {
    max-width: calc(100vw - 20px) !important;
    box-sizing: border-box !important;
}

/* Responsive dropdown adjustments */
@media (max-width: 992px) {
    .dropdown-menu {
        max-width: 250px;
        min-width: 180px;
    }

    .dropdown-menu-end {
        right: -20px !important;
        left: auto !important;
    }

    .navbar-nav .dropdown-menu {
        right: -20px;
        left: auto;
        min-width: 200px;
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        max-width: 220px;
        min-width: 160px;
        position: absolute !important;
        right: -40px !important;
        left: auto !important;
        transform: translateX(0) !important;
    }

    .dropdown-menu.show {
        right: -40px !important;
        left: auto !important;
        transform: translateX(0) !important;
    }

    .navbar-nav .dropdown-menu {
        right: -40px;
        left: auto;
        min-width: 180px;
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .dropdown-menu {
        max-width: 200px;
        min-width: 140px;
        right: -30px !important;
        left: auto !important;
        transform: translateX(0) !important;
    }

    .dropdown-menu.show {
        right: -30px !important;
        left: auto !important;
        transform: translateX(0) !important;
    }

    .navbar-nav .dropdown-menu {
        right: -30px;
        left: auto;
        min-width: 160px;
        max-width: 200px;
    }
}

.navbar-custom .dropdown-item {
    color: #800080;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.navbar-custom .dropdown-item:hover {
    background-color: #f0e6f0;
    color: #4b004b;
    transform: translateX(5px);
}

.navbar-custom .badge {
    background-color: #800080;
    color: #fff;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--brand-gold) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.navbar-brand:hover {
    background-color: rgba(184, 134, 11, 0.1);
    transform: scale(1.05);
}

.search-form {
    max-width: 400px;
    width: 100%;
}

.search-form .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.search-form .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 0.5rem 1rem;
    background-color: #2c2c2c;
    color: var(--brand-text-light);
}

.search-form .form-control::placeholder {
    color: var(--brand-text-dark);
}

.search-form .btn {
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 0.5rem 1rem;
    background-color: var(--brand-gold);
    color: var(--brand-background);
}

.search-form .btn:hover {
    background-color: var(--brand-gold-dark);
}

/* Navbar responsive */
@media (max-width: calc(var(--breakpoint-sm) - 1px)) {
    .navbar-custom {
        padding: 0.5rem 0;
        background-size: contain;
        background-position: center top;
        padding-left: 0;
    }

    .navbar-brand img {
        height: 40px;
        width: auto;
    }

    .search-form {
        margin: 0.5rem 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Container adjustments */
.container {
    max-width: 100%;
    padding: 0 1rem;
}

@media (min-width: var(--breakpoint-lg)) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }
}

/* Hero Section Styles */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    height: 70vh;
    max-height: 70vh;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--brand-gold-dark) 0%, var(--brand-gold) 100%);
    color: var(--brand-background);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero-title {
    font-size: clamp(1.8rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: var(--brand-background);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--brand-background);
    line-height: 1.4;
}

.btn-hero {
    background-color: var(--brand-background);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-gold);
}

.btn-hero:hover {
    background-color: var(--brand-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(180, 140, 30, 0.6);
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

/* Category grid using CSS Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.7);
    background-color: #1e1e1e;
    color: var(--brand-text-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.9);
}

.category-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-gold);
    margin-bottom: 1rem;
}

.category-card .card-text {
    color: #8b7355; /* More dark than var(--brand-text-dark) */
    font-size: 0.9rem;
    flex-grow: 1;
    line-height: 1.4;
}

.category-card .btn {
    background-color: var(--brand-gold);
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--brand-background);
    margin-top: auto;
}

.category-card .btn:hover {
    background-color: var(--brand-gold-dark);
    transform: translateY(-2px);
    color: var(--brand-text-light);
}

/* Product grid using CSS Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.7);
    background-color: #1e1e1e;
    color: var(--brand-text-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.9);
}

.product-card img {
    width: 11.11vw;
    height: 11.11vw;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-gold);
    margin-bottom: 0.5rem;
}

.product-card .card-text {
    color: var(--brand-text-light);
    font-size: 0.9rem;
    flex-grow: 1;
}

.product-card .btn {
    background-color: var(--brand-gold);
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--brand-background);
    margin-top: auto;
}

.product-card .btn:hover {
    background-color: var(--brand-gold-dark);
    transform: translateY(-2px);
    color: var(--brand-text-light);
}

/* Promotion Banner Styles */
.promotion-banner {
    background: linear-gradient(135deg, var(--brand-gold) 0%, #d4af37 100%);
    color: var(--brand-background);
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promotion-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="promo-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(0,0,0,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23promo-pattern)"/></svg>');
}

.promotion-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.promotion-title {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.promotion-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.3;
}

/* Testimonials Styles */
.testimonial-card {
    background: #1e1e1e;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.7);
    text-align: center;
    transition: all 0.3s ease;
    color: var(--brand-text-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.9);
}

.testimonial-text {
    font-style: italic;
    color: var(--brand-text-dark);
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.4;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--brand-gold);
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.testimonial-rating {
    color: #ffd700;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Trust Signals Styles */
.trust-signals {
    background-color: #2c2c2c;
    padding: 2rem 0;
}

.trust-signal-item {
    text-align: center;
    padding: 1rem;
}

.trust-signal-icon {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--brand-gold);
    margin-bottom: 1rem;
}

.trust-signal-title {
    font-weight: 600;
    color: var(--brand-gold);
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.trust-signal-text {
    color: var(--brand-text-light);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    line-height: 1.3;
}

/* Newsletter Signup Styles */
.newsletter-section {
    background: linear-gradient(135deg, var(--brand-gold-dark) 0%, var(--brand-gold) 100%);
    color: var(--brand-background);
    padding: 2rem 0;
    text-align: center;
}

.newsletter-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.newsletter-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.3;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.7);
}

.newsletter-form .form-control {
    border: none;
    padding: 0.8rem 1.2rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    background-color: #2c2c2c;
    color: var(--brand-text-light);
}

.newsletter-form .btn {
    background-color: var(--brand-gold);
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 0 50px 50px 0;
    transition: all 0.3s ease;
    color: var(--brand-background);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.newsletter-form .btn:hover {
    background-color: var(--brand-gold-dark);
    transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: calc(var(--breakpoint-xs) - 1px)) {
    /* Extra small: iPhone SE, small Android phones */
    body { font-size: 14px; }
    .hero-title { font-size: 1.5rem; }
}

@media (min-width: var(--breakpoint-xs)) and (max-width: calc(var(--breakpoint-sm) - 1px)) {
    /* Small: iPhone 12/13, standard Android phones */
    body { font-size: 15px; }
    .hero-title { font-size: 2rem; }
}

@media (min-width: var(--breakpoint-sm)) and (max-width: calc(var(--breakpoint-md) - 1px)) {
    /* Medium: iPad mini, small tablets */
    body { font-size: 16px; }
    .hero-title { font-size: 2.5rem; }
}

@media (min-width: var(--breakpoint-md)) and (max-width: calc(var(--breakpoint-lg) - 1px)) {
    /* Large: iPad, small laptops */
    body { font-size: 17px; }
    .hero-title { font-size: 3rem; }
}

@media (min-width: var(--breakpoint-lg)) {
    /* Extra large: Desktops, large screens */
    body { font-size: 18px; }
    .hero-title { font-size: 3.5rem; }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Additional responsive enhancements */

/* Ensure all images are responsive */
img {
    width: auto;
    height: auto;
}

/* Touch-friendly targets for mobile */
@media (max-width: 768px) {
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem;
    }

    .navbar-toggler {
        width: 44px;
        height: 44px;
    }
}

/* Orientation-specific adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Landscape phones/small screens */
    .hero-section {
        min-height: 50vh;
        height: 50vh;
        max-height: 50vh;
    }

    .navbar-custom {
        min-height: 50px;
    }

    .navbar-logo {
        height: clamp(30px, 6vw, 50px);
    }
}

@media (orientation: portrait) and (max-width: 480px) {
    /* Portrait small phones */
    .hero-section {
        min-height: 60vh;
        height: 60vh;
        max-height: 60vh;
    }

    .promotion-banner {
        padding: 1.5rem 0.5rem;
    }

    .trust-signals {
        padding: 1.5rem 0;
    }

    .newsletter-section {
        padding: 1.5rem 0;
    }
}

/* Improved grid responsiveness */
@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .row > * {
        margin-bottom: 1rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Better form responsiveness */
@media (max-width: 576px) {
    .search-form {
        max-width: 100%;
        margin: 0.5rem 0;
        width: 100vw;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .search-form .input-group {
        flex-direction: column;
        width: 100%;
    }

    .search-form .form-control {
        border-radius: 25px 25px 0 0 !important;
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .search-form .btn {
        border-radius: 0 0 25px 25px !important;
        padding: 0.75rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-form .form-control {
        border-radius: 25px 25px 0 0;
    }

    .newsletter-form .btn {
        border-radius: 0 0 25px 25px;
    }
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar-custom {
        background: #000;
    }

    .category-card, .product-card, .testimonial-card {
        border: 2px solid #fff;
    }
}

/* Print styles */
@media print {
    .navbar, .promotion-banner, .newsletter-section {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .hero-section {
        background: none;
        color: #000;
    }
}
