/* Storefront homepage */
:root {
    --green: #1f6f4a;
    --green-dark: #164f35;
    --green-soft: #e8f2ec;
    --orange: #e8742c;
    --amber: #f2a900;
    --cream: #fbf7f0;
    --ink: #1d2320;
    --muted: #66706b;
    --line: #e7e2d8;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(29, 35, 32, .08);
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--cream); }
.btn-add { padding: 8px 18px; font-size: 14px; background: var(--green-soft); color: var(--green); border-color: transparent; }
.btn-add:hover { background: var(--green); color: var(--white); }
.link-arrow { color: var(--green); font-weight: 600; white-space: nowrap; }
.link-arrow:hover { color: var(--green-dark); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.eyebrow-light { color: rgba(255, 255, 255, .85); }

/* ---------- top bar & header ---------- */
.topbar { background: var(--green-dark); color: #dfeee5; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar strong { color: var(--amber); }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a:hover { color: var(--white); }

.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--green-dark); white-space: nowrap; }
.logo-light { color: var(--white); }
.search { flex: 1; display: flex; max-width: 560px; margin: 0 auto; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 20px; font: inherit; font-size: 15px; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 111, 74, .12); }
.search button { border: 0; background: var(--green); color: var(--white); padding: 0 20px; display: grid; place-items: center; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--cream); color: var(--green); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: var(--white); font-size: 11px; font-weight: 700; display: grid; place-items: center; transition: transform .2s; }
.cart-count.bump { transform: scale(1.35); }
.menu-toggle { display: none; }

.nav { border-top: 1px solid var(--line); }
.nav ul { display: flex; gap: 32px; overflow-x: auto; }
.nav a { display: block; padding: 13px 0; font-weight: 500; font-size: 15px; color: var(--ink); border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--green); border-bottom-color: var(--green); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--cream) 0%, #f6efe2 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); color: var(--green-dark); margin-bottom: 20px; }
.hero-copy > p { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.hero-stats strong { display: block; font-size: 24px; font-weight: 700; color: var(--ink); }
.hero-stats span { font-size: 14px; color: var(--muted); }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.hero-blob { position: absolute; inset: 6%; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: var(--green-soft); }
.hero-img { position: absolute; border-radius: 28px; box-shadow: var(--shadow); background: var(--white); }
.hero-img-main { width: 62%; left: 19%; top: 16%; }
.hero-img-a { width: 34%; right: 0; top: 2%; transform: rotate(6deg); }
.hero-img-b { width: 36%; left: 0; bottom: 4%; transform: rotate(-6deg); }
.hero-badge { position: absolute; right: 2%; bottom: 14%; background: var(--orange); color: var(--white); padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow); text-align: center; }
.hero-badge strong { display: block; font-size: 24px; line-height: 1.1; }
.hero-badge span { font-size: 13px; }

/* ---------- benefits ---------- */
.benefits { border-bottom: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.benefit { display: flex; align-items: center; gap: 14px; }
.benefit svg { flex-shrink: 0; color: var(--green); background: var(--green-soft); border-radius: 12px; padding: 10px; width: 50px; height: 50px; }
.benefit strong { display: block; font-size: 15px; }
.benefit span { font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--cream); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); color: var(--green-dark); }
.section-head-center { justify-content: center; text-align: center; }

/* ---------- categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; }
.category-card { text-align: center; }
.category-img { display: block; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; margin-bottom: 12px; border: 3px solid transparent; transition: border-color .2s, transform .2s; }
.category-card:hover .category-img { border-color: var(--green); transform: translateY(-3px); }
.category-card strong { display: block; font-size: 15px; font-weight: 600; }
.category-count { font-size: 13px; color: var(--muted); }

/* ---------- tabs & products ---------- */
.tabs { display: flex; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.tab { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.tab.active { background: var(--green); color: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card[hidden] { display: none; }
.product-media { position: relative; }
.product-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--green); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; z-index: 1; }
.off { position: absolute; bottom: 12px; left: 12px; background: var(--orange); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; z-index: 1; }
.wish { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--white); color: var(--muted); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); z-index: 1; }
.wish:hover, .wish.on { color: #d64545; }
.wish.on path { fill: #d64545; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stars { --pct: calc(var(--rating) / 5 * 100%); display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; background: linear-gradient(90deg, var(--amber) var(--pct), #d9d4c9 var(--pct)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "★★★★★"; }
.product-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.weight { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 18px; font-weight: 700; }
.price del { font-size: 14px; color: var(--muted); }

/* ---------- promos ---------- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 20px; padding: 40px; border-radius: 20px; color: var(--white); overflow: hidden; }
.promo h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.promo p { color: rgba(255, 255, 255, .88); margin-bottom: 24px; }
.promo img { border-radius: 20px; }
.promo-green { background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.promo-orange { background: linear-gradient(135deg, #c65a1c, var(--orange)); }

/* ---------- deal ---------- */
.deal { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; background: var(--white); border-radius: 24px; padding: 40px; border: 1px solid var(--line); }
.deal-media img { border-radius: 20px; width: 100%; }
.deal-copy h2 { font-size: clamp(28px, 3vw, 38px); color: var(--green-dark); margin-bottom: 12px; }
.deal-copy h2 small { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--muted); }
.deal-copy > p { color: var(--muted); margin-bottom: 20px; max-width: 520px; }
.price-lg strong { font-size: 30px; }
.price-lg del { font-size: 18px; }
.save { background: #fdeee4; color: #b4521a; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 6px; }
.countdown { display: flex; gap: 12px; margin: 24px 0; }
.countdown div { min-width: 78px; text-align: center; background: var(--green-soft); border-radius: 12px; padding: 12px 8px; }
.countdown strong { display: block; font-size: 28px; font-weight: 700; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stock { margin-bottom: 26px; max-width: 420px; }
.stock-bar { height: 8px; background: #eee8dc; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.stock-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--orange)); border-radius: 999px; }
.stock p { font-size: 14px; color: var(--muted); }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-visual img { border-radius: 20px; }
.story-visual img:nth-child(2) { transform: translateY(28px); }
.story-visual img:nth-child(4) { transform: translateY(28px); }
.story-copy h2 { font-size: clamp(28px, 3.2vw, 40px); color: var(--green-dark); margin-bottom: 16px; }
.story-copy > p { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.checklist { margin-bottom: 28px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%231f6f4a' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { margin: 0; background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.testimonial blockquote { margin: 0; color: var(--ink); font-size: 16px; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.testimonial figcaption strong { display: block; color: var(--ink); font-size: 15px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }

/* ---------- newsletter ---------- */
.newsletter { background: var(--green-dark); color: var(--white); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.newsletter h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 6px; }
.newsletter p { color: rgba(255, 255, 255, .78); }
.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 520px; min-width: 280px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 13px 20px; border-radius: 999px; border: 0; font: inherit; font-size: 15px; }
.newsletter-form .btn-primary { background: var(--amber); color: var(--ink); }
.newsletter-form .btn-primary:hover { background: #d99700; }

/* ---------- footer ---------- */
.footer { background: #111a15; color: #b9c4be; padding-top: 64px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; max-width: 340px; }
.footer h3 { color: var(--white); font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--white); }
.payments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.payments span { border: 1px solid #2c3a33; border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: #d6ded9; }
.footer-bottom { border-top: 1px solid #24302a; padding-top: 20px; padding-bottom: 24px; font-size: 14px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .hero-inner, .deal, .story { grid-template-columns: 1fr; }
    .hero-inner { padding-top: 48px; padding-bottom: 56px; }
    .hero-visual { max-width: 420px; }
    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .promo-grid { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .deal { padding: 28px; gap: 28px; }
    .story-visual { order: 2; }
    .section { padding: 60px 0; }
}
@media (max-width: 760px) {
    .topbar-links { display: none; }
    .topbar-inner { justify-content: center; text-align: center; }
    .header-inner { flex-wrap: wrap; gap: 8px 12px; }
    .menu-toggle { display: grid; }
    .logo { font-size: 19px; margin-right: auto; }
    .logo img { width: 34px; height: 34px; }
    .header-actions { gap: 0; }
    .icon-btn { width: 40px; height: 40px; }
    .icon-wishlist { display: none; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .nav { display: none; }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .product-body { padding: 12px; }
    .product-foot { flex-direction: column; align-items: stretch; }
    .btn-add { width: 100%; }
    .category-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .category-card strong { font-size: 13px; }
    .category-count { display: none; }
    .tabs { width: 100%; overflow-x: auto; }
    .tab { flex: 1; padding: 9px 10px; white-space: nowrap; }
    .promo { grid-template-columns: 1fr; padding: 28px; }
    .promo img { max-width: 180px; }
}
@media (max-width: 480px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .countdown div { min-width: 0; flex: 1; }
    .newsletter-form { flex-direction: column; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
