:root {
  --bg: #f4f0ea;
  --ink: #161616;
  --muted: #6d675f;
  --line: rgba(22,22,22,.12);
  --card: #fff;
  --header: 72px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Segoe UI", "PingFang SC", "Noto Sans", sans-serif;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: "Palatino Linotype", Palatino, "Times New Roman", serif; font-weight: 500; letter-spacing: .01em; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: .95; }
h2 { font-size: clamp(28px, 4vw, 44px); }
.skip { position: absolute; left: 12px; top: -40px; background: #111; color: #fff; padding: 8px 12px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.header {
  position: sticky; top: 0; z-index: 30; height: var(--header);
  display: flex; align-items: center; gap: 16px; padding: 0 18px;
  background: rgba(244,240,234,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 650; letter-spacing: .22em; font-size: 15px; }
.logo svg { width: 34px; height: 18px; }
.desk { display: flex; gap: 4px; margin-left: 12px; }
.desk button, .text, .icon {
  background: transparent; border: 0; border-radius: 999px; padding: 8px 12px;
}
.desk button:hover, .icon:hover, .text:hover { background: rgba(0,0,0,.05); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.icon { width: 40px; height: 40px; display: grid; place-items: center; }
.lang { font-size: 12px; letter-spacing: .08em; font-weight: 700; }
#bagCount { font-size: 13px; font-weight: 700; }
.menu-panel, .drawer {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.drop { position: relative; }
.menu-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  width: min(520px, 80vw); max-height: min(70vh, 520px); overflow: auto; padding: 12px;
}
.drop.open .menu-panel { display: grid; gap: 4px; }
.menu-panel button, .drawer button.item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: start; background: transparent; border: 0; border-radius: 10px; padding: 8px 10px;
}
.menu-panel button small, .drawer small { color: var(--muted); }
.drawer {
  position: fixed; inset: var(--header) 12px auto 12px; z-index: 40;
  max-height: calc(100vh - var(--header) - 24px); overflow: auto; padding: 12px;
}
.hero { position: relative; min-height: 78vh; background: #111; color: #fff; }
.hero video, .hero img { width: 100%; height: 78vh; object-fit: cover; display: block; background: #111; }
.hero-copy { position: absolute; left: 6vw; bottom: 8vh; max-width: 640px; }
.hero-copy p { letter-spacing: .18em; text-transform: uppercase; font-size: 12px; margin-bottom: 10px; }
.btn {
  border: 0; background: #161616; color: #fff; border-radius: 999px;
  padding: 12px 18px; margin-top: 16px;
}
.btn.light { background: #fff; color: #161616; }
.btn.ghost { background: transparent; color: inherit; border: 1px solid var(--line); }
.block { padding: 48px 0; }
.headrow { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.rail { display: flex; gap: 14px; overflow: auto; scroll-snap-type: x mandatory; padding: 0 16px 8px; }
.card {
  flex: 0 0 260px; scroll-snap-align: start; background: var(--card);
  border-radius: 18px; padding: 12px; text-align: start; border: 0;
}
.card img { height: 220px; width: 100%; object-fit: contain; background: #f7f5f2; border-radius: 12px; }
.card .tag { color: #8a5a12; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.card h3 { font-family: inherit; font-size: 16px; font-weight: 650; margin: 8px 0 4px; }
.card p { color: var(--muted); font-size: 13px; }
.card strong { display: block; margin-top: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(var(--max), calc(100% - 32px)); margin: 10px auto 30px; }
.tile { position: relative; border: 0; padding: 0; border-radius: 18px; overflow: hidden; min-height: 320px; background: #111; color: #fff; text-align: start; }
.tile img { width: 100%; height: 420px; object-fit: cover; }
.tile span { position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.tile small { letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.feature {
  width: min(var(--max), calc(100% - 32px)); margin: 10px auto 30px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center;
  background: #fff; border-radius: 24px; overflow: hidden;
}
.feature img { width: 100%; height: 420px; object-fit: cover; }
.feature div { padding: 24px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.trio button { border: 0; padding: 0; background: #fff; border-radius: 18px; overflow: hidden; text-align: start; }
.trio img { height: 220px; width: 100%; object-fit: cover; }
.trio strong { display: block; padding: 14px; font-family: Palatino, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.center { text-align: center; }
.footer { background: #161616; color: #f4efe6; padding: 36px 0 18px; }
.foot { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.footer p, .footer button { color: #d9d2c8; }
#footCols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#footCols button { display: block; background: transparent; border: 0; text-align: start; padding: 4px 0; color: #f4efe6; }
.news { width: min(var(--max), calc(100% - 32px)); margin: 18px auto; display: grid; gap: 8px; }
.news div { display: flex; gap: 8px; }
.news input { flex: 1; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; padding: 12px 14px; }
.legal { width: min(var(--max), calc(100% - 32px)); margin: 0 auto 12px; color: #9c958b; font-size: 13px; }
.fine { color: #9c958b; font-size: 13px; }
dialog {
  border: 0; border-radius: 20px; width: min(720px, calc(100% - 24px));
  max-height: min(86vh, 820px); padding: 0; background: #fff; color: var(--ink);
}
dialog::backdrop { background: rgba(0,0,0,.45); }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
#sheetBody, #langList { padding: 16px 18px 22px; overflow: auto; }
#langList { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#langList button, .list-btn { text-align: start; background: #f6f3ee; border: 0; border-radius: 12px; padding: 12px; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail img { width: 100%; background: #f6f3ee; border-radius: 16px; }
.price { font-size: 22px; margin: 8px 0; }
.actions, .qty, .head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions { margin-top: 14px; }
.actions .btn { margin-top: 0; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.bag-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; background: #f6f3ee; border-radius: 12px; padding: 10px 12px; }
.stack { display: grid; gap: 8px; margin-top: 12px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #161616; color: #fff; border-radius: 999px; padding: 10px 16px; z-index: 60;
}
.search { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
@media (max-width: 900px) {
  .desk { display: none; }
  .split, .feature, .trio, .foot, .detail, #langList { grid-template-columns: 1fr; }
  .hero video, .hero img, .tile img { height: 62vh; }
  .feature img { height: 280px; }
}
[dir="rtl"] .tools { margin-left: 0; margin-right: auto; }
[dir="rtl"] .desk { margin-left: 0; margin-right: 12px; }
