/* MISKAVORA storefront — hand-authored CSS (no build step). Logical properties for RTL/LTR. */

@font-face { font-family: "Cairo"; src: url("../fonts/Cairo-Variable.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/CormorantGaramond-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/CormorantGaramond-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ivory: #F6F1EA;
  --ivory-deep: #EFE7DC;
  --stone: #E7DDD0;
  --white: #FFFFFF;
  --burgundy: #541D30;
  --burgundy-ink: #3F1524;
  --burgundy-soft: #F1E4E7;
  --champagne: #C3AA80;
  --champagne-soft: #EADFCB;
  --charcoal: #262126;
  --muted: #6B6066;
  --line: #E3D8CB;
  --line-strong: #CDBFAE;
  --ok: #2E6B45;
  --ok-soft: #E6F1E9;
  --warn: #8A5A12;
  --warn-soft: #F8EEDC;
  --danger: #A12A2A;
  --danger-soft: #F8E5E3;
  --focus: #1E5FA8;

  --font: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  --serif: "Cormorant", "Cairo", Georgia, serif;

  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 28px;
  --gutter: 16px;
  --maxw: 1240px;
  --header-h: 64px;
  --shadow: 0 1px 2px rgba(63, 21, 36, .06), 0 8px 24px -12px rgba(63, 21, 36, .18);
}
@media (min-width: 768px) { :root { --gutter: 28px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--ivory); color: var(--charcoal); font-family: var(--font); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
[dir="ltr"] body { line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--burgundy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
bdi { unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--burgundy-ink); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: 1.12rem; }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] .display { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; }
[dir="ltr"] h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
[dir="ltr"] h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 38em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .6em 1.4em; border-radius: var(--r-sm); border: 1.5px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--burgundy); color: #fff; }
.btn-primary:hover { background: var(--burgundy-ink); }
.btn-outline { background: transparent; border-color: var(--burgundy); color: var(--burgundy); }
.btn-outline:hover { background: var(--burgundy-soft); }
.btn-ghost { background: transparent; color: var(--burgundy); padding-inline: .6em; }
.btn-ghost:hover { background: var(--burgundy-soft); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: .35em 1em; font-size: .92rem; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--stone); color: #75696E; border-color: var(--stone); cursor: not-allowed; }
.btn .spinner { display: none; width: 1em; height: 1em; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--burgundy); font-weight: 600; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--burgundy); color: #F5E9DA; font-size: .86rem; }
.announce .wrap { display: flex; gap: 1.2em; justify-content: center; align-items: center; min-height: 36px; text-align: center; flex-wrap: wrap; padding-block: 4px; }
.announce strong { color: #fff; font-weight: 700; }
.announce .sep { width: 4px; height: 4px; background: var(--champagne); border-radius: 50%; display: none; }
@media (min-width: 768px) { .announce .sep { display: inline-block; } }
.demo-banner { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid #E8D3AE; font-size: .88rem; font-weight: 600; text-align: center; padding: 6px var(--gutter); }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 241, 234, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-h); gap: 8px; }
.header-start, .header-end { display: flex; align-items: center; gap: 2px; }
.header-end { justify-content: flex-end; }
.logo { display: block; text-decoration: none; line-height: 0; }
.logo img { object-fit: contain; }
.brand-wide { display: none; }
.brand-wide img { height: 52px; width: auto; aspect-ratio: 503 / 136; }
.brand-compact { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.brand-compact img { height: 40px; width: auto; aspect-ratio: 146 / 128; }
.brand-name { font-family: var(--font); font-weight: 700; font-size: .95rem; letter-spacing: .14em; color: var(--burgundy); }
/* very narrow phones: symbol only; the link keeps its accessible name ("MISKAVORA — home") */
@media (max-width: 419px) { .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .brand-compact img { height: 42px; } }
@media (max-width: 359px) { .header-row .icon-btn { width: 40px; height: 40px; } .header-row .lang-btn { padding: 0 8px; } }
@media (min-width: 640px) { .brand-wide { display: block; } .brand-compact { display: none; } }
@media (min-width: 1024px) { .brand-wide img { height: 64px; } }
.brand-drawer { height: 44px; width: auto; aspect-ratio: 503 / 136; object-fit: contain; }
.brand-plate { display: inline-flex; background: var(--ivory); border-radius: 14px; padding: 10px; box-shadow: 0 0 0 1px rgba(195, 170, 128, .55); margin-bottom: 12px; }
.brand-auth { display: block; margin: 0 auto 10px; height: 112px; width: auto; object-fit: contain; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--burgundy-ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--ivory-deep); }
.badge-count { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--burgundy); color: #fff; font-size: .72rem; font-weight: 700; line-height: 19px; text-align: center; }
.lang-btn { font-weight: 700; color: var(--burgundy); text-decoration: none; padding: 0 10px; height: 36px; display: inline-flex; align-items: center; border-radius: 18px; border: 1px solid var(--line-strong); font-size: .88rem; }
.lang-btn:hover { background: var(--white); }
.header-search { display: none; }
.main-nav { display: none; }
@media (min-width: 1024px) {
  .header-search { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line-strong); max-width: 280px; }
  .header-search input { border: 0; background: transparent; padding: 8px 2px; width: 220px; outline: none; }
  .header-search:focus-within { border-bottom-color: var(--burgundy); }
  .menu-toggle { display: none !important; }
  .mobile-search-btn { display: none !important; }
  .main-nav { display: block; border-top: 1px solid var(--line); }
  .main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 36px; }
  .main-nav a { display: block; padding: 11px 0; text-decoration: none; font-weight: 600; color: var(--charcoal); border-bottom: 2px solid transparent; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--burgundy); border-bottom-color: var(--champagne); }
}

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(38, 33, 38, .45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(88vw, 380px); background: var(--ivory); z-index: 61; transform: translateX(-100%); transition: transform .25s ease; display: flex; flex-direction: column; overflow-y: auto; }
[dir="rtl"] .drawer { transform: translateX(100%); }
.drawer.drawer-end { inset-inline-start: auto; inset-inline-end: 0; transform: translateX(100%); }
[dir="rtl"] .drawer.drawer-end { transform: translateX(-100%); }
.drawer.is-open { transform: none !important; }
.drawer.is-open + .drawer-backdrop, .drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--ivory); z-index: 1; }
.drawer-body { padding: 16px var(--gutter); flex: 1; }
.drawer-foot { padding: 12px var(--gutter); border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--ivory); }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.drawer nav .sub a { font-weight: 400; font-size: .96rem; padding-inline-start: 16px; color: var(--muted); }
body.no-scroll { overflow: hidden; }

.search-panel { display: none; padding: 10px 0 14px; }
.search-panel.is-open { display: block; }
.search-field { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 0 12px; }
.search-field input { flex: 1; border: 0; outline: none; padding: 12px 0; background: transparent; min-width: 0; }
.search-field:focus-within { border-color: var(--burgundy); }
.suggest { margin-top: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; text-decoration: none; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a:focus { background: var(--ivory); }
.suggest img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--ivory-deep); }

/* ---------- Hero ---------- */
.hero { position: relative; background: #F1EADF; overflow: hidden; }
.hero picture img { width: 100%; height: auto; }
.hero-copy { padding: 26px var(--gutter) 30px; }
.hero-copy h1 { font-size: clamp(2.1rem, 8vw, 3.8rem); line-height: 1.15; margin-bottom: .3em; }
[dir="ltr"] .hero-copy h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); line-height: 1.05; }
.hero-copy p { color: #594D53; font-size: 1.05rem; max-width: 30em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-rule { width: 64px; height: 2px; background: var(--champagne); margin-bottom: 18px; }
@media (min-width: 900px) {
  .hero { min-height: 460px; }
  .hero picture img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 75% center; }
  [dir="rtl"] .hero picture img { object-position: 75% center; }
  .hero-copy { position: relative; max-width: var(--maxw); margin-inline: auto; padding: 84px var(--gutter); }
  .hero-copy > div { max-width: 46%; }
  /* desktop art has its products on the right; Arabic copy sits on the left visually */
  [dir="rtl"] .hero-copy > div { margin-inline-start: auto; }
  [dir="ltr"] .hero-copy > div { margin-inline-end: auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: 40px; }
@media (min-width: 768px) { .section { padding-block: 64px; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }

.trust { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .trust { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .ti-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--burgundy-soft); color: var(--burgundy); display: grid; place-items: center; }
.trust-item h3 { margin: 0 0 2px; font-size: 1rem; }
.trust-item p { margin: 0; color: var(--muted); font-size: .92rem; }

/* category tiles */
.cat-tiles { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.cat-tiles > :first-child { grid-column: 1 / -1; }
@media (min-width: 768px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; } .cat-tiles > :first-child { grid-column: auto; } }
.cat-tile { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--stone); text-decoration: none; aspect-ratio: 4 / 3; }
@media (min-width: 768px) { .cat-tile { aspect-ratio: 4 / 4.4; } }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-tile:hover img { transform: scale(1.03); }
.cat-tile .cat-label { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(38, 20, 28, .72), rgba(38, 20, 28, 0)); color: #fff; }
.cat-tile .cat-label strong { display: block; font-size: 1.15rem; }
.cat-tile .cat-label span { font-size: .88rem; color: #F2E6D2; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; padding-top: 14px; border-top: 2px solid var(--champagne); }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--champagne); line-height: 1; margin-bottom: 6px; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--burgundy); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding-bottom: 16px; color: #4F4449; }

/* ---------- Product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.listing .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .listing .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .listing .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: 1; background: #F3EDE4; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .ph, .gallery-main .ph { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: var(--champagne); background: repeating-linear-gradient(135deg, #F3EDE4 0 14px, #EFE7DB 14px 28px); }
.ph-text { color: var(--muted); font-size: .8rem; text-align: center; padding-inline: 10px; }
.card-flags { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.flag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .74rem; font-weight: 700; background: var(--white); color: var(--burgundy); border: 1px solid var(--line); }
.flag-offer { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }
.flag-demo { background: var(--warn-soft); color: var(--warn); border-color: #E8D3AE; }
.wish-btn { position: absolute; top: 6px; inset-inline-end: 6px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--burgundy); display: grid; place-items: center; cursor: pointer; }
.wish-btn[aria-pressed="true"] svg { fill: var(--burgundy); }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-title { font-size: .95rem; font-weight: 700; line-height: 1.4; margin: 0; color: var(--charcoal); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-meta { font-size: .8rem; color: var(--muted); }
.card-price { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price { font-weight: 800; color: var(--burgundy); font-size: 1.05rem; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.card-actions { position: relative; z-index: 1; padding: 0 12px 12px; }
.card-actions .btn { width: 100%; min-height: 42px; font-size: .9rem; }
.stock-note { font-size: .8rem; font-weight: 600; }
.stock-in_stock { color: var(--ok); } .stock-low { color: var(--warn); } .stock-unavailable { color: var(--danger); } .stock-on_request { color: var(--warn); }

/* ---------- Listing page ---------- */
.page-head { padding-block: 20px 10px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line-strong); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; white-space: nowrap; font-size: .9rem; font-weight: 600; min-height: 38px; }
.chip[aria-current="page"], .chip.is-active { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }
.chip button { border: 0; background: transparent; cursor: pointer; padding: 0; color: inherit; font-size: 1.1em; line-height: 1; }
.listing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 40px; }
@media (min-width: 1024px) { .listing { grid-template-columns: 250px minmax(0, 1fr); } }
.listing-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.listing-bar .count { color: var(--muted); font-size: .92rem; }
.filters-aside { display: none; }
@media (min-width: 1024px) { .filters-aside { display: block; } .filters-open-btn { display: none !important; } }
.filter-group { border-bottom: 1px solid var(--line); padding-block: 14px; }
.filter-group:first-child { padding-top: 0; }
.filter-group legend, .filter-group h3 { font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; }
fieldset.filter-group { border-inline: 0; border-top: 0; margin: 0; padding-inline: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--burgundy); }
.range { display: flex; gap: 8px; }
.range input { width: 100%; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23541D30' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat; background-position: left 12px center; padding-inline-end: 32px; }
[dir="ltr"] .select { background-position: right 12px center; }

.empty { text-align: center; padding: 48px 16px; background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty h2, .empty h3 { margin-bottom: 6px; }
.empty .btn { margin-top: 12px; }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--champagne); }

/* pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--white); text-decoration: none; padding: 0 12px; }
.pagination [aria-current="page"] { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }
.pagination .disabled { color: #B2A6AA; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.input, .field input:not([type]), .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field input[type="number"], .field input[type="search"], .field input[type="date"], .field input[type="datetime-local"], .field input[type="url"], .field input[type="time"], .field select, .field textarea, .input-sm {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); outline: none; transition: border-color .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .variant-table input:focus, .variant-table select:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(84, 29, 48, .12); outline: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .86rem; font-weight: 600; margin-top: 4px; }
.req { color: var(--danger); }
.row-2 { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
.row-3 { display: grid; gap: 0 10px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
input[type="tel"], input[type="email"], .ltr-input { direction: ltr; text-align: start; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { text-align: right; }

/* ---------- Alerts / toast ---------- */
.alert { padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 14px; font-weight: 600; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: #BFD9C7; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: #E8D3AE; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: #E9BDB8; }
.alert-info { background: var(--white); color: var(--charcoal); border-color: var(--line); }
.toast-region { position: fixed; z-index: 90; inset-inline: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--charcoal); color: #fff; padding: 12px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow); max-width: 440px; width: 100%; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 40px; }
.pdp > * { min-width: 0; }
.buy-row .btn { white-space: normal; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.gallery-main { position: relative; aspect-ratio: 1; background: #F3EDE4; border-radius: var(--r-lg); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 70px; height: 70px; border-radius: var(--r-sm); border: 2px solid transparent; padding: 0; overflow: hidden; background: var(--ivory-deep); cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--burgundy); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.illus-note { position: absolute; bottom: 8px; inset-inline: 8px; background: rgba(255, 255, 255, .92); color: var(--warn); font-size: .76rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; text-align: center; }
.pdp-info h1 { margin-bottom: 4px; }
.pdp-sub { color: var(--muted); margin-bottom: 10px; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.pdp-price .price { font-size: 1.7rem; }
.disclosure { background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--champagne); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 16px; font-size: .94rem; }
.disclosure strong { color: var(--burgundy-ink); display: block; margin-bottom: 2px; }
.opt-group { margin-bottom: 16px; border: 0; padding: 0; }
.opt-group legend { font-weight: 700; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; min-width: 72px; justify-content: center; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); cursor: pointer; font-weight: 600; }
.opt input:checked + span { border-color: var(--burgundy); background: var(--burgundy-soft); color: var(--burgundy-ink); box-shadow: inset 0 0 0 1px var(--burgundy); }
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt input:disabled + span { color: #A89DA1; background: var(--ivory); text-decoration: line-through; cursor: not-allowed; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); }
.qty button { width: 44px; height: 46px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--burgundy); }
.qty input { width: 48px; text-align: center; border: 0; height: 46px; outline: none; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 10px; }
.buy-row .btn { flex: 1; }
.variant-status { min-height: 1.6em; margin-bottom: 10px; font-weight: 600; }
.info-list { border-top: 1px solid var(--line); margin-top: 18px; }
.info-list details { border-bottom: 1px solid var(--line); }
.info-list summary { cursor: pointer; padding: 14px 0; font-weight: 700; display: flex; justify-content: space-between; list-style: none; }
.info-list summary::-webkit-details-marker { display: none; }
.info-list summary::after { content: "+"; color: var(--burgundy); }
.info-list details[open] summary::after { content: "−"; }
.info-list .content { padding-bottom: 14px; color: #4F4449; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }
.sticky-buy { position: fixed; bottom: 0; inset-inline: 0; z-index: 45; background: var(--white); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; transform: translateY(110%); transition: transform .2s; }
.sticky-buy.is-visible { transform: none; }
.sticky-buy .sb-info { flex: 1; min-width: 0; }
.sticky-buy .sb-name { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- Cart & checkout ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 48px; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 12px; }
[dir="ltr"] .panel h2 { font-family: var(--font); font-weight: 700; font-size: 1.1rem; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 16px); }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line img, .cart-line .ph { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); background: var(--ivory-deep); }
.cart-line h3 { font-size: .98rem; margin: 0; }
.cart-line .ln-meta { color: var(--muted); font-size: .85rem; }
.cart-line .ln-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.cart-line.is-blocked { background: var(--danger-soft); margin-inline: -18px; padding-inline: 18px; }
.line-issue { color: var(--danger); font-size: .86rem; font-weight: 700; margin-top: 4px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 800; font-size: 1.15rem; color: var(--burgundy-ink); }
.sum-row .discount { color: var(--ok); }
.ship-meter { background: var(--ivory); border-radius: var(--r-sm); padding: 10px 12px; margin: 10px 0; font-size: .88rem; }
.ship-meter .bar { height: 6px; background: var(--stone); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.ship-meter .bar span { display: block; height: 100%; background: var(--burgundy); }
.ship-meter.ok { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; text-transform: uppercase; direction: ltr; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--burgundy); border-radius: var(--r-sm); background: var(--burgundy-soft); }
.choice-cards { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 12px; }
@media (min-width: 640px) { .choice-cards { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; background: var(--white); }
.choice:has(input:checked) { border-color: var(--burgundy); background: var(--burgundy-soft); }
.choice input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--burgundy); }
.mini-lines { max-height: 280px; overflow-y: auto; }
.mini-line { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding-block: 6px; }

/* ---------- Tracking ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; top: 40px; bottom: 0; inset-inline-start: 19px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--burgundy); }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); background: var(--white); color: var(--line-strong); }
.done .tl-dot { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.current .tl-dot { background: var(--white); border-color: var(--burgundy); color: var(--burgundy); box-shadow: 0 0 0 4px var(--burgundy-soft); }
.branch .tl-dot { border-color: var(--warn); color: var(--warn); }
.tl-title { font-weight: 700; }
.pending .tl-title { color: var(--muted); font-weight: 600; }
.tl-time { font-size: .85rem; color: var(--muted); }
.tl-note { background: var(--ivory); border-radius: var(--r-sm); padding: 8px 10px; margin-top: 6px; font-size: .92rem; }
.last-update { display: flex; gap: 12px; align-items: flex-start; background: var(--champagne-soft); border-radius: var(--r); padding: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.token-box { display: flex; gap: 8px; align-items: stretch; }
.token-box input { flex: 1; min-width: 0; direction: ltr; font-size: .85rem; background: var(--ivory); }

/* ---------- Account ---------- */
.acc-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--ivory); font-weight: 700; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--ivory-deep); color: var(--burgundy-ink); white-space: nowrap; }
.status-cancelled, .status-refused, .status-delivery_failed { background: var(--danger-soft); color: var(--danger); }
.status-delivered { background: var(--ok-soft); color: var(--ok); }
.status-awaiting_stock { background: var(--warn-soft); color: var(--warn); }
.order-cards { display: grid; gap: 10px; }
.order-card { display: block; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); text-decoration: none; }
.order-card .oc-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Auth ---------- */
.auth-box { max-width: 460px; margin: 32px auto 56px; }

/* ---------- Static pages ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-inline-start: 1.2em; }
.draft-flag { background: var(--warn-soft); border: 1px solid #E8D3AE; color: var(--warn); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--burgundy-ink); color: #E9DCCF; padding-block: 44px 24px; margin-top: 0; }
.site-footer a { color: #F4EADF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand img { height: 116px; width: auto; object-fit: contain; }
.site-footer h2 { color: var(--champagne); font-size: .98rem; font-family: var(--font); font-weight: 700; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(195, 170, 128, .3); margin-top: 32px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; color: #CDBBAE; }

/* ---------- Dialog / cart drawer ---------- */
.added-line { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.added-line img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; }
.wa-float { position: fixed; bottom: 16px; inset-inline-start: 16px; z-index: 44; width: 52px; height: 52px; border-radius: 50%; background: #1E7C4A; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
body.has-sticky-buy .wa-float { bottom: 88px; }

/* errors */
.error-page { text-align: center; padding: 72px 16px; }
.error-page .code { font-family: var(--serif); font-size: 4.5rem; color: var(--champagne); line-height: 1; margin-bottom: 8px; }

@media print {
  .site-header, .announce, .site-footer, .sticky-buy, .wa-float, .no-print { display: none !important; }
  body { background: #fff; }
}
