/* HAMSA | همسة — design tokens + components (loaded after style.css, before motion.css) */
:root {
  /* spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  /* radii */
  --r-sm: 3px; --r: 6px; --r-lg: 14px; --r-pill: 999px;
  /* elevation */
  --e1: 0 1px 2px rgba(43, 18, 20, .06), 0 6px 18px -12px rgba(82, 21, 32, .25);
  --e2: 0 24px 60px -28px rgba(82, 21, 32, .45);
  /* motion: fast for controls, base for cards/drawers, slow for cinematic */
  --t-fast: .18s; --t-base: .42s; --t-slow: .9s;
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  /* breakpoints (reference): 600 phone · 820 tablet · 1000 laptop · 1200 desktop */
  --header-h: 76px;
}

/* ---------- base additions ---------- */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 30px; height: 30px; }
.ic-xl { width: 46px; height: 46px; stroke-width: 1.1; color: var(--rose); }
html[dir="rtl"] .ic-arrow-flip, html[dir="rtl"] .link-arrow .ic, html[dir="rtl"] .lb-next .ic { transform: scaleX(-1); }
.lb-prev .ic { transform: scaleX(-1); }
html[dir="rtl"] .lb-prev .ic { transform: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lock, .lock body { overflow: hidden; }
.pad-b { padding-bottom: var(--s8); }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 300; background: var(--burgundy); color: var(--ivory); padding: 10px 16px; border-radius: var(--r); transition: top var(--t-fast); }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.hint { font-size: .85rem; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
html[dir="rtl"] .link-arrow { letter-spacing: 0; font-size: .95rem; }
.link-arrow .ic { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }
html[dir="rtl"] .link-arrow:hover .ic { transform: scaleX(-1) translateX(4px); }
.section-sub { color: var(--muted); margin: 6px 0 0; max-width: 34em; }
.pill { min-width: 18px; height: 18px; border-radius: var(--r-pill); background: var(--rose); color: var(--white); font-size: .68rem; display: inline-grid; place-items: center; padding: 0 5px; line-height: 1; }
.btn-sm { padding: 10px 18px; font-size: .74rem; }
.btn-grow { flex: 1; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }
.empty { text-align: center; padding: var(--s8) var(--s5); color: var(--muted); grid-column: 1 / -1; display: grid; justify-items: center; gap: var(--s3); }
.demo-bar { background: var(--cream); color: var(--mocha); font-size: .8rem; text-align: center; padding: 7px 16px; border-bottom: 1px solid var(--line); }
.demo-note { background: #F7EFE6; border: 1px dashed var(--gold); color: var(--mocha); font-size: .88rem; padding: 10px 14px; border-radius: var(--r); }
.preview-ribbon { display: inline-flex; gap: 6px; align-items: center; background: var(--burgundy); color: var(--blush); font-size: .78rem; padding: 6px 12px; border-radius: var(--r-pill); margin-bottom: var(--s5); }

/* ---------- header ---------- */
.site-header { height: var(--header-h); }
.nav { height: var(--header-h); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; color: var(--burgundy); border-radius: var(--r-pill); transition: background var(--t-fast); }
.icon-btn:hover { background: rgba(107, 29, 42, .06); }
.icon-btn .pill { position: absolute; top: 3px; inset-inline-end: 1px; }
.menu-btn { display: none; }
.nav-links { gap: 26px; align-items: center; }
.nav-item { position: static; }
.nav-trigger, .nav-link {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 8px 0;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mocha); border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
html[dir="rtl"] .nav-trigger, html[dir="rtl"] .nav-link { letter-spacing: 0; font-size: .98rem; }
.nav-trigger .ic { transition: transform var(--t-fast) var(--ease); }
.nav-item.open .nav-trigger, .nav-trigger:hover, .nav-link:hover, .nav-trigger.is-active, .nav-link.is-active { color: var(--burgundy); border-color: var(--gold); }
.nav-item.open .nav-trigger .ic { transform: rotate(180deg); }
.nav-actions { gap: 4px; }

/* mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: rgba(251, 246, 241, .98); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--e2);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: var(--s7); padding-block: var(--s6) var(--s7); }
.mega-col h3 { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin-bottom: 14px; font-weight: 500; }
html[dir="rtl"] .mega-col h3 { font-family: var(--ar-sans); letter-spacing: 0; font-size: .9rem; }
.mega-col a { display: block; padding: 6px 0; color: var(--mocha); transition: color var(--t-fast), transform var(--t-fast) var(--ease); }
.mega-col a:hover { color: var(--burgundy); transform: translateX(4px); }
html[dir="rtl"] .mega-col a:hover { transform: translateX(-4px); }
.mega-dots { display: flex; flex-wrap: wrap; gap: 10px; }
.mega-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 0 0 2px var(--ivory), 0 0 0 3px var(--line); padding: 0 !important; transition: transform var(--t-fast) var(--ease) !important; }
.mega-dot:hover { transform: scale(1.15) !important; }
.mega-feature { position: relative; display: block; border-radius: var(--r); overflow: hidden; min-height: 220px; }
.mega-media { position: absolute; inset: 0; }
.mega-cap { position: absolute; inset: auto 0 0; padding: 18px; display: grid; gap: 2px; color: var(--ivory); background: linear-gradient(to top, rgba(43, 18, 20, .7), transparent); }
.mega-cap strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.mega-cap em { font-style: normal; font-size: .88rem; opacity: .9; }
.mega-cap .link-arrow { color: var(--ivory); border-color: rgba(255,255,255,.5); margin-top: 8px; width: fit-content; }

/* scrim + drawers */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(43, 18, 20, .38); backdrop-filter: blur(2px); opacity: 0; transition: opacity var(--t-base) var(--ease); }
.scrim.show { opacity: 1; }
.drawer, .bag-drawer {
  position: fixed; top: 0; bottom: 0; z-index: 100; width: min(420px, 92vw); background: var(--ivory); box-shadow: var(--e2);
  display: flex; flex-direction: column; transition: transform var(--t-base) var(--ease), visibility 0s linear var(--t-base); visibility: hidden;
}
.drawer { inset-inline-start: 0; transform: translateX(-102%); }
.bag-drawer { inset-inline-end: 0; transform: translateX(102%); }
html[dir="rtl"] .drawer { transform: translateX(102%); }
html[dir="rtl"] .bag-drawer { transform: translateX(-102%); }
.drawer.open, .bag-drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.5rem; margin: 0; }
.drawer-head .brand { align-items: flex-start; }
.drawer-search { display: flex; gap: 10px; align-items: center; margin: 16px 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); color: var(--muted); text-align: start; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 0 18px; }
.drawer-nav > a, .drawer-nav summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.35rem; color: var(--burgundy); cursor: pointer; list-style: none; }
html[dir="rtl"] .drawer-nav > a, html[dir="rtl"] .drawer-nav summary { font-family: var(--ar-sans); font-size: 1.1rem; font-weight: 500; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav details[open] summary .ic { transform: rotate(180deg); }
.drawer-sub { display: grid; padding: 6px 0 12px; }
.drawer-sub a { padding: 10px 14px; color: var(--mocha); border-inline-start: 1px solid var(--line); }
.drawer-lang { margin: 14px 18px 22px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }

/* search */
.search-panel { position: fixed; inset: 0 0 auto 0; z-index: 110; background: var(--ivory); box-shadow: var(--e2); padding: 18px 0 26px; transform: translateY(-100%); transition: transform var(--t-base) var(--ease); max-height: 86vh; overflow-y: auto; }
.search-panel.open { transform: none; }
.search-form { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--burgundy); padding-bottom: 8px; color: var(--burgundy); }
.search-form input { flex: 1; border: 0; background: none; font: inherit; font-size: 1.35rem; padding: 10px 0; color: var(--ink); outline: none; min-width: 0; }
.search-form input::-webkit-search-cancel-button { display: none; }
.sr-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin: 22px 0 10px; }
html[dir="rtl"] .sr-label { letter-spacing: 0; font-size: .88rem; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r); transition: background var(--t-fast); }
.sr-item:hover, .sr-item:focus-visible { background: var(--cream); }
.sr-thumb { width: 52px; height: 64px; border-radius: var(--r-sm); overflow: hidden; flex: none; background: var(--cream); }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-swatch { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 40%, rgba(0,0,0,.15)), var(--c); }
.sr-meta { display: grid; }
.sr-meta strong { font-weight: 500; }
.sr-meta em { font-style: normal; font-size: .85rem; color: var(--muted); }
.sr-all { margin-top: 16px; }
.sr-none { color: var(--muted); padding: 20px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .88rem; color: var(--mocha); background: var(--white); transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
.chip:hover { border-color: var(--rose); }
.chip-x .ic { width: 13px; height: 13px; }
.cdot-mini { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }

/* bag drawer */
.lines { list-style: none; margin: 0; padding: 0 18px; overflow-y: auto; flex: 1; }
.co-summary .lines { padding: 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; background: var(--cream); }
.line-media .media-img { width: 100%; height: 100%; object-fit: cover; }
.line-info { display: grid; gap: 2px; align-content: start; }
.line-name { font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; }
html[dir="rtl"] .line-name { font-family: var(--ar-sans); font-size: 1rem; font-weight: 500; }
.line-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.line-price { color: var(--burgundy); font-weight: 500; }
.bag-foot { padding: 16px 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; background: var(--white); }
.bag-foot .btn { margin-top: 4px; }
.qty .ic { width: 16px; height: 16px; }
.bag-link.bump { animation: bump .45s ease; }
.fly-dot { position: fixed; z-index: 400; width: 16px; height: 16px; border-radius: 50%; background: var(--burgundy); pointer-events: none; }
.toast { position: fixed; z-index: 500; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--ivory); padding: 12px 20px; border-radius: var(--r-pill); font-size: .9rem; box-shadow: var(--e2); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); pointer-events: none; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* compare tray */
.compare-tray { position: fixed; z-index: 80; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--e2); animation: rise-in .5s var(--ease); }
.tray-items { display: flex; }
.tray-thumb span { display: block; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--white); margin-inline-start: -8px; background: var(--c); }

/* ---------- product card ---------- */
.card-media-wrap { position: relative; }
.card-media { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--cream); }
.card-media .media-img, .media-swap .media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card-media .media-img { transform: scale(1.04); }
.media-swap { position: absolute; inset: 0; opacity: 0; transition: opacity .4s var(--ease); }
.media-swap.in { opacity: 1; }
.badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.badge { position: static; }
.badge-sale { background: var(--burgundy); color: var(--ivory); }
.badge-demo { background: rgba(255, 253, 251, .75); color: var(--muted); border: 1px dashed var(--gold); }
.card-actions { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; gap: 8px; }
.round-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 253, 251, .9); color: var(--burgundy); display: grid; place-items: center; box-shadow: var(--e1); transition: transform var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast), opacity var(--t-base); }
.round-btn .ic { width: 18px; height: 18px; }
.round-btn:hover { transform: scale(1.08); }
.round-btn.is-on { background: var(--burgundy); color: var(--ivory); }
.round-btn[data-wish].is-on .ic { fill: currentColor; }
.round-btn.pulse { animation: bump .5s ease; }
.round-lg { width: 52px; height: 52px; border: 1px solid var(--line); box-shadow: none; }
.quick-add { position: absolute; inset-inline: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border: 0; border-radius: var(--r-pill); background: rgba(255, 253, 251, .94); color: var(--burgundy); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; box-shadow: var(--e1); transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease), background var(--t-fast); }
html[dir="rtl"] .quick-add { letter-spacing: 0; font-size: .92rem; }
.quick-add .ic { width: 16px; height: 16px; }
.quick-add:hover { background: var(--burgundy); color: var(--ivory); }
@media (hover: hover) and (pointer: fine) {
  .card .card-actions .round-btn:not(.is-on), .card .quick-add { opacity: 0; transform: translateY(8px); }
  .card:hover .card-actions .round-btn, .card:focus-within .card-actions .round-btn, .card:hover .quick-add, .card:focus-within .quick-add { opacity: 1; transform: none; }
}
@media (hover: none) { .quick-add { inset-inline: auto; inset-inline-end: 10px; width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 0; letter-spacing: 0; } .quick-add .ic { width: 20px; height: 20px; } }
.quick-add[disabled] { display: none; }
.swatches { display: inline-flex; align-items: center; gap: 2px; }
.swatch-btn { width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 0 0 2px var(--ivory), 0 0 0 3px transparent; transform: scale(.72); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.swatch-btn:hover { transform: scale(.85); }
.swatch-btn.is-on { transform: scale(.85); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 0 0 2px var(--ivory), 0 0 0 3px var(--burgundy); }
.swatches em { font-style: normal; font-size: .75rem; color: var(--muted); margin-inline-start: 2px; }
.price s { color: var(--muted); font-weight: 400; margin-inline-end: 4px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.rail > .card { scroll-snap-align: start; }

/* ---------- home blocks ---------- */
.cat-count { display: inline-block; margin-top: 6px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.cat-media .media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.occ-card { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; }
.occ-media { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.occ-card:hover .occ-media { transform: scale(1.06); }
.occ-label { position: absolute; inset: auto 0 0; padding: 14px; color: var(--ivory); font-family: var(--serif); font-size: 1.3rem; display: grid; background: linear-gradient(to top, rgba(43,18,20,.62), transparent); }
html[dir="rtl"] .occ-label { font-family: var(--ar-sans); font-size: 1.05rem; font-weight: 500; }
.occ-label em { font-family: var(--sans); font-style: normal; font-size: .76rem; opacity: .85; }
.fabric-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.fabric-chip { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); font-family: var(--serif); font-size: 1.2rem; color: var(--burgundy); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease); }
html[dir="rtl"] .fabric-chip { font-family: var(--ar-sans); font-size: 1rem; }
.fabric-chip em { font-family: var(--sans); font-style: normal; font-size: .75rem; color: var(--muted); }
.fabric-chip:hover { background: var(--burgundy); color: var(--ivory); transform: translateY(-2px); }
.fabric-chip:hover em { color: var(--blush); }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.gift-opt img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.gift-opt figcaption { display: grid; padding-top: 10px; }
.story-teaser .story img { max-width: 440px; justify-self: center; }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tool-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 26px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform var(--t-base) var(--ease), box-shadow var(--t-base), border-color var(--t-fast); }
.tool-card .ic-lg { color: var(--rose); }
.tool-card h3 { font-size: 1.45rem; margin: 6px 0 0; }
.tool-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.tool-card .link-arrow { margin-top: 8px; width: fit-content; }
a.tool-card:hover { transform: translateY(-4px); box-shadow: var(--e2); border-color: var(--blush); }
.tool-card.is-preview { border-style: dashed; }
.tool-tag { font-size: .72rem; color: var(--burgundy); background: var(--cream); padding: 4px 10px; border-radius: var(--r-pill); width: fit-content; }

/* ---------- shop ---------- */
.shop-wrap { padding-bottom: var(--s8); }
.shop-bar { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 14px; position: sticky; top: var(--header-h); z-index: 20; background: rgba(251, 246, 241, .94); backdrop-filter: blur(8px); }
.scrolled .shop-bar { top: 62px; }
.shop-count { color: var(--muted); font-size: .9rem; margin-inline-end: auto; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.sort select, .input, .textarea, .contact-form select { font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 12px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 0; margin-bottom: 18px; }
.active-chips:empty { margin: 0; }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 70px); max-height: calc(100vh - var(--header-h) - 90px); overflow-y: auto; }
.filters-head, .filters-foot { display: none; }
.filter-open { display: none; }
.fgroup { border-bottom: 1px solid var(--line); padding: 12px 0; }
.fgroup summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); padding: 4px 0; }
html[dir="rtl"] .fgroup summary { letter-spacing: 0; font-size: .95rem; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary .ic { margin-inline-start: auto; transition: transform var(--t-fast); }
.fgroup[open] summary .ic { transform: rotate(180deg); }
.fopts { display: grid; gap: 2px; padding-top: 10px; animation: rise-in .35s var(--ease); }
.fopts-colors { grid-template-columns: 1fr 1fr; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 6px 4px; cursor: pointer; border-radius: var(--r-sm); font-size: .92rem; color: var(--mocha); }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopt em { margin-inline-start: auto; font-style: normal; font-size: .75rem; color: var(--muted); }
.fopt.is-empty { opacity: .4; cursor: default; }
.fbox { width: 18px; height: 18px; border: 1px solid var(--taupe); border-radius: var(--r-sm); display: grid; place-items: center; flex: none; transition: background var(--t-fast), border-color var(--t-fast); }
.fbox .ic { width: 13px; height: 13px; stroke-width: 2.2; color: var(--ivory); opacity: 0; transform: scale(.6); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease); }
.fopt input:checked + .fbox { background: var(--burgundy); border-color: var(--burgundy); }
.fopt input:checked + .fbox .ic { opacity: 1; transform: none; }
.fdot { width: 20px; height: 20px; border-radius: 50%; background: var(--dot); flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 0 0 2px var(--ivory), 0 0 0 3px transparent; transition: box-shadow var(--t-fast); }
.fopt input:checked + .fdot { box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 0 0 2px var(--ivory), 0 0 0 3.5px var(--burgundy); }
.fopt input:focus-visible + .fbox, .fopt input:focus-visible + .fdot { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.shop-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs span[aria-current] { color: var(--ink); }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.g-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--cream); }
.g-layer { position: absolute; inset: 0; }
.g-slide { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
div.g-slide { cursor: default; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; }
.lens { position: absolute; inset: 0; background-size: 230%; background-repeat: no-repeat; opacity: 0; transition: opacity var(--t-base); pointer-events: none; }
.lens.on { opacity: 1; }
.g-hint { position: absolute; bottom: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,253,251,.9); color: var(--burgundy); }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.g-thumb { position: relative; width: 64px; aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: var(--r-sm); overflow: hidden; opacity: .65; outline: 1px solid var(--line); transition: opacity var(--t-fast), outline-color var(--t-fast); background: var(--cream); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb.is-on, .g-thumb:hover { opacity: 1; outline: 2px solid var(--burgundy); outline-offset: 2px; }
.pdp-info .badges { position: static; margin-bottom: 12px; }
.pdp-type { color: var(--muted); margin: -4px 0 12px; }
.pdp-price { font-size: 1.5rem; color: var(--burgundy); font-weight: 500; margin-bottom: 16px; }
.color-picker .cdot.is-active { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 0 0 2px var(--ivory), 0 0 0 3.5px var(--burgundy); }
.size-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn { min-width: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.size-btn.is-active { border-color: var(--burgundy); background: var(--burgundy); color: var(--ivory); }
.stock { min-height: 1.2em; font-size: .9rem; margin: 0 0 10px; }
.stock .ok { color: #4E6A45; display: inline-flex; gap: 6px; align-items: center; }
.stock .low { color: #A0522D; }
.stock .out { color: #9A2B2B; }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.buy-row .btn { padding-block: 0; }
.pdp-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 18px 0 8px; }
.link-icon { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 0; color: var(--mocha); font-size: .92rem; }
.link-icon .ic { width: 18px; height: 18px; color: var(--rose); }
.link-icon:hover, .link-icon.is-on { color: var(--burgundy); }
.accordion { margin-top: 18px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; list-style: none; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); }
html[dir="rtl"] .accordion summary { letter-spacing: 0; font-size: .98rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .ic { transition: transform var(--t-base) var(--ease); }
.accordion details[open] summary .ic { transform: rotate(45deg); }
.acc-body { overflow: hidden; color: var(--muted); padding-bottom: 16px; }
.acc-body p { margin: 0 0 8px; }
.specs { margin: 0; border: 0; }
.specs div { border: 0; padding: 6px 0; }
.sticky-buy { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; background: rgba(255, 253, 251, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform var(--t-base) var(--ease); }
.sticky-buy.show { transform: none; }
.sticky-inner { display: flex; align-items: center; gap: 14px; }
.sticky-name { flex: 1; display: grid; font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; overflow: hidden; }
.sticky-name em { font-family: var(--sans); font-style: normal; color: var(--burgundy); font-size: .92rem; }
@media (min-width: 821px) { .sticky-buy { display: none; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 600; background: rgba(28, 12, 14, .94); opacity: 0; transition: opacity var(--t-base) var(--ease); display: grid; place-items: center; touch-action: none; }
.lightbox.open { opacity: 1; }
.lb-stage { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; cursor: grab; }
.lb-img { max-width: 94vw; max-height: 88vh; object-fit: contain; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lightbox .icon-btn { position: absolute; z-index: 2; color: var(--ivory); background: rgba(255,255,255,.08); }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev { left: 16px; top: 50%; }
.lb-next { right: 16px; top: 50%; }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--blush); font-size: .85rem; }

/* ---------- checkout ---------- */
.co-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
#co-form h2, .co-summary h2 { font-size: 1.6rem; margin-top: 8px; }
.input-wrap { display: grid; gap: 5px; margin-bottom: 14px; }
.input-wrap label { font-size: .85rem; color: var(--mocha); }
.input-wrap input, .input-wrap textarea, .input-wrap select { font: inherit; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); transition: border-color var(--t-fast), box-shadow var(--t-fast); width: 100%; }
.input-wrap input:focus, .input-wrap textarea:focus, .input-wrap select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(196, 139, 133, .18); }
.input-wrap [aria-invalid="true"] { border-color: #9A2B2B; }
.err { color: #9A2B2B; font-size: .82rem; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); margin-bottom: 10px; cursor: pointer; transition: border-color var(--t-fast); }
.radio-card:has(input:checked), .radio-card.is-on { border-color: var(--burgundy); box-shadow: inset 0 0 0 1px var(--burgundy); }
.radio-card img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); }
.radio-card span { display: flex; flex: 1; gap: 8px; align-items: center; justify-content: space-between; }
.radio-card em { font-style: normal; color: var(--burgundy); }
.radio-card input { accent-color: var(--burgundy); }
.gift-pick { border: 0; padding: 0; margin: 18px 0; }
.gift-pick legend { font-family: var(--serif); font-size: 1.4rem; color: var(--burgundy); margin-bottom: 10px; }
.co-summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.co-done { text-align: center; max-width: 520px; margin: 0 auto; padding: var(--s7) 0; display: grid; justify-items: center; gap: 12px; }
.co-done-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- compare ---------- */
.cmp-scroll { overflow-x: auto; scroll-snap-type: x mandatory; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.cmp-table tbody th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; position: sticky; inset-inline-start: 0; background: var(--ivory); width: 130px; }
.cmp-table thead th { font-weight: 400; display: table-cell; }
.cmp-media { position: relative; display: block; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; margin-bottom: 10px; max-width: 220px; }
.dots { display: inline-flex; gap: 4px; flex-wrap: wrap; }

/* ---------- contact ---------- */
.contact-card .ic { width: 30px; height: 30px; color: var(--rose); margin-bottom: 8px; }
.contact-card.is-pending { border-style: dashed; }
.contact-card em { font-style: normal; color: var(--muted); font-size: .85rem; }
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- tools ---------- */
.tool { padding-top: var(--s5); }
.quiz { display: grid; gap: 22px; max-width: 760px; }
.q { border: 0; padding: 0; margin: 0; }
.q legend { font-family: var(--serif); font-size: 1.35rem; color: var(--burgundy); margin-bottom: 12px; }
html[dir="rtl"] .q legend { font-family: var(--ar-sans); font-size: 1.1rem; font-weight: 500; }
.q-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.q-opt { position: relative; cursor: pointer; }
.q-opt input { position: absolute; opacity: 0; }
.q-opt span { display: inline-block; padding: 11px 18px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); transition: all var(--t-fast); }
.q-opt input:checked + span { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
.q-opt input:focus-visible + span { outline: 2px solid var(--burgundy); outline-offset: 2px; }
#ff-out, #mc-out, #cap-out, #mo-out { margin-top: 40px; }
.result-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 12px 0; }
.fabric-result { display: grid; gap: 6px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); animation: rise-in .6s var(--ease) both; }
.fabric-result:nth-child(2) { animation-delay: .08s; } .fabric-result:nth-child(3) { animation-delay: .16s; }
.fabric-result .rank { font-family: var(--serif); color: var(--blush); font-size: 1.8rem; line-height: 1; }
.fabric-result strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--burgundy); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags em { font-style: normal; font-size: .76rem; background: var(--cream); color: var(--mocha); padding: 3px 10px; border-radius: var(--r-pill); }
.upload-box { display: grid; justify-items: start; gap: 10px; padding: 26px; border: 1px dashed var(--rose); border-radius: var(--r-lg); background: var(--white); max-width: 560px; }
.upload-box .hint { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.found-colors { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.found { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; font-size: .75rem; color: var(--muted); }
.found span { width: 44px; height: 44px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 0 0 3px var(--ivory), 0 0 0 4px var(--line); transition: box-shadow var(--t-fast), transform var(--t-fast) var(--ease); }
.found.is-on span { box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 0 0 3px var(--ivory), 0 0 0 5px var(--burgundy); transform: scale(1.06); }
.photo-opt { margin: 26px 0; max-width: 760px; }
.photo-opt summary { cursor: pointer; color: var(--burgundy); margin-bottom: 14px; }
.tap-wrap canvas { max-width: 100%; border-radius: var(--r); cursor: crosshair; margin-top: 8px; }
.shade-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0; }
.shade { display: grid; justify-items: center; gap: 8px; font-size: .88rem; color: var(--mocha); animation: rise-in .6s var(--ease) both; }
.shade span { width: 76px; height: 76px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 0 0 4px var(--ivory), 0 0 0 5px var(--line); }
.pref-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.pref-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); cursor: pointer; font-size: .9rem; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
html[dir="rtl"] .pref-chip { padding: 7px 8px 7px 14px; }
.pref-chip span { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.pref-chip.is-on { border-color: var(--burgundy); box-shadow: inset 0 0 0 1px var(--burgundy); }
.range-row { display: flex; align-items: center; gap: 16px; max-width: 460px; }
.range-row input { flex: 1; accent-color: var(--burgundy); }
.range-row output { font-family: var(--serif); font-size: 1.5rem; color: var(--burgundy); min-width: 70px; }
.cap-total { color: var(--muted); }
.cap-total strong { color: var(--burgundy); font-size: 1.2rem; }
.cap-strip { display: flex; height: 10px; border-radius: var(--r-pill); overflow: hidden; margin-bottom: 22px; }
.cap-strip span { flex: 1; }
.closet-block { margin-bottom: var(--s7); }
.orders { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.order { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.order-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.order-head .btn { margin-inline-start: auto; }
.order-items { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.order-item { display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.order-item em { display: block; font-style: normal; color: var(--muted); font-size: .8rem; }
.order-thumb { position: relative; width: 44px; height: 54px; border-radius: var(--r-sm); overflow: hidden; display: block; }
.gb-layout, .gc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gb-preview { position: sticky; top: calc(var(--header-h) + 20px); }
.gb-media { position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; }
.gb-pieces { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-piece { display: grid; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); text-align: start; font-size: .9rem; }
.gb-piece em { font-style: normal; color: var(--muted); font-size: .8rem; }
.gb-piece.is-on { border-color: var(--burgundy); box-shadow: inset 0 0 0 1px var(--burgundy); }
.textarea { width: 100%; }
.gc-stage { position: sticky; top: calc(var(--header-h) + 20px); }
.gc-card {
  position: relative; aspect-ratio: 1.586; border-radius: 18px; padding: 26px; overflow: hidden; color: var(--gc-fg); display: grid; align-content: space-between;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255,255,255,.35), transparent 55%), linear-gradient(135deg, var(--gc-bg), color-mix(in srgb, var(--gc-bg) 80%, var(--gc-fg)));
  box-shadow: var(--e2); transition: background .6s var(--ease), color .6s var(--ease), transform .6s var(--ease);
}
.gc-card:hover { transform: rotate(-1.2deg) translateY(-4px); }
.gc-card.is-physical { box-shadow: 0 2px 0 rgba(0,0,0,.08), var(--e2); }
.gc-sig { position: absolute; inset-inline-end: -30px; bottom: -30px; width: 62%; aspect-ratio: 560/480; background: var(--sig, none) center/contain no-repeat; opacity: .55; pointer-events: none; }
.gc-brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.gc-brand .brand-ar { font-size: 1.9rem; }
.gc-brand .brand-en { font-size: .7rem; }
.gc-occ { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.gc-val { font-family: var(--serif); font-size: 3rem; font-weight: 500; line-height: 1; }
.gc-names { font-size: .9rem; }
.gc-msg { font-family: var(--serif); font-style: italic; font-size: 1.05rem; max-width: 80%; }
.gc-code { font-family: monospace; letter-spacing: .2em; font-size: .8rem; opacity: .7; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .mega-grid { grid-template-columns: 1fr 1fr 1fr; }
  .mega-feature { display: none; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-open { display: inline-flex; }
  .filters {
    position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 120; width: min(380px, 90vw); max-height: none;
    background: var(--ivory); box-shadow: var(--e2); display: flex; flex-direction: column; transform: translateX(-102%); transition: transform var(--t-base) var(--ease);
  }
  html[dir="rtl"] .filters { transform: translateX(102%); }
  .filters.open { transform: none; }
  .filters-head, .filters-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .filters-head h2 { margin: 0; font-size: 1.5rem; }
  .filters-foot { border-top: 1px solid var(--line); border-bottom: 0; gap: 10px; margin-top: auto; }
  .filters-foot .btn:last-child { flex: 1; }
  .filters-body { flex: 1; overflow-y: auto; padding: 0 18px; }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .menu-btn { display: inline-grid; }
  .nav-links { display: none !important; }
  .nav .brand { grid-column: 2; }
  .hide-sm, .nav-actions .lang-btn { display: none; }
  .co-layout, .contact-split, .gb-layout, .gc-layout { grid-template-columns: 1fr; gap: 32px; }
  .co-summary, .gb-preview, .gc-stage { position: static; }
  .gallery { position: static; }
  .pdp-info h1 { font-size: 2rem; }
  .product-page main { padding-bottom: 80px; }
}
@media (max-width: 600px) {
  .shop-grid, .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .rail { grid-auto-columns: 62%; }
  .shop-bar { gap: 10px; flex-wrap: wrap; }
  .sort span { display: none; }
  .search-form input { font-size: 1.1rem; }
  .line { grid-template-columns: 62px 1fr; }
  .line-price { grid-column: 2; }
  .card-actions .round-btn { width: 34px; height: 34px; }
  .compare-tray { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .bag-drawer, .filters, .search-panel, .mega, .sticky-buy, .toast { transition: none !important; }
}

/* fixes */
[hidden] { display: none !important; }
.nav-trigger, .nav-link { white-space: nowrap; }
@media (max-width: 1240px) { .nav-links { gap: 18px; } .nav-trigger, .nav-link { letter-spacing: .1em; font-size: .74rem; } }
@media (max-width: 1100px) { .nav-link { display: none; } }
.g-video video { width: 100%; height: 100%; object-fit: cover; background: var(--cream); }
.g-thumb video { width: 100%; height: 100%; object-fit: cover; }
.g-thumb.is-video::after { content: ""; position: absolute; inset: 50% auto auto 50%; transform: translate(-40%, -50%); border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--ivory); filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

/* editorial imagery */
.page-head.has-img { background: linear-gradient(180deg, rgba(251,246,241,.72), rgba(251,246,241,.86) 70%, var(--ivory)), var(--head-img) center / cover no-repeat; }
.page-head.has-img::after { display: none; }
.cat-media, .occ-media, .mega-media { overflow: hidden; }
.cat-media .media-img, .occ-media .media-img, .mega-media .media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fabric-chip.has-img { padding: 6px 22px 6px 6px; }
html[dir="rtl"] .fabric-chip.has-img { padding: 6px 6px 6px 22px; }
.fab-thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--line); }
.story-teaser .story img { border-radius: var(--r); }

/* try-on + voting */
.to-offer { max-width: 640px; display: grid; gap: 14px; }
.to-terms { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; color: var(--mocha); font-size: .92rem; }
.to-terms p { margin: 0 0 8px; }
.q-opt.check { display: flex; gap: 10px; align-items: flex-start; }
.q-opt.check input { position: static; opacity: 1; margin-top: 4px; accent-color: var(--burgundy); }
.q-opt.check span { padding: 0; border: 0; background: none; }
.to-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.to-bar .link-btn { margin-inline-start: auto; }
.pill-lg { background: var(--burgundy); color: var(--ivory); border-radius: var(--r-pill); padding: 6px 14px; font-size: .88rem; }
.to-step { margin-bottom: 34px; display: grid; gap: 12px; justify-items: start; }
.to-step h2 { font-size: 1.5rem; margin: 0; }
.to-step .input-wrap { min-width: min(360px, 100%); }
.ok-line { display: inline-flex; gap: 6px; align-items: center; color: #4E6A45; margin: 0; }
.to-grid, .vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; width: 100%; }
.to-card, .vote-card { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; animation: rise-in .6s var(--ease) both; }
.to-card img, .vote-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.to-card figcaption, .vote-card figcaption { display: grid; gap: 6px; padding: 12px 14px 16px; }
.to-card figcaption span { color: var(--muted); font-size: .88rem; }
.to-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vote-card.is-mine { border-color: var(--burgundy); box-shadow: inset 0 0 0 1px var(--burgundy); }
.vote-bar { height: 6px; border-radius: var(--r-pill); background: var(--cream); overflow: hidden; }
.vote-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--burgundy)); transition: width .8s var(--ease); }
.vote-card em { font-style: normal; color: var(--muted); font-size: .85rem; }

/* audit fixes */
.footer-bottom { color: var(--mocha); }
#site-header > .site-header:empty { display: block; }

/* review fixes */
@media (min-width: 1100px) { .occ-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.faq summary::after { content: none; display: none; }
.faq summary .ic { color: var(--rose); transition: transform var(--t-base) var(--ease); flex: none; }
.faq details[open] summary .ic { transform: rotate(45deg); }

/* official logo lockup (cut-out of assets/logo.jpg, unchanged artwork) */
.brand .brand-logo { display: block; max-width: none; flex: none; aspect-ratio: 480 / 261; height: 60px; width: 110px; }
.nav .brand-logo { height: 62px; width: 114px; }
.drawer-head .brand-logo { height: 52px; width: 96px; }
.footer-brand .brand-logo { height: 96px; width: 177px; }
@media (max-width: 820px) { .nav .brand-logo { height: 52px; width: 96px; } }
@media (min-width: 821px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 28px; }
  .nav .brand { grid-column: 1; grid-row: 1; }
  .nav-links { grid-column: 2; justify-content: center; }
}
