:root {
  --bg: #fbfaf8;
  --card: #ffffff;
  --text: #1f1d1a;
  --muted: #7b756d;
  --line: #ebe6df;
  --brand: #b9694a;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }

.topbar { background: var(--text); color: #fff; text-align: center; font-size: 13px; padding: 9px 12px; }
.header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 16px 5vw; background: rgba(251, 250, 248, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { font-size: 28px; font-weight: 800; letter-spacing: -.05em; }
.cats { display: flex; gap: 4px; flex: 1; }
.cat { background: none; border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.cat.active, .cat:hover { background: #f0ebe4; color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.search input { border: 0; outline: 0; width: 160px; background: none; }
.cart-btn { position: relative; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 700; }
.badge.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.4); } }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 40px 5vw; }
.kicker { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; margin: 14px 0; }
.hero-text > p:not(.kicker) { color: var(--muted); font-size: 18px; max-width: 460px; margin-bottom: 26px; line-height: 1.6; }
.hero-img { border-radius: 28px; aspect-ratio: 9/7; object-fit: cover; width: 100%; }
.btn { display: inline-block; background: var(--text); color: #fff; border: 0; padding: 14px 28px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { background: var(--brand); transform: translateY(-1px); }
.btn-block { width: 100%; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 10px 5vw 40px; }
.features div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.features b { display: block; }
.features span { color: var(--muted); font-size: 14px; }

.shop { padding: 30px 5vw 60px; }
.shop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.shop-head h2 { font-size: 30px; letter-spacing: -.02em; }
.shop-head small { font-size: 15px; color: var(--muted); font-weight: 400; }
.shop-head select { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s; }
.product:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, .08); transform: translateY(-3px); }
.product-img { position: relative; aspect-ratio: 1; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .product-img img { transform: scale(1.06); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--brand); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.fav { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 16px; }
.fav.on { color: #e0245e; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 16px; }
.product-body .meta { color: var(--muted); font-size: 13px; }
.price { display: flex; gap: 8px; align-items: baseline; margin-top: auto; padding-top: 8px; }
.price b { font-size: 18px; }
.price s { color: var(--muted); font-size: 14px; }
.add { margin-top: 10px; width: 100%; padding: 11px; border-radius: 12px; border: 1px solid var(--text); background: none; font-weight: 600; cursor: pointer; transition: all .2s; }
.add:hover { background: var(--text); color: #fff; }
.empty { text-align: center; padding: 60px; color: var(--muted); }

.newsletter { margin: 0 5vw; padding: 60px 30px; text-align: center; background: #f0e6dc; border-radius: 28px; }
.newsletter h2 { font-size: 32px; }
.newsletter p { color: var(--muted); margin: 8px 0 22px; }
.newsletter form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.newsletter input { flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); }
.news-msg { margin-top: 12px; font-weight: 600; color: #2f7d4e; }

.footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 60px 5vw 30px; }
.footer div { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.footer b { color: var(--text); }
.footer a:hover { color: var(--brand); }
.copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 13px; }

.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 50; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px; border-bottom: 1px solid var(--line); }
.drawer-head button { border: 0; background: #f3f0ec; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.ship { padding: 16px 22px; font-size: 14px; }
.ship-bar { height: 6px; background: #f0ebe4; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; background: var(--brand); transition: width .4s; }
.cart-items { list-style: none; flex: 1; overflow-y: auto; padding: 0 22px; }
.cart-items li { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-items img { border-radius: 12px; }
.cart-items h4 { font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { border: 0; background: none; width: 28px; height: 28px; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; font-size: 14px; }
.remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 0; border: 0 !important; display: block !important; }
.drawer-foot { padding: 22px; border-top: 1px solid var(--line); }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); opacity: 0; background: var(--text); color: #fff; padding: 12px 20px; border-radius: 999px; transition: transform .3s; z-index: 60; font-size: 14px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .header { flex-wrap: wrap; }
  .cats { order: 3; flex-basis: 100%; overflow-x: auto; }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .search input { width: 100px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer > div:first-child { grid-column: 1 / -1; }
  .newsletter form { flex-direction: column; }
}
