/*
Theme Name: Vintike
Theme URI: https://vintike.com
Author: KodeCreatives
Author URI: https://kodecreatives.com
Description: Custom luxury vintage theme for Vintike.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: vintike
*/

/* =========================================
   DESIGN SYSTEM
   ========================================= */
:root {
    --teal: #0A6B65;
    --teal-light: #0D8A83;
    --black: #0F0F0F;
    --white: #FFFFFF;
    --cream: #F9F8F6;
    --grey-light: #F0F0F0;
    --grey-border: #E5E5E5;
    --text-grey: #666666;
    --gold: #C9A227;
    --sale-red: #D9381E;
    
    --font-logo: 'Dancing Script', cursive;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Jost', sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.4s var(--ease-out);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 5%; }

/* FIX: Use padding-top/bottom only so container's horizontal padding is preserved */
.section-padding { padding-top: 100px; padding-bottom: 100px; }

/* =========================================
   ANIMATIONS
   ========================================= */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 1s var(--ease-out); }
.reveal-up.active { opacity: 1; transform: translateY(0); }

.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 1s var(--ease-out); }
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(40px); transition: all 1s var(--ease-out); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal-text { overflow: hidden; }
.reveal-text span { display: block; transform: translateY(100%); transition: transform 1s var(--ease-out); }
.reveal-text.active span { transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   TOP MARQUEE
   ========================================= */
.top-marquee {
    background-color: var(--black);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}
.marquee-track {
    display: inline-block;
    animation: scrollLeft 30s linear infinite;
}
.marquee-track span { margin: 0 40px; display: inline-flex; align-items: center; gap: 10px;}
.marquee-track span i { color: var(--gold); font-size: 0.6rem;}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   HEADER
   ========================================= */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--grey-border);
    transition: var(--transition);
}

.header-main {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-logo);
    font-size: 3.5rem;
    color: var(--teal);
    line-height: 1;
    transition: var(--transition);
}
.logo:hover { transform: scale(1.02); }

.search-bar {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 40px;
    display: flex;
    background: var(--grey-light);
    border-radius: 50px;
    padding: 5px 20px;
    transition: var(--transition);
}
.search-bar:focus-within { background: var(--white); box-shadow: 0 0 0 2px var(--teal); }
.search-bar input {
    width: 100%;
    padding: 10px 0;
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.search-bar button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--black);
    font-size: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 0.85rem;
    font-weight: 500;
}
.header-actions a { display: flex; align-items: center; gap: 8px; transition: var(--transition); position: relative;}
.header-actions a:hover { color: var(--teal); }
.header-actions i { font-size: 1.2rem; }

.main-nav {
    padding: 15px 5%;
    display: flex;
    justify-content: center;
    gap: 50px;
}
.main-nav a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--black);
    position: relative;
    padding-bottom: 5px;
}
.main-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
    background: var(--teal); transition: width 0.3s var(--ease-out);
}
.main-nav a:hover::after { width: 100%; }

/* =========================================
   HERO COLLAGE
   ========================================= */
.hero {
    height: 85vh;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
    background: #eaeaea;
    overflow: hidden;
}

.hero-img-wrapper { position: relative; overflow: hidden; }
.hero-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 2s var(--ease-out); }

.hero:hover .hero-img-wrapper img { transform: scale(1.05); }
.hero-img-wrapper:nth-child(1):hover img { transform: scale(1.15); }
.hero-img-wrapper:nth-child(3):hover img { transform: scale(1.15); }
.hero-img-wrapper:nth-child(5):hover img { transform: scale(1.15); }

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 60px;
}

.hero-text {
    text-align: center; color: var(--white); z-index: 10; max-width: 800px;
}
.hero-text h1 { font-family: var(--font-heading); font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; margin-bottom: 15px; font-weight: 600; }
.hero-text p { font-size: 1.1rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 300; margin-bottom: 30px;}
.btn-shop {
    display: inline-block; background: var(--white); color: var(--black);
    padding: 16px 40px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
    transition: var(--transition); border: 1px solid var(--white);
}
.btn-shop:hover { background: transparent; color: var(--white); }

/* =========================================
   BRAND MARQUEE
   ========================================= */
.brand-marquee {
    background: var(--white); border-bottom: 1px solid var(--grey-border);
    padding: 30px 0; overflow: hidden; white-space: nowrap;
}
.brand-marquee-track {
    display: inline-block; animation: scrollLeft 25s linear infinite;
    font-family: var(--font-heading); font-size: 2rem; color: var(--black);
    font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
}
.brand-marquee-track span { margin: 0 50px; }

/* =========================================
   SHOP BY ERA (Horizontal Scroll)
   ========================================= */
.era-section { padding: 100px 0; overflow: hidden; }
.section-title-row {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 50px; border-bottom: 1px solid var(--grey-border); padding-bottom: 20px;
}
.section-title-row h2 { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 600; line-height: 1; }
.view-all { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--teal); position: relative; transition: var(--transition);}
.view-all::after { content: '→'; margin-left: 8px; transition: margin 0.3s; }
.view-all:hover::after { margin-left: 15px; }

.era-scroll-container {
    display: flex; gap: 30px; overflow-x: auto; padding: 20px 5%; scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.era-scroll-container::-webkit-scrollbar { display: none; /* Safari/Chrome */ }

.era-card {
    flex: 0 0 400px; height: 500px; position: relative; scroll-snap-align: start; overflow: hidden; cursor: pointer;
}
.era-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.era-card:hover img { transform: scale(1.05); }
.era-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex; align-items: flex-end; padding: 40px;
}
.era-overlay h3 { font-family: var(--font-heading); font-size: 3rem; color: var(--white); }
.era-overlay p { color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin-top: 5px; }

/* =========================================
   THE VINTIKE PROMISE
   ========================================= */
.brand-story { background: var(--cream); display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.brand-story-img { height: 700px; }
.brand-story-img img { width: 100%; height: 100%; object-fit: cover; }
.brand-story-content { padding: 100px 10%; }
.brand-story-content h2 { font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.1; margin-bottom: 30px; }
.brand-story-content p { font-size: 1.1rem; color: var(--text-grey); line-height: 1.8; margin-bottom: 20px; }
.signature { font-family: var(--font-heading); font-style: italic; font-size: 2rem; color: var(--teal); margin-top: 30px; }

/* =========================================
   PRODUCT CARDS
   ========================================= */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }

.product-card { position: relative; cursor: pointer; }

.product-img-wrap {
    position: relative; overflow: hidden; background: var(--grey-light);
    aspect-ratio: 3/4; margin-bottom: 20px;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.sale-badge {
    position: absolute; top: 15px; left: 15px;
    background: var(--white); color: var(--sale-red);
    padding: 5px 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 3;
}

.wishlist-icon {
    position: absolute; top: 15px; right: 15px;
    width: 38px; height: 38px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    color: var(--black);
    font-size: 0.95rem;
    border: none;
    outline: none;
}
.wishlist-icon:hover {
    background: var(--black);
    color: var(--white);
    transform: scale(1.1);
}
.wishlist-icon.active {
    background: var(--sale-red);
    color: var(--white);
}

.quick-add {
    position: absolute; bottom: -60px; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px);
    color: var(--black); text-align: center; padding: 15px;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
    transition: bottom 0.4s var(--ease-out); z-index: 2;
}
.quick-add:hover { background: var(--black); color: var(--white); }
.product-card:hover .quick-add { bottom: 0; }

.product-info { text-align: left; }
.product-brand { font-size: 0.75rem; color: var(--text-grey); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 5px; font-weight: 500;}
.product-title {
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--black);
    margin-bottom: 8px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.viewed-by {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.72rem; color: var(--text-grey);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    font-weight: 400;
}
.viewed-by i { font-size: 0.7rem; color: var(--teal); }

.stars { color: var(--gold); font-size: 0.7rem; margin-bottom: 10px; letter-spacing: 2px;}

.price-row { display: flex; align-items: center; gap: 12px; font-family: var(--font-body); }
.price-current { font-weight: 700; font-size: 1.1rem; color: var(--black); }
.price-old { font-size: 0.9rem; color: var(--text-grey); text-decoration: line-through; }

/* =========================================
   DARK MODE SECTION
   ========================================= */
.dark-section { background: var(--black); color: var(--white); padding: 120px 0; }
.dark-section .section-title-row { border-bottom: 1px solid rgba(255,255,255,0.1); }
.dark-section .section-title-row h2 { color: var(--white); }
.dark-section .product-img-wrap { background: #1A1A1A; }
.dark-section .product-title { color: var(--white); }
.dark-section .product-brand { color: #888; }
.dark-section .price-current { color: var(--gold); }
.dark-section .price-old { color: #666; }
.dark-section .sale-badge { background: var(--gold); color: var(--black); }
.dark-section .wishlist-icon { background: #1A1A1A; color: var(--white); }
.dark-section .wishlist-icon:hover { background: var(--gold); color: var(--black); }
.dark-section .wishlist-icon.active { background: var(--sale-red); color: var(--white); }
.dark-section .viewed-by { color: #999; }
.dark-section .viewed-by i { color: var(--gold); }

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials { background: var(--white); padding: 140px 0; text-align: center; }
.testimonials h2 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 60px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.testi-card { padding: 40px; border: 1px solid var(--grey-border); background: var(--cream); transition: var(--transition); }
.testi-card:hover { transform: translateY(-10px); border-color: var(--teal); }
.stars-testi { color: var(--gold); font-size: 0.9rem; margin-bottom: 20px; }
.testi-text { font-family: var(--font-heading); font-size: 1.4rem; font-style: italic; color: var(--black); line-height: 1.6; margin-bottom: 30px; }
.testi-author { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-grey); font-weight: 600; }

/* =========================================
   BLOG / JOURNAL
   ========================================= */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.blog-card { cursor: pointer; }
.blog-img-wrap { height: 350px; overflow: hidden; position: relative; margin-bottom: 25px; }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.blog-card:hover .blog-img-wrap img { transform: scale(1.05); }
.blog-meta { display: flex; gap: 15px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--teal); margin-bottom: 15px; font-weight: 600; }
.blog-card h3 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; margin-bottom: 15px; line-height: 1.2; transition: var(--transition); }
.blog-card:hover h3 { color: var(--teal); }
.blog-card p { font-size: 0.95rem; color: var(--text-grey); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================
   FOOTER
   ========================================= */
footer { background: var(--white); border-top: 1px solid var(--grey-border); padding: 100px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 2fr; gap: 60px; margin-bottom: 80px; }

.footer-logo { font-family: var(--font-logo); font-size: 4.5rem; color: var(--teal); line-height: 1; margin-bottom: 20px; }
.footer-col p { color: var(--text-grey); font-size: 0.95rem; line-height: 1.8; margin-bottom: 25px; max-width: 300px;}
.footer-socials { display: flex; gap: 15px; }
.footer-socials a { width: 45px; height: 45px; border: 1px solid var(--grey-border); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--black); transition: var(--transition); font-size: 1.1rem;}
.footer-socials a:hover { background: var(--teal); color: var(--white); border-color: var(--teal); transform: translateY(-3px);}

.footer-col h4 { font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul a { font-size: 0.95rem; color: var(--text-grey); transition: var(--transition); display: inline-block;}
.footer-col ul a:hover { color: var(--black); transform: translateX(5px); }

.newsletter-box p { font-size: 0.95rem; color: var(--text-grey); margin-bottom: 25px; line-height: 1.6; }
.newsletter-form { display: flex; flex-direction: column; gap: 15px; }
.newsletter-form input { padding: 16px 20px; border: 1px solid var(--grey-border); font-family: var(--font-body); outline: none; background: var(--cream); transition: var(--transition); }
.newsletter-form input:focus { border-color: var(--teal); background: var(--white); }
.newsletter-form button { background: var(--black); color: var(--white); border: none; padding: 16px; font-weight: 600; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; }
.newsletter-form button:hover { background: var(--teal); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--grey-border); padding-top: 30px; font-size: 0.85rem; color: var(--text-grey); }
.footer-bottom-links a { margin-left: 25px; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--black); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1200px) {
    .grid-5 { grid-template-columns: repeat(4, 1fr); }
    .grid-6 { grid-template-columns: repeat(4, 1fr); }
    .era-card { flex: 0 0 320px; height: 420px; }
}
@media (max-width: 992px) {
    .hero { height: 60vh; grid-template-columns: repeat(3, 1fr); }
    .hero-img-wrapper:nth-child(4), .hero-img-wrapper:nth-child(5) { display: none; }
    .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .brand-story { grid-template-columns: 1fr; }
    .brand-story-img { height: 400px; }
    .brand-story-content { padding: 60px 5%; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .testi-grid { grid-template-columns: 1fr; }
    .search-bar { margin: 0 20px; }
}

/* =========================================
   MOBILE (768px and below)
   ========================================= */
@media (max-width: 768px) {
    .section-padding { padding-top: 50px; padding-bottom: 50px; }
    .dark-section { padding: 60px 0; }
    .era-section { padding: 50px 0; }
    .testimonials { padding: 60px 0; }
    .container { padding: 0 5%; }
    
    .top-marquee { font-size: 0.65rem; letter-spacing: 1px; padding: 8px 0; }
    .marquee-track span { margin: 0 25px; }
    
    .header-main { padding: 12px 5%; gap: 10px; justify-content: space-between; }
    .logo { font-size: 2.3rem; }
    .header-actions { gap: 18px; font-size: 1rem; }
    .header-actions a { padding-left: 0 !important; border-left: none !important; }
    .header-actions a:first-child, .header-actions a:last-child { display: none; }
    
    .search-bar { order: 3; flex-basis: 100%; width: 100%; max-width: 100%; margin: 0; padding: 3px 15px; }
    .search-bar input { padding: 8px 0; font-size: 0.85rem; }
    
    .main-nav { padding: 10px 5%; gap: 25px; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .main-nav::-webkit-scrollbar { display: none; }
    .main-nav a { font-size: 0.7rem; letter-spacing: 1.5px; white-space: nowrap; }
    
    .hero { height: 55vh; min-height: 400px; grid-template-columns: 1fr; }
    .hero-img-wrapper:nth-child(2), .hero-img-wrapper:nth-child(3), .hero-img-wrapper:nth-child(4), .hero-img-wrapper:nth-child(5) { display: none; }
    .hero-text h1 { font-size: 2.3rem; }
    .hero-text p { font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 20px; }
    .btn-shop { padding: 12px 28px; font-size: 0.75rem; }
    .hero-overlay { padding-bottom: 40px; }
    
    .brand-marquee { padding: 20px 0; }
    .brand-marquee-track { font-size: 1.3rem; }
    .brand-marquee-track span { margin: 0 25px; }
    
    .section-title-row { margin-bottom: 25px; padding-bottom: 12px; }
    .section-title-row h2 { font-size: 1.8rem; }
    .view-all { font-size: 0.75rem; letter-spacing: 0.5px; }
    
    .era-card { flex: 0 0 75vw; height: 400px; }
    .era-scroll-container { padding: 20px 5%; gap: 15px; }
    .era-overlay { padding: 25px; }
    .era-overlay h3 { font-size: 2rem; }
    .era-overlay p { font-size: 0.7rem; }
    
    .brand-story-content { padding: 40px 5%; }
    .brand-story-content h2 { font-size: 2.2rem; margin-bottom: 20px; }
    .brand-story-content p { font-size: 1rem; }
    .brand-story-img { height: 300px; }
    .signature { font-size: 1.5rem; margin-top: 20px; }
    
    .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
    .product-img-wrap { margin-bottom: 12px; }
    .product-brand { font-size: 0.65rem; letter-spacing: 1px; margin-bottom: 4px; }
    .product-title { font-size: 0.82rem; margin-bottom: 6px; }
    .viewed-by { font-size: 0.62rem; margin-bottom: 6px; gap: 4px; }
    .stars { font-size: 0.55rem; margin-bottom: 6px; letter-spacing: 1px; }
    .price-row { gap: 8px; }
    .price-current { font-size: 0.95rem; }
    .price-old { font-size: 0.78rem; }
    
    .sale-badge { top: 8px; left: 8px; font-size: 0.6rem; padding: 4px 7px; }
    .wishlist-icon { top: 8px; right: 8px; width: 30px; height: 30px; font-size: 0.8rem; }
    .quick-add { padding: 10px; font-size: 0.7rem; letter-spacing: 1px; }
    
    .testimonials h2 { font-size: 2rem; margin-bottom: 40px; }
    .testi-grid { gap: 20px; }
    .testi-card { padding: 25px; }
    .testi-text { font-size: 1.15rem; margin-bottom: 20px; }
    
    .blog-grid { gap: 30px; }
    .blog-img-wrap { height: 220px; margin-bottom: 15px; }
    .blog-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
    .blog-card p { font-size: 0.85rem; }
    .blog-meta { font-size: 0.65rem; }
    
    footer { padding: 50px 0 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
    .footer-col:first-child { grid-column: 1 / -1; text-align: center; }
    .footer-col:first-child p { margin: 0 auto 20px; }
    .footer-socials { justify-content: center; }
    .footer-logo { font-size: 3rem; margin-bottom: 15px; }
    .footer-col h4 { font-size: 0.8rem; margin-bottom: 18px; }
    .footer-col ul a { font-size: 0.85rem; }
    .newsletter-box { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; font-size: 0.75rem; padding-top: 25px; }
    .footer-bottom-links { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
    .footer-bottom-links a { margin: 0; }
}

@media (max-width: 480px) {
    .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; gap: 25px; }
    .product-img-wrap { aspect-ratio: 4/5; margin-bottom: 15px; }
    .product-title { font-size: 0.95rem; }
    .price-current { font-size: 1.05rem; }
    .viewed-by { font-size: 0.7rem; }
    .stars { font-size: 0.65rem; }
    .sale-badge { font-size: 0.68rem; padding: 5px 9px; }
    .wishlist-icon { width: 34px; height: 34px; font-size: 0.9rem; }
    
    .hero-text h1 { font-size: 1.9rem; }
    .logo { font-size: 2rem; }
    
    .era-card { flex: 0 0 85vw; height: 380px; }
    
    .brand-story-content h2 { font-size: 1.8rem; }
    .section-title-row h2 { font-size: 1.6rem; }
    .testimonials h2 { font-size: 1.7rem; }
    .footer-logo { font-size: 2.5rem; }
}
/* =========================================
   FIX WORDPRESS MENU ALIGNMENT
   ========================================= */
.main-nav {
    padding: 15px 5%;
    display: flex;
    justify-content: center;
    position: relative; /* Important for Mega Menu */
}

.main-nav ul {
    display: flex;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--black);
    position: relative;
    padding-bottom: 5px;
    display: block;
}

.main-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
    background: var(--teal); transition: width 0.3s var(--ease-out);
}

.main-nav li:hover > a::after { width: 100%; }

/* =========================================
   MEGA MENU STYLES
   ========================================= */
/* The dropdown container */
.main-nav li.mega-menu {
    position: static; /* Forces the dropdown to span the full width of the nav */
}

/* The sub-menu (Dropdown) */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-top: 1px solid var(--grey-border);
    padding: 40px 5%;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Creates a 4-column mega menu */
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-out);
    z-index: 100;
}

/* Show on hover */
.main-nav li.mega-menu:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sub-menu links */
.main-nav .sub-menu li {
    list-style: none;
}

.main-nav .sub-menu a {
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--text-grey);
    padding: 10px 0;
    transition: var(--transition);
}

.main-nav .sub-menu a::after {
    display: none; /* Remove the underline effect for sub-items */
}

.main-nav .sub-menu a:hover {
    color: var(--teal);
    padding-left: 5px; /* Slight slide effect */
}

/* Mega Menu Column Headers (Optional) */
.main-nav .sub-menu .menu-item-has-children > a {
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    pointer-events: none; /* Stops clicking the header */
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .main-nav ul { gap: 30px; }
    .main-nav .sub-menu { display: none !important; } /* Hide mega menu on mobile for now */
}