/* ==========================================================================
   1. BASE STYLES & UTILITIES (FOR INDEX.HTML ONLY)
   ========================================================================== */

:root {
    --primary-color: #b78d65; /* Gold/Bronze */
    --secondary-color: #222; /* Dark Grey/Black */
    --light-bg: #f9f6f2; /* Creamy light background */
    --text-color: #333;
    --light-text: #f0f0f0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Corrected RGB values for transparent colors */
    --primary-color-rgb-r: 183;
    --primary-color-rgb-g: 141;
    --primary-color-rgb-b: 101;
}

/* Universal Box-Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Global Typography */
body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden; /* Prevent horizontal scroll due to animations or overflow */
    padding-top: 80px; /* Space for fixed navbar */
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Global Container for Content Width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Global Button Style */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb-r), var(--primary-color-rgb-g), var(--primary-color-rgb-b), 0.2);
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    background: #a57a50; /* Darker primary */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb-r), var(--primary-color-rgb-g), var(--primary-color-rgb-b), 0.3);
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* Utility Class for hidden elements (for JS toggle) */
.hidden {
    display: none !important;
}

/* Price Display (used in product cards) */
.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.3rem; /* Base size, adjusted for cards below */
    display: flex;
    justify-content: center; /* Centered for hero badge, left for product cards */
    align-items: baseline;
    gap: 5px;
}

.price del {
    color: #999;
    font-size: 1rem;
}

/* ==========================================================================
   2. LAYOUT & GLOBAL COMPONENTS (FOR INDEX.HTML ONLY)
   ========================================================================== */

/* --- Navbar --- */
.luxury-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo with gradient shine */
.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--secondary-color);
    position: relative;
    background: linear-gradient(90deg, var(--primary-color), #e0c9b1, var(--primary-color));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    text-decoration: none;
}

@keyframes shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Animated navigation links */
.main-nav {
    display: flex;
    gap: 15px;
}

.nav-link {
    position: relative;
    text-decoration: none;
    padding: 10px 0;
    overflow: hidden;
}

.nav-text {
    position: relative;
    color: #555;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.nav-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover .nav-text,
.nav-link.active .nav-text {
    color: var(--primary-color);
}

.nav-link:hover .nav-hover {
    transform: scaleX(1);
    transform-origin: left;
}

/* Icons with subtle effects */
.nav-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.search-icon, 
.cart-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #555;
}

.nav-actions i { /* Apply to Font Awesome icons */
    font-size: 20px;
}

.search-icon:hover i, 
.cart-icon:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-icon {
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove underline from cart icon link */
}

.cart-count {
    font-size: 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    transform: translateY(-5px);
}

/* Mobile Menu Toggle (Hidden by default on desktop) */
.menu-toggle {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above nav links when active */
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Hero Section --- */
.luxury-hero {
    position: relative;
    height: calc(100vh - 80px);
    min-height: 700px;
    overflow: hidden;
    margin-top: -80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: left;
}

.hero-slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #000;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    filter: brightness(0.7);
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.text-container {
    max-width: 600px;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s 0.3s forwards; /* Initial animation on load */
}

.slide.active .text-container { /* Re-animate text when slide becomes active */
    animation: none; /* Reset animation */
    animation: fadeInUp 1s 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subhead {
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cta-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Floating Badge (Hero Section) */
.floating-badge {
    position: absolute;
    right: 5%;
    bottom: 15%;
    animation: float 6s ease-in-out infinite;
}

.badge-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
    transform: rotate(-5deg);
    width: 200px;
}

.best-seller {
    display: block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.floating-badge img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

/* Slideshow Navigation Dots */
.slide-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.nav-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-dot.active {
    background-color: white;
    transform: scale(1.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(-5deg); }
}

/* --- Trending Ticker --- */
.trending-ticker {
    background: var(--secondary-color);
    color: var(--light-text);
    padding: 12px 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.trending-ticker span {
    color: var(--primary-color);
    margin-left: 5%;
    margin-right: 15px;
    font-weight: 600;
    flex-shrink: 0;
}

.trending-ticker marquee {
    flex-grow: 1;
    width: 100%;
}

/* --- Footer --- */
.luxury-footer {
    background: var(--secondary-color);
    color: var(--light-text);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%; /* Add padding to footer container */
}

.footer-column h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-column p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

.footer-column.about-us .social-icons a {
    color: var(--light-text);
    font-size: 20px;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-column.about-us .social-icons a:hover {
    color: var(--primary-color);
}

.footer-column.links ul {
    list-style: none;
}

.footer-column.links ul li {
    margin-bottom: 10px;
}

.footer-column.links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column.links ul li a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #333;
    color: white;
    font-family: var(--font-body);
}

.newsletter-form input[type="email"]::placeholder {
    color: #888;
}

.newsletter-form button {
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #a57a50;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #333;
    color: #888;
}

/* --- Toast Notification --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-message {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    animation: fadeInOut 3s forwards;
    opacity: 0; /* Start hidden for animation */
}

.toast-message i {
    color: #4CAF50; /* Green checkmark */
    font-size: 1.2rem;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* --- Back to Top Button --- */
#backToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

#backToTopBtn:hover {
    background-color: #a57a50;
    transform: translateY(-3px);
    opacity: 1;
}

/* --- Exit Popup --- */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.exit-popup.show {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease-out;
}

.exit-popup.show .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--primary-color);
}

.popup-content h3 {
    font-family: var(--font-heading);
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.popup-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.popup-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-newsletter-form input[type="email"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.popup-cta {
    background: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.popup-cta:hover {
    background: var(--primary-color);
}

/* --- Search Overlay/Modal --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align closer to top */
    padding-top: 100px; /* Space for nav */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.search-overlay.active {
    visibility: visible;
    opacity: 1;
}

.search-box {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.search-box input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1.5rem;
    padding: 10px 0;
    font-family: var(--font-body);
    color: var(--text-color);
}

.search-box input::placeholder {
    color: #bbb;
}

.search-box .fas.fa-search {
    font-size: 1.5rem;
    color: #999;
    margin-right: 10px;
}

.search-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.search-close-btn:hover {
    color: var(--primary-color);
}


/* ==========================================================================
   3. HOMEPAGE CONTENT SECTIONS (Desktop-First)
   ========================================================================== */

.niche-section {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.niche-section:nth-of-type(odd) { /* Alternate background for sections */
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    color: #777;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 320px;
    object-fit: cover; /* Changed to cover for consistent filling */
}

.product-card h3 {
    margin: 18px 15px 5px;
    padding: 0;
    font-size: 20px;
    color: var(--secondary-color);
}

.product-card .price {
    padding: 0 15px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
    text-align: left;
}

.product-card .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    margin-left: 8px;
}

.product-card .add-to-cart {
    width: calc(100% - 30px);
    padding: 12px;
    background: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    margin: 0 15px 15px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
}

.product-card .add-to-cart:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.view-all-products-link {
    margin-top: 60px;
    text-align: center;
}

/* Product Badges */
.bestseller-badge, .new-arrival-badge, .expert-badge, .limited-badge, .artisan-note {
    position: absolute;
    top: 15px;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    color: white;
}

.bestseller-badge {
    left: 15px;
    background: var(--primary-color);
}
.new-arrival-badge {
    left: 15px;
    background: #4CAF50; /* Green */
}
.expert-badge {
    left: 15px;
    background: #222;
}
.limited-badge {
    right: 15px;
    background: #d10000; /* Red */
}
.artisan-note {
    left: 15px;
    background: rgba(0,0,0,0.7);
    text-transform: none;
}


/* ==========================================================================
   4. RESPONSIVE STYLES (ALL MEDIA QUERIES FOR INDEX.HTML)
   ========================================================================== */

/* --- Tablets and small laptops (max-width: 992px) --- */
@media (max-width: 992px) {
    /* Navbar */
    .nav-container {
        padding: 0 4%;
    }
    .main-nav {
        gap: 10px;
    }
    .nav-text {
        font-size: 13px;
    }

    /* Hero Section */
    .hero-headline {
        font-size: 3.5rem;
    }
    .hero-subhead {
        font-size: 1.2rem;
    }
    .floating-badge {
        right: 3%;
        bottom: 10%;
        width: 180px;
    }
    .badge-content {
        padding: 1rem;
        width: 180px;
    }
    .floating-badge img {
        width: 100px;
        height: 100px;
    }
    .price { /* Applies to hero badge price */
        font-size: 1.2rem;
    }

    /* Content Sections */
    .section-header h2 {
        font-size: 32px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

/* --- Mobile Devices (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Base Body Padding */
    body {
        padding-top: 70px; /* Adjust for smaller fixed header */
    }

    /* Navbar adjustments */
.nav-container {
        height: 70px;
        padding: 0 3%;
        display: flex;
        justify-content: space-between; /* This ensures logo is left, and the group is right */
        align-items: center;
    }
    /* This rule ensures the actions and toggle are grouped */
    .nav-container .nav-actions-and-toggle {
        display: flex;
        align-items: center;
        gap: 15px; /* Adjust gap between icons and toggle as needed */
        /* No need for flex-grow here, as space-between on parent handles it */
    }
    .nav-container .logo { order: 1; }
    .nav-container .main-nav { order: 2; }
    .nav-container .nav-actions { order: 3; }
    .nav-container .menu-toggle { order: 4; display: flex; } /* Show hamburger */



.main-nav {
        /* ... existing styles ... */
        /* Add this to ensure it doesn't take up space when hidden */
        flex-grow: 0; /* Prevent it from taking flexible space */
        flex-shrink: 0; /* Prevent it from shrinking */
    }

    
    .logo {
        font-size: 24px;
    }
    .main-nav { /* Mobile menu overlay */
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
        border-top: 1px solid rgba(0,0,0,0.03);
        padding: 20px 0;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;

    }
    .main-nav.active {
        display: flex; /* Show when active */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-link {
        width: 80%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .nav-link:last-child {
        border-bottom: none;
    }
    .nav-text {
        font-size: 16px;
    }
    .nav-actions {
        gap: 15px;
    }
    .nav-actions i {
        font-size: 18px;
    }

    /* Hero Section adjustments */
    .luxury-hero {
        height: auto;
        min-height: 600px;
        padding-top: 70px; /* Adjust for smaller header */
        padding-bottom: 50px;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 5%;
    }
    .text-container {
        max-width: 100%;
        margin-top: 30px;
    }
    .hero-headline {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    .hero-subhead {
        font-size: 1rem;
        letter-spacing: 1px;
        margin-bottom: 2rem;
    }
    .cta-container {
        justify-content: center;
        margin-bottom: 50px;
    }
    .floating-badge {
        position: static; /* Stack naturally below content */
        margin: 30px auto;
        transform: none !important; /* Remove float animation */
        animation: none !important;
        right: auto;
        bottom: auto;
    }
    .badge-content {
        transform: none; /* Remove initial rotation */
    }
    .slide-nav {
        bottom: 20px;
    }

    /* Trending Ticker */
    .trending-ticker {
        font-size: 13px;
        padding: 10px 0;
    }
    .trending-ticker span {
        margin-left: 3%;
        margin-right: 10px;
    }

    /* Content Sections */
    .niche-section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .section-header p {
        font-size: 0.9rem;
        padding: 0 20px;
    }
    
    /* Product Grid */
    .product-grid {
        grid-template-columns: 1fr; /* Force single column on mobile */
        padding: 0 5%;
    }
    .product-card {
        margin: 0 auto;
        max-width: 350px; /* Constrain max width for single column */
    }
    .product-card img {
        height: 280px; /* Adjust height for mobile product cards */
        object-fit: cover; /* Ensure images fill space */
    }
    .product-card h3 {
        font-size: 18px;
    }
    .product-card .price {
        font-size: 1.3rem;
        justify-content: center; /* Center price on mobile cards */
    }
    .product-card .add-to-cart {
        font-size: 0.9rem;
        padding: 10px;
    }

    /* Footer adjustments */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 5%;
    }
    .footer-column.about-us .social-icons {
        justify-content: center;
        display: flex;
    }
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        max-width: 300px; /* Constrain width of inputs/buttons */
    }

    /* Popup adjustments */
    .popup-content {
        padding: 30px 20px;
    }
    .popup-content h3 {
        font-size: 24px;
    }
    .popup-content p {
        font-size: 1rem;
    }
    .popup-newsletter-form input,
    .popup-cta {
        width: 100%;
    }

    /* Search overlay adjustments */
    .search-box {
        padding: 10px 15px;
        margin-top: 50px; /* Adjust top padding */
    }
    .search-box input {
        font-size: 1.2rem;
    }
    .search-close-btn {
        font-size: 24px;
    }
}

/* --- Very small mobile devices (max-width: 480px) --- */
@media (max-width: 480px) {
    /* Base Body Padding */
    body {
        padding-top: 60px; /* Slightly less padding for very small screens */
    }

    /* Navbar */
    .nav-container {
        height: 60px; /* Shorter header */
    }
    .logo {
        font-size: 20px; /* Even smaller logo */
    }
    .nav-actions {
        gap: 10px; /* Smaller gap for icons */
    }
    .nav-actions i {
        font-size: 16px; /* Smaller icons */
    }
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    .main-nav {
        top: 60px; /* Adjust mobile menu position */
    }

    /* Hero Section adjustments */
    .luxury-hero {
        min-height: 500px; /* Smaller min-height */
        padding-top: 60px;
        padding-bottom: 40px;
    }
    .hero-headline {
        font-size: 2rem;
    }
    .hero-subhead {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    .floating-badge {
        width: 140px; /* Smaller badge */
    }
    .badge-content {
        width: 140px;
        padding: 1rem;
    }
    .floating-badge img {
        width: 70px;
        height: 70px;
    }
    .price {
        font-size: 1.1rem;
    }
    .slide-nav {
        bottom: 15px; /* Adjust dot position */
    }

    /* Trending Ticker */
    .trending-ticker {
        font-size: 12px;
        padding: 8px 0;
    }

    /* Content Sections */
    .niche-section {
        padding: 40px 0;
    }
    .section-header h2 {
        font-size: 24px;
    }
    .section-header p {
        font-size: 0.85rem;
        padding: 0 15px;
    }
    
    /* Product Grid */
    .product-card img {
        height: 220px; /* Further adjust height for very small screens */
    }
    .product-card h3 {
        font-size: 16px;
    }
    .product-card .price {
        font-size: 1.1rem;
    }
    .product-card .add-to-cart {
        font-size: 0.8rem;
        padding: 8px;
    }
        .product-detail-grid {
        padding: 0 1% !important; /* Even smaller padding for extreme small screens */
        gap: 10px !important; /* Even smaller gap */
        min-width: 0 !important; /* CRUCIAL: Reiterate for smallest screens */
        /* NEW: Ensure items are centered when stacked for very small screens */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }


    /* Footer adjustments */
    .footer-container {
        gap: 30px;
    }
    .footer-column h3 {
        font-size: 18px;
    }
    .footer-column p {
        font-size: 0.8rem;
    }
    .newsletter-form input,
    .newsletter-form button {
        max-width: 250px;
    }
    .footer-bottom {
        padding-top: 20px;
        margin-top: 30px;
        font-size: 0.8rem;
    }

    /* Popup adjustments */
    .popup-content {
        padding: 25px 15px;
    }
    .popup-content h3 {
        font-size: 20px;
    }
    .popup-content p {
        font-size: 0.9rem;
    }
    .popup-newsletter-form input,
    .popup-cta {
        font-size: 0.9rem;
        padding: 10px;
    }

    /* Search overlay adjustments */
    .search-box {
        padding: 10px;
    }
    .search-box input {
        font-size: 1rem;
    }
    .search-box .fas.fa-search {
        font-size: 1.2rem;
    }
    .search-close-btn {
        font-size: 20px;
    }
}
