/*
=================================================================
  FLOW DIGITAL - V14 - FINAL VERSION WITH PERFECTED DESKTOP HEADER
  (This version has been enhanced with new sections and cards)
=================================================================
*/

/* --- 1. Variables, Globals & Animations --- */
:root {
    --bg-color: #0B1120; --surface-color: #111827; --text-primary: #f9fafb; --text-secondary: #9ca3af; --border-color: #374151; --primary-color: #4361EE; --primary-hover: #5470f1; --secondary-color: #1F2937; --secondary-hover: #374151; --shadow-glow: 0 0 30px -5px color-mix(in srgb, var(--primary-color) 40%, transparent); --border-radius: 0.75rem; --border-radius-lg: 0.75rem; --transition-speed: 0.2s; --font-family: 'Inter', sans-serif;
}
[data-theme="light"] {
    --bg-color: #f9fafb; --surface-color: #ffffff; --text-primary: #111827; --text-secondary: #6b7280; --border-color: #e5e7eb; --primary-color: #4f46e5; --primary-hover: #4338ca; --secondary-color: #f3f4f6; --secondary-hover: #e5e7eb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); background-color: var(--bg-color); color: var(--text-primary); padding-bottom: 70px; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes aurora { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }





/*
=====================================================
  2. HEADER & NAVIGATION (NEW & IMPROVED)
=====================================================
*/
/* --- Mobile Header --- */
.header { background-color: color-mix(in srgb, var(--bg-color) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 50; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.5rem; text-decoration: none; color: var(--text-primary); }
.header-left, .header-right { display: flex; align-items: center; gap: 0.5rem; }
.main-nav, .header .auth-buttons, .header #account-link.btn-primary { display: none; } /* Hide desktop elements */
.theme-toggle, .mobile-menu-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }

/* --- Mobile Navigations --- */
.mobile-nav-overlay { position: fixed; top: 0; left: 0; z-index: 100; width: 100%; height: 100%; background-color: var(--bg-color); transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1); transform: translateX(-100%); display: flex; }
.mobile-nav-overlay.open { transform: translateX(0); }
.mobile-nav-links a { font-size: 2rem; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background-color: var(--surface-color); border-top: 1px solid var(--border-color); display: flex; justify-content: space-around; padding: 0.5rem 0; z-index: 49; }
.bottom-nav-link { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; color: var(--text-secondary); text-decoration: none; font-size: 0.7rem; }
.bottom-nav-link.active { color: var(--primary-color); }
.icon-24 { width: 24px; height: 24px; }

/* --- 3. Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; padding: 0.75rem 1.25rem; border-radius: 999px; text-decoration: none; font-weight: 600; transition: all var(--transition-speed) ease; border: 1px solid transparent; cursor: pointer; font-size: 0.9rem; }
.btn-primary { background-color: var(--primary-color); color: white; margin: 10px; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-secondary { background-color: var(--secondary-color); color: var(--text-primary); border-color: var(--border-color); margin: 15px; }

/* --- 4. Homepage Content --- */
.hero { text-align: center; padding: 4rem 0 5rem; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1.1; margin: 1.5rem 0; }
.hero-title span { color: var(--primary-color); }
.hero-subtitle { font-size: clamp(1.1rem, 4vw, 1.25rem); color: var(--text-secondary); max-width: 600px; margin: 0 auto 2.5rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(2rem, 8vw, 2.5rem); }
.footer { padding: 4rem 0 2rem; background-color: var(--surface-color); border-top: 1px solid var(--border-color); }
.footer-content { display: grid; grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
.footer-links h4 { margin-bottom: 1rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 2rem; text-align: center; }

/*
=====================================================
  5. EXCEPTIONAL PRODUCT CARD & GRID STYLES (NEW)
=====================================================
*/
.products-section {
    padding: 4rem 1rem;
    position: relative;
}
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.product-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease;
    animation: fadeIn 0.5s ease-out forwards;
}
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
}
.product-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--border-radius-lg);
    border: 2px solid transparent;
    background: linear-gradient(120deg, var(--primary-color), #8b5cf6, #ec4899) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-card:hover::before { opacity: 1; }
.product-card-content {
    position: relative; z-index: 1;
    background: color-mix(in srgb, var(--surface-color) 80%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: calc(var(--border-radius-lg) - 2px);
    display: flex; flex-direction: column; height: 100%; overflow: hidden;
}
.product-image-link { display: block; position: relative; }
.product-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image { transform: scale(1.05); }
.product-badge { position: absolute; top: 1rem; left: 1rem; background-color: color-mix(in srgb, var(--bg-color) 70%, transparent); backdrop-filter: blur(5px); padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; z-index: 2; border: 1px solid var(--border-color); }
.product-info { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-title a { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); text-decoration: none; transition: color var(--transition-speed); }
.product-title a:hover { color: var(--primary-color); }
.product-description { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin: 0.5rem 0 1.5rem; flex-grow: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.btn-buy { background-color: var(--secondary-hover); color: var(--text-primary); padding: 0.6rem 1.2rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all var(--transition-speed); }
.product-card:hover .btn-buy { background-color: var(--primary-color); color: white; }

/*
=====================================================
  6. PERFECTED FEATURE SECTION STYLES (NEW)
=====================================================
*/
.feature-section {
    padding: 4rem 1rem;
    background-color: var(--surface-color);
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}
.feature-icon {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background-color: var(--secondary-hover);
    color: var(--primary-color);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-text h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.feature-text p { color: var(--text-secondary); line-height: 1.6; }

/*
=====================================================
  7. TRUSTED & SECURE PAYMENTS SECTION (NEW)
=====================================================
*/
.payments-section { padding: 4rem 1rem; text-align: center; }
.razorpay-card { background-color: white; color: #0d2344; border-radius: var(--border-radius-lg); padding: 2rem; max-width: 400px; margin: 2rem auto 3rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.razorpay-logo { width: 150px; height: auto; margin: 0 auto 1.5rem; }
.razorpay-text { font-weight: 500; margin-bottom: 1rem; }
.payment-methods-img { width: 100%; max-width: 300px; margin: 0 auto; }
@keyframes scroll-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-marquee { width: 100%; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); }
.logo-track { display: flex; width: fit-content; animation: scroll-marquee 20s linear infinite; }
.logo-track img { height: 32px; margin: 0 2rem; flex-shrink: 0; }

/*
=====================================================
  8. DESKTOP DROPDOWN MENU (NEW)
=====================================================
*/
.dropdown {
    position: relative;
    display: none; /* Hidden on mobile */
}
.dropdown-toggle {
    background: none; border: none; font-family: inherit; font-size: inherit; font-weight: 500; color: var(--text-secondary); padding: 0.5rem 1rem; border-radius: 0.5rem; cursor: pointer; transition: all var(--transition-speed); display: flex; align-items: center; gap: 0.25rem;
}
.dropdown-toggle:hover { background-color: var(--secondary-hover); color: var(--text-primary); }
.dropdown-toggle::after { content: ''; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; margin-left: 0.25rem; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    margin-top: 0.5rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem; min-width: 200px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    z-index: 60;
    opacity: 0; transform: translateY(10px); visibility: hidden;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}
.dropdown:hover .dropdown-menu { opacity: 1; transform: translateY(0); visibility: visible; }
.dropdown-menu a { display: block; padding: 0.75rem 1rem; color: var(--text-secondary); text-decoration: none; border-radius: var(--border-radius-md); transition: all var(--transition-speed); }
.dropdown-menu a:hover { background-color: var(--primary-color); color: white; }


/*
=====================================================
  9. DESKTOP RESPONSIVE BREAKPOINTS
=====================================================
*/
@media (min-width: 992px) {
    body { padding-bottom: 0; }
    .bottom-nav { display: none; }
    .header-container { justify-content: space-between; }
    .header-left { display: flex; align-items: center; gap: 2.5rem; }
    .main-nav { display: flex; gap: 0.5rem; align-items: center; }
    .main-nav a { position: relative; padding: 0.5rem 1rem; border-radius: 0.5rem; text-decoration: none; color: var(--text-secondary); font-weight: 500; transition: all var(--transition-speed); }
    .main-nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.25s ease-out; }
    .main-nav a:hover { color: var(--text-primary); }
    .main-nav a:hover::after { width: 60%; }
    .dropdown { display: block; }
    .mobile-menu-btn { display: none; }
    .header .auth-buttons, .header #account-link { display: flex; gap: 0.75rem; }
    .header-icon-link { display: none; }
    .btn { width: auto; max-width: none; }
    .hero-actions, .trust-badges { flex-direction: row; }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; }
    .footer-content { display: flex; justify-content: space-between; text-align: left; }
    .footer-links-group { display: flex; gap: 4rem; }
    .payments-section { padding: 5rem 2rem; }
    .logo-track img { height: 40px; margin: 0 2.5rem; }
}
@media (min-width: 1200px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/*
=====================================================
  STYLES FOR FULL-SCREEN SEARCH OVERLAY
=====================================================
*/

/* --- Header Search Icon --- */


/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: color-mix(in srgb, var(--bg-color) 85%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 110; /* Higher than header */
    
    display: flex;
    justify-content: center;
    padding: 1rem;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.search-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    line-height: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

.search-modal {
    width: 100%;
    max-width: 800px;
    margin-top: 10vh;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}
.search-overlay.open .search-modal {
    opacity: 1;
}

.search-input-overlay {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 2px solid var(--border-color);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem 0;
    outline: none;
    text-align: center;
    transition: border-color var(--transition-speed);
}
.search-input-overlay:focus {
    border-bottom-color: var(--primary-color);
}

.search-results-grid {
    margin-top: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

/* We will reuse the .product-card style but simplify it for search results */
.search-results-grid .product-card {
    background: var(--surface-color);
    border: 1px solid transparent;
}
.search-results-grid .product-card:hover {
    border-color: var(--border-color);
    transform: translateY(-4px);
    box-shadow: none;
}
.search-results-grid .product-image {
    aspect-ratio: 1/1;
}
.search-results-grid .product-info {
    padding: 0.75rem;
}
.search-results-grid .product-title {
    font-size: 0.9rem;
}
.search-results-grid .product-footer {
    display: none; /* Hide price and button in search results */
}


/*
=====================================================
  11. STYLES FOR HEADER ICON BUTTONS
=====================================================
*/

.header-icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; /* Good size for touch targets */
    height: 44px;
    padding: 0;
    border-radius: 50%;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.header-icon-btn:hover {
    background-color: var(--secondary-hover);
    color: var(--text-primary);
}

/*
=====================================================
  12. STYLES FOR PREMIUM, FUNCTIONAL FOOTER
=====================================================
*/

.footer {
    background-color: var(--surface-color);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 2;
    transition: color var(--transition-speed);
}
.footer-column ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-tagline {
    color: var(--text-secondary);
    margin: 1rem 0 2rem;
    line-height: 1.6;
}

/* Newsletter Form */
.newsletter-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
    text-align: left;
}
.newsletter-input-group {
    display: flex;
    position: relative;
}
.newsletter-input-group input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-color);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-speed);
}
.newsletter-input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
}
.newsletter-input-group button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 0.375rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed);
}
.newsletter-input-group button:hover {
    background-color: var(--primary-hover);
}


/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icons a {
    color: var(--text-secondary);
    transition: color var(--transition-speed);
    display: block;
}
.social-icons a:hover {
    color: var(--text-primary);
}
.social-icons svg {
    width: 24px;
    height: 24px;
}


/* --- Responsive Breakpoints for Footer --- */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 4rem;
        text-align: left;
    }
    .footer-brand-column {
        grid-column: 1 / -1; /* Brand column spans full width on tablets */
        max-width: 450px;
        margin: 0 auto;
        text-align: center;
    }
     .footer-brand-column .logo {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr; /* 4 columns on desktop */
        text-align: left;
    }
    .footer-brand-column {
        grid-column: auto; /* Reset column span */
        max-width: none;
        margin: 0;
        text-align: left;
    }
    .footer-brand-column .logo {
        justify-content: flex-start;
    }
}


/*
=====================================================
  CORRECTED STYLES FOR PERFECTLY ALIGNED BOTTOM NAV ICONS
=====================================================
*/

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    /* This is the key: it ensures everything is centered vertically */
    justify-content: center; 
    align-items: center;
    gap: 0.25rem;
    
    /* This makes sure each link takes up equal space */
    flex: 1; 
    
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
    padding: 0.25rem 0; /* Add some vertical padding */
}

.nav-icon-wrapper {
    width: 28px;
    height: 28px;
    display: flex; /* This is also key for centering the image inside */
    align-items: center;
    justify-content: center;
}

.nav-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    transition: opacity 0.2s ease-in-out;
}

/* The rest of your existing hover and active styles are perfect and do not need to change */
[data-theme="dark"] .nav-icon-wrapper img {
    filter: grayscale(1) brightness(0.7) contrast(1.2);
}

.bottom-nav-link.active .nav-icon-wrapper img,
.bottom-nav-link:hover .nav-icon-wrapper img {
    opacity: 1;
    filter: none;
}

.bottom-nav-link.active span {
    color: var(--primary-color);
}

.bottom-nav-link:hover span {
    color: var(--text-primary);
}

/*
=====================================================
  EXCEPTIONALLY ATTRACTIVE MOBILE NAVIGATION (V5)
=====================================================
*/

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Background aurora effect */
    background-color: var(--bg-color-support, #0D1117);
    overflow: hidden;
    z-index: 100;

    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}
.mobile-nav-overlay.open {
    transform: translateX(0);
    visibility: visible;
}

/* Reusing the aurora from your other pages */
.mobile-nav-overlay .auth-bg-aurora {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; opacity: 0.5;
}

.mobile-nav-content {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;

    /* The Glassmorphism Effect */
    background: color-mix(in srgb, var(--surface-color) 15%, transparent);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.mobile-close-btn {
    background: none; border: none; font-size: 2.5rem;
    color: var(--text-primary); cursor: pointer; line-height: 1;
}

.mobile-nav-links {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 2rem;
}

.nav-group {
    padding: 0.5rem 0;
}
.nav-divider {
    height: 1px;
    background-color: var(--border-color);
    border: none;
    margin: 1rem 0;
}

/* Polished Navigation Links with Pill Highlight */
.nav-link-mobile {
    display: block;
    color: var(--text-secondary); /* Inactive links are secondary color */
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 999px; /* Pill shape */
    transition: background-color 0.25s, color 0.25s;
    
    opacity: 0;
    transform: translateY(15px);
}
.mobile-nav-overlay.open .nav-link-mobile {
    animation: slide-up-fade 0.4s ease-out forwards;
    animation-delay: calc(var(--stagger, 0) * 60ms + 250ms);
}
@keyframes slide-up-fade {
    to { opacity: 1; transform: translateY(0); }
}

.nav-link-mobile.secondary {
    font-size: 1rem;
    font-weight: 500;
}

.nav-link-mobile:hover {
    color: var(--text-primary);
}
.nav-link-mobile.active {
    background-color: var(--primary-color);
    color: white;
}

/* Footer Section */
.mobile-nav-footer {
    flex-shrink: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.mobile-auth-actions, .mobile-account-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
/*
=====================================================
  STYLING FOR THE MOBILE MENU "HAMBURGER" ICON
=====================================================
*/

.mobile-menu-btn img {
    width: 24px; /* Or your preferred size */
    height: 24px;
}

/* This rule hides the hamburger button on desktop screens */
@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* This rule shows the hamburger button on mobile screens */
@media (max-width: 991px) {
    .main-nav, .header .auth-buttons, .header #account-link {
        display: none; /* Make sure desktop links are hidden */
    }
    .mobile-menu-btn {
        display: flex; /* Make sure the button is visible */
    }
}



/*
=====================================================
  DEFINITIVE FIX: HIDE HEADER BUTTONS ON MOBILE (V3)
=====================================================
*/

/* 
  By default, we allow the buttons to exist, letting the
  JavaScript control them. This works for the side-nav.
*/

/* 
  However, on mobile screens (anything below 768px wide),
  we will FORCE the buttons inside the main header to be hidden,
  no matter what the JavaScript says.
*/
@media (max-width: 767px) {
    .header .auth-buttons,
    .header #account-link {
        display: none !important;
    }
}


/* 
  On desktop screens (768px and wider), we ensure the buttons
  are visible again, respecting the JavaScript's logic.
*/
@media (min-width: 768px) {
    /* This rule shows the LOGIN/SIGNUP buttons when they should be visible */
    .header #auth-buttons[style*="display: flex"] {
        display: flex !important;
    }
    
    /* This rule shows the MY ACCOUNT button when it should be visible */
    .header #account-link[style*="display: flex"] {
        display: flex !important;
    }
}


/*
=====================================================
  NEW, POLISHED STYLE FOR THE SIGN UP BUTTON
=====================================================
*/

/* This targets ONLY the signup button in the header */
.header .auth-buttons .btn-signup {
    /* The "Glassmorphism" effect */
    background: color-mix(in srgb, var(--primary-color) 30%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* A subtle border to make it pop */
    border: 1px solid color-mix(in srgb, var(--primary-color) 50%, transparent);
    
    /* Remove the default box-shadow from .btn-primary */
    box-shadow: none;
    
    /* Ensure text color is bright */
    color: white;
}

/* Add a hover effect for the new button */
.header .auth-buttons .btn-signup:hover {
    background: color-mix(in srgb, var(--primary-color) 50%, transparent);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 
  And we still keep the fix to ensure both buttons are the
  exact same size, regardless of their style.
*/
.header .auth-buttons .btn {
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
}



/*
=====================================================
  PRODUCT CARD STYLES (WITH 1:1 IMAGE RATIO)
=====================================================
*/

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none; /* In case you use <a> tags */
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image-link {
    display: block;
}

.product-image {
    width: 100%;
    
    /* --- THE FIX IS HERE --- */
    /* This forces the image container to be a perfect square */
    aspect-ratio: 1 / 1;
    
    /* This ensures the image covers the square area without stretching */
    object-fit: cover; 
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-short-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Pushes footer to the bottom */
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/*
=====================================================
  NEW STYLES FOR PRODUCT CARD DISCOUNTS
=====================================================
*/

/* Ensure the wrapper is a positioning context for the badge */
.product-image-wrapper {
    position: relative;
}

/* Styles for the discount badge on the product card */
.discount-badge-card {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--red-color, #e53e3e);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--border-radius-md, 0.5rem);
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Container for stacked prices */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

/* Slashed original price */
.original-price-card {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* Text for "Coming Soon" status */
.coming-soon-text {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Ensure the main price doesn't have extra margin when stacked */
.price-container .product-price {
    margin-top: -2px;
}



/*
=====================================================
  DEFINITIVE HERO REDESIGN (V14 - EXACT MATCH)
=====================================================
*/

/* --- 1. Hero Section Setup --- */
.hero {
    position: relative;
    min-height: 90vh;
    padding: 4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-color); /* Ensure a solid background */
}

/* --- 2. Decorative Background Shapes --- */
.hero-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(100px); /* Very soft blur effect */
}
.shape-1 { width: 400px; height: 400px; top: 10%; left: 5%; opacity: 0.1; animation: float 15s infinite ease-in-out; }
.shape-2 { width: 300px; height: 300px; bottom: 15%; right: 10%; opacity: 0.15; animation: float 18s infinite ease-in-out reverse; }
.shape-3 { width: 200px; height: 200px; top: 20%; right: 25%; opacity: 0.08; animation: float 12s infinite ease-in-out; }
.shape-4 { width: 150px; height: 150px; bottom: 25%; left: 15%; opacity: 0.1; animation: float 16s infinite ease-in-out reverse; }
@keyframes float {
    50% { transform: translateY(-25px) translateX(15px) scale(1.1); }
}

/* --- 3. Hero Content Layout --- */
.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first */
    align-items: center;
    gap: 3rem;
    width: 100%;
}
.hero-text { text-align: center; } /* Mobile-first */
.hero-graphic { display: none; } /* Hide graphic on mobile */
@media (min-width: 992px) {
    .hero-container { grid-template-columns: 1.2fr 1fr; }
    .hero-text { text-align: left; }
    .hero-graphic { display: flex; justify-content: center; align-items: center; }
}

/* --- 4. Styling Hero Elements (Exact Match) --- */
.welcome-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--primary-color) 10%, var(--surface-color));
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}
.welcome-pill svg { color: var(--text-primary); }

.hero-title {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-primary);
}
.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 1.5rem auto 2.5rem;
}
@media (min-width: 992px) { .hero-subtitle { margin-left: 0; } }

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
@media (min-width: 992px) { .hero-actions { justify-content: flex-start; } }

.hero-actions .btn-primary {
    background-color: var(--primary-color);
    border: none;
}
.hero-actions .btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
}
.hero-actions .btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--text-secondary);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.trust-badges span { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-badges svg { width: 16px; height: 16px; }
@media (min-width: 992px) { .trust-badges { justify-content: flex-start; } }

/* --- 5. Graphic & Scroll Indicator --- */
.hero-graphic-inner {
    animation: float 8s infinite ease-in-out 1s;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}
.scroll-indicator svg {
    animation: bounce 2s infinite ease-in-out;
}
@keyframes bounce {
    50% { transform: translateY(5px); }
}

/* --- 6. Entrance Animations --- */
@keyframes slide-up-fade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-text > * {
    opacity: 0;
    animation: slide-up-fade 0.8s ease-out forwards;
}
.welcome-pill { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.4s; }
.hero-actions { animation-delay: 0.6s; }
.trust-badges { animation-delay: 0.8s; }
.hero-graphic { opacity: 0; animation: slide-up-fade 0.8s ease-out 0.3s forwards; }




/*
=====================================================
  DEFINITIVE RECENT BLOG POSTS SECTION (HOMEPAGE)
=====================================================
*/
.recent-posts-section {
    padding: 5rem 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--surface-color);
}

/* Re-using the blog-grid styles for consistency */
.recent-posts-section .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
@media (min-width: 1200px) {
    .recent-posts-section .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Using the same professional card design --- */
.recent-posts-section .blog-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.recent-posts-section .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
}
.recent-posts-section .blog-card-image-wrapper {
    overflow: hidden;
}
.recent-posts-section .blog-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.recent-posts-section .blog-card:hover .blog-card-image {
    transform: scale(1.05);
}
.recent-posts-section .blog-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.recent-posts-section .blog-card-title {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.recent-posts-section .blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.recent-posts-section .blog-card.skeleton {
    min-height: 350px;
}


/*
=====================================================
  DEFINITIVE COUPON TOAST NOTIFICATION (V2 - POLISHED)
=====================================================
*/
.coupon-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 380px; /* Slightly wider */
    width: calc(100% - 3rem);
    z-index: 200;

    background: color-mix(in srgb, var(--surface-color) 85%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;

    transform: translateY(200%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    pointer-events: none;
}
.coupon-toast.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--secondary-hover);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toast-icon svg { width: 18px; height: 18px; }

.toast-content p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
}
.toast-content p strong { font-weight: 700; color: var(--primary-color); }

.copy-coupon-btn-toast {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.copy-coupon-btn-toast:hover { background-color: var(--primary-hover); }

/* Animated checkmark for "Copied!" state */
@keyframes checkmark-in {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.copy-coupon-btn-toast .checkmark {
    animation: checkmark-in 0.3s ease-out;
}

.close-toast-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.close-toast-btn:hover { opacity: 1; }

/* Mobile adjustments */
@media (max-width: 480px) {
    .coupon-toast { left: 50%; transform: translateX(-50%) translateY(200%); }
    .coupon-toast.visible { transform: translateX(-50%) translateY(0); }
}



/* ADD THIS ENTIRE BLOCK TO THE TOP of style.css, right after the :root selector */

[data-theme="light"] {
    --bg-color: #f9fafb;                   /* Very light gray background */
    --surface-color: #ffffff;              /* Pure white for cards */
    --text-primary: #111827;               /* Dark gray for main text */
    --text-secondary: #6b7280;             /* Lighter gray for secondary text */
    --border-color: #e5e7eb;               /* Light gray for borders */
    --primary-color: #4f46e5;              /* A nice violet for primary actions */
    --primary-hover: #4338ca;              /* A darker violet for hover */
    --secondary-color: #f3f4f6;            /* Light gray for secondary elements */
    --secondary-hover: #e5e7eb;            /* A bit darker gray for hover */
    
    /* Specific styles for the bottom navigation icons in light mode */
    --bottom-nav-icon-filter: grayscale(1) brightness(0.4) contrast(1);
}

/* --- THEME-AWARE FIX FOR ICONS (DARK MODE) --- */
/* We will now explicitly define the filter for dark mode as well for clarity */
:root {
    /* ... your other dark mode variables ... */
    --bottom-nav-icon-filter: grayscale(1) brightness(0.7) contrast(1.2);
}




/* FIND and REPLACE the old .nav-icon-wrapper img rules with this one */

.nav-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    transition: opacity 0.2s ease-in-out, filter 0.3s ease-in-out; /* Add filter to the transition */
    
    /* This new variable will automatically change with the theme */
    filter: var(--bottom-nav-icon-filter); 
}


/* FIND AND DELETE THIS OLD RULE */

[data-theme="dark"] .nav-icon-wrapper img {
    filter: grayscale(1) brightness(0.7) contrast(1.2);
}


/* Find this existing rule in style.css... */
.bottom-nav-link {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    gap: 0.25rem;
    flex: 1; 
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem; /* <-- This is the old value */
    font-weight: 500;
    transition: color 0.2s ease-in-out;
    padding: 0.25rem 0;
}

/* ... and change the font-size like this: */
.bottom-nav-link {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    gap: 0.25rem;
    flex: 1; 
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.65rem; /* <-- CHANGE TO THIS NEW VALUE */
    font-weight: 500;
    transition: color 0.2s ease-in-out;
    padding: 0.25rem 0;
}