/* ============================================================
   SLEEPY — Global Stylesheet
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #F5F2ED;
    --bg-warm: #EDE9E3;
    --bg-deep: #1A1A2E;
    --bg-card: #FFFFFF;
    --white: #FFFFFF;
    --sand: #E8E0D4;
    --sand-light: #F0EBE3;
    --beige: #C4A882;
    --beige-soft: rgba(196,168,130,0.12);
    --blue-dov: #7B8FA1;
    --blue-deep: #2C3E6B;
    --blue-night: #1B2444;
    --gray-warm: #8C857B;
    --gray-text: #5A5650;
    --gray-light: #B5AFA7;
    --text: #2C2A26;
    --text-soft: rgba(44,42,38,0.65);
    --radius: 20px;
    --transition: 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* DARK MODE */
html.dark {
    --bg: #121218;
    --bg-warm: #1a1a22;
    --bg-deep: #0d0d14;
    --bg-card: #1e1e28;
    --sand: #2a2a35;
    --sand-light: #22222c;
    --gray-warm: #8a8a95;
    --gray-text: #a0a0aa;
    --gray-light: #555560;
    --text: #e8e6e2;
    --text-soft: rgba(232,230,226,0.65);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

/* BREATHING BACKGROUND */
.breathing-bg {
    position: fixed; inset: 0; z-index: -1;
    background: var(--bg);
}

.breathing-orb {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.15;
}

.orb-1 {
    width: 600px; height: 600px;
    background: var(--blue-dov);
    top: -10%; right: -10%;
    animation: breathe 8s ease-in-out infinite;
}

.orb-2 {
    width: 500px; height: 500px;
    background: var(--beige);
    bottom: -15%; left: -5%;
    animation: breathe 10s ease-in-out 2s infinite;
}

.orb-3 {
    width: 400px; height: 400px;
    background: var(--blue-deep);
    top: 40%; left: 30%;
    animation: breathe 12s ease-in-out 4s infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.12; }
    50% { transform: scale(1.08); opacity: 0.2; }
}

/* NAV */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(245,242,237,0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

html.dark nav {
    background: rgba(18,18,24,0.9);
    border-bottom-color: rgba(255,255,255,0.04);
}

.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 2rem;
    height: 64px; display: flex; justify-content: space-between; align-items: center;
}

.logo {
    display: flex; align-items: center; gap: 0.6rem;
    text-decoration: none; color: var(--text);
}

.logo-icon {
    position: relative; width: 32px; height: 32px;
    animation: logoRock 3s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes logoRock {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    25% { transform: rotate(3deg) translateY(-2px); }
    50% { transform: rotate(-2deg) translateY(-1px); }
    75% { transform: rotate(2deg) translateY(-2px); }
}

.logo-moon {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-night));
    position: relative; overflow: hidden;
}

.logo-moon::after {
    content: ''; position: absolute;
    top: -4px; right: -6px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--bg);
}

.logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem; letter-spacing: -0.01em;
}

.nav-links { display: flex; list-style: none; gap: 0.3rem; align-items: center; }

.nav-links a {
    text-decoration: none; color: var(--gray-warm);
    font-size: 0.82rem; font-weight: 400;
    padding: 0.5rem 1rem; border-radius: 50px;
    transition: all 0.25s;
}

.nav-links a:hover { color: var(--text); background: rgba(0,0,0,0.04); }
html.dark .nav-links a:hover { background: rgba(255,255,255,0.06); }

.nav-cta {
    background: var(--blue-deep) !important;
    color: var(--white) !important;
    font-weight: 500 !important;
    padding: 0.55rem 1.4rem !important;
}

.nav-cta:hover { opacity: 0.88 !important; }

.nav-cart {
    position: relative; display: flex; align-items: center;
    font-size: 1.1rem; cursor: pointer;
    padding: 0.5rem; border-radius: 50%; transition: all 0.2s;
    text-decoration: none; color: var(--text);
}

.nav-cart:hover { background: rgba(0,0,0,0.04); }

.cart-count {
    position: absolute; top: -2px; right: -4px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--beige); color: var(--bg-deep);
    font-size: 0.6rem; font-weight: 700;
    display: none; align-items: center; justify-content: center;
}

/* DARK MODE TOGGLE */
.darkmode-toggle {
    background: none; border: none; cursor: pointer;
    font-size: 1.1rem; padding: 0.5rem; border-radius: 50%;
    transition: all 0.2s; display: flex; align-items: center;
}
.darkmode-toggle:hover { background: rgba(0,0,0,0.04); }
html.dark .darkmode-toggle:hover { background: rgba(255,255,255,0.06); }

/* HAMBURGER */
.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 32px; position: relative;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburger span {
    display: block; width: 20px; height: 2px; background: var(--text);
    border-radius: 2px; transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg); z-index: 999;
    flex-direction: column; padding: 2rem;
    opacity: 0; transform: translateY(-10px);
    transition: all 0.3s;
}
.mobile-menu.active { display: flex; opacity: 1; transform: translateY(0); }
.mobile-menu a {
    display: block; padding: 1rem 0; font-size: 1.2rem;
    color: var(--text); text-decoration: none;
    border-bottom: 1px solid var(--sand);
    font-family: 'DM Serif Display', serif;
}

/* SECTIONS */
section { padding: 7rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
    font-size: 0.65rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--blue-dov); margin-bottom: 0.8rem;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400; line-height: 1.15;
}

.section-desc {
    font-size: 1rem; color: var(--text-soft);
    font-weight: 300; line-height: 1.8;
    max-width: 520px; margin-top: 0.8rem;
}

.center { text-align: center; }
.center .section-desc { margin: 0.8rem auto 0; }

/* HERO */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 8rem 2rem 6rem;
}

.hero-eyebrow {
    font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--blue-dov); margin-bottom: 1.5rem;
    opacity: 0; animation: softFadeUp 1s ease 0.2s forwards;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400; line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 700px;
    opacity: 0; animation: softFadeUp 1.2s ease 0.4s forwards;
}

.hero h1 em { font-style: italic; color: var(--blue-dov); }

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-soft); max-width: 480px;
    margin: 1.5rem auto 2.5rem; font-weight: 300;
    line-height: 1.8;
    opacity: 0; animation: softFadeUp 1.2s ease 0.6s forwards;
}

.hero-actions {
    display: flex; gap: 1rem; align-items: center;
    opacity: 0; animation: softFadeUp 1.2s ease 0.8s forwards;
}

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.95rem 2.2rem; border: none; border-radius: 50px;
    font-family: 'Inter', sans-serif; font-size: 0.88rem;
    font-weight: 500; cursor: pointer; transition: all var(--transition);
    text-decoration: none;
}

.btn-primary { background: var(--blue-deep); color: var(--white); }
.btn-primary:hover { transform: scale(1.03); opacity: 0.9; }

.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--sand); }
.btn-ghost:hover { border-color: var(--blue-dov); color: var(--blue-dov); }

.btn-light {
    background: var(--white); color: var(--blue-deep);
    padding: 0.9rem 2rem; border: none; border-radius: 50px;
    font-family: inherit; font-size: 0.88rem; font-weight: 600;
    cursor: pointer; transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-light:hover { transform: scale(1.03); }

.hero-trust {
    margin-top: 4rem; display: flex; gap: 3rem; align-items: center;
    opacity: 0; animation: softFadeUp 1.2s ease 1s forwards;
}

.trust-item { text-align: center; }
.trust-number { font-family: 'DM Serif Display', serif; font-size: 1.8rem; color: var(--text); }
.trust-label { font-size: 0.7rem; color: var(--gray-warm); letter-spacing: 0.05em; }
.trust-divider { width: 1px; height: 40px; background: var(--sand); }

/* PRODUCT CATEGORIES */
.categories { background: var(--bg-warm); border-radius: 32px; padding: 5rem 3rem; margin: 0 2rem; }

.category-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 2rem; margin-top: 3rem;
}
.category-header:first-child { margin-top: 0; }

.category-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

.category-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem; font-weight: 400;
}

/* PRODUCT GRID */
.products-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card); border-radius: var(--radius);
    overflow: hidden; cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
    border: 1px solid rgba(0,0,0,0.04);
}

html.dark .product-card { border-color: rgba(255,255,255,0.06); }

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.product-image {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #EDE9E3, #E2DDD5);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}

html.dark .product-image { background: linear-gradient(145deg, #1e1e28, #252530); }

.product-image svg {
    width: 60%; height: 60%;
    opacity: 0.85;
    transition: all 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.product-card:hover .product-image svg { transform: scale(1.05); opacity: 1; }

.product-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(237,233,227,0.5));
}

html.dark .product-image::after { background: linear-gradient(to bottom, transparent 60%, rgba(30,30,40,0.5)); }

.product-info { padding: 1.5rem; }
.product-name { font-family: 'DM Serif Display', serif; font-size: 1.1rem; font-weight: 400; margin-bottom: 0.3rem; }
.product-desc { font-size: 0.78rem; color: var(--gray-warm); font-weight: 300; line-height: 1.5; margin-bottom: 1rem; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 1rem; font-weight: 600; }

.product-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--blue-deep); border: none;
    color: white; font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.product-btn:hover { transform: scale(1.1); background: var(--blue-night); }

/* SUBSCRIPTION */
.subscription {
    background: var(--bg-deep); color: var(--white);
    border-radius: 32px; padding: 5rem 3rem; margin: 0 2rem;
    position: relative; overflow: hidden;
}

.sub-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15; }
.sub-orb-1 { width: 400px; height: 400px; background: var(--blue-dov); top: -20%; right: -10%; animation: breathe 10s ease-in-out infinite; }
.sub-orb-2 { width: 300px; height: 300px; background: var(--beige); bottom: -15%; left: -5%; animation: breathe 12s ease-in-out 3s infinite; }

.sub-content { position: relative; z-index: 1; }

.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 3rem; }
.sub-text .section-label { color: var(--beige); }
.sub-text .section-title { color: var(--white); }
.sub-text .section-desc { color: rgba(255,255,255,0.6); }

.sub-features { list-style: none; margin-top: 1.5rem; }
.sub-features li {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0; font-size: 0.88rem;
    color: rgba(255,255,255,0.75); font-weight: 300;
}
.sub-features li::before { content: '✦'; color: var(--beige); font-size: 0.7rem; }

.sub-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius); padding: 3rem;
    text-align: center; backdrop-filter: blur(20px);
}

.sub-price-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--beige); margin-bottom: 0.5rem; }
.sub-price { font-family: 'DM Serif Display', serif; font-size: 3.5rem; font-weight: 400; color: var(--white); line-height: 1; }
.sub-price span { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 300; color: rgba(255,255,255,0.5); }
.sub-card p { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin: 1rem 0 2rem; font-weight: 300; line-height: 1.6; }

.sub-payment { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.payment-badge { padding: 0.35rem 0.8rem; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); font-size: 0.68rem; color: rgba(255,255,255,0.5); font-weight: 500; }

/* PROMISE */
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; }

.promise-card {
    background: var(--bg-card); border-radius: 16px;
    padding: 2rem 1.5rem; text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.5s;
}
html.dark .promise-card { border-color: rgba(255,255,255,0.06); }
.promise-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }

.promise-icon {
    width: 56px; height: 56px; border-radius: 16px;
    margin: 0 auto 1.2rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.promise-card h3 { font-family: 'DM Serif Display', serif; font-size: 1.05rem; font-weight: 400; margin-bottom: 0.4rem; color: var(--text); }
.promise-card p { font-size: 0.78rem; color: var(--gray-text); font-weight: 300; line-height: 1.6; }

/* TESTIMONIALS */
.testimonials-section {
    background: var(--bg-warm); border-radius: 32px;
    padding: 4rem 0; margin: 0 2rem; overflow: hidden;
}
.testimonials-section .center { padding: 0 3rem; }

.testimonials-track-wrapper {
    margin-top: 2.5rem; position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.testimonials-track {
    display: flex; gap: 1rem;
    animation: scrollReviews 35s linear infinite;
    width: max-content;
}
.testimonials-track:hover { animation-play-state: paused; }

@keyframes scrollReviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial {
    background: var(--bg-card); border-radius: 14px;
    padding: 1.3rem 1.5rem; border: 1px solid rgba(0,0,0,0.04);
    min-width: 260px; max-width: 280px; flex-shrink: 0;
    transition: all 0.4s;
}
html.dark .testimonial { border-color: rgba(255,255,255,0.06); }
.testimonial:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.testimonial-stars { color: var(--beige); font-size: 0.7rem; letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.testimonial-text { font-family: 'DM Serif Display', serif; font-size: 0.88rem; font-style: italic; line-height: 1.5; color: var(--text); margin-bottom: 0.8rem; }
.testimonial-author { font-size: 0.68rem; color: var(--gray-warm); font-weight: 500; }

/* FAQ */
.faq-list { max-width: 700px; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid var(--sand); }

.faq-question {
    width: 100%; background: none; border: none;
    padding: 1.3rem 0; text-align: left; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 500;
    color: var(--text); display: flex; justify-content: space-between;
    align-items: center; transition: color 0.2s;
}
.faq-question:hover { color: var(--blue-dov); }

.faq-chevron { font-size: 0.8rem; color: var(--gray-light); transition: transform 0.3s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding-bottom: 1.3rem; font-size: 0.88rem; color: var(--text-soft); line-height: 1.8; font-weight: 300; }

/* CTA SECTION */
.cta-section { text-align: center; padding: 6rem 2rem; }
.cta-section .section-title { max-width: 500px; margin: 0 auto; }
.cta-section .section-desc { margin: 1rem auto 2.5rem; }

/* SLEEPY PLUS */
.plus-section {
    background: linear-gradient(135deg, #1B2444 0%, #2C3E6B 50%, #1A1A2E 100%);
    border-radius: 32px; padding: 5rem 3rem; margin: 0 2rem;
    position: relative; overflow: hidden; color: white;
}

.plus-glow { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.plus-glow-1 { width: 400px; height: 400px; background: #C4A882; opacity: 0.08; top: -20%; right: -5%; animation: breathe 10s ease-in-out infinite; }
.plus-glow-2 { width: 300px; height: 300px; background: #7B8FA1; opacity: 0.1; bottom: -15%; left: 10%; animation: breathe 12s ease-in-out 3s infinite; }

.plus-content { position: relative; z-index: 1; }

.plus-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1rem; border-radius: 50px;
    background: rgba(196,168,130,0.15);
    border: 1px solid rgba(196,168,130,0.2);
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.08em; color: var(--beige);
    margin-bottom: 1.5rem;
}

.plus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 2rem; }
.plus-text .section-label { color: var(--beige); }
.plus-text .section-title { color: white; font-size: clamp(2rem, 4vw, 2.8rem); }
.plus-text .section-desc { color: rgba(255,255,255,0.55); }

.plus-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }

.plus-feature {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 1.2rem;
    transition: all 0.3s;
}
.plus-feature:hover { background: rgba(255,255,255,0.07); border-color: rgba(196,168,130,0.15); }
.plus-feature-icon { font-size: 1.3rem; margin-bottom: 0.5rem; }
.plus-feature h4 { font-size: 0.82rem; font-weight: 500; margin-bottom: 0.2rem; }
.plus-feature p { font-size: 0.72rem; color: rgba(255,255,255,0.45); font-weight: 300; line-height: 1.5; }

.plus-pricing { display: flex; flex-direction: column; gap: 1rem; }

.plus-plan {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 1.8rem;
    cursor: pointer; transition: all 0.3s;
    position: relative;
}
.plus-plan:hover { border-color: rgba(196,168,130,0.25); background: rgba(255,255,255,0.07); }
.plus-plan.popular { border-color: var(--beige); background: rgba(196,168,130,0.08); }

.plus-plan-tag {
    position: absolute; top: -10px; right: 16px;
    padding: 0.2rem 0.7rem; border-radius: 50px;
    background: var(--beige); color: var(--bg-deep);
    font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
}

.plus-plan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.plus-plan-name { font-family: 'DM Serif Display', serif; font-size: 1.2rem; }
.plus-plan-price { font-size: 1.4rem; font-weight: 700; }
.plus-plan-price span { font-size: 0.75rem; font-weight: 300; color: rgba(255,255,255,0.45); }
.plus-plan-desc { font-size: 0.78rem; color: rgba(255,255,255,0.45); font-weight: 300; line-height: 1.6; }

.plus-plan-btn {
    margin-top: 1.2rem; width: 100%;
    padding: 0.75rem; border-radius: 50px;
    font-family: inherit; font-size: 0.82rem;
    font-weight: 500; cursor: pointer; transition: all 0.3s;
    border: none;
}
.plus-plan .plus-plan-btn { background: rgba(255,255,255,0.08); color: white; border: 1px solid rgba(255,255,255,0.12); }
.plus-plan.popular .plus-plan-btn { background: var(--beige); color: var(--bg-deep); }
.plus-plan-btn:hover { transform: scale(1.02); }

/* MODAL */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    padding: 2rem; opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal {
    background: var(--bg-card); border-radius: 24px;
    max-width: 800px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    display: grid; grid-template-columns: 1fr 1fr;
    animation: modalIn 0.4s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-image {
    background: linear-gradient(145deg, #EDE9E3, #E2DDD5);
    display: flex; align-items: center; justify-content: center;
    padding: 3rem; border-radius: 24px 0 0 24px; min-height: 400px;
}
html.dark .modal-image { background: linear-gradient(145deg, #1e1e28, #252530); }
.modal-image svg { width: 80%; height: 80%; opacity: 0.9; }
.modal-content { padding: 2.5rem; display: flex; flex-direction: column; }

.modal-close {
    align-self: flex-end; width: 32px; height: 32px;
    border-radius: 50%; border: 1px solid var(--sand);
    background: none; cursor: pointer; font-size: 1rem;
    color: var(--gray-warm); transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--sand-light); color: var(--text); }

.modal-category { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-dov); margin-top: 1rem; }
.modal-title { font-family: 'DM Serif Display', serif; font-size: 1.8rem; margin: 0.3rem 0 0.8rem; }
.modal-desc { font-size: 0.88rem; color: var(--gray-text); line-height: 1.8; font-weight: 300; flex: 1; }

.modal-features { list-style: none; margin: 1.2rem 0; }
.modal-features li { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; font-size: 0.8rem; color: var(--gray-text); font-weight: 300; }
.modal-features li::before { content: '✦'; color: var(--beige); font-size: 0.65rem; }

.modal-price-row { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--sand-light); margin-top: 1rem; }
.modal-price { font-size: 1.5rem; font-weight: 700; }
.modal-price span { font-size: 0.78rem; color: var(--gray-warm); font-weight: 400; }

.modal-add-btn {
    padding: 0.8rem 2rem; border-radius: 50px;
    background: var(--blue-deep); color: white;
    border: none; font-family: inherit;
    font-size: 0.85rem; font-weight: 500;
    cursor: pointer; transition: all 0.3s;
}
.modal-add-btn:hover { transform: scale(1.03); opacity: 0.9; }

/* FOOTER */
footer {
    background: var(--bg-warm); padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.footer-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.82rem; color: var(--gray-warm); font-weight: 300; line-height: 1.7; max-width: 280px; }

.footer-col h4 { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-warm); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.82rem; color: var(--gray-text); text-decoration: none; padding: 0.3rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    max-width: 1100px; margin: 3rem auto 0;
    padding-top: 1.5rem; border-top: 1px solid var(--sand);
    display: flex; justify-content: space-between; align-items: center;
}

.footer-copy { font-size: 0.72rem; color: var(--gray-light); }
.footer-payments { display: flex; gap: 0.75rem; }
.payment-icon { padding: 0.3rem 0.7rem; border-radius: 6px; background: var(--bg); font-size: 0.68rem; color: var(--gray-warm); font-weight: 500; }

/* PAGE HEADER (for sub-pages) */
.page-header {
    padding: 8rem 2rem 3rem; text-align: center;
}

.page-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400; margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-soft); font-weight: 300;
    max-width: 500px; margin: 0 auto;
}

/* CART NOTIFICATION */
#cart-notification {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--blue-deep); color: white;
    padding: 0.8rem 1.5rem; border-radius: 50px;
    font-size: 0.85rem; font-weight: 500;
    z-index: 3000; transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
#cart-notification.show { transform: translateX(-50%) translateY(0); }

/* FILTER BUTTONS */
.filter-bar {
    display: flex; gap: 0.5rem; justify-content: center;
    margin: 2rem 0 3rem; flex-wrap: wrap;
}
.filter-btn {
    padding: 0.5rem 1.2rem; border-radius: 50px;
    border: 1.5px solid var(--sand); background: transparent;
    color: var(--gray-warm); font-family: inherit;
    font-size: 0.82rem; font-weight: 400; cursor: pointer;
    transition: all 0.25s;
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--blue-deep); color: var(--blue-deep);
    background: rgba(44,62,107,0.06);
}
html.dark .filter-btn:hover, html.dark .filter-btn.active {
    border-color: var(--beige); color: var(--beige);
    background: rgba(196,168,130,0.1);
}

/* FORM STYLES */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block; font-size: 0.82rem; font-weight: 500;
    margin-bottom: 0.4rem; color: var(--text);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.85rem 1rem; border-radius: 12px;
    border: 1.5px solid var(--sand); background: var(--bg-card);
    font-family: inherit; font-size: 0.88rem; color: var(--text);
    transition: border-color 0.25s;
    outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--blue-dov);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* CART TABLE */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gray-warm); padding: 0.8rem 0;
    border-bottom: 1px solid var(--sand);
}
.cart-table td {
    padding: 1.2rem 0; border-bottom: 1px solid var(--sand-light);
    vertical-align: middle;
}

.cart-item-info { display: flex; align-items: center; gap: 1rem; }
.cart-item-img {
    width: 64px; height: 64px; border-radius: 12px;
    background: linear-gradient(145deg, #EDE9E3, #E2DDD5);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
html.dark .cart-item-img { background: linear-gradient(145deg, #1e1e28, #252530); }
.cart-item-img svg { width: 70%; height: 70%; }
.cart-item-name { font-family: 'DM Serif Display', serif; font-size: 0.95rem; }
.cart-item-cat { font-size: 0.72rem; color: var(--gray-warm); }

.qty-control { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--sand); background: none;
    color: var(--text); cursor: pointer; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.qty-btn:hover { background: var(--sand-light); }
.qty-num { font-weight: 600; min-width: 24px; text-align: center; }

.cart-remove {
    background: none; border: none; color: var(--gray-light);
    cursor: pointer; font-size: 0.9rem; transition: color 0.2s;
}
.cart-remove:hover { color: #c0392b; }

.cart-summary {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.04); padding: 2rem;
}
html.dark .cart-summary { border-color: rgba(255,255,255,0.06); }

.cart-summary-row {
    display: flex; justify-content: space-between;
    padding: 0.6rem 0; font-size: 0.88rem;
}
.cart-summary-row.total {
    border-top: 1.5px solid var(--sand);
    margin-top: 0.5rem; padding-top: 1rem;
    font-weight: 700; font-size: 1.1rem;
}

.cart-empty {
    text-align: center; padding: 4rem 2rem;
}
.cart-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.cart-empty h2 { font-family: 'DM Serif Display', serif; margin-bottom: 0.5rem; }
.cart-empty p { color: var(--text-soft); font-weight: 300; margin-bottom: 2rem; }

/* CHECKOUT */
.checkout-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem; align-items: start;
}

.payment-methods { display: flex; gap: 0.75rem; margin: 1.5rem 0; flex-wrap: wrap; }
.payment-method {
    flex: 1; min-width: 80px; padding: 1rem;
    border: 1.5px solid var(--sand); border-radius: 12px;
    background: var(--bg-card); text-align: center;
    cursor: pointer; transition: all 0.25s;
    font-size: 0.82rem; font-weight: 500;
}
.payment-method:hover, .payment-method.active {
    border-color: var(--blue-deep); background: rgba(44,62,107,0.04);
}

/* CONTENT PAGES */
.content-page {
    max-width: 800px; margin: 0 auto; padding: 0 2rem 4rem;
}
.content-page h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem; margin: 2.5rem 0 1rem;
}
.content-page h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem; margin: 2rem 0 0.8rem;
}
.content-page p {
    color: var(--text-soft); font-weight: 300;
    line-height: 1.8; margin-bottom: 1rem;
}
.content-page ul {
    color: var(--text-soft); font-weight: 300;
    line-height: 1.8; margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* TEAM GRID */
.team-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; margin: 2rem 0;
}
.team-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 2rem; text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
}
html.dark .team-card { border-color: rgba(255,255,255,0.06); }
.team-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--beige-soft); margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.team-card h3 { font-family: 'DM Serif Display', serif; font-size: 1.1rem; margin-bottom: 0.2rem; }
.team-card .role { font-size: 0.78rem; color: var(--blue-dov); font-weight: 500; margin-bottom: 0.5rem; }
.team-card p { font-size: 0.82rem; color: var(--gray-text); font-weight: 300; line-height: 1.6; }

/* ANIMATIONS */
@keyframes softFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0; transform: translateY(24px);
    transition: all 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* MOBILE */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { display: none; }

    .products-grid { grid-template-columns: 1fr; }
    .sub-grid { grid-template-columns: 1fr; gap: 2rem; }
    .promise-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .categories, .subscription, .testimonials-section, .plus-section { margin: 0; border-radius: 0; padding: 3rem 1.5rem; }
    .hero-trust { flex-direction: column; gap: 1.5rem; }
    .trust-divider { width: 40px; height: 1px; }

    .plus-grid { grid-template-columns: 1fr; gap: 2rem; }
    .plus-features-grid { grid-template-columns: 1fr; }

    .modal { grid-template-columns: 1fr; }
    .modal-image { border-radius: 24px 24px 0 0; min-height: 250px; }

    .checkout-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }

    .cart-table { font-size: 0.85rem; }
    .cart-item-img { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
    .promise-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
