:root {
  --black: #141210;
  --ink: #1A1714;
  --cream: #F4EDE3;
  --card: #FBF8F3;
  --terracotta: #C8693E;
  --terracotta-dark: #8A3F1E;
  --wood: #2B211A;
  --beige: #E9DCCB;
  --sand: #E2D3C1;
  --muted: #4F4339;
  --soft: #7A6B5D;
  --line: #B9A894;
  --peach: #E8B48F;
  --head: 'Nunito', sans-serif;
  --body: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; margin: 0; line-height: 1.15; }
.wrap { max-width: 1280px; margin: 0 auto; }
.section { padding: 48px 32px 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.topbar { background: var(--black); color: var(--cream); padding: 14px 32px; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.logo { font-family: var(--head); font-weight: 800; font-size: 28px; letter-spacing: .5px; color: var(--cream); }
.deliver { font-size: 13px; color: #CFC4B6; line-height: 1.3; }
.deliver b { color: var(--cream); font-weight: 600; }
.search { flex: 1 1 320px; display: flex; min-width: 0; }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 8px 0 0 8px; padding: 0 16px; font: inherit; font-size: 15px; background: var(--card); color: var(--ink); }
.search button { width: 52px; height: 44px; border: 0; border-radius: 0 8px 8px 0; background: var(--terracotta); color: var(--black); display: flex; align-items: center; justify-content: center; }
.cart-btn { display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 44px; background: none; border: 0; color: var(--cream); position: relative; padding: 0 4px; }
.cart-count { position: absolute; top: 2px; left: 18px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--terracotta); color: var(--black); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.cart-count[hidden] { display: none; }
.catbar { background: var(--wood); padding: 0 32px; }
.catbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; font-weight: 500; padding: 10px 0; }
.catbar a { color: var(--cream); }
.catbar a:hover, .footer a:hover { color: var(--peach); }
.catbar .deals { color: var(--peach); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; border-radius: 16px; overflow: hidden; background: var(--black); }
.hero-text { flex: 1 1 420px; padding: 56px 48px; display: flex; flex-direction: column; gap: 20px; justify-content: center; color: var(--cream); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--peach); }
.hero h1 { font-size: 54px; line-height: 1.05; }
.hero p { margin: 0; font-size: 18px; line-height: 1.55; color: #D9CFC2; max-width: 460px; }
.hero-media { flex: 1 1 420px; min-height: 380px; background: #5C4330; display: flex; align-items: center; justify-content: center; }
.hero-media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 700; border: 0; }
.btn-primary { background: var(--terracotta); color: var(--black); }
.btn-dark { background: var(--black); color: var(--cream); }
.btn-outline { border: 1.5px solid var(--cream); color: var(--cream); background: transparent; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tile { background: var(--card); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.tile-art { height: 120px; display: flex; align-items: flex-end; padding: 14px; color: var(--cream); font-family: var(--head); font-weight: 800; font-size: 20px; }
.tile:hover .tile-art { filter: brightness(1.1); }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.trust > div { background: var(--beige); border-radius: 12px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.trust b { display: block; }
.trust span { font-size: 14px; color: var(--muted); }

/* Section heading */
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.head-row h2, .section > .wrap > h2 { font-size: 34px; }
.link { color: var(--terracotta-dark); font-weight: 700; }

/* Product grid + card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card-img { aspect-ratio: 1 / 1; background: var(--sand); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-weight: 600; font-size: 16px; line-height: 1.35; }
.card-meta { font-size: 13px; color: var(--soft); }
.price { font-size: 22px; font-weight: 700; }
.was { font-size: 15px; color: var(--soft); text-decoration: line-through; margin-left: 8px; font-weight: 500; }
.ribbons { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.ribbon { background: var(--terracotta); color: var(--black); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card .btn { margin-top: auto; min-height: 44px; width: 100%; }
.card-error { font-size: 13px; color: var(--terracotta-dark); }
.skeleton { background: linear-gradient(90deg, var(--sand), var(--beige), var(--sand)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 14px; min-height: 360px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { background: var(--card); border-radius: 14px; padding: 32px; text-align: center; color: var(--muted); }

/* Shop toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.toolbar select, .toolbar input { height: 44px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; font: inherit; background: var(--card); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--black); color: var(--cream); border-color: var(--black); }

/* Product page */
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--terracotta-dark); }
.pdp { display: flex; flex-wrap: wrap; gap: 40px; }
.gallery { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.main-img { aspect-ratio: 1 / 1; border-radius: 16px; background: var(--sand); overflow: hidden; }
.main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.thumbs button { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--sand); }
.thumbs button[aria-current="true"] { border-color: var(--terracotta); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.info h1 { font-size: 38px; }
.cat-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--terracotta-dark); }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-row .price { font-size: 34px; }
.opt-label { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.opt-label span { font-weight: 500; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; color: var(--ink); }
.pill[aria-pressed="true"] { border-color: var(--terracotta); background: var(--terracotta); color: var(--black); }
.pill.na { text-decoration: line-through; opacity: .5; }
.swatch { width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0; }
.swatch[aria-pressed="true"] { border: 3px solid var(--terracotta); }
.opt-select { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; background: var(--card); color: var(--ink); }
.buybox { background: var(--card); border: 1.5px solid var(--sand); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.stock-ok { color: #3F6B3A; font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; }
.stepper input { width: 44px; height: 44px; border: 0; text-align: center; font: inherit; font-weight: 700; background: transparent; }
.buybox .btn { min-height: 52px; font-size: 16px; width: 100%; }
.hint { font-size: 14px; color: var(--muted); }
.err { font-size: 14px; color: var(--terracotta-dark); font-weight: 600; }
.mini-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; text-align: center; color: var(--muted); }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.panel { background: var(--card); border-radius: 14px; padding: 24px; }
.panel h2 { font-size: 24px; margin-bottom: 12px; }
.panel .rich { line-height: 1.65; color: #3A312A; overflow-wrap: anywhere; }
.panel .rich p { margin: 0 0 10px; }

/* Text pages */
.page { max-width: 760px; margin: 0 auto; padding: 48px 32px 64px; }
.page h1 { font-size: 40px; margin-bottom: 20px; }
.page p { font-size: 17px; line-height: 1.7; color: #3A312A; }

/* Footer */
.footer { background: var(--black); color: #D9CFC2; padding: 48px 32px; margin-top: 56px; }
.footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; font-size: 14px; }
.footer .col { display: flex; flex-direction: column; gap: 10px; }
.footer .col-title { font-weight: 700; color: var(--cream); }
.footer .logo { font-size: 26px; }

/* Cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(20, 18, 16, .5); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--cream); z-index: 50; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0, 0, 0, .2); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--sand); }
.drawer-head h2 { font-size: 24px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; border-radius: 999px; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.line img, .line .ph { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--sand); }
.line-name { font-weight: 600; }
.line-desc { font-size: 13px; color: var(--soft); }
.line-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.line .stepper button, .line .stepper input { width: 36px; height: 36px; }
.remove { background: none; border: 0; color: var(--terracotta-dark); font-size: 13px; font-weight: 600; text-decoration: underline; padding: 6px 0; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--sand); display: flex; flex-direction: column; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; }
.sum-row.total { font-weight: 800; font-size: 18px; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; height: 44px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; font: inherit; background: var(--card); }
.coupon button { height: 44px; border-radius: 999px; border: 1.5px solid var(--black); background: transparent; padding: 0 16px; font-weight: 700; }
.drawer-foot .btn { width: 100%; min-height: 52px; font-size: 16px; }
.no-scroll { overflow: hidden; }

@media (max-width: 720px) {
  .topbar, .catbar, .section, .footer { padding-left: 16px; padding-right: 16px; }
  .deliver { display: none; }
  .hero-text { padding: 36px 24px; }
  .hero h1 { font-size: 38px; }
  .hero-media, .hero-media img { min-height: 240px; }
  .head-row h2, .section > .wrap > h2 { font-size: 28px; }
  .main-img { max-height: 45vh; aspect-ratio: auto; height: 45vh; }
  .info h1 { font-size: 30px; }
  .page { padding: 32px 16px 48px; }
}
