/* ─────────────────────────────────────────────────────────────
   RAHAF — boutique storefront styles
   One brand colour for text/buttons/icons, hairline borders, lots of air.
   ───────────────────────────────────────────────────────────── */
:root {
  --brand: #4A0009;          /* Rahaf burgundy — all text, buttons, icons */
  --brand-soft: #6E2A33;
  --accent: #D4A57A;         /* Rahaf tan — logo, highlights on burgundy */
  --bg: #FFFFFF;
  --line: #E8E8E1;
  --sale: #999999;
  --muted: rgba(74, 0, 9, .68);
  --tint: #FAF7F4;
  --font: 'Jost', 'Cairo', system-ui, sans-serif;
  --track: .2em;             /* uppercase letter-spacing */
  --gutter: 16px;
  --container: 1320px;
  --header-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
[dir="rtl"] { --font: 'Cairo', 'Jost', system-ui, sans-serif; --track: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--brand); font-family: var(--font); font-size: 15px; line-height: 1.65; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--brand); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 750px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }
.container--narrow { max-width: 820px; margin-inline: auto; }
.container--xs { max-width: 460px; }
.center { text-align: center; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.underline { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.flip-rtl { }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.icon { width: 22px; height: 22px; flex: none; }
.icon--xs { width: 14px; height: 14px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; position: relative; transition: opacity .2s; }
.icon-btn:hover { opacity: .65; }
.icon-btn--sm { width: 32px; height: 32px; }
.icon-btn--sm .icon { width: 17px; height: 17px; }

/* Uppercase, letter-spaced type */
.upper, .section-title, .page-title, .main-nav__link, .drawer-nav a, .btn, .btn-pill, .card__title, .tile__label,
.product__title, .option__label, .accordion__btn, .footer-title, .drawer__title, .collection-hero__title, .toolbar, .hero__eyebrow,
.subhead, .modal__title, .announcement__item, .card__quick, .badge, .share__label, .size-btn, .filters legend, .pagination {
  text-transform: uppercase; letter-spacing: var(--track);
}
[dir="rtl"] * { letter-spacing: 0 !important; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 32px; font-size: 13px; font-weight: 500; border: 1px solid var(--brand); transition: background .25s, color .25s, opacity .25s; }
.btn--solid { background: var(--brand); color: #fff; }
.btn--solid:hover { background: var(--brand-soft); border-color: var(--brand-soft); }
.btn--outline { background: transparent; color: var(--brand); }
.btn--outline:hover:not(:disabled) { background: var(--brand); color: #fff; }
.btn--block { width: 100%; }
.btn:disabled { border-color: var(--line); background: #F3F3EF; color: var(--sale); cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 22px; border: 1px solid var(--brand); border-radius: 999px; font-size: 11px; font-weight: 500; transition: background .25s, color .25s; }
.btn-pill:hover { background: var(--brand); color: #fff; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.link-btn .icon { width: 16px; height: 16px; }

/* ── Announcement ────────────────────────────────────────── */
.announcement { background: var(--brand); color: var(--accent); font-size: 11px; line-height: 1.4; }
.announcement__track { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 34px; padding: 8px var(--gutter); text-align: center; }
.announcement__sep { opacity: .6; }
@media (max-width: 989px) {
  .announcement__track { position: relative; }
  .announcement__sep { display: none; }
  .announcement__item { display: none; animation: fadeIn .5s var(--ease); }
  .announcement__item.is-active { display: block; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── Header ──────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header-top { border-bottom: 1px solid var(--line); overflow: hidden; max-height: 48px; transition: max-height .3s var(--ease), opacity .3s, border-color .3s; }
.header-top__inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.social { display: flex; align-items: center; }
.lang-toggle { display: inline-flex; gap: 6px; font-size: 12px; letter-spacing: .12em; padding: 6px 0; }
.lang-toggle span { opacity: .5; }
.lang-toggle .is-active { opacity: 1; font-weight: 500; }
.lang-toggle:hover span { opacity: 1; }
.header-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 22px; transition: padding .3s var(--ease); }
.header-main__end { display: flex; justify-content: flex-end; align-items: center; }
.header-logo img { height: 56px; width: auto; transition: height .3s var(--ease); }
.cart-count { position: absolute; top: 6px; inset-inline-end: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 10px; line-height: 17px; text-align: center; }

/* Compact sticky state */
.site-header.is-compact .header-top { max-height: 0; opacity: 0; border-color: transparent; }
.site-header.is-compact .header-main { padding-block: 8px; }
.site-header.is-compact .header-logo img { height: 34px; }
.site-header.is-compact .main-nav__list { padding-bottom: 8px; }

/* Desktop navigation */
.main-nav { display: none; }
@media (min-width: 990px) {
  .menu-toggle { display: none; }
  .main-nav { display: block; }
  .main-nav__list { display: flex; justify-content: center; gap: 6px; padding-bottom: 14px; transition: padding .3s; }
  .main-nav__list > li { position: relative; }
  .main-nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 12px; font-weight: 400; }
  .main-nav__link:hover, .main-nav__link[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 6px; }
  .dropdown { position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); padding: 14px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 5; }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
  .dropdown a { display: block; padding: 7px 22px; font-size: 13px; }
  .dropdown a:hover { background: var(--tint); }
}
@media (max-width: 989px) {
  .header-top__inner { min-height: 30px; }
  .header-main { padding-block: 12px; }
  .header-logo img { height: 36px; }
  .hide-mobile { display: none !important; }
  .header-main__start { margin-inline-start: -10px; }
  .header-main__end { margin-inline-end: -10px; }
}

/* ── Drawers ─────────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, .82); opacity: 0; transition: opacity .35s; }
.drawer__panel { position: absolute; top: 0; bottom: 0; width: min(420px, 88vw); background: #fff; display: flex; flex-direction: column; overflow-y: auto; transition: transform .4s var(--ease); border-inline-end: 1px solid var(--line); }
.drawer--start .drawer__panel { inset-inline-start: 0; transform: translateX(-100%); }
.drawer--end .drawer__panel { inset-inline-end: 0; transform: translateX(100%); border-inline-end: 0; border-inline-start: 1px solid var(--line); }
[dir="rtl"] .drawer--start .drawer__panel { transform: translateX(100%); }
[dir="rtl"] .drawer--end .drawer__panel { transform: translateX(-100%); }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: flex-start; padding: 12px 14px; }
.drawer__head--title { justify-content: space-between; border-bottom: 1px solid var(--line); padding-inline-start: 24px; }
.drawer__title { font-size: 13px; font-weight: 500; }
.drawer-nav { padding: 0 24px; }
.drawer-nav li { border-bottom: 1px solid var(--line); }
.drawer-nav a { display: flex; align-items: center; gap: 10px; padding: 15px 0; font-size: 13px; }
.drawer-nav a .icon { width: 18px; height: 18px; }
.drawer-nav a:hover { opacity: .65; }
.drawer-social { display: flex; gap: 10px; padding: 28px 24px 32px; margin-top: auto; }
.boxed-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); transition: border-color .2s; }
.boxed-icon:hover { border-color: var(--brand); }
.boxed-icon .icon { width: 18px; height: 18px; }

/* Cart drawer */
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-drawer__foot { border-top: 1px solid var(--line); padding: 20px 24px 28px; display: grid; gap: 12px; }
.cart-drawer__foot .link-btn { justify-self: center; text-decoration: underline; text-underline-offset: 4px; }
.cart-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.cart-row--total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 500; font-size: 16px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 84px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--tint); }
.cart-item__name { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.cart-item__meta { font-size: 13px; color: var(--muted); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.qty button .icon { width: 14px; height: 14px; }
.qty span { min-width: 26px; text-align: center; font-size: 13px; }
.cart-item__remove { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.cart-empty { padding: 48px 0; text-align: center; display: grid; gap: 20px; justify-items: center; }

/* Search panel */
.search-panel { position: fixed; inset: 0; z-index: 100; }
.search-panel__overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, .82); }
.search-panel__box { position: relative; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0 24px; animation: slideDown .35s var(--ease); max-height: 90vh; overflow-y: auto; }
@keyframes slideDown { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
.search-form { display: flex; align-items: center; gap: 12px; }
.search-form input { flex: 1; border: 0; border-bottom: 1px solid var(--brand); padding: 12px 0; font-size: 18px; background: transparent; outline: none; }
.search-results { display: grid; gap: 4px; margin-top: 16px; }
.search-hit { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.search-hit img { width: 48px; aspect-ratio: 3 / 4; object-fit: cover; }
.search-hit:hover .search-hit__name { text-decoration: underline; }
.search-results .link-btn { margin-top: 10px; text-decoration: underline; text-underline-offset: 4px; }

/* ── Modals ──────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(255, 255, 255, .86); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal__dialog { position: relative; background: #fff; border: 1px solid var(--line); width: min(980px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; animation: pop .35s var(--ease); }
.modal__dialog--narrow { width: min(560px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.modal__close { position: absolute; top: 6px; inset-inline-end: 6px; z-index: 2; background: #fff; }
.modal__body { padding: 40px 28px 32px; }
.modal__title { text-align: center; font-size: 16px; font-weight: 400; margin-bottom: 20px; }
.modal--quick .modal__body { padding: 0; }
.quick { display: grid; gap: 0; }
.quick__info { padding: 28px 24px 32px; }
@media (min-width: 750px) {
  .quick { grid-template-columns: 1.05fr 1fr; }
  .quick__info { padding: 48px 40px 40px; }
}
.view-details { margin-top: 18px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: #EAE3D9; }
.hero__video { width: 100%; height: clamp(420px, 72vh, 820px); object-fit: cover; }
.hero__content { position: absolute; inset: auto 0 0 0; padding: 0 var(--gutter) clamp(36px, 7vh, 72px); display: grid; justify-items: center; gap: 14px; text-align: center; }
.hero__eyebrow { font-size: 12px; }
.hero__title { font-weight: 300; font-size: clamp(28px, 4.2vw, 52px); line-height: 1.15; letter-spacing: .04em; }
@media (max-width: 749px) { .hero__video { height: 78vh; max-height: 640px; } }

/* ── Sections & grids ────────────────────────────────────── */
.product-section, .categories { padding-block: clamp(48px, 7vw, 88px) 0; }
.product-section:last-of-type { padding-bottom: clamp(56px, 8vw, 100px); }
.section-head { display: grid; justify-items: center; gap: 14px; margin-bottom: clamp(24px, 3.5vw, 40px); text-align: center; }
.section-title { font-size: clamp(16px, 1.6vw, 20px); font-weight: 400; }
.page-title { text-align: center; font-size: clamp(20px, 2.4vw, 28px); font-weight: 400; padding-block: clamp(28px, 4vw, 48px) 18px; }
.collection-desc { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto clamp(24px, 3vw, 40px); padding-top: 24px; }
.page-title + .collection-desc { padding-top: 0; }

.grid { display: grid; gap: 28px 16px; }
.grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid--posts { grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 750px) { .grid--products, .grid--posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 990px) { .grid--products, .grid--categories { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid--categories { gap: 16px; } }

/* Category tiles */
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 0, 6, 0) 35%, rgba(40, 0, 6, .38)); transition: background .4s; }
.tile:hover img { transform: scale(1.04); }
.tile__label { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; color: #fff; font-size: clamp(13px, 1.4vw, 17px); font-weight: 500; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }

/* ── Product card ────────────────────────────────────────── */
.card__media { position: relative; overflow: hidden; background: var(--tint); aspect-ratio: 3 / 4; }
.card__imglink { display: block; height: 100%; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform 1s var(--ease); }
.card__img--alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__img--alt { opacity: 1; }
  .card:hover .card__img { transform: scale(1.02); }
}
.badge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: var(--sale); color: #fff; font-size: 10px; padding: 4px 9px; line-height: 1.3; }
.card__quick { position: absolute; inset: auto 0 0 0; z-index: 2; height: 42px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 500; transform: translateY(100%); transition: transform .35s var(--ease); }
@media (hover: hover) { .card:hover .card__quick, .card__quick:focus-visible { transform: none; } }
@media (hover: none) { .card__quick { display: none; } }
.card__info { display: grid; justify-items: center; gap: 4px; padding-top: 14px; text-align: center; }
.card__title { font-size: 12px; font-weight: 400; line-height: 1.5; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.price { font-size: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.price__was { color: var(--sale); }

/* Swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.swatch { --c: #ccc; display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); position: relative; }
.swatches--sm { margin-top: 6px; }
.swatches--sm .swatch { cursor: pointer; outline-offset: 2px; }
.swatches--sm .swatch:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px #fff, 0 0 0 3px var(--brand); }
.swatch.is-soldout::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, transparent calc(50% - .7px), #fff calc(50% - .7px), #fff calc(50% + .7px), transparent calc(50% + .7px)); }
.swatches--lg { justify-content: flex-start; gap: 12px; }
.swatches--lg .swatch { width: 34px; height: 34px; cursor: pointer; }
.swatches--lg .swatch.is-soldout::after { background: linear-gradient(135deg, transparent calc(50% - 1px), var(--brand) calc(50% - 1px), var(--brand) calc(50% + 1px), transparent calc(50% + 1px)); opacity: .7; }
.swatch-opt input:checked + .swatch { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 4px var(--brand); }
.swatch-opt input:focus-visible + .swatch { outline: 1px solid var(--brand); outline-offset: 6px; }

/* ── Collection ──────────────────────────────────────────── */
.collection-hero { position: relative; overflow: hidden; }
.collection-hero img { width: 100%; height: clamp(240px, 36vw, 480px); object-fit: cover; }
.collection-hero::after { content: ''; position: absolute; inset: 0; background: rgba(40, 0, 6, .18); }
.collection-hero__title { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; color: #fff; font-size: clamp(28px, 5vw, 60px); font-weight: 400; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); padding-inline: 16px; text-align: center; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 16px; font-size: 12px; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-inline-end: 8px; opacity: .5; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb + .collection-hero { margin-top: 0; }
.toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; border-block: 1px solid var(--line); padding-block: 12px; margin-bottom: 32px; font-size: 12px; }
.toolbar__filter { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 40px; }
.toolbar__filter .icon { width: 18px; height: 18px; }
.filter-count { background: var(--brand); color: #fff; border-radius: 99px; min-width: 18px; height: 18px; font-size: 10px; line-height: 18px; text-align: center; }
.toolbar__count { text-align: center; color: var(--muted); }
.toolbar__sort { justify-self: end; position: relative; display: flex; align-items: center; }
.toolbar__sort select, .select-wrap select { appearance: none; border: 0; background: transparent; padding: 8px 22px 8px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; cursor: pointer; max-width: 46vw; }
[dir="rtl"] .toolbar__sort select { padding: 8px 0 8px 22px; }
.toolbar__sort .icon, .select-wrap .icon { position: absolute; inset-inline-end: 0; pointer-events: none; }
@media (max-width: 749px) { .toolbar { grid-template-columns: 1fr 1fr; } .toolbar__count { display: none; } }
.empty { text-align: center; padding: 48px 0; color: var(--muted); }

.pagination { margin: 56px 0 24px; }
.pagination ul { display: flex; justify-content: center; align-items: center; gap: 6px; }
.pagination__num, .pagination__arrow { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; font-size: 13px; }
.pagination__num.is-current { text-decoration: underline; text-underline-offset: 6px; }
.pagination__num:hover { opacity: .6; }
.pagination__arrow { border: 1px solid var(--brand); }
.pagination__arrow--next { background: var(--brand); color: #fff; }
.pagination__arrow .icon { width: 16px; height: 16px; }

/* Filters */
.filters { padding: 8px 24px 28px; display: grid; gap: 4px; }
.filters fieldset { border-bottom: 1px solid var(--line); padding-block: 18px; }
.filters legend { font-size: 12px; font-weight: 500; margin-bottom: 12px; padding: 0; float: left; width: 100%; }
[dir="rtl"] .filters legend { float: right; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; clear: both; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }
.check--color .swatch { width: 16px; height: 16px; }
.filter-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; clear: both; }
.filter-sizes { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.filters .field-row { clear: both; }
.filters__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 18px; position: sticky; bottom: 0; background: #fff; padding-bottom: 8px; }
.filters__actions .btn { padding-inline: 12px; }

/* ── Product page ────────────────────────────────────────── */
.product { display: grid; gap: 28px; padding-bottom: 48px; }
@media (min-width: 990px) { .product { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; } .product__info { position: sticky; top: calc(var(--header-h) + 24px); } }
.gallery { display: grid; gap: 12px; }
.gallery__main { position: relative; background: var(--tint); aspect-ratio: 3 / 4; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; align-items: center; gap: 8px; order: 2; }
.thumbs__track { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.thumbs__track::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 64px; aspect-ratio: 3 / 4; border: 1px solid transparent; opacity: .6; transition: opacity .2s, border-color .2s; background: var(--tint); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active, .thumb:hover { opacity: 1; border-color: var(--brand); }
.thumbs__arrow { display: none; }
@media (min-width: 750px) {
  .gallery:not(.gallery--quick) { grid-template-columns: 84px 1fr; gap: 16px; }
  .gallery:not(.gallery--quick) .thumbs { order: 0; flex-direction: column; max-height: calc((100vw - 2 * var(--gutter)) * .5); }
  .gallery:not(.gallery--quick) .thumbs__track { flex-direction: column; overflow-y: auto; overflow-x: hidden; max-height: 520px; }
  .gallery:not(.gallery--quick) .thumb { width: 84px; }
  .gallery:not(.gallery--quick) .thumbs__arrow { display: inline-flex; justify-content: center; width: 100%; height: 28px; }
  .thumbs__arrow .icon { width: 18px; height: 18px; }
}
.gallery--quick { gap: 0; }
.gallery--quick .thumbs { padding: 10px; justify-content: center; }
.gallery--quick .thumb { width: 52px; }

.product-form { display: grid; gap: 22px; }
.product__title { font-size: clamp(20px, 2.2vw, 28px); font-weight: 400; line-height: 1.3; }
.product-form .price { justify-content: flex-start; font-size: 17px; }
.rating { display: inline-flex; align-items: center; gap: 8px; margin-top: -10px; }
.stars { display: inline-flex; gap: 2px; }
.stars .icon { width: 15px; height: 15px; color: var(--line); }
.stars .icon.is-on { color: var(--brand); }
.option { display: grid; gap: 12px; }
.option--size { position: relative; }
.option__label { font-size: 12px; padding: 0; float: left; width: 100%; }
[dir="rtl"] .option__label { float: right; }
.option__label span { text-transform: none; letter-spacing: .04em; }
.size-guide-btn { position: absolute; top: 0; line-height: 1.65; inset-inline-end: 0; text-decoration: underline; text-underline-offset: 4px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt { cursor: pointer; }
.size-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 44px; padding: 0 14px; border: 1px solid var(--line); font-size: 12px; transition: border-color .2s, background .2s, color .2s; position: relative; overflow: hidden; }
.size-opt:hover .size-btn { border-color: var(--brand); }
.size-opt input:checked + .size-btn { background: var(--brand); color: #fff; border-color: var(--brand); }
.size-opt input:focus-visible + .size-btn { outline: 1px solid var(--brand); outline-offset: 3px; }
.size-btn.is-soldout { color: var(--sale); background: linear-gradient(to top right, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + .5px), transparent calc(50% + .5px)); }
.size-opt input:checked + .size-btn.is-soldout { background: #F3F3EF; color: var(--sale); border-color: var(--sale); }
.notify-hint { font-size: 13px; color: var(--muted); }
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; margin-top: -8px; text-decoration: underline; text-underline-offset: 4px; }
.btn-wa .icon { width: 18px; height: 18px; }
.product__desc { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 12px; font-size: 14px; }
.spec-list { display: grid; gap: 4px; }
.spec-list span { font-weight: 500; }

.accordions { margin-top: 16px; }
.accordion:first-child { border-top: 1px solid var(--line); }
.accordion { border-bottom: 1px solid var(--line); }
.accordion__h { font-size: inherit; font-weight: inherit; }
.accordion__btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px 0; font-size: 13px; }
.accordion__btn .icon { transition: transform .3s; }
.accordion__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.accordion__panel { padding: 0 0 24px; font-size: 14px; text-align: center; display: grid; gap: 10px; }
.accordion__panel .form { text-align: start; max-width: 560px; margin-inline: auto; width: 100%; }
.plain-list { display: grid; gap: 4px; }
.share { display: flex; align-items: center; justify-content: center; gap: 4px; padding-block: 28px; }
.share__label { font-size: 11px; margin-inline-end: 8px; }
.share .icon { width: 18px; height: 18px; }
.reviews { padding-block: 32px 8px; display: grid; gap: 22px; }
.reviews .section-title { text-align: center; }
.reviews__summary { display: grid; justify-items: center; gap: 6px; }
.reviews__summary .icon { width: 20px; height: 20px; }
.reviews__list { display: grid; gap: 0; }
.review { border-bottom: 1px solid var(--line); padding-block: 20px; display: grid; gap: 8px; }
.review__author { font-size: 13px; color: var(--muted); }

/* ── Forms ───────────────────────────────────────────────── */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.field input, .field textarea, .field select, .search-page-form input { width: 100%; border: 1px solid var(--line); background: #fff; padding: 12px 14px; font-size: 15px; border-radius: 0; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus, .search-page-form input:focus { outline: none; border-color: var(--brand); }
.field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid { border-color: #B3261E; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap select { appearance: none; border: 1px solid var(--line); padding: 12px 14px; width: 100%; font-size: 15px; text-transform: none; letter-spacing: 0; max-width: none; }
.select-wrap .icon { inset-inline-end: 14px; }
.form-msg { font-size: 14px; min-height: 0; }
.form-msg:empty { display: none; }
.pay-option { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--brand); padding: 16px; cursor: pointer; }
.pay-option input { accent-color: var(--brand); margin-top: 5px; }
.subhead { font-size: 13px; font-weight: 500; margin-top: 8px; }

/* Checkout / cart page */
.page { padding-bottom: clamp(56px, 8vw, 100px); }
.checkout { display: grid; gap: 40px; }
@media (min-width: 990px) { .checkout { grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: start; } .checkout__summary { position: sticky; top: calc(var(--header-h) + 24px); } }
.checkout__summary { background: var(--tint); padding: 24px; display: grid; gap: 4px; }
.checkout-empty, .checkout-done { display: grid; gap: 22px; justify-items: center; padding-block: 24px; }
.search-page-form { display: flex; gap: 10px; max-width: 620px; margin: 0 auto 24px; }
.search-page-form .btn { flex: none; }

/* Contact */
.contact { display: grid; gap: 40px; max-width: 980px; margin-inline: auto; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.4fr; gap: 64px; } }
.contact__info { display: grid; gap: 16px; align-content: start; }
.contact__info p { display: flex; align-items: center; gap: 12px; }
.contact__info .icon { width: 18px; height: 18px; }

/* Rich text (policies, blog) */
.rte { line-height: 1.8; }
.rte h2 { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: var(--track); margin: 32px 0 10px; }
.rte p { margin: 0 0 14px; }
.rte ul, .rte ol { margin: 0 0 14px; padding-inline-start: 22px; }
.rte ul { list-style: disc; }
.rte ol { list-style: decimal; }
.rte li { margin-bottom: 6px; }
.article-img { width: 100%; max-width: 520px; margin: 8px auto 28px; aspect-ratio: 4 / 5; object-fit: cover; }
.table-wrap { overflow-x: auto; margin-bottom: 10px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
.size-table th, .size-table td { border-bottom: 1px solid var(--line); padding: 12px 8px; }
.size-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }
.size-table tbody th { font-weight: 500; }
.modal .plain-list, .rte .plain-list { list-style: none; padding: 0; font-size: 14px; }

/* Blog cards */
.post-card { display: grid; gap: 10px; }
.post-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 8px; }
.post-card__date { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.post-card__title { font-size: 16px; font-weight: 400; line-height: 1.4; }
.post-card__title a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; gap: 0; }
.footer-col--logo img { width: 72px; height: auto; }
.footer-title { font-size: 12px; font-weight: 500; }
.footer-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 18px 0; text-transform: inherit; letter-spacing: inherit; font-weight: inherit; }
.footer-body { display: grid; gap: 10px; font-size: 14px; padding-bottom: 20px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover, .footer-body a:hover { text-decoration: underline; text-underline-offset: 4px; }
.newsletter { display: flex; align-items: center; border-bottom: 1px solid var(--brand); margin-top: 6px; }
.newsletter input { flex: 1; border: 0; background: transparent; padding: 10px 0; font-size: 14px; outline: none; min-width: 0; }
.social--footer { margin-inline-start: -10px; margin-top: 6px; }
.footer-credit { text-align: center; font-size: 11px; color: var(--muted); padding: 40px var(--gutter) 28px; letter-spacing: .08em; }
@media (max-width: 749px) {
  .footer-col--logo { display: flex; justify-content: center; padding-bottom: 24px; }
  .footer-col:not(.footer-col--logo) { border-bottom: 1px solid var(--line); }
  .footer-col:not(.footer-col--logo):first-of-type, .footer-col--logo + .footer-col { border-top: 1px solid var(--line); }
  .footer-body { display: none; }
  .footer-col.is-open .footer-body { display: grid; }
  .footer-col.is-open .footer-toggle .icon { transform: rotate(180deg); }
}
@media (min-width: 750px) {
  .footer-grid { grid-template-columns: .6fr 1fr 1.4fr 1fr; gap: 48px; }
  .footer-toggle { pointer-events: none; padding: 0 0 18px; }
  .footer-toggle .icon { display: none; }
}

/* ── Floating WhatsApp + toast ───────────────────────────── */
.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); transition: transform .25s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 28px; height: 28px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 130; background: var(--brand); color: #fff; padding: 12px 22px; font-size: 13px; letter-spacing: .06em; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
