/* --- RESET & VARIABLES --- */
:root {
    --brand-primary: #002840; /* Deep navy blue */
    --brand-beige: #E5DDBF;   /* Beige Accent */
    --header-bg-initial: #F4F1EA; /* Beige Background */
    --header-bg-scrolled: #ffffff;
    --footer-bg: #F9F9F9;
    --card-bg-loved: #F9F8F6; /* Light off-white for carousel cards */
    --text-color: #333333;
    --light-gray: #f9f9f9;
    --medium-gray: #888888;
    --white: #ffffff;
    --dark-brown: #3C2E2C; /* For Shop All Button */
    --font-serif: "Playfair Display", Georgia, serif;
    --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); color: var(--text-color); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; cursor: pointer; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- UTILITY --- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.btn:hover { background-color: var(--brand-primary); color: var(--white); }

.btn-dark {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--dark-brown);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    transition: opacity 0.3s;
}
.btn-dark:hover { opacity: 0.9; }

/* --- HEADER & NAVIGATION --- */
.top-banner { background-color: var(--brand-beige); color: var(--brand-primary); text-align: center; padding: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; position: relative; z-index: 1002; }
header { position: sticky; top: 0; z-index: 1000; width: 100%; background: var(--header-bg-initial); border-bottom: 1px solid rgba(0,0,0,0.05); transition: all 0.3s ease; }
header.scrolled { background: var(--header-bg-scrolled); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-main { display: flex; justify-content: space-between; align-items: center; height: 80px; transition: height 0.3s; }
header.scrolled .header-main { height: 60px; }
.header-left { display: flex; align-items: center; gap: 25px; flex: 1; }
.menu-trigger { display: flex; align-items: center; cursor: pointer; gap: 8px; color: var(--brand-primary); }
.menu-text { font-size: 0.8rem; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; transition: opacity 0.2s; }
.search-container { position: relative; }
.search-pill { display: flex; align-items: center; border: 1px solid var(--brand-primary); border-radius: 20px; padding: 8px 15px; width: 280px; background: transparent; transition: all 0.3s; }
.search-pill input { border: none; background: transparent; outline: none; margin-left: 10px; font-size: 0.9rem; color: var(--brand-primary); width: 100%; }
.search-icon-only { display: none; font-size: 1.2rem; cursor: pointer; color: var(--brand-primary); }
.logo { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--brand-primary); text-align: center; flex: 1; letter-spacing: 1px; }
.header-right { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: flex-end; }
.nav-icon { font-size: 1.2rem; color: var(--brand-primary); cursor: pointer; }

header.scrolled .menu-text { display: none; }
header.scrolled .search-pill { display: none; }
header.scrolled .search-icon-only { display: block; }
header.scrolled .nav-bar { display: none; }

.nav-bar { border-top: 1px solid rgba(0,0,0,0.05); padding: 15px 0; text-align: center; transition: all 0.3s; }
.nav-bar ul { display: flex; justify-content: center; gap: 30px; }
.nav-bar a { font-size: 0.85rem; text-transform: uppercase; font-weight: 500; letter-spacing: 0.5px; color: var(--brand-primary); }
.nav-bar a:hover { text-decoration: underline; }

/* --- SIDE DRAWER --- */
.side-drawer { position: fixed; top: 0; left: -100%; width: 350px; height: 100vh; background: var(--white); z-index: 2000; box-shadow: 2px 0 15px rgba(0,0,0,0.1); transition: left 0.4s ease; display: flex; flex-direction: column; }
.side-drawer.open { left: 0; }
.drawer-header { padding: 20px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; background: var(--white); color: var(--brand-primary); cursor: pointer; border-bottom: 1px solid #f0f0f0; }
.close-text { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.close-btn { font-size: 1.5rem; }
.drawer-links { padding: 20px; }
.drawer-links li { margin-bottom: 15px; }
.drawer-links a { display: block; font-size: 1.1rem; color: var(--brand-primary); font-weight: 600; font-family: var(--font-serif); }

.drawer-divider { border: 0; border-top: 1px solid #eee; margin: 0 20px; }

.drawer-utilities { padding: 20px; }
.drawer-utilities li { margin-bottom: 15px; }
.drawer-utilities a { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--brand-primary); text-transform: uppercase; }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1500; display: none; }
.overlay.active { display: block; }
.search-overlay-bar { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 20px; border-bottom: 1px solid #eee; box-shadow: 0 5px 10px rgba(0,0,0,0.05); }
.search-overlay-bar.active { display: block; }
.search-overlay-bar input { width: 100%; padding: 10px; font-size: 1.2rem; border: none; border-bottom: 2px solid var(--brand-primary); outline: none; }

/* --- HERO --- */
.hero { position: relative; height: 550px; background: #f0f0f0; display: flex; align-items: center; }
.hero img { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-content { position: relative; z-index: 2; margin-left: 10%; background: rgba(255, 255, 255, 0.95); padding: 40px 50px; max-width: 500px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.hero-content h2 { font-family: var(--font-serif); font-size: 2.5rem; color: var(--brand-primary); margin-bottom: 15px; line-height: 1.2; }

/* --- PROMO SECTIONS (NEW) --- */
.promo-section {
    padding: 0;
    margin: 0;
    display: flex;
}

.promo-container {
    display: flex;
    width: 100%;
}

.promo-section.reverse .promo-container {
    flex-direction: row-reverse;
}

.promo-image, .promo-text {
    flex: 1;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 500px; /* Ensure visual balance */
}

.promo-text {
    background-color: #f9f9f9; /* Default light bg */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    text-align: left;
}

/* Alternate background color for visual interest if desired, or keep uniform */
.promo-section.reverse .promo-text {
    background-color: #fff;
}

.promo-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--brand-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.promo-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}


/* --- PRODUCT GRID (Standard) --- */
.product-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: var(--font-serif); font-size: 2.2rem; color: var(--brand-primary); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.product-card { text-align: center; cursor: pointer; }
.product-image-wrapper { position: relative; margin-bottom: 15px; background: var(--light-gray); overflow: hidden; }
.product-image-wrapper img { transition: transform 0.5s; }
.product-image-wrapper:hover img { transform: scale(1.05); }
.badge { position: absolute; top: 10px; left: 10px; background: #d32f2f; color: white; padding: 5px 10px; font-size: 0.7rem; font-weight: 700; }
.product-title { font-weight: 600; color: var(--brand-primary); margin-bottom: 5px; }
.price { font-size: 0.95rem; margin-bottom: 15px; }
.old-price { text-decoration: line-through; color: #999; margin-right: 5px; }
.new-price { color: #d32f2f; font-weight: 700; }

/* --- NEW SECTION: MOST LOVED CAROUSEL --- */
.most-loved-section {
    padding: 80px 0;
    background-color: var(--white); /* Looks clean like image */
}

.section-title-large {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--brand-primary);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.carousel-wrapper {
    position: relative;
    padding: 0 40px; /* Space for buttons */
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* Carousel Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 5;
    padding: 10px;
}
.scroll-btn.left { left: -10px; }
.scroll-btn.right { right: -10px; }

/* Loved Card Styling (Specific to this section) */
.loved-card {
    min-width: 280px;
    max-width: 280px;
    background-color: var(--card-bg-loved);
    padding: 20px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.loved-card:hover { transform: translateY(-5px); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
    background: #fff;
    padding: 3px 6px;
}

.heart-icon { font-size: 1.2rem; color: var(--brand-primary); cursor: pointer; }
.heart-icon:hover { color: #d32f2f; }

.loved-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.loved-image img { max-height: 100%; width: auto; mix-blend-mode: multiply; }

.card-body { text-align: left; }

.loved-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--brand-primary);
    margin-bottom: 5px;
    line-height: 1.3;
    height: 3.9em; /* Fixed height for 2-3 lines of text */
    overflow: hidden;
}

.loved-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 15px;
}

.loved-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.loved-price {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1rem;
}

.bag-icon { font-size: 1.2rem; color: var(--brand-primary); cursor: pointer; }

/* --- FOOTER --- */
footer { background-color: var(--footer-bg); color: var(--brand-primary); padding: 60px 0 20px; margin-top: 50px; font-size: 0.9rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 60px; }
.footer-column { flex: 1; min-width: 200px; }
.footer-column h5 { font-family: var(--font-serif); font-size: 1rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: var(--text-color); transition: color 0.3s; }
.footer-column ul li a:hover { color: var(--brand-primary); text-decoration: underline; }
.social-links li a { display: flex; align-items: center; gap: 10px; }
.social-links span { font-size: 1.2rem; }
.b-corp-logo { margin-top: 30px; }
.b-corp-logo img { width: 80px; height: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 30px; gap: 20px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; text-transform: uppercase; color: var(--medium-gray); letter-spacing: 0.5px; }
.footer-bottom-links a:hover { color: var(--brand-primary); }
.footer-logo-copyright { text-align: center; flex: 1; }
.footer-logo { font-size: 1.5rem; margin-bottom: 5px; display: inline-block; }
.footer-logo-copyright p { font-size: 0.75rem; color: var(--medium-gray); }
.footer-bottom-links.right { justify-content: flex-end; }
.footer-bottom-links.right a span { margin-right: 5px; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-bar { display: none; }
    .promo-container { flex-direction: column; }
    .promo-section.reverse .promo-container { flex-direction: column; } /* Stack normally on mobile */
    .promo-image img { min-height: 300px; }
    .promo-text { padding: 40px 20px; }
}
@media (max-width: 768px) {
    .header-main { padding: 0 15px; }
    .menu-text { display: none; }
    .search-pill { width: auto; border: none; padding: 0; }
    .search-pill input { display: none; }
    .search-pill::after { content: '🔍'; font-size: 1.2rem; }
    .footer-top { flex-direction: column; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 25px; }
    .footer-logo-copyright { order: -1; margin-bottom: 10px; }
    .footer-bottom-links { justify-content: center; }
}