/* =========================================================
   HEZAR — Furniture and more
   Bilingual (RTL / LTR) storefront styles
   ========================================================= */

:root {
  --ink: #141414;
  --ink-2: #2e2c29;
  --muted: #6f6a63;
  --bg: #faf8f5;
  --surface: #ffffff;
  --cream: #f3eee6;
  --sand: #e8dfd2;
  --line: #e7e0d5;
  --wood: #9a7149;
  --wood-d: #6f5034;
  --wa: #1fb855;
  --wa-d: #169446;
  --sale: #b4472e;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .06);
  --shadow-lg: 0 24px 60px rgba(20, 20, 20, .14);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --f-head: "Jost", "Alexandria", system-ui, sans-serif;
  --f-body: "Jost", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
html[lang="ar"] { --f-body: "IBM Plex Sans Arabic", "Jost", system-ui, sans-serif; --f-head: "Alexandria", "Jost", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  opacity: 0; transition: opacity .35s ease;
}
body.ready { opacity: 1; }
body.drawer-open, body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.25; margin: 0; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: #f3eee6; }

.ic { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .ic.flip { transform: scaleX(-1); }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--wood);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 400; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 400; }
.h1 em, .h2 em { font-style: normal; color: var(--wood); }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head .h2 { margin-top: 10px; }
.center { text-align: center; }
.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 500; font-size: 15px;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 20, 20, .15); }
.btn:active { transform: translateY(0); }
.btn-dark { --bg: var(--ink); }
.btn-dark:hover { --bg: #000; }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { --bg: var(--cream); box-shadow: none; }
.btn-outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-wa { --bg: var(--wa); --fg: #fff; }
.btn-wa:hover { --bg: var(--wa-d); box-shadow: 0 10px 24px rgba(31, 184, 85, .3); }
.btn-block { width: 100%; }
.btn-lg { min-height: 58px; font-size: 16px; }
.btn .ic { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .ic { transform: scaleX(-1) translateX(4px); }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; transition: background .2s;
}
.icon-btn:hover { background: var(--cream); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
/* blur lives on a pseudo-element: backdrop-filter on the header itself would become
   the containing block for the fixed .mobile-nav and collapse it to the header's height */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 248, 245, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(20, 20, 20, .04); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; direction: ltr; }
.brand-mark { width: 26px; color: var(--ink); }
.brand-light .brand-mark { color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: "Jost", sans-serif; }
.brand-text b { font-weight: 400; font-size: 25px; letter-spacing: .2em; }
.brand-text small { font-size: 10.5px; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .55); }
.main-nav { display: flex; gap: 4px; margin-inline: auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; }
.main-nav a:hover { background: var(--cream); }
.main-nav a.active { background: var(--ink); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: background .2s;
}
.lang-btn:hover { background: var(--cream); }
.lang-btn .ic { width: 17px; height: 17px; }
.lang-btn span { font-family: "IBM Plex Sans Arabic", "Jost", sans-serif; }
.cart-count {
  position: absolute; top: 2px; inset-inline-end: 0;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--wood); color: #fff; font-size: 11px; font-weight: 600; line-height: 19px; text-align: center;
}
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.menu-toggle { display: none; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); z-index: 49;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  overflow-y: auto; overscroll-behavior: contain;
  animation: slideDown .3s var(--ease);
}
.mobile-nav[hidden] { display: none; }
@media (min-width: 901px) { .mobile-nav { display: none; } }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a { font-family: var(--f-head); font-size: 26px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.mobile-nav nav a.active { color: var(--wood); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .h1 { margin: 18px 0 22px; }
.hero-copy .lead { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats b { display: block; font-family: "Jost", sans-serif; font-size: clamp(26px, 3vw, 36px); font-weight: 400; line-height: 1.1; }
.hero-stats span { font-size: 14px; color: var(--muted); }
.hero-visual { position: relative; aspect-ratio: 4 / 4.6; }
.hero-visual .hv-main {
  position: absolute; inset: 0 0 0 12%; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden; background: var(--sand);
}
[dir="rtl"] .hero-visual .hv-main { inset: 0 12% 0 0; }
.hero-visual .hv-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .hv-mark {
  position: absolute; bottom: 10%; inset-inline-start: 0; width: 34%; aspect-ratio: 1;
  border-radius: var(--radius); overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow-lg);
}
.hero-visual .hv-mark img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
  position: absolute; top: 12%; inset-inline-end: -8px;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-lg); font-size: 14px;
}
[dir="rtl"] .hero-chip { padding: 12px 12px 12px 18px; }
.hero-chip i { width: 38px; height: 38px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; color: var(--wood); }
.hero-chip b { display: block; font-weight: 600; line-height: 1.2; }
.hero-chip small { color: var(--muted); }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; background: var(--surface); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; direction: ltr; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font-family: "Jost", sans-serif; font-size: 18px; letter-spacing: .2em; color: var(--muted); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; background: var(--wood); border-radius: 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- categories ---------- */
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.06); }
.cat-body { padding: 24px; position: relative; }
.cat-count { position: absolute; top: 22px; inset-inline-end: 24px; font-family: "Jost", sans-serif; font-size: 14px; color: var(--muted); }
.cat-body h3 { font-size: 24px; padding-inline-end: 36px; }
.cat-body p { color: var(--muted); margin: 6px 0 18px; font-size: 15px; }

/* ---------- product cards ---------- */
.grid { display: grid; gap: 24px; }
.products-grid { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img { transform: scale(1.04); }
.card:hover .card-media img.alt { opacity: 1; }
.card-cta {
  position: absolute; inset-inline: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); font-size: 14px; font-weight: 500;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease);
}
.card-cta .ic { width: 16px; height: 16px; }
.card:hover .card-cta { opacity: 1; transform: none; }
.badge {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2;
  padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500;
}
.card-body { padding: 18px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 12.5px; color: var(--wood); letter-spacing: .04em; }
.card-title { font-size: 18px; margin: 4px 0 10px; font-weight: 500; }
.card-title a:hover { color: var(--wood); }
.card-swatches { display: flex; gap: 6px; margin-bottom: 14px; }
.card-swatches i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.card-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.add-btn { background: var(--cream); flex: none; }
.add-btn:hover { background: var(--ink); color: #fff; }
/* already in cart */
.add-btn .ic + .ic { display: none; }
.card.in-cart { border-color: var(--wa); }
.card.in-cart .add-btn { background: var(--wa); color: #fff; }
.card.in-cart .add-btn:hover { background: var(--wa-d); }
.card.in-cart .add-btn .ic:first-child { display: none; }
.card.in-cart .add-btn .ic + .ic { display: block; }
.incart-pill {
  position: absolute; bottom: 14px; inset-inline-start: 14px; z-index: 2; display: none; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px; background: var(--wa); color: #fff; font-size: 12px; font-weight: 500; transition: opacity .3s;
}
.incart-pill .ic { width: 14px; height: 14px; }
.card.in-cart .incart-pill { display: inline-flex; }
.card:hover .incart-pill { opacity: 0; }
.pd-incart {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(31, 184, 85, .1); color: var(--wa-d); font-size: 14px; font-weight: 500;
}
.pd-incart[hidden] { display: none; }
.pd-incart .ic { width: 18px; height: 18px; flex: none; }
.pd-incart span { flex: 1; }
.pd-incart button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.card { position: relative; }
.qv-btn {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; width: 40px; height: 40px;
  background: rgba(255, 255, 255, .94); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease), background .2s, color .2s;
}
.qv-btn .ic { width: 18px; height: 18px; }
.card:hover .qv-btn, .qv-btn:focus-visible { opacity: 1; transform: none; }
.qv-btn:hover { background: var(--ink); color: #fff; }
@media (hover: none) { .qv-btn { opacity: 1; transform: none; } }

/* ---------- quick view ---------- */
body.qv-open { overflow: hidden; }
.qv { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.qv-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .5); opacity: 0; transition: opacity .3s; }
.qv-box {
  position: relative; width: min(960px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .3s, transform .35s var(--ease);
}
.qv-open .qv { visibility: visible; }
.qv-open .qv-backdrop { opacity: 1; }
.qv-open .qv-box { opacity: 1; transform: none; }
.qv-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; background: var(--surface); box-shadow: var(--shadow); }
.qv-content { display: grid; grid-template-columns: 1.05fr 1fr; }
.qv-gallery { padding: 20px; display: grid; gap: 12px; align-content: start; }
.qv-main { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }
.qv-main img { width: 100%; height: 100%; object-fit: cover; animation: fadeUp .35s var(--ease); }
.qv-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qv-thumbs button { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); opacity: .6; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s, outline-color .2s; }
.qv-thumbs button.active, .qv-thumbs button:hover { opacity: 1; }
.qv-thumbs button.active { outline-color: var(--ink); }
.qv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qv-info { padding: 32px 28px 28px; padding-inline-start: 8px; display: flex; flex-direction: column; }
.qv-title { font-size: 26px; font-weight: 500; margin: 4px 0 10px; padding-inline-end: 40px; }
.qv-short { color: var(--muted); margin: 0 0 14px; }
.qv-price { padding: 14px 0; border-block: 1px solid var(--line); }
.qv-price .price-now { font-size: 26px; }
.qv-info .pd-buy { margin: 22px 0 12px; }
.qv-more { align-self: center; margin-top: 18px; font-size: 14px; }
@media (max-width: 760px) {
  .qv { padding: 0; place-items: end stretch; }
  .qv-box { max-height: 92vh; border-radius: var(--radius) var(--radius) 0 0; transform: translateY(40px); }
  .qv-content { grid-template-columns: 1fr; }
  .qv-gallery { padding: 16px 16px 0; }
  .qv-info { padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); }
  .qv-title { font-size: 21px; }
}

.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.price-now { font-family: "Jost", sans-serif; font-weight: 500; font-size: 19px; white-space: nowrap; }
.price-now small { font-size: .62em; font-weight: 500; color: var(--muted); font-family: var(--f-body); }
.price del { color: var(--muted); font-size: 14px; font-family: "Jost", sans-serif; }
.price-unit { font-size: 13px; color: var(--muted); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 32px 28px; }
.feature i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--cream); color: var(--wood); margin-bottom: 20px; }
.feature i .ic { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: "Jost", sans-serif; font-size: 54px; font-weight: 300; line-height: 1; color: var(--wood); display: block; margin-bottom: 22px; }
.step h3 { font-size: 21px; margin-bottom: 8px; color: #fff; }
.step p { color: rgba(243, 238, 230, .7); }
.bg-ink .eyebrow { color: #c9a77c; }
.bg-ink .lead { color: rgba(243, 238, 230, .7); }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.stars { display: flex; gap: 3px; color: var(--wood); }
.stars .ic { width: 16px; height: 16px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.7; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption b { display: block; font-weight: 500; line-height: 1.3; }
.review figcaption small { color: var(--muted); }
.carousel-dots { display: none; justify-content: center; gap: 6px; margin-top: 18px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(20, 20, 20, .2); cursor: pointer; transition: all .3s; }
.carousel-dots button.on { width: 24px; background: var(--ink); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-family: var(--f-head); font-size: 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.5);
  background: var(--wood-d); color: #fff; padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; inset-block: -40%; inset-inline-end: -6%; width: 46%;
  background: url("../img/logo-mark.svg") no-repeat center / contain; opacity: .07; filter: invert(1);
}
.cta-band h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 400; }
.cta-band p { color: rgba(255, 255, 255, .78); margin-top: 10px; max-width: 54ch; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- page head ---------- */
.page-head { padding-block: clamp(40px, 6vw, 72px) 32px; }
.page-head .h1 { font-size: clamp(34px, 5vw, 56px); margin: 12px 0 10px; }

/* ---------- shop toolbar ---------- */
.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 20px; border-block: 1px solid var(--line); margin-bottom: 32px; position: sticky; top: var(--header-h); background: rgba(250, 248, 245, .94); backdrop-filter: blur(10px); z-index: 10; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; white-space: nowrap; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar-end { display: flex; gap: 10px; align-items: center; }
.search { position: relative; }
.search .ic { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input, .select {
  height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); outline: none; transition: border-color .2s;
}
.search input { width: 230px; padding-inline: 42px 16px; }
.select { padding-inline: 16px; }
.search input:focus, .select:focus { border-color: var(--ink); }
.shop-count { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--muted); }

/* ---------- product page ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); padding-block: 22px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb b { color: var(--ink); font-weight: 500; }
.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.pd-main { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .16s; }
.pd-main img.fade { opacity: 0; }
.pd-share-fab { position: absolute; top: 14px; inset-inline-end: 14px; background: rgba(255, 255, 255, .92); }
.pd-share-fab:hover { background: #fff; }
.pd-dots { display: none; position: absolute; bottom: 14px; inset-inline: 0; justify-content: center; gap: 6px; }
.pd-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(20, 20, 20, .25); transition: all .3s; }
.pd-dots i.on { width: 22px; background: var(--ink); }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pd-thumbs button { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; background: var(--sand); transition: border-color .2s, opacity .2s; opacity: .65; }
.pd-thumbs button:hover { opacity: 1; }
.pd-thumbs button.active { border-color: var(--ink); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-cat { color: var(--wood); font-size: 14px; letter-spacing: .04em; }
.pd-title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 400; margin: 8px 0 12px; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.pd-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pd-meta .ic { width: 16px; height: 16px; color: var(--wood); }
.pd-meta b { color: var(--ink); font-weight: 500; }
.pd-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.pd-short { margin: 18px 0 22px; font-size: 17px; color: var(--ink-2); }
.pd-price { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 0; border-block: 1px solid var(--line); }
.pd-price .price-now { font-size: 32px; }
.pd-price del { color: var(--muted); font-size: 18px; font-family: "Jost", sans-serif; }
.save-pill { padding: 4px 12px; border-radius: 999px; background: #f6e3dc; color: var(--sale); font-size: 13px; font-weight: 600; }
.pd-block { padding-top: 22px; }
.pd-label { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.pd-label b { color: var(--ink); font-weight: 500; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); position: relative; transition: transform .2s; }
.swatch:hover { transform: scale(1.08); }
.swatch.active::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.checklist .ic { width: 18px; height: 18px; color: var(--wa); margin-top: 3px; }
.pd-buy { display: flex; gap: 12px; margin: 28px 0 12px; }
.grow { flex: 1; }
.qty { display: inline-flex; align-items: center; height: 50px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { background: var(--cream); }
.qty .ic { width: 16px; height: 16px; }
.qty span { min-width: 28px; text-align: center; font-family: "Jost", sans-serif; font-weight: 500; }
.qty-sm { height: 34px; }
.qty-sm button { width: 32px; }
.qty .qty-rm { color: var(--muted); }
.qty .qty-rm:hover { color: var(--sale); background: #f8e6e1; }
.pd-perks { list-style: none; margin: 24px 0 0; padding: 18px 20px; display: grid; gap: 12px; background: var(--cream); border-radius: var(--radius); font-size: 14.5px; }
.pd-perks li { display: flex; gap: 12px; align-items: center; }
.pd-perks .ic { color: var(--wood); }

.share-box { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.share-title { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; }
.share-title .ic { width: 18px; height: 18px; }
.share-btns { display: flex; gap: 8px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); transition: all .2s; }
.share-btn .ic { width: 18px; height: 18px; }
.share-btn:hover { color: #fff; transform: translateY(-2px); border-color: transparent; }
.s-facebook:hover { background: #1877f2; }
.s-whatsapp:hover { background: #25d366; }
.s-x:hover { background: #000; }
.s-telegram:hover { background: #229ed9; }
.s-pinterest:hover { background: #e60023; }
.s-copy:hover { background: var(--wood); }

.pd-tabs { margin-top: clamp(48px, 6vw, 80px); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { padding: 14px 20px; font-size: 16px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-color: var(--ink); font-weight: 500; }
.tab-panel { padding-block: 32px; max-width: 860px; animation: fadeUp .4s var(--ease); }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: start; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 34%; font-weight: 400; color: var(--muted); padding-inline-end: 16px; }
.perks-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.perks-list li { display: flex; gap: 14px; }
.perks-list .ic { width: 26px; height: 26px; color: var(--wood); }
.perks-list b { display: block; font-weight: 500; }
.perks-list span { color: var(--muted); font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); }
.notfound { text-align: center; padding-block: 120px; display: grid; gap: 24px; justify-items: center; }

.buybar { display: none; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.form-card, .info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); outline: none; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: #fff; }
.info-card { background: var(--ink); color: #f3eee6; border: 0; display: grid; gap: 26px; }
.info-item { display: flex; gap: 16px; }
.info-item i { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #c9a77c; flex: none; }
.info-item small { display: block; color: rgba(243, 238, 230, .55); font-size: 13px; }
.info-item b, .info-item a { font-weight: 400; font-size: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(243, 238, 230, .72); padding-top: 72px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand p { margin: 20px 0 24px; max-width: 36ch; font-size: 15px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list .ic { width: 17px; height: 17px; color: #c9a77c; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .15); transition: all .2s; }
.socials a:hover { background: #fff; color: var(--ink); }
.socials .ic { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer-tag { font-family: "Jost", sans-serif; letter-spacing: .1em; }
.footer-toggle { all: unset; display: flex; align-items: center; justify-content: space-between; width: 100%; pointer-events: none; }
.footer-toggle:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; border-radius: 6px; }
.footer-toggle .ic { display: none; width: 18px; height: 18px; color: rgba(243, 238, 230, .55); transition: transform .25s; }

/* ---------- cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20, 20, 20, .4); z-index: 80; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); z-index: 90;
  background: var(--bg); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
}
[dir="rtl"] .cart-drawer { transform: translateX(-100%); }
.drawer-open .overlay { opacity: 1; visibility: visible; }
.drawer-open .cart-drawer { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot:empty { display: none; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-weight: 500; display: block; line-height: 1.4; }
.cart-color { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.cart-color i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.cart-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cart-row .price-now { font-size: 16px; }
.cart-remove { width: 36px; height: 36px; color: var(--muted); }
.cart-remove .ic { width: 17px; height: 17px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 17px; margin-bottom: 6px; }
.cart-total .price-now { font-size: 22px; }
.cart-empty { text-align: center; padding: 72px 0; display: grid; gap: 18px; justify-items: center; color: var(--muted); }
.cart-empty > .ic { width: 52px; height: 52px; stroke-width: 1.2; }

/* ---------- floating whatsapp / toast ---------- */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 12px 30px rgba(31, 184, 85, .4); transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }
.toast {
  position: fixed; bottom: 28px; left: 50%; z-index: 100; display: flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all .35s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .ic { width: 18px; height: 18px; color: #6ee7a0; }
.toast .ic-trash { color: rgba(255, 255, 255, .7); }
.toast.has-action.show { pointer-events: auto; padding-inline-end: 8px; }
.toast-action { margin-inline-start: 10px; height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 14px; font-weight: 600; transition: background .2s; }
.toast-action:hover { background: rgba(255, 255, 255, .26); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
/* ---------- cart page / checkout ---------- */
html:not([dir="rtl"]) .ic.back { transform: scaleX(-1); }
.co-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.co-steps li { display: flex; align-items: center; gap: 10px; }
.co-steps li a { display: flex; align-items: center; gap: 10px; }
.co-steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--line); }
.co-steps span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: "Jost", sans-serif; font-size: 13px; background: var(--surface); }
.co-steps b { font-weight: 500; }
.co-steps .active { color: var(--ink); }
.co-steps .active span { background: var(--ink); border-color: var(--ink); color: #fff; }
.co-steps .done span { background: var(--wood); border-color: var(--wood); color: #fff; }
.co-steps .done a:hover b { text-decoration: underline; }

.cart-page, .co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.cart-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.cart-table-head, .cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 130px 120px 130px 40px; gap: 18px; align-items: center; }
.cart-table-head { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cart-table-head span:first-child { grid-column: span 2; }
.cart-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item .cart-thumb { display: block; }
.ci-info { display: grid; gap: 2px; min-width: 0; }
.ci-info .cart-name { font-size: 16.5px; }
.ci-info .cart-color { margin: 4px 0 0; }
.ci-unit { display: none; }
.ci-price { display: grid; line-height: 1.3; }
.ci-price .price-now { font-size: 16px; }
.ci-price del, .ci-total del { font-size: 13px; color: var(--muted); }
.ci-total .price-now { font-size: 18px; }
.cart-table-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0 12px; flex-wrap: wrap; }
.btn-text { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); transition: color .2s; }
.btn-text:hover { color: var(--sale); }
.btn-text .ic { width: 16px; height: 16px; }
.cart-empty-page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 80px 24px; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-head h3 { font-size: 20px; font-weight: 500; }
.summary-head a { font-size: 14px; color: var(--wood); text-decoration: underline; text-underline-offset: 3px; }
.sum-lines { display: grid; gap: 14px; padding: 8px 0 16px; border-bottom: 1px solid var(--line); max-height: 320px; overflow-y: auto; }
.sum-line { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.sum-thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--sand); }
.sum-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.sum-thumb b { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 12px/22px "Jost", sans-serif; text-align: center; }
.sum-name { font-size: 14.5px; line-height: 1.4; min-width: 0; }
.sum-name small { display: block; color: var(--muted); font-size: 12.5px; }
.sum-line .price-now { font-size: 15px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.sum-row .price-now { font-size: 16px; }
.sum-muted { color: var(--muted); font-size: 14px; }
.sum-save b { color: var(--sale); font-weight: 500; font-family: "Jost", sans-serif; }
.sum-total { padding-top: 14px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.sum-total .price-now { font-size: 24px; }
.sum-perks { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 10px; font-size: 13.5px; color: var(--muted); }
.sum-perks li { display: flex; gap: 10px; align-items: flex-start; }
.sum-perks .ic { width: 18px; height: 18px; flex: none; color: var(--wood); margin-top: 2px; }

.co-grid[hidden] { display: none; }
html:not([dir="rtl"]) .link-arrow:hover .ic.back { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .link-arrow:hover .ic.back { transform: translateX(4px); }
.co-form { display: grid; gap: 22px; }
.co-title { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; }
.co-title:not(:first-child) { margin-top: 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.co-num { width: 30px; height: 30px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font: 500 14px "Jost", sans-serif; }
.field label em { color: var(--sale); font-style: normal; }
.field-error { color: var(--sale); font-size: 13px; min-height: 0; }
.field-error:empty { display: none; }
.field.invalid input, .field.invalid select { border-color: var(--sale); background: #fff; }
.co-notes textarea { min-height: 100px; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; }
.pay-opt:hover { border-color: var(--muted); }
.pay-opt:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt input { accent-color: var(--ink); width: 18px; height: 18px; margin: 3px 0 0; flex: none; }
.pay-body { display: grid; gap: 2px; }
.pay-body b { font-weight: 500; }
.pay-body small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14.5px; cursor: pointer; }
.check input { accent-color: var(--ink); width: 18px; height: 18px; }
.co-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: -8px; }

.co-success { max-width: 620px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 48px); }
.co-success-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; }
.co-success-ic .ic { width: 34px; height: 34px; stroke-width: 2.2; }
.co-order-no { font-size: 15px; color: var(--muted); padding: 8px 18px; border-radius: 999px; background: var(--cream); }
.co-order-no b { color: var(--ink); font-family: "Jost", sans-serif; font-weight: 500; }
.co-success-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.co-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); background: #f8e6e1; color: var(--sale); font-size: 14.5px; font-weight: 500; text-align: start; }
.co-alert .ic { width: 20px; height: 20px; margin-top: 1px; }
.co-ok-hint { font-size: 13.5px; color: var(--muted); max-width: 46ch; }
.co-success .link-arrow { margin-top: 6px; font-size: 14.5px; }
@media (max-width: 640px) { .co-success-actions { width: 100%; } .co-success-actions .btn { flex: 1 1 100%; } }

/* confirm dialog */
.dlg { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.dlg.show { visibility: visible; }
.dlg-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; }
.dlg-box { position: relative; width: min(420px, 100%); background: var(--surface); border-radius: var(--radius); padding: 32px 28px 26px; text-align: center; display: grid; justify-items: center; gap: 10px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.dlg.show .dlg-backdrop, .dlg.show .dlg-box { opacity: 1; }
.dlg.show .dlg-box { transform: none; }
.dlg-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); margin-bottom: 6px; }
.dlg-ic.danger { background: #f8e6e1; color: var(--sale); }
.dlg-ic .ic { width: 26px; height: 26px; }
.dlg-box h3 { font-size: 21px; font-weight: 500; }
.dlg-box p { color: var(--muted); font-size: 15px; margin: 0; }
.dlg-actions { display: flex; gap: 10px; width: 100%; margin-top: 14px; }
.dlg-actions .btn { flex: 1; }
.btn-danger { --bg: var(--sale); --fg: #fff; }
.btn-danger:hover { --bg: #963a25; box-shadow: 0 10px 24px rgba(180, 71, 46, .25); }
body.dlg-open { overflow: hidden; }

/* sticky checkout bar (cart page, mobile) + collapsible summary (checkout, mobile) */
.cart-bar, .sum-toggle { display: none; }

@media (max-width: 1100px) {
  .cart-page, .co-grid { grid-template-columns: 1fr; }
  .summary { position: static; }

  body[data-page="cart"]:has(.cart-bar) { padding-bottom: 84px; }
  body[data-page="cart"] .wa-float { display: none; }
  body[data-page="cart"] .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .cart-bar {
    display: flex; align-items: center; gap: 12px; position: fixed; inset-inline: 0; bottom: 0; z-index: 55;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    transition: transform .3s var(--ease);
  }
  .cart-bar.hide { transform: translateY(110%); }
  .cart-bar-info { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
  .cart-bar-info span { font-size: 13px; color: var(--muted); }
  .cart-bar-info .price-now { font-size: 19px; }
  .cart-bar .btn { min-height: 48px; padding: 0 22px; }

  #co-summary { order: -1; }
  .sum-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 16px 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    font-size: 15px; color: var(--wood-d); text-align: start;
  }
  .sum-toggle span { font-weight: 500; }
  .sum-toggle .ic-chevron { width: 18px; height: 18px; transition: transform .3s var(--ease); }
  .sum-toggle .price-now { margin-inline-start: auto; color: var(--ink); }
  #co-summary.open .sum-toggle { border-radius: var(--radius) var(--radius) 0 0; border-bottom-color: transparent; }
  #co-summary.open .sum-toggle .ic-chevron { transform: rotate(180deg); }
  #co-summary:not(.open) .summary { display: none; }
  #co-summary.open .summary { border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding-top: 4px; animation: fadeUp .3s var(--ease); }
}
@media (max-width: 760px) {
  .cart-table { padding: 4px 16px; }
  .cart-table-head { display: none; }
  .cart-item { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "thumb info rm" "thumb qty total"; gap: 8px 14px; align-items: start; }
  .cart-item .cart-thumb { grid-area: thumb; }
  .ci-info { grid-area: info; }
  .ci-price { display: none; }
  .ci-unit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 4px; font-size: 13px; color: var(--muted); }
  .ci-unit .price-now { font-size: 14px; color: var(--ink-2); }
  .ci-unit del { font-family: "Jost", sans-serif; }
  .ci-x { font-family: "Jost", sans-serif; }
  .ci-qty { grid-area: qty; align-self: end; }
  .ci-total { grid-area: total; align-self: end; }
  .cart-item .cart-remove { grid-area: rm; margin-top: -6px; }
  .pay-options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; margin-inline-start: -10px; }
  .header-inner { gap: 8px; }
  .brand { margin-inline-end: auto; }
  .hero-grid, .pd, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .cats-grid, .steps { grid-template-columns: 1fr; }
  .reviews { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .reviews::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 min(86%, 420px); scroll-snap-align: center; padding: 24px; }
  .reviews .review.reveal { opacity: 1; transform: none; }
  .carousel-dots { display: flex; }
  .cats-grid { gap: 16px; }
  .cat-card { display: grid; grid-template-columns: 42% 1fr; }
  .cat-media { aspect-ratio: auto; height: 100%; }
  .cat-body { padding: 20px; }
  .cat-body h3 { font-size: 20px; }
  .pd-gallery { position: static; }
  .cta-band { grid-template-columns: 1fr; }
  .toolbar { position: static; }
  .toolbar-end { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .lang-btn span { display: none; }
  .lang-btn { width: 40px; padding: 0; justify-content: center; }
  .brand-text b { font-size: 22px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .card-title { font-size: 15px; margin-bottom: 8px; }
  .card-cta { display: none; }
  .price-now { font-size: 16px; }
  .price del { font-size: 12px; }
  .add-btn { width: 38px; height: 38px; }
  .add-btn .ic { width: 17px; height: 17px; }
  .card-swatches { margin-bottom: 10px; }
  .badge { top: 10px; inset-inline-start: 10px; font-size: 11px; padding: 4px 10px; }
  .features { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 22px; }
  .feature i { grid-row: span 2; margin: 0; }
  .hero-stats { gap: 20px; justify-content: space-between; }
  .hero-actions .btn { flex: 1; }
  .hero-chip { inset-inline-end: 0; font-size: 12.5px; }
  .site-footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 8px; }
  .footer-brand { padding-bottom: 24px; text-align: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-brand p { margin: 14px auto 18px; font-size: 14px; }
  .socials { justify-content: center; }
  .footer-col { border-top: 1px solid rgba(255, 255, 255, .1); }
  .site-footer .footer-col h4 { margin: 0; font-size: 15px; }
  .footer-toggle { pointer-events: auto; cursor: pointer; padding-block: 16px; }
  .footer-toggle .ic { display: block; }
  .footer-col.open .footer-toggle .ic { transform: rotate(180deg); }
  .footer-col > ul { display: none; padding-bottom: 18px; font-size: 14px; }
  .footer-col.open > ul { display: grid; }
  .footer-bottom { justify-content: center; text-align: center; padding-block: 16px; font-size: 13px; gap: 4px; }
  .form-grid { grid-template-columns: 1fr; }
  .checklist, .perks-list { grid-template-columns: 1fr; }
  .pd-thumbs { display: none; }
  .pd-dots { display: flex; }
  .pd-main { margin-inline: -16px; border-radius: 0; }
  .breadcrumb { padding-block: 14px; font-size: 13px; }
  .share-box { flex-direction: column; align-items: stretch; }
  .share-btns { justify-content: space-between; }
  .share-btn { width: 46px; height: 46px; }
  /* sticky mobile buy bar on product pages */
  .page-product { padding-bottom: 84px; }
  .page-product .wa-float { display: none; }
  .buybar {
    display: flex; align-items: center; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 55;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .buybar-info { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
  .buybar-info b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar-add { border: 1px solid var(--line); }
  .buybar .btn { min-height: 46px; padding: 0 18px; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-start: 16px; }
}
