/* ============================================================
   PIKORA — premium kitchenware storefront
   Warm editorial palette · Fraunces display + Inter body
   ============================================================ */

:root {
  --bg:        #f6f2ea;
  --bg-soft:   #efe9dd;
  --surface:   #fffdf9;
  --ink:       #211c16;
  --ink-soft:  #5f574c;
  --muted:     #8c8275;
  --line:      #e3dccd;
  --clay:      #b4532a;
  --clay-dark: #963f1c;
  --olive:     #4a5d43;
  --gold:      #b8893b;
  --white:     #ffffff;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(33,28,22,.05), 0 4px 14px rgba(33,28,22,.05);
  --shadow-md: 0 8px 30px rgba(33,28,22,.10);
  --shadow-lg: 0 24px 60px rgba(33,28,22,.16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--clay); font-weight: 600;
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  letter-spacing: .01em; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--clay); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--clay); color: #fff; }
.btn-accent:hover { background: var(--clay-dark); box-shadow: 0 10px 28px rgba(180,83,42,.35); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,242,234,.78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 1px 0 rgba(33,28,22,.03); }
.header-inner { display: flex; align-items: center; gap: 26px; height: 74px; }
.brand { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: -.02em; }
.brand .dot { color: var(--clay); }
.brand small { font-family: var(--sans); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); transform: translateY(-1px); }
.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav a::after { content:""; position: absolute; left:0; bottom:-2px; height:1.5px; width:0; background: var(--clay); transition: width .3s var(--ease); }
.nav a:hover { color: var(--ink); } .nav a:hover::after { width: 100%; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background .2s, transform .2s; position: relative; }
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 2px; right: 0px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--clay); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--ease); border: 2px solid var(--bg);
}
.cart-count.show { transform: scale(1); }
.menu-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 64px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 86px); letter-spacing: -.03em; }
.hero h1 em { font-style: italic; color: var(--clay); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 460px; margin: 26px 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; }
.hero-stats .n { font-family: var(--serif); font-size: 30px; }
.hero-stats .l { font-size: 12.5px; color: var(--muted); letter-spacing: .03em; }
.hero-visual { position: relative; aspect-ratio: 1/1.04; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-soft); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s var(--ease); }
.hero-visual:hover img { transform: scale(1.06); }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px; background: rgba(255,253,249,.92);
  backdrop-filter: blur(6px); padding: 13px 18px; border-radius: 14px; box-shadow: var(--shadow-sm);
}
.hero-badge .t { font-weight: 600; font-size: 14px; } .hero-badge .s { font-size: 12.5px; color: var(--muted); }
.hero-float {
  position: absolute; right: 16px; top: 16px; background: var(--ink); color: var(--bg);
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-size: 13px; line-height: 1.25; padding: 10px; box-shadow: var(--shadow-md);
  animation: spinwobble 9s ease-in-out infinite;
}
@keyframes spinwobble { 0%,100%{ transform: rotate(-6deg) } 50%{ transform: rotate(6deg) } }

/* Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; overflow: hidden; margin-top: 40px; background: var(--bg-soft); }
.marquee-track { display: flex; gap: 44px; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 20px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 44px; font-style: italic; }
.marquee span::after { content: "✦"; color: var(--clay); font-style: normal; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS / PRODUCT GRID
   ============================================================ */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.section-head p { color: var(--ink-soft); margin: 10px 0 0; max-width: 440px; }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.search-box { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.search-box input {
  width: 100%; padding: 13px 16px 13px 44px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 14.5px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 4px rgba(180,83,42,.10); }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 10px 17px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink-soft); transition: all .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.result-count { margin-left: auto; font-size: 13.5px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 36px; align-items: start; }

.card { position: relative; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.card.in { opacity: 1; transform: none; }
.card-media { display: block; position: relative; aspect-ratio: 1/1.12; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow-sm); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.card-media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img.main { opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img { transform: scale(1.05); }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.card-badge.sold { background: var(--ink); color: var(--bg); }
.quick-add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 13px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transform: translateY(130%); opacity: 0; transition: transform .35s var(--ease), opacity .35s, background .2s;
}
.card:hover .quick-add { transform: none; opacity: 1; }
.quick-add:hover { background: var(--clay); }
.quick-add svg { width: 17px; height: 17px; }
.card-body { padding: 20px 4px 0; }
.card-title { font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.45; letter-spacing: -.005em; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.card-price { font-family: var(--serif); font-size: 20px; }
.stars { color: var(--gold); font-size: 12.5px; letter-spacing: 1px; }

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 26px 0 0; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--clay); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 28px 0 20px; align-items: start; }
.gallery { position: sticky; top: 96px; }
.gallery-main { aspect-ratio: 1/1.06; border-radius: 20px; overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow-md); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 72px; height: 80px; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: .65; transition: all .2s; background: var(--bg-soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--clay); opacity: 1; }

.pdp-info h1 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 8px; }
.pdp-price { font-family: var(--serif); font-size: 30px; margin: 18px 0 6px; }
.pdp-rating { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 22px; }
.pdp-desc { color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.pdp-desc p { margin: 0 0 14px; } .pdp-desc ul { padding-left: 20px; margin: 0 0 14px; } .pdp-desc li { margin: 5px 0; }
.divider { height: 1px; background: var(--line); margin: 26px 0; }

.buy-row { display: flex; align-items: stretch; gap: 12px; margin: 8px 0 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.qty button { width: 46px; height: 54px; font-size: 19px; color: var(--ink); transition: background .15s; }
.qty button:hover { background: var(--bg-soft); }
.qty span { min-width: 40px; text-align: center; font-weight: 600; font-size: 16px; }
.buy-stack { display: flex; flex-direction: column; gap: 12px; }
.avail { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; margin-bottom: 20px; }
.avail .pip { width: 8px; height: 8px; border-radius: 50%; }
.avail.ok .pip { background: #3f9d52; box-shadow: 0 0 0 4px rgba(63,157,82,.16); } .avail.ok { color: var(--olive); }
.avail.no .pip { background: #b0392f; } .avail.no { color: #b0392f; }
.assurances { display: grid; gap: 12px; margin-top: 4px; }
.assurance { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--ink-soft); }
.assurance svg { width: 19px; height: 19px; color: var(--clay); flex: none; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.scrim { position: fixed; inset: 0; background: rgba(20,16,12,.42); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 90; backdrop-filter: blur(2px); }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; background: var(--bg);
  z-index: 100; transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 21px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.summary-row .lab { color: var(--ink-soft); font-size: 14px; }
.summary-row.total { margin: 12px 0 16px; } .summary-row.total .lab { color: var(--ink); font-weight: 600; font-size: 16px; }
.summary-row.total .val { font-family: var(--serif); font-size: 26px; }
.ship-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ship-note svg { width: 15px; height: 15px; flex: none; }

.line { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 78px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); flex: none; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-info { flex: 1; min-width: 0; }
.line-title { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.line-title a:hover { color: var(--clay); }
.line-price { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.line-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.qty-sm { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty-sm button { width: 30px; height: 32px; font-size: 15px; color: var(--ink); }
.qty-sm span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 600; }
.line-remove { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.line-remove:hover { color: var(--clay); }
.line-total { font-family: var(--serif); font-size: 16px; }

.empty { text-align: center; padding: 70px 24px; }
.empty svg { width: 56px; height: 56px; color: var(--line); margin: 0 auto 18px; }
.empty h3 { font-size: 24px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 0 22px; }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 44px; padding: 20px 0 0; align-items: start; }
.cart-lines { }
.cart-lines .line { padding: 22px 0; }
.cart-lines .line-img { width: 104px; height: 116px; }
.order-summary { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.order-summary h3 { font-size: 22px; margin-bottom: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #e9e1d4; margin-top: 40px; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #b3a895; margin-bottom: 16px; font-weight: 600; }
.site-footer a { display: block; color: #d8cfc0; font-size: 14.5px; padding: 6px 0; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.foot-note { color: #9b9080; max-width: 280px; font-size: 14px; margin-top: 14px; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid #3a342b; background: #2c261f; color: #fff; font-size: 14px; }
.newsletter input:focus { outline: none; border-color: var(--clay); }
.newsletter button { padding: 12px 20px; border-radius: 999px; background: var(--clay); color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid #38322a; margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #9b9080; font-size: 13px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; transform: translateY(20px); opacity: 0; transition: all .35s var(--ease); }
.toast.show { transform: none; opacity: 1; }
.toast svg { width: 18px; height: 18px; color: #8fd49f; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 460px; }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .nav { display: none; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .section { padding: 50px 0; }
  .hero { padding: 36px 0 20px; }
  .hero-stats { gap: 22px; }
  .quick-add { transform: none; opacity: 1; } /* always tappable on touch */
  .result-count { width: 100%; margin: 4px 0 0; }
}
