/* Bukhoor Shop, phase 1. Plain CSS. Layout uses logical properties so the Arabic (RTL) version mirrors itself. */
@font-face { font-family: "Noto Naskh Arabic Local"; src: url("../fonts/NotoNaskhArabic.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
:root {
  --dark: #28180f; --brown: #45291b; --brown-h: #5a3724; --gold: #d8ad65; --gold-l: #f2d7a3; --cream: #f8f2e8; --green: #446c51;
  --gold-d: #8a5d17;           /* gold dark enough for text/focus on cream */
  --muted: #6b5545; --line: rgba(216, 173, 101, .55);
  --e-hover: cubic-bezier(.22, 1, .36, 1); --e-reveal: cubic-bezier(.16, 1, .3, 1); --e-press: cubic-bezier(.4, 0, .2, 1);
  --e-sweep: cubic-bezier(.45, 0, .15, 1); --e-drawer: cubic-bezier(.2, .8, .2, 1); --e-bounce: cubic-bezier(.2, 1.4, .4, 1);
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --head-h: 62px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html.lock { overflow: hidden; }
body { overflow-x: clip; margin: 0; background: var(--cream); color: var(--dark); font: 16px/1.5 var(--sans); }
[lang="ar"] body, html[lang="ar"] { --serif: "Noto Naskh Arabic Local", "Amiri", "Traditional Arabic", Georgia, serif; --sans: "Noto Naskh Arabic Local", "Segoe UI", Tahoma, Arial, sans-serif; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 200; background: var(--dark); color: var(--gold-l); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold-d); outline-offset: 3px; border-radius: 4px; }
.topbar :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .sampler :focus-visible, .drawer-foot .btn-gold:focus-visible { outline-color: var(--gold-l); }

/* ---- top bar ---- */
.topbar { background: var(--dark); color: var(--cream); font-size: 14px; animation: fadeIn 250ms ease both; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.topbar-msg { display: flex; align-items: center; gap: 8px; transition: color 180ms; }
.tb-truck { color: var(--gold); transition: transform 180ms var(--e-hover); }
.topbar-msg:hover { color: var(--gold-l); }
.topbar-msg:hover .tb-truck { transform: translateX(3px); }
[dir="rtl"] .topbar-msg:hover .tb-truck { transform: translateX(-3px); }
.lang { display: flex; align-items: center; gap: 2px; color: var(--gold); }
.lang-btn { background: none; border: 0; min-width: 44px; min-height: 36px; padding: 0 6px; color: var(--gold); font-weight: 600; letter-spacing: .04em; position: relative; }
.lang-btn::after { content: ""; position: absolute; inset-inline: 10px; bottom: 6px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 180ms var(--e-hover); }
.lang-btn:hover::after, .lang-btn[aria-pressed="true"]::after { transform: scaleX(1); }
.lang-btn[aria-pressed="true"] { color: #fff; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid rgba(69, 41, 27, .08); transition: box-shadow 220ms; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(31, 18, 10, .10); }
.header-in { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.logo { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: .02em; color: var(--brown); text-decoration: none; line-height: 1; }
.logo-light { color: var(--cream); font-size: 32px; }
.main-nav { margin-inline-start: 16px; }
.main-nav ul { display: flex; gap: 8px; }
.main-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 15px; color: var(--brown); text-decoration: none; transition: color 180ms; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 8px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 240ms var(--e-hover); }
.main-nav a:hover { color: var(--gold-d); }
.main-nav a:hover::after { transform: scaleX(1); }
.icon-btn.nav-close, .icon-btn.menu-btn, .icon-btn.search-toggle, .icon-btn.search-x { display: none; }
.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { background: none; border: 0; min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; color: var(--brown); position: relative; border-radius: 8px; }
.icon-btn .ico { width: 26px; height: 26px; transition: transform 180ms var(--e-hover); }
.cart-btn { transition: transform 180ms var(--e-hover); }
.cart-btn:hover { transform: translateY(-2px); }
.cart-btn:hover .ico { transform: rotate(5deg); }
.cart-count { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--dark); font: 700 12px/20px var(--sans); text-align: center; }
.cart-count.bump { animation: bump 420ms var(--e-bounce); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

.search { position: relative; display: flex; align-items: center; width: 220px; height: 44px; border: 1px solid rgba(69, 41, 27, .28); border-radius: 8px; background: #fffdf9; transition: width 240ms var(--e-hover), border-color 220ms; }
.search:hover, .search:focus-within { border-color: var(--gold); }
.search:focus-within { width: 280px; }
.search-ico { position: absolute; inset-inline-start: 12px; width: 20px; height: 20px; color: var(--brown); transition: transform 220ms var(--e-hover); pointer-events: none; }
.search:hover .search-ico { transform: scale(1.05); }
.search input { width: 100%; height: 100%; border: 0; background: none; padding-inline: 42px 12px; font: 15px var(--sans); color: var(--dark); border-radius: 8px; }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--gold-d); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .9); border-color: var(--gold-d); }
.search input::placeholder { color: #75604f; }
.search input::-webkit-search-cancel-button { display: none; }
.suggest { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; width: 340px; max-width: calc(100vw - 24px); background: #fffdf9; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 32px rgba(40, 24, 15, .16); padding: 6px; z-index: 60; animation: fadeIn 180ms ease both; }
.sug { display: flex; align-items: center; gap: 12px; padding: 6px 8px; min-height: 52px; border-radius: 8px; cursor: pointer; }
.sug.on, .sug:hover { background: #f3e8d5; }
.sug-img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.sug-name { flex: 1; font-weight: 600; }
.sug-price { color: var(--muted); font-size: 14px; white-space: nowrap; }
.sug-none { padding: 14px 10px; color: var(--muted); }

/* ---- buttons ---- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 220ms var(--e-hover), box-shadow 220ms var(--e-hover), background-color 220ms, border-color 120ms, color 120ms; }
.btn-in { display: inline-flex; align-items: center; justify-content: center; gap: 10px; position: relative; z-index: 1; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); transform: translateX(-130%); pointer-events: none; }
.btn.sweep::after { animation: sweep 650ms var(--e-sweep); }
@keyframes sweep { to { transform: translateX(130%); } }
[dir="rtl"] .btn::after { transform: translateX(130%); }
[dir="rtl"] .btn.sweep::after { animation-name: sweepRtl; }
@keyframes sweepRtl { to { transform: translateX(-130%); } }
.btn-brown { background: var(--brown); color: #fff; }
.btn-gold { background: linear-gradient(180deg, #e3bd7c, var(--gold)); color: var(--dark); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.btn-outline { background: none; border-color: var(--brown); color: var(--brown); }
.btn:active, .btn.pressed { transform: scale(.97); transition-duration: 120ms; transition-timing-function: var(--e-press); }
.btn.pressed { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.btn.is-added, .btn.is-added:hover { background: var(--green); color: #fff; box-shadow: none; }
.flip { width: 1em; height: 1em; }
[dir="rtl"] .flip { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) {
  .btn-brown:hover { background: var(--brown-h); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .20); }
  .btn-gold:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, .20); }
  .btn-outline:hover { background: rgba(69, 41, 27, .06); }
  .btn:active { transform: scale(.97); }
}
.add-err { min-height: 0; font-size: 13px; color: #8a2a1a; }
.add-err:not(:empty) { margin-top: 6px; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; width: 100%; background: var(--dark); color: var(--gold-l); height: clamp(380px, 42vw, 680px); display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media picture { position: absolute; inset: 0; display: block; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 50%; transition: transform 1200ms var(--e-hover); }
[dir="rtl"] .hero-img { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { .hero:hover .hero-img { transform: scale(1.015); } [dir="rtl"] .hero:hover .hero-img { transform: scaleX(-1) scale(1.015); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 14, 8, .78) 0%, rgba(25, 14, 8, .45) 38%, rgba(25, 14, 8, 0) 62%); }
[dir="rtl"] .hero-shade { background: linear-gradient(270deg, rgba(25, 14, 8, .78) 0%, rgba(25, 14, 8, .45) 38%, rgba(25, 14, 8, 0) 62%); }
.hero-smoke { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-anchor { position: absolute; left: 70.3%; top: 35%; width: 1px; height: 1px; }
[dir="rtl"] .hero-anchor { left: 29.7%; }
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero-h { font-size: clamp(34px, 3.9vw, 58px); line-height: 1.08; max-width: 11em; text-wrap: balance; color: var(--gold-l); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); animation: rise 650ms var(--e-reveal) 120ms backwards; --rise: 12px; }
.hero-btn { min-height: 54px; padding: 0 34px; font-size: 20px; animation: rise 500ms var(--e-reveal) 250ms backwards; --rise: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(var(--rise, 12px)); } }
@keyframes fadeIn { from { opacity: 0; } }

/* ---- sections ---- */
.sec { padding-block: 40px 28px; scroll-margin-top: 84px; }
#best-sellers, #occasions, #sampler, #reviews { scroll-margin-top: 84px; }
.sec-title { display: flex; align-items: center; gap: 28px; justify-content: center; font-size: clamp(28px, 3vw, 38px); margin-bottom: 26px; text-align: center; }
.sec-title::before, .sec-title::after { content: ""; flex: 1; height: 1px; background: var(--gold); max-width: 220px; }

/* reveal: only hidden once app.js is running */
@media (prefers-reduced-motion: no-preference) {
  html.ready [data-reveal]:not(.is-in) { opacity: 0; }
  html.ready [data-reveal].is-in { animation: reveal 520ms var(--e-reveal) var(--d, 0ms) backwards; }
  html.ready .reveal-left.is-in { animation-name: revealLeft; animation-duration: 650ms; }
  html.ready .occ-grid [data-reveal].is-in { --rise: 14px; }
  html.ready .site-footer.is-in { --rise: 8px; }
}
[data-reveal] { --rise: 16px; }
@keyframes reveal { from { opacity: 0; transform: translateY(var(--rise)); } }
@keyframes revealLeft { from { opacity: 0; transform: translateX(-18px); } }
[dir="rtl"] .reveal-left { --flipx: 1; }
[dir="rtl"] html.ready .reveal-left.is-in { animation-name: revealRight; }
@keyframes revealRight { from { opacity: 0; transform: translateX(18px); } }

/* occasions */
.occ-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.occ { display: block; text-decoration: none; border-radius: 12px; background: linear-gradient(#f6ecdd, #efe3d0); padding: 4px 4px 0; box-shadow: 0 2px 8px rgba(54, 31, 15, .06); transition: transform 220ms var(--e-hover), box-shadow 220ms var(--e-hover); }
.occ-img { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 300 / 240; background: #e8dbc6; }
.occ-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms var(--e-hover); }
.occ-label { display: block; text-align: center; font: 600 19px/1 var(--serif); padding: 18px 6px; min-height: 56px; transition: color 220ms; }
@media (hover: hover) and (pointer: fine) {
  .occ:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(54, 31, 15, .14), inset 0 0 0 1.5px var(--gold); }
  .occ:hover img { transform: scale(1.04); }
  .occ:hover .occ-label { color: #8f6527; }
}
.occ:active { transform: scale(.98); }

/* product cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pp-flag { font-size: 13px; font-weight: 700; color: #7a4d12; background: #f1ddb4; border-radius: 6px; padding: 6px 10px; width: fit-content; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: linear-gradient(#fcf8f1, #f6eee1); border: 1px solid rgba(216, 173, 101, .35); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 220ms var(--e-hover), box-shadow 220ms var(--e-hover); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 400 / 338; background: #e8dbc6; }
.card-link { display: block; position: absolute; inset: 0; }
.card-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(30, 18, 10, .22), rgba(30, 18, 10, .55)); opacity: 0; transition: opacity 350ms ease; pointer-events: none; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .img2 { opacity: 0; transition: opacity 350ms ease; }
.burner { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 350ms ease; }
.smoke-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.burner-svg { position: absolute; right: 7%; bottom: 64px; width: 20%; height: auto; aspect-ratio: 100 / 130; filter: drop-shadow(0 4px 6px rgba(40, 24, 15, .45)); }
.quick-add { position: absolute; inset-inline: 14px; bottom: 12px; min-height: 44px; border: 0; border-radius: 8px; background: rgba(40, 24, 15, .88); color: var(--gold-l); font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity 220ms, transform 220ms var(--e-hover); display: none; z-index: 2; }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.card-name { font-size: 22px; }
.card-name a { text-decoration: none; }
.card-name a:hover { color: var(--gold-d); }
.card-notes { color: var(--muted); font-size: 14px; margin-top: 4px; min-height: 42px; }
.price { font-weight: 700; font-size: 18px; margin: 8px 0 12px; }
.price-lg { font-size: 26px; }
.add-btn { width: 100%; margin-top: auto; }
@media (hover: hover) and (pointer: fine) {
  .card:hover, .card:focus-within { transform: translateY(-7px) scale(1.01); box-shadow: 0 16px 32px rgba(40, 24, 15, .16); }
  .card:hover .img2, .card:focus-within .img2, .hovering .img2 { opacity: 1; }
  .hovering .burner { opacity: 1; }
  .hovering .card-link::after { opacity: 1; }
  .quick-add { display: block; }
  .card:hover .quick-add, .card:focus-within .quick-add { opacity: 1; transform: none; }
  .card:hover .quick-add:hover { background: var(--dark); }
}
.quick-add:focus-visible { opacity: 1; transform: none; }

/* sampler */
.sampler { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; border-radius: 14px; overflow: hidden; margin-block: 28px 10px; background: linear-gradient(135deg, var(--brown), #5d3a27 70%, #6a4430); color: var(--cream); box-shadow: 0 10px 30px rgba(40, 24, 15, .22); scroll-margin-top: 84px; }
.samp-media { position: relative; overflow: hidden; aspect-ratio: 976 / 540; transition: box-shadow 220ms; }
.samp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 700ms var(--e-hover), transform 700ms var(--e-hover); }
.samp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 62%, rgba(69, 41, 27, .96)); pointer-events: none; }
[dir="rtl"] .samp-media::after { background: linear-gradient(270deg, transparent 62%, rgba(69, 41, 27, .96)); }
.samp-open { opacity: 0; }
.samp-media.is-open .samp-open { opacity: 1; }
.samp-media.is-open .samp-closed { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .samp-media:hover img { transform: scale(1.02); } }
.spark { position: absolute; width: 22px; height: 22px; opacity: 0; pointer-events: none; z-index: 2; background: radial-gradient(circle, #fff 0 12%, rgba(242, 215, 163, .9) 22%, rgba(216, 173, 101, 0) 62%); }
.spark::before, .spark::after { content: ""; position: absolute; inset-inline: 50%; top: -6px; bottom: -6px; width: 2px; background: linear-gradient(transparent, #f2d7a3, transparent); transform: translateX(-1px); }
.spark::after { transform: translateX(-1px) rotate(90deg); }
.s1 { left: 30%; top: 50%; } .s2 { left: 52%; top: 47%; } .s3 { left: 44%; top: 70%; } .s4 { left: 77%; top: 49%; }
.sparkle .spark { animation: spark 500ms ease-in-out both; }
.sparkle .s2 { animation-delay: 140ms; } .sparkle .s3 { animation-delay: 280ms; } .sparkle .s4 { animation-delay: 420ms; }
@keyframes spark { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: .45; transform: scale(1.1); } 100% { opacity: 0; transform: scale(.9); } }
.samp-text { padding: 32px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.samp-text h2 { font-size: clamp(30px, 3.2vw, 44px); color: var(--cream); }
.samp-text p { max-width: 30em; font-size: 17px; color: #f1e6d4; }
.samp-text .price { color: var(--gold-l); margin: 4px 0 0; }
.samp-text .btn { width: auto; min-width: 200px; margin-top: 0; }

/* trust */
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-row li + li { border-inline-start: 1px solid var(--line); }
.trust-item { width: 100%; min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 14px; background: none; border: 0; padding: 8px 16px; text-align: start; font: 600 17px/1.25 var(--sans); color: var(--dark); }
.trust-ico { width: 52px; height: 52px; color: var(--brown); transition: transform 220ms var(--e-hover), color 220ms; }
@media (hover: hover) and (pointer: fine) { .trust-item:hover .trust-ico { transform: translateY(-2px) scale(1.06); color: var(--gold-d); } }
.trust-detail { max-width: 640px; margin: 14px auto 0; text-align: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fcf8f1; color: var(--muted); }

/* reviews */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { position: relative; margin: 0; background: linear-gradient(#fcf8f1, #f6eee1); border: 1px solid rgba(216, 173, 101, .4); border-radius: 12px; padding: 18px 20px 16px; transition: transform 220ms var(--e-hover), box-shadow 220ms; }
.stars { display: flex; gap: 2px; color: #d29a2f; margin-bottom: 10px; transition: filter 220ms; }
.stars .ico { width: 22px; height: 22px; }
.tag-sample { position: absolute; top: 14px; inset-inline-end: 14px; font: 700 11px/1 var(--sans); letter-spacing: .06em; color: #7a4d12; background: #f1ddb4; border-radius: 4px; padding: 5px 7px; }
.review blockquote { margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.review figcaption { font-weight: 700; font-size: 15px; color: var(--brown); }
.rev-note { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .review:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(54, 31, 15, .10); } .review:hover .stars { filter: brightness(1.08); } }

/* footer */
.site-footer { background: var(--dark); color: var(--cream); margin-top: 40px; padding-block: 34px; }
.foot-in { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; gap: 40px; align-items: center; }
.foot-brand p { margin-top: 8px; color: #e8dccb; max-width: 26em; }
.foot-brand .age { font-size: 13px; color: #cdbfac; }
.foot-contact { display: grid; gap: 4px; padding-inline: 32px; border-inline: 1px solid rgba(216, 173, 101, .3); }
.foot-contact li { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.foot-contact .ico { color: var(--gold); width: 20px; height: 20px; }
.foot-contact a { text-decoration: none; position: relative; transition: color 180ms; display: inline-flex; align-items: center; min-height: 36px; }
.foot-contact a:hover, .foot-links a:hover { color: var(--gold-l); }
.lic { font-weight: 600; flex-wrap: wrap; gap: 6px 10px; }
.lic small { font-weight: 400; color: #cdbfac; font-size: 12px; }
.foot-side { display: grid; gap: 16px; justify-items: end; }
.wa-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 8px; background: #1f7a45; color: #fff; font-weight: 700; text-decoration: none; transition: transform 220ms var(--e-hover), box-shadow 220ms, background-color 220ms; }
.wa-btn .ico { width: 24px; height: 24px; transition: transform 220ms var(--e-hover); }
@media (hover: hover) and (pointer: fine) { .wa-btn:hover { background: #26935a; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15, 98, 53, .22); } .wa-btn:hover .ico { transform: scale(1.07); } }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; transition: color 180ms; text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.foot-links a:hover { text-decoration-color: var(--gold); }
.foot-links a + a { border-inline-start: 1px solid rgba(216, 173, 101, .35); }
.wa-float { display: none; }

/* ---- drawer, backdrop, toast ---- */
.backdrop { position: fixed; inset: 0; background: rgba(20, 12, 7, .45); opacity: 0; transition: opacity 340ms ease; z-index: 90; }
.backdrop.on { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100vw); background: var(--cream); z-index: 100; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(20, 12, 7, .2);
  transform: translateX(100%); visibility: hidden; transition: transform 340ms var(--e-drawer), visibility 0s linear 340ms; }
[dir="rtl"] .drawer { transform: translateX(-100%); box-shadow: 8px 0 32px rgba(20, 12, 7, .2); }
.drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 20px; padding-inline: 20px 8px; border-bottom: 1px solid var(--line); min-height: 64px; }
.drawer-head h2 { font-size: 26px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.drawer-foot:empty { display: none; border: 0; }
.drawer-foot .totals { padding-top: 14px; }
.checkout-btn { width: 100%; margin-top: 14px; }
.empty { text-align: center; padding: 48px 10px; display: grid; gap: 20px; justify-items: center; color: var(--muted); }
.fd { margin-bottom: 14px; }
.fd-msg { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.fd-msg.fd-ok { color: var(--green); }
.fd-track { height: 8px; border-radius: 4px; background: #e6d9c2; overflow: hidden; }
.fd-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-l)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 500ms var(--e-hover); }
[dir="rtl"] .fd-fill { transform-origin: right; }
.lines { display: grid; gap: 14px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid rgba(69, 41, 27, .1); }
.line-img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #e8dbc6; }
.line-name { font: 600 17px var(--serif); }
.line-price { font-size: 14px; color: var(--muted); }
.line-total { font-weight: 700; white-space: nowrap; }
.line-ctl { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.line-rm { background: none; border: 0; text-decoration: underline; color: var(--muted); min-height: 44px; padding: 0 4px; font-size: 14px; }
.line-rm:hover { color: var(--dark); }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(69, 41, 27, .3); border-radius: 8px; background: #fffdf9; }
.qty-btn { width: 44px; height: 44px; background: none; border: 0; font-size: 20px; line-height: 1; border-radius: 8px; }
.qty-btn:hover { background: #f3e8d5; }
.qty-n { min-width: 28px; text-align: center; font-weight: 700; }
.qty input { width: 56px; height: 44px; border: 0; background: none; text-align: center; font: 700 16px var(--sans); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { display: none; }
.tot-row { display: flex; justify-content: space-between; padding: 4px 0; }
.tot-final { font-weight: 700; font-size: 19px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.tot-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.fly { position: fixed; left: 0; top: 0; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; z-index: 150; pointer-events: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); will-change: transform; }
.toast { position: fixed; inset-inline: 16px; bottom: 16px; margin-inline: auto; width: fit-content; max-width: calc(100vw - 32px); z-index: 120;
  position: fixed; clip: rect(0 0 0 0); overflow: hidden; width: 1px; height: 1px; padding: 0; white-space: nowrap; }
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .toast { clip: auto; overflow: visible; width: fit-content; height: auto; padding: 12px 20px; border-radius: 10px; background: var(--dark); color: var(--gold-l); font-weight: 600; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(8px); transition: opacity 200ms, transform 200ms; pointer-events: none; }
  .toast.on { opacity: 1; transform: none; }
}

/* ---- product page ---- */
.crumbs { display: flex; gap: 8px; align-items: center; padding-block: 18px 6px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.pp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; padding-block: 12px 40px; }
.pp-main { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 400 / 338; background: #e8dbc6; box-shadow: 0 8px 24px rgba(40, 24, 15, .12); }
.pp-main img { width: 100%; height: 100%; object-fit: cover; }
.pp-thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; width: 88px; min-height: 44px; }
.thumb.on { border-color: var(--gold); }
.thumb img { width: 100%; height: auto; }
.pp-info { display: flex; flex-direction: column; gap: 6px; }
.pp-info h1 { font-size: clamp(32px, 4vw, 46px); }
.pp-notes { color: var(--muted); margin-top: 4px; }
.vat-note { font-size: 13px; color: var(--muted); margin-top: -8px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-block: 10px; }
.qty-row label { font-weight: 600; }
.pp-add { width: 100%; max-width: 420px; margin-top: 4px; }
.acc { border-top: 1px solid var(--line); padding: 4px 0; }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; font: 600 19px var(--serif); min-height: 48px; display: flex; align-items: center; }
.acc p { padding-bottom: 14px; color: var(--muted); }
.pp-nf { padding: 60px 0; display: grid; gap: 18px; justify-items: start; }
.pp-main .burner-svg { right: 6%; bottom: 7%; width: 18%; }
.pp-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(30, 18, 10, .22), rgba(30, 18, 10, .5)); opacity: 0; transition: opacity 350ms ease; pointer-events: none; }
.pp-main.hovering::after { opacity: 1; }

/* ---- plain pages ---- */
.msg-page, .policy { padding-block: 56px 40px; min-height: 52vh; }
.msg-page h1, .policy h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 14px; }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 24px; max-width: 36em; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.co-sum { background: #fcf8f1; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.co-sum h2 { font-size: 22px; margin-bottom: 12px; }
.draft-banner { background: #fbe4b8; border: 2px solid #c58a1b; color: #4a2f05; border-radius: 10px; padding: 14px 18px; font-size: 16px; margin-bottom: 12px; }
.pol-lang { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.draft-pill { font: 700 13px var(--sans); background: #fbe4b8; color: #4a2f05; border: 1px solid #c58a1b; border-radius: 6px; padding: 3px 8px; vertical-align: middle; }
.policy h2 { font-size: 24px; margin: 28px 0 8px; }
.policy p { margin-bottom: 10px; max-width: 46em; }

/* ---- tablet ---- */
@media (max-width: 1024px) {
  .header-in { gap: 14px; }
  .main-nav { margin-inline-start: 0; }
  .main-nav a { padding: 0 8px; font-size: 14px; }
  .main-nav a::after { inset-inline: 8px; }
  .search { width: 170px; } .search:focus-within { width: 230px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .occ-grid { grid-template-columns: repeat(3, 1fr); }
  .rev-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-side { justify-items: start; grid-column: 1 / -1; }
  .foot-links { justify-content: flex-start; }
  .foot-contact { border-inline: 0; padding-inline: 0; }
  .samp-text { padding: 24px; }
  .trust-item { font-size: 15px; padding-inline: 8px; }
}

/* ---- phone ---- */
@media (max-width: 768px) {
  :root { --head-h: 56px; }
  html { scroll-padding-top: 70px; }
  .wrap { width: calc(100% - 28px); }
  .topbar { font-size: 12.5px; }
  .topbar-msg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .icon-btn.menu-btn, .icon-btn.search-toggle { display: inline-grid; }
  .header-in { gap: 6px; }
  .logo { font-size: 27px; margin-inline-end: auto; }
  .header-tools { margin-inline-start: 0; gap: 0; }
  .main-nav { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(300px, 84vw); background: var(--cream); z-index: 100; padding: 12px 12px 24px; margin: 0; box-shadow: 8px 0 32px rgba(20, 12, 7, .25);
    transform: translateX(-100%); visibility: hidden; transition: transform 320ms var(--e-drawer), visibility 0s linear 320ms; }
  [dir="rtl"] .main-nav { transform: translateX(100%); box-shadow: -8px 0 32px rgba(20, 12, 7, .25); }
  .menu-open .main-nav { transform: none; visibility: visible; transition-delay: 0s; }
  .menu-open .site-header { z-index: 95; }
  .icon-btn.nav-close { display: inline-grid; margin-inline-start: auto; }
  .main-nav { display: flex; flex-direction: column; }
  .main-nav ul { flex-direction: column; gap: 0; margin-top: 8px; }
  .main-nav a { width: 100%; min-height: 52px; font: 600 20px var(--serif); border-bottom: 1px solid rgba(69, 41, 27, .1); padding-inline: 8px; }
  .main-nav a::after { display: none; }
  .main-nav li { opacity: 0; transform: translateX(-12px); transition: opacity 260ms, transform 260ms var(--e-drawer); }
  [dir="rtl"] .main-nav li { transform: translateX(12px); }
  .menu-open .main-nav li { opacity: 1; transform: none; }
  .menu-open .main-nav li:nth-child(1) { transition-delay: 80ms; } .menu-open .main-nav li:nth-child(2) { transition-delay: 115ms; }
  .menu-open .main-nav li:nth-child(3) { transition-delay: 150ms; } .menu-open .main-nav li:nth-child(4) { transition-delay: 185ms; } .menu-open .main-nav li:nth-child(5) { transition-delay: 220ms; } .menu-open .main-nav li:nth-child(6) { transition-delay: 255ms; }
  .search { display: none; }
  .search-open .search { display: flex; position: fixed; inset: 0 0 auto 0; width: auto; height: 64px; margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--gold); z-index: 110; background: var(--cream); animation: fadeIn 180ms ease both; }
  .search-open .search:focus-within { width: auto; }
  .search-open .search input { padding-inline: 46px 52px; font-size: 17px; }
  .search-open .search-ico { inset-inline-start: 16px; }
  .search-open .icon-btn.search-x { display: inline-grid; position: absolute; inset-inline-end: 4px; top: 10px; }
  .search-open .suggest { position: fixed; top: 64px; inset-inline: 0; width: auto; max-width: none; border-radius: 0 0 12px 12px; }
  .search-open .site-header { z-index: 105; }

  .hero { height: auto; min-height: 700px; align-items: flex-start; }
  .hero-media { inset: 215px 0 0 0; height: auto; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); }
  .topbar-msg, .topbar-msg span { min-width: 0; }
  .hero-in { padding-top: 26px; gap: 16px; }
  .hero-h { font-size: clamp(32px, 9vw, 40px); max-width: 8em; }
  .hero-btn { min-height: 52px; padding: 0 26px; font-size: 18px; }
  .hero-img { object-position: 20% 50%; }
  .hero-shade { background: linear-gradient(180deg, rgba(25, 14, 8, .78) 0%, rgba(25, 14, 8, .5) 30%, rgba(25, 14, 8, 0) 55%); }
  [dir="rtl"] .hero-shade { background: linear-gradient(180deg, rgba(25, 14, 8, .78) 0%, rgba(25, 14, 8, .5) 30%, rgba(25, 14, 8, 0) 55%); }
  .hero-anchor { left: 52%; top: 35%; } [dir="rtl"] .hero-anchor { left: 48%; }
  .hero-in { align-items: flex-start; }

  .sec { padding-block: 28px 18px; }
  .sec-title { gap: 14px; margin-bottom: 18px; }
  .sec-title::before, .sec-title::after { max-width: 60px; }
  .occ-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .occ-label { font-size: 17px; padding: 12px 4px; min-height: 48px; }
  .grid4 { gap: 12px; }
  .grid3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card:active { transform: scale(.985); }
  .card-body { padding: 10px 10px 12px; }
  .card-name { font-size: 18px; }
  .card-notes { font-size: 13px; min-height: 54px; }
  .price { font-size: 16px; margin: 6px 0 10px; }
  .card .btn { padding: 0 8px; font-size: 14px; }
  .card .btn-in { gap: 6px; }
  .sampler { grid-template-columns: 1fr; }
  .samp-media::after { background: linear-gradient(180deg, transparent 70%, rgba(69, 41, 27, .9)); }
  .samp-text { padding: 20px 18px 26px; }
  .samp-text .btn { width: 100%; }
  .trust-row { grid-template-columns: 1fr 1fr; gap: 8px 0; }
  .trust-row li:nth-child(3) { border-inline-start: 0; }
  .trust-item { flex-direction: column; text-align: center; gap: 6px; font-size: 14px; min-height: 100px; }
  .trust-ico { width: 44px; height: 44px; }
  .foot-in { grid-template-columns: 1fr; gap: 22px; }
  .foot-side { justify-items: stretch; }
  .wa-btn { justify-content: center; }
  .foot-links a { padding: 0 10px; }
  .pp { grid-template-columns: 1fr; gap: 20px; }
  .pp-add { max-width: none; }
  .wa-float { position: fixed; bottom: 14px; inset-inline-end: 14px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; background: #1f7a45; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(15, 98, 53, .3); opacity: 0; pointer-events: none; transition: opacity 220ms; }
  .wa-float.show { opacity: 1; pointer-events: auto; }
  .wa-float .ico { width: 26px; height: 26px; }
  .msg-page, .policy { padding-block: 36px 28px; }
}
@media (max-width: 380px) { .card .btn .ico { display: none; } }

/* placeholders must look like placeholders; search highlight */
.ph { border: 1px dashed var(--gold); border-radius: 4px; padding: 1px 8px; color: var(--gold-l); }
.vatline { font-size: 13px; color: #cdbfac; }
.sug-name mark { background: #f1ddb4; color: inherit; border-radius: 2px; }
a[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

/* ---- reduced motion: nothing moves, everything still works ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 80ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .hero:hover .hero-img, .card:hover, .occ:hover, .btn:hover, .review:hover { transform: none !important; }
  .hero-smoke, .smoke-cv, .spark { display: none !important; }
  .samp-media img { transition: none !important; }
}

/* cards: price and button always pinned to the bottom, so every card lines up */
.card .price { margin-top: auto; }
.card .add-btn { margin-top: 0; }
.card-notes { margin-bottom: 8px; }
