:root {
  --green: #0f7a3d;
  --green-dark: #0b5e2f;
  --mint: #e8f3ee;
  --mint-2: #f2f8f5;
  --ink: #111614;
  --text: #3d4642;
  --muted: #7a847f;
  --line: #e6ebe8;
  --bg: #ffffff;
  --dark: #0f1412;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(16, 40, 28, 0.07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.green { color: var(--green); }
.muted { color: var(--muted); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic.sm { width: 15px; height: 15px; }
.ic.lg { width: 30px; height: 30px; }

/* Top bar */
.topbar { background: var(--dark); color: #e9efec; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; padding: 9px 0; gap: 16px; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .ic { color: #5fd08f; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 2px 14px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 24px; color: var(--ink); letter-spacing: -.5px; }
.logo.light { color: #fff; }
.nav { display: flex; gap: 30px; margin-left: 30px; font-weight: 500; font-size: 15px; color: var(--ink); }
.nav > a, .dropdown > a { position: relative; padding: 24px 0; display: inline-flex; align-items: center; gap: 4px; }
.nav a:hover { color: var(--green); }
.nav > a.active { color: var(--green); }
.nav > a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: var(--green); border-radius: 2px; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 62px; left: -14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 180px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 8px; }
.dropdown-menu a:hover { background: var(--mint-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; background: #f3f5f4; border-radius: 999px; padding: 10px 16px; width: 270px; color: var(--muted); }
.search input { border: 0; background: none; outline: none; width: 100%; font-size: 14px; color: var(--ink); }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background .2s; }
.icon-btn:hover { background: var(--mint-2); }
.icon-btn .ic { width: 22px; height: 22px; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; }

/* 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; transition: .2s; white-space: nowrap; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #26302b; }
.btn.full { width: 100%; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #d5e3db; font-size: 13px; font-weight: 600; color: var(--ink); }

/* Hero */
.hero { position: relative; margin-top: 20px; border-radius: 24px; overflow: hidden; background: linear-gradient(90deg, #edf0ef 0%, #edf0ef 40%, #e4ebe8 100%); min-height: 470px; display: flex; align-items: center; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 5s ease; }
.hero-img img.active { opacity: 1; transform: scale(1); }
.hero-content { position: relative; z-index: 1; padding: 48px 56px; max-width: 560px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.06; font-weight: 800; letter-spacing: -1.5px; color: var(--ink); margin: 18px 0 16px; }
.hero p { font-size: 18px; color: #2c3430; max-width: 380px; }
.hero-btns { display: flex; gap: 14px; margin: 28px 0; flex-wrap: wrap; }
.hero-feats { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; font-weight: 500; color: var(--ink); }
.hero-feats li { display: flex; align-items: center; gap: 7px; }
.dots { display: flex; gap: 6px; margin-top: 26px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; background: #c9d2ce; transition: .3s; }
.dots button.active { width: 24px; background: var(--green); }
.hero-content.fade > * { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { margin-top: 56px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.5px; position: relative; padding-top: 12px; }
.section-head h2::before { content: ""; position: absolute; top: 0; left: 0; width: 26px; height: 3px; background: var(--green); border-radius: 3px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.link:hover { color: var(--green); }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { background: linear-gradient(180deg, #eef5f1, #e3efe8); border-radius: var(--radius); overflow: hidden; transition: .25s; box-shadow: var(--shadow); }
.cat-card img { aspect-ratio: 1.25; object-fit: cover; width: 100%; transition: transform .4s; mix-blend-mode: multiply; }
.cat-card:hover { transform: translateY(-4px); }
.cat-card:hover img { transform: scale(1.05); }
.cat-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 16px; font-weight: 600; color: var(--ink); }
.arrow { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: .2s; }
.cat-card:hover .arrow { background: var(--green); }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text); transition: .2s; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .25s; animation: fadeUp .4s ease both; }
.card:hover { box-shadow: 0 12px 30px rgba(16,40,28,.1); transform: translateY(-3px); }
.card-media { position: relative; background: #eef3f0; }
.card-media img { aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.05); }
.off { position: absolute; top: 12px; left: 12px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.tag { position: absolute; bottom: 12px; left: 12px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.wish { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.wish.on { color: #e5484d; }
.wish.on .ic { fill: currentColor; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 15px; font-weight: 700; color: var(--ink); }
.card-body .desc { font-size: 13px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; }
.price b { font-size: 18px; color: var(--ink); }
.price s { font-size: 13px; color: var(--muted); }
.add { margin-top: 8px; width: 100%; padding: 11px; border-radius: 10px; background: var(--green); color: #fff; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: .2s; }
.add:hover { background: var(--green-dark); }
.empty { text-align: center; padding: 40px; color: var(--muted); }

/* Promo */
.promo { position: relative; border-radius: 24px; overflow: hidden; background: #dfeee6; min-height: 300px; display: flex; align-items: center; }
.promo-img { position: absolute; inset: 0; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.promo-content { position: relative; z-index: 1; padding: 40px 48px; }
.promo h2 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 800; color: var(--ink); letter-spacing: -1px; line-height: 1.1; margin: 14px 0 6px; }
.promo p { font-size: 17px; color: #2c3430; margin-bottom: 18px; }
.countdown { display: flex; gap: 10px; margin-bottom: 22px; }
.countdown div { background: #fff; border-radius: 12px; padding: 8px 10px; min-width: 60px; text-align: center; box-shadow: var(--shadow); }
.countdown b { display: block; font-size: 22px; color: var(--ink); line-height: 1.1; }
.countdown small { font-size: 11px; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 36px; padding: 10px 0; }
.feature { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 16px; color: var(--ink); }
.feature + .feature { border-left: 1px solid var(--line); }
.feature b { display: block; font-size: 15px; }
.feature span { font-size: 13px; color: var(--muted); }

/* Newsletter */
.newsletter { background: var(--dark); color: #fff; border-radius: 20px; padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nl-left { display: flex; align-items: center; gap: 18px; }
.nl-icon { width: 58px; height: 58px; border-radius: 50%; background: #1d2924; display: grid; place-items: center; color: #fff; }
.newsletter h3 { font-size: 20px; }
.newsletter p { font-size: 14px; color: #b7c2bd; }
.nl-form { display: flex; background: #fff; border-radius: 999px; padding: 5px; width: min(440px, 100%); }
.nl-form input { flex: 1; border: 0; outline: none; padding: 0 18px; border-radius: 999px; min-width: 0; color: var(--ink); }

/* Footer */
.footer { background: var(--dark); color: #cdd6d2; margin-top: 56px; padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid a:not(.logo):not(.socials a) { display: block; font-size: 14px; padding: 4px 0; color: #b7c2bd; }
.footer-grid a:hover { color: #5fd08f; }
.footer .muted { margin: 10px 0 16px; color: #9aa5a0; font-size: 14px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: #1d2924; display: grid; place-items: center; color: #fff; transition: .2s; }
.socials a:hover { background: var(--green); }
.socials svg { width: 17px; height: 17px; }
.ci { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 4px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #222c28; margin-top: 40px; padding: 20px 0; font-size: 13px; color: #8e9994; }
.footer-bottom a:hover { color: #fff; }
.credit a { color: #5fd08f; font-weight: 600; }
.credit a:hover { text-decoration: underline; }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(10,15,13,.45); opacity: 0; visibility: hidden; transition: .25s; z-index: 80; }
.overlay.show { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%); background: #fff; z-index: 90; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-item h4 { font-size: 14px; color: var(--ink); }
.cart-item .p { font-size: 13px; color: var(--green); font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; font-weight: 700; }
.qty span { min-width: 22px; text-align: center; font-size: 13px; }
.remove { color: var(--muted); font-size: 12px; text-decoration: underline; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; }
.row.small { font-size: 13px; color: var(--muted); }
.row.total { font-size: 17px; color: var(--ink); padding: 6px 0; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 0; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(10,15,13,.5); z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: #fff; border-radius: 20px; padding: 28px; width: min(420px, 100%); animation: fadeUp .3s ease; }
.modal-close { position: absolute; top: 10px; right: 10px; }
.modal-box h3 { color: var(--ink); font-size: 20px; }
#checkoutForm { display: grid; gap: 10px; margin-top: 16px; }
#checkoutForm input, #checkoutForm textarea, #checkoutForm select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; outline: none; }
#checkoutForm :focus { border-color: var(--green); }
.done { text-align: center; display: grid; gap: 10px; justify-items: center; }
.done-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #fff; font-size: 30px; display: grid; place-items: center; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--dark); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .3s; z-index: 120; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1080px) {
  .search { width: 200px; }
  .nav { gap: 20px; margin-left: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .25s; z-index: -1; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav > a, .dropdown > a { padding: 12px 0; }
  .nav > a.active::after { display: none; }
  .dropdown-menu { display: none; }
  .search { display: none; }
  .search.mobile-show { display: flex; }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .feature:nth-child(3) { border-left: 0; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-img { position: relative; order: 2; aspect-ratio: 16/9; }
  .hero-img img { object-position: 75% center; }
  .hero-content { padding: 32px 24px 8px; }
  .promo { flex-direction: column; align-items: stretch; }
  .promo-img { position: relative; order: 2; }
  .promo-img img { aspect-ratio: 16/9; height: auto; object-position: 80% center; }
  .promo-content { padding: 30px 24px 10px; }
}
@media (max-width: 560px) {
  .hide-sm { display: none !important; }
  .topbar-inner { justify-content: center; }
  .logo { font-size: 20px; }
  .header-inner { gap: 10px; height: 64px; }
  .nav { top: 64px; }
  .icon-btn { width: 38px; height: 38px; }
  .product-grid { gap: 10px; }
  .card-body { padding: 10px 12px 12px; }
  .card-body .desc { display: none; }
  .card-body h3 { font-size: 14px; }
  .price b { font-size: 16px; }
  .add { font-size: 13px; padding: 9px; }
  .cat-grid { gap: 10px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature { flex-direction: column; text-align: center; gap: 6px; }
  .newsletter { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .section { margin-top: 40px; }
}
