/* ============================================================
   LAMSA — layout.css
   Page layout & components: header, hero, sections, product
   cards, footer, drawers, overlays, error pages.
   RTL-friendly: logical properties throughout.
   ============================================================ */

/* ---------- Announcement bar ---------- */

.announcement {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  z-index: 50;
}

.announcement__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.62rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  overflow: hidden;
  white-space: nowrap;
}

.announcement__item--hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .announcement__item--hidden-mobile {
    display: inline;
  }
}

/* 768–859 px: three strings no longer fit on one line, and because the bar
   centres its content the overflow used to be clipped at both ends. The
   middle line steps aside until there is room for all three again. */
@media (max-width: 859px) {
  .announcement__item--secondary {
    display: none;
  }
}

/* ---------- Site header ---------- */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-mid) var(--ease-soft), border-color var(--dur-mid) var(--ease-soft), backdrop-filter var(--dur-mid) var(--ease-soft);
}

/* The header shares the page surface; only a hairline appears once the
   page scrolls, so the top of every page reads as one uninterrupted field. */
.site-header.is-solid {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--border);
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-block: 1.05rem;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  justify-self: start;
  color: var(--text);
}

/* Shared brand mark — still used by the admin shell. */
.site-header__logo-mark {
  height: 34px;
  width: auto;
  display: block;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}

.site-header__logo-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

/* Storefront lockup: mark + wordmark as one transparent image, so the
   header, footer, drawer and auth card all show the real logo. */
.site-header__logo-img,
.site-footer__logo-img,
.auth-card__logo-img,
.drawer__logo-img {
  display: block;
  width: auto;
  max-width: none;
}

.site-header__logo-img {
  height: 32px;
}

.site-footer__logo-img {
  height: 30px;
}

.auth-card__logo-img {
  height: 34px;
}

.drawer__logo-img {
  height: 26px;
}

.site-header__burger {
  display: inline-grid;
  justify-self: start;
}

/* Below the desktop nav the logo owns the flexible middle column. Centring it
   keeps the header reading burger / brand / actions instead of leaving a gap
   between a left-aligned logo and the icons. */
@media (max-width: 1099px) {
  .site-header__logo {
    justify-self: center;
  }
}

/* The six nav links need ~1100 px once the icon row and the language menu are
   in place (French is the widest locale); under that the drawer carries the
   navigation. This is also where the header used to overflow sideways. */
@media (min-width: 1100px) {
  .site-header__burger {
    display: none;
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
  justify-self: end;
}

/* Minimal black icons: no filled hover box, the glyph itself softens. */
.site-header .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: none;
  color: var(--text);
}

.site-header .icon-btn svg {
  stroke-width: 1.5;
  transition: opacity var(--dur-fast) var(--ease-soft);
}

.site-header .icon-btn:hover {
  background: none;
}

.site-header .icon-btn:hover svg {
  opacity: 0.55;
}

/* ---------- Primary nav ---------- */

.site-nav {
  display: none;
  align-items: center;
  justify-self: center;
  gap: 2.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding-block: 0.5rem;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-soft);
}

/* One hairline that draws itself in on hover, and stays for the current page. */
.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0.15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-mid) var(--ease-expo);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

/* Desktop nav: only once the six links, the icon row and the language menu all
   fit on one line (1100 px is where French stops overflowing). */
@media (min-width: 1100px) {
  .site-nav {
    display: flex;
  }
}

/* ---------- Language switch ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  margin-inline-start: 0.55rem;
}

.lang-switch--column {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-inline-start: 0;
}

.lang-switch__link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.35rem 0.4rem;
  border-radius: 0;
  transition: color var(--dur-fast);
}

.lang-switch__link:hover {
  color: var(--text);
}

/* The active locale is marked with a hairline, not a filled pill. */
.lang-switch__link.is-active {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Language menu (header) ----------
   Compact disclosure: a globe plus the current locale, opening a small panel
   with every available language. It is a native <details>, so it opens and its
   links work without JavaScript; app.js only adds close-on-outside-click and
   close-on-Escape. The three text links it replaced were ~190 px wide and made
   the header overflow between 1100 and 1290 px. */

.lang-menu {
  position: relative;
  flex: none;
  margin-inline-start: 0.15rem;
}

.lang-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding-inline: 0.4rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.lang-menu > summary::-webkit-details-marker {
  display: none;
}

.lang-menu > summary::marker {
  content: "";
}

.lang-menu__code {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  transition: opacity var(--dur-fast) var(--ease-soft);
}

.lang-menu > summary:hover .lang-menu__code {
  opacity: 0.55;
}

.lang-menu__panel {
  position: absolute;
  inset-block-start: calc(100% + 0.4rem);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 11.5rem;
  padding: 0.35rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.lang-menu__title {
  margin: 0;
  padding: 0.45rem 0.6rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.lang-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 42px;
  padding: 0.35rem 0.6rem;
  color: var(--text);
  font-size: 0.82rem;
  transition: background var(--dur-fast) var(--ease-soft);
}

.lang-menu__link:hover,
.lang-menu__link:focus-visible {
  background: var(--bg-stone);
}

.lang-menu__link.is-active {
  background: var(--bg-stone);
  font-weight: 700;
}

.lang-menu__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.lang-menu__link.is-active .lang-menu__tag {
  color: var(--text);
}

/* Phones: the icon row is exactly full at 320 px, so the language menu takes
   the theme toggle's slot (dark mode stays in the drawer, and the page still
   follows the phone's system preference on its own). */
@media (max-width: 767px) {
  .site-header__inner {
    gap: 0.5rem;
    padding-block: 0.8rem;
  }
  .site-header__actions {
    gap: 0;
  }
  .site-header .theme-toggle {
    display: none;
  }
  .lang-menu > summary {
    min-width: 44px;
    height: 44px;
  }
  .site-header .site-header__logo-img {
    height: 28px;
  }
  .site-header__logo {
    gap: 0.5rem;
  }
  /* Touch screens: every header action keeps a 44 px target. */
  .site-header .icon-btn {
    width: 44px;
    height: 44px;
  }
}

/* 1200–1399 px: the lockup is wider than the old mark + text, so the nav
   tightens a little until the header has room for the full rhythm again. */
@media (min-width: 1200px) and (max-width: 1399px) {
  .site-nav {
    gap: 1.2rem;
    font-size: 0.75rem;
  }
}

/* Tablet / small laptop: the full nav only fits once the header is tightened */
@media (min-width: 992px) and (max-width: 1199px) {
  .site-header__inner {
    gap: 0.75rem;
  }
  .site-nav {
    gap: 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }
  .site-header__actions {
    gap: 0;
  }
  .site-header .icon-btn {
    width: 42px;
    height: 42px;
  }
  .lang-switch {
    margin-inline-start: 0.25rem;
  }
  .lang-switch__link {
    padding: 0.35rem 0.3rem;
    font-size: 0.75rem;
  }
}

/* Phones (up to 479 px). At its natural size the header row needs 400 px
   (2 x 20 gutter + 42 burger + 2 x 24 gap + 60 lockup + 210 actions), so every
   phone narrower than 400 px — 375, 390, 360, 320 — scrolled sideways by
   between 1 and 80 px. Tightened here to 339 px: the targets stay 40 px, only
   the space around them shrinks. */
@media (max-width: 479px) {
  .site-header__inner {
    padding-inline: 1rem;
    gap: 0.5rem;
  }
  .site-header .icon-btn {
    width: 40px;
    height: 40px;
  }
  .site-header .site-header__logo-img {
    height: 26px;
  }
  .site-header__logo {
    gap: 0.45rem;
  }
  .site-header__actions {
    gap: 0;
  }
}

/* Small phones (320 px): keep every header action inside the viewport.
   40 px is the smallest comfortable target that still fits five actions plus
   the lockup in 320 px — 8 + 40 + 44.9 + 202.4 + 8 = 303.3 px. */
@media (max-width: 360px) {
  .site-header__inner {
    gap: 0;
    padding-inline: 0.5rem;
  }
  .site-header .icon-btn {
    width: 40px;
    height: 40px;
  }
  .lang-menu > summary {
    min-width: 40px;
    height: 40px;
    padding-inline: 0;
  }
  .site-header .site-header__logo-img {
    height: 24px;
  }
  .site-header__logo {
    gap: 0.45rem;
  }
}

/* ---------- Mobile drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn var(--dur-fast) var(--ease-soft) both;
}

.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(380px, 88vw);
  background: var(--bg);
  border-inline-end: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.6rem 2rem;
  overflow-y: auto;
  animation: slideInLeft var(--dur-mid) var(--ease-expo) both;
}

.drawer__panel--end {
  inset-inline-start: auto;
  inset-inline-end: 0;
  border-inline-end: 0;
  border-inline-start: 1px solid var(--border);
  animation-name: slideInRight;
}

[dir="rtl"] .drawer__panel {
  animation-name: slideInRight;
}

[dir="rtl"] .drawer__panel--end {
  animation-name: slideInLeft;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.drawer__head .drawer__logo-img {
  height: 24px;
}

.drawer__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.drawer__nav a {
  display: flex;
  align-items: center;
  padding-block: 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--dur-fast) var(--ease-soft);
}

.drawer__nav a:first-child {
  border-top: 1px solid var(--border);
}

.drawer__nav a:hover {
  opacity: 0.55;
}

.drawer__nav a.is-active {
  opacity: 1;
  font-weight: 700;
}

.drawer__lang {
  margin-top: auto;
  display: flex;
  gap: 0.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---------- Hero ----------
   One off-white field, a soft stone wash, the headline, and a single
   campaign photograph on the right. The type still leads; the photo gives
   the collection its street context. */

.hero {
  position: relative;
  min-height: clamp(34rem, 82vh, 51rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-block-end: 1px solid var(--border);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 720px at 86% -10%, rgba(183, 169, 154, 0.3), transparent 66%),
    var(--bg);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgb(var(--bg-rgb) / 0.45) 30%, transparent 62%);
}

.hero__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(2.75rem, 6vw, 5.5rem) var(--gutter);
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.82fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5.5rem);
  }
}

.hero__content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* A framed campaign plate: the same plate language as the product cards,
   with a bracket frame floating 18px outside it. */
.hero__figure {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 32rem;
  aspect-ratio: 3 / 4;
  position: relative;
}

/* Four L-shaped ticks, 18px clear of the plate. currentColor follows the
   theme through --graphite, so the frame never picks up a stray grey. */
.hero__frame {
  position: absolute;
  inset: -18px;
  pointer-events: none;
  color: var(--graphite-soft);
  transform: translate3d(var(--frame-x, 0px), var(--frame-y, 0px), 0) scale(var(--frame-scale, 1));
  transition: transform 520ms var(--ease-expo);
}

/* On a hover-capable screen the frame breathes out a few pixels while the
   photo leans in: two layers, one gesture. */
@media (hover: hover) and (pointer: fine) {
  .hero__figure:hover .hero__frame {
    --frame-scale: 1.045;
  }
}

.hero__frame span {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid currentColor;
}

.hero__frame span:nth-child(1) {
  inset-block-start: 0;
  inset-inline-start: 0;
  border-block-start-width: 1px;
  border-inline-start-width: 1px;
}

.hero__frame span:nth-child(2) {
  inset-block-start: 0;
  inset-inline-end: 0;
  border-block-start-width: 1px;
  border-inline-end-width: 1px;
}

.hero__frame span:nth-child(3) {
  inset-block-end: 0;
  inset-inline-end: 0;
  border-block-end-width: 1px;
  border-inline-end-width: 1px;
}

.hero__frame span:nth-child(4) {
  inset-block-end: 0;
  inset-inline-start: 0;
  border-block-end-width: 1px;
  border-inline-start-width: 1px;
}

/* The plate clips the photograph, so the parallax and the hover zoom can
   never push a raw edge into view. The 1.05 rest scale is what buys the
   ±9px of travel in app.js. */
.hero__plate {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.hero__plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0) scale(var(--hero-zoom, 1.05));
  transition: transform 700ms var(--ease-expo);
}

@media (hover: hover) and (pointer: fine) {
  .hero__figure:hover .hero__plate img {
    --hero-zoom: 1.09;
  }
}

/* A still photograph must stay still when the visitor asked for that. */
@media (prefers-reduced-motion: reduce) {
  .hero__plate img {
    transform: none;
    transition: none;
  }
}

/* Tablets: the photo keeps its portrait ratio and centres under the copy. */
@media (max-width: 991px) {
  .hero__figure {
    justify-self: center;
  }
}

/* Phones: the campaign plate takes the headline's place at the top of the
   page and the headline is set over the photograph, the way a magazine
   cover works. Everything below the plate keeps the paper surface. */
@media (max-width: 640px) {
  .hero__inner {
    row-gap: 0;
    padding-block-start: 0;
  }

  /* Drops the wrapper so the head, subtitle, cta and trust become rows of
     the hero grid; that lets the headline share the plate's row without
     duplicating it in the markup. */
  .hero__content {
    display: contents;
  }

  .hero__figure {
    grid-row: 1;
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
    /* Square plate on phones: the photo still leads, but the whole story
       (headline, subtitle, buttons, trust strip) fits the first screen. */
    aspect-ratio: 1 / 1;
    /* On a wide-but-short screen (640x800, landscape phones) the plate would
       otherwise eat the whole first screen and push the CTA out of reach. */
    max-height: 72svh;
    /* width:100% would be measured against the padded column, so the plate
       has to be widened by the two gutters it cancels out. */
    width: calc(100% + 2 * var(--gutter));
    margin-inline: calc(var(--gutter) * -1);
  }

  .hero__plate {
    border: 0;
  }

  /* No room for a frame outside a full-bleed plate. */
  .hero__frame {
    display: none;
  }

  /* Scrim: the headline sits over the darkest, quietest end of the plate,
     so it stays readable wherever the photograph is light. */
  .hero__plate::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(17, 17, 17, 0.86) 0%,
      rgba(17, 17, 17, 0.62) 26%,
      rgba(17, 17, 17, 0.26) 46%,
      rgba(17, 17, 17, 0) 66%
    );
    pointer-events: none;
  }

  .hero__head {
    grid-row: 1;
    grid-column: 1;
    align-self: end;
    position: relative;
    z-index: 2;
    /* The inner already carries the gutter, so only the lower offset here. */
    padding: 0 0 1.75rem;
  }

  /* Fixed tones, not theme tokens: the photograph never changes with the
     theme, so the type on it must not either. Scoped to .hero__head so the
     global .hero__eyebrow colour further down cannot win the cascade. */
  .hero__head .hero__eyebrow {
    color: #b7a99a;
    text-shadow: 0 1px 18px rgba(17, 17, 17, 0.75);
  }

  .hero__head .hero__title {
    color: #f5f5f2;
    text-shadow: 0 1px 30px rgba(17, 17, 17, 0.45);
  }
}

/* The photo itself says the page continues, so the scroll cue retires. */
.hero--media .hero__scroll {
  display: none;
}

.hero__eyebrow {
  color: var(--text-muted);
}

.hero__title {
  font-size: clamp(2.75rem, 7.2vw, 6rem);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.hero__line {
  display: block;
}

.hero__subtitle {
  max-width: 32ch;
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.25rem;
  max-width: 40rem;
  margin-top: 3rem;
  padding-top: 1.35rem;
  border-block-start: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll {
  position: absolute;
  inset-inline-end: var(--gutter);
  inset-block-end: 2rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text-muted);
}

.hero__scroll span {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  animation: scrollPulse 2.2s var(--ease-soft) infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Featured collection tiles ---------- */

.featured__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .featured__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.collection-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(19rem, 36vw, 26rem);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  isolation: isolate;
  transition: border-color var(--dur-mid) var(--ease-soft);
}

.collection-tile:hover,
.collection-tile:focus-visible {
  border-color: rgb(var(--ink-rgb) / 0.28);
}

.collection-tile--lg {
  min-height: clamp(22rem, 46vw, 32rem);
}

/* Media wells are neutral plates: the store's photography drops straight in. */
.collection-tile__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-stone);
  transition: transform var(--dur-slow) var(--ease-expo);
}

.collection-tile:hover .collection-tile__media {
  transform: scale(1.02);
}

.collection-tile__media--terra {
  background-color: var(--clay);
}

.collection-tile__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem 1.75rem 1.65rem;
  background: var(--bg-card);
  border-block-start: 1px solid var(--border);
}

.collection-tile__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.collection-tile__body p {
  color: var(--text-muted);
  margin: 0 0 1.15rem;
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ---------- Product scroller (swiper markup, grid fallback) ---------- */

.product-scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--graphite) transparent;
  padding-block-end: 0.5rem;
  /* Align the rail with the section heading instead of bleeding to the edge. */
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}

.product-scroller::-webkit-scrollbar {
  height: 6px;
}

.product-scroller::-webkit-scrollbar-thumb {
  background: var(--graphite);
  border-radius: 999px;
}

.swiper-wrapper {
  display: flex;
  gap: 1.25rem;
}

.swiper-slide {
  scroll-snap-align: start;
  flex: 0 0 min(78vw, 320px);
}

@media (min-width: 768px) {
  .swiper-slide {
    flex-basis: 300px;
  }
}

@media (min-width: 1200px) {
  .product-scroller {
    overflow: visible;
    max-width: var(--container);
    margin-inline: auto;
  }
  .swiper-wrapper {
    flex-wrap: wrap;
  }
  .swiper-slide {
    flex: 0 0 calc(25% - 0.9375rem);
  }
}

/* ---------- Product card ----------
   Editorial, quiet card: white plate on the off-white page, a hairline edge,
   a 3:4 image well and text set in the display serif. No lift, no shadow —
   the only motion is the image zoom, the second image crossfade and the
   quick-view bar rising from the bottom edge. */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--dur-mid) var(--ease-soft);
}

.product-card:hover,
.product-card:focus-within {
  border-color: rgb(var(--ink-rgb) / 0.28);
}

.product-card--placeholder {
  align-items: center;
  justify-content: center;
  min-height: 420px;
  color: var(--text-faint);
}

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg);
}

.product-card__link {
  display: block;
  position: absolute;
  inset: 0;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-expo), opacity var(--dur-mid) var(--ease-soft);
}

.product-card__img--second {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .product-card__img--second,
.product-card:focus-within .product-card__img--second {
  opacity: 1;
}

.product-card:hover .product-card__img,
.product-card:focus-within .product-card__img {
  transform: scale(1.03);
}

/* Badges are scoped to the card so the PDP / cart badges keep their own look. */
.product-card__badges {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  pointer-events: none;
}

.product-card__badges .badge {
  padding: 0.28rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  border-radius: 0;
  background: rgb(var(--paper-rgb) / 0.94);
  border: 1px solid rgb(var(--ink-rgb) / 0.1);
  color: var(--text);
}

.product-card__badges .badge--sale {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.product-card__wishlist {
  position: absolute;
  inset-block-start: 0.6rem;
  inset-inline-end: 0.6rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(var(--paper-rgb) / 0.92);
  border: 1px solid rgb(var(--ink-rgb) / 0.1);
  color: var(--text);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.product-card__wishlist:hover,
.product-card__wishlist:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.product-card__wishlist.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.product-card__wishlist.is-active svg {
  fill: currentColor;
}

/* Quick view: a slim white bar that rises on hover / keyboard focus. */
.product-card__actions {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  transform: translateY(101%);
  transition: transform var(--dur-mid) var(--ease-expo);
}

.product-card:hover .product-card__actions,
.product-card:focus-within .product-card__actions {
  transform: translateY(0);
}

.product-card__actions .btn {
  padding-block: 0.8rem;
  border-radius: 0;
  border-block-start: 1px solid rgb(var(--ink-rgb) / 0.1);
  background: rgb(var(--paper-rgb) / 0.96);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.product-card__actions .btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.95rem 1rem 1.1rem;
}

.product-card__colors {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.1rem;
}

.product-card__colors .swatch {
  width: 14px;
  height: 14px;
  border-color: rgb(var(--ink-rgb) / 0.18);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.product-card__name:hover {
  color: var(--text);
  text-decoration: underline;
}

[dir="rtl"] .product-card__name {
  font-family: var(--font-arabic);
}

.product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* A price is one unbreakable token ("399.00 MAD"). On a narrow two-column
   card the old price wraps underneath instead of splitting mid-number. */
.product-card__sale,
.product-card__old {
  white-space: nowrap;
}

.product-card__sale {
  color: var(--text);
  font-weight: 600;
}

.product-card__old {
  color: var(--text-muted);
  font-weight: 400;
}

.product-card__sizes {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__stock {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Wishlist page only: a quiet text action under the card text. */
.product-card__cta {
  margin-top: 0.55rem;
  padding: 0.6rem 0.5rem;
  border: 0;
  border-block-start: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.product-card__cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Small phones: the 2-up grid makes each card ~125 px wide, so the text
   block tightens up rather than wrapping into a ragged stack. */
@media (max-width: 479px) {
  .product-card__body {
    gap: 0.32rem;
    padding: 0.75rem 0.8rem 0.9rem;
  }

  .product-card__name {
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .product-card__price {
    font-size: 0.84rem;
    gap: 0.35rem;
  }

  .product-card__sizes {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }

  .product-card__badges {
    inset-block-start: 0.5rem;
    inset-inline-start: 0.5rem;
  }

  .product-card__badges .badge {
    padding: 0.24rem 0.4rem;
    font-size: 0.75rem;
  }

  .product-card__wishlist {
    width: 28px;
    height: 28px;
    inset-block-start: 0.4rem;
    inset-inline-end: 0.4rem;
  }

  .product-card__wishlist svg {
    width: 15px;
    height: 15px;
  }
}

/* ---------- Story ---------- */

.story__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 992px) {
  .story__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
}

.story__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  border: 1px solid var(--border);
  background-color: var(--bg-stone);
  background-image: url('/uploads/derived/b40b6ffae5e282003830326546cff501e0de8a53-720.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Mat board: a hairline inset frame so a media well without photography still
   reads as a deliberate editorial plate rather than a missing image. */
.story__media::after,
.custom-made__media::after {
  content: "";
  position: absolute;
  inset: clamp(0.9rem, 2vw, 1.5rem);
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.story__body .section__title {
  margin-bottom: 1.25rem;
}

.story__text {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 44ch;
  margin: 0 0 2rem;
}

/* ---------- 3D showcase ---------- */

.showcase {
  position: relative;
  overflow: hidden;
}

.showcase__inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
}

@media (min-width: 992px) {
  .showcase__inner {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
  }
}

/* Brand plate: a stone field with the LAMSA mark centred on it. */
.showcase__canvas {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 2px;
  background-color: var(--clay);
  background-image:
    url('../images/logo-mark-dark.webp'),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.22), transparent 62%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 44% auto, auto;
}

.showcase__body .section__title {
  margin-bottom: 1.75rem;
}

/* ---------- Custom made ---------- */

.custom-made__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 992px) {
  .custom-made__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.custom-made__body .section__title {
  margin-bottom: 1.25rem;
}

.custom-made__text {
  color: var(--text-muted);
  max-width: 44ch;
  margin: 0 0 2rem;
}

.custom-made__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.custom-made__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  border: 1px solid var(--border);
  background-color: var(--bg-stone);
  background-image: url('/uploads/derived/d6c4a313b9902a322c5d930ed26bfdf570de949c-720.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* ---------- Why grid ---------- */

.why__grid {
  counter-reset: why;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .why__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why__tile {
  counter-increment: why;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.6rem 1.75rem 1.9rem;
  transition: border-color var(--dur-mid) var(--ease-soft);
}

.why__tile:hover {
  border-color: rgb(var(--ink-rgb) / 0.24);
}

.why__tile::before {
  content: "0" counter(why);
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.why__tile h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.why__tile p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ---------- Social grid ---------- */

.social__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .social__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .social__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.social__tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  border: 1px solid var(--border);
  background-color: var(--bg-stone);
  transition: border-color var(--dur-mid) var(--ease-soft), background-color var(--dur-mid) var(--ease-soft);
}

.social__tile::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.social__tile:hover {
  border-color: rgb(var(--ink-rgb) / 0.28);
  background-color: var(--clay);
}

/* ---------- Newsletter ---------- */

.newsletter {
  border-block-start: 1px solid var(--border);
}

.newsletter__inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.newsletter__form {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

@media (min-width: 640px) {
  .newsletter__form {
    grid-template-columns: 1fr auto;
  }
}

.newsletter__form .input {
  height: 3.5rem;
  background: var(--bg-elev);
}

/* Match the field height so the pair reads as one control on every width. */
.newsletter__form .btn {
  height: 3.5rem;
  padding-block: 0;
}

.newsletter__privacy {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin-top: 1rem;
}

/* ---------- Footer ---------- */

.site-footer {
  /* Footer is the one intentionally dark surface */
  --bg: #111111;
  --bg-card: #111111;
  --border: rgba(255, 255, 255, 0.14);
  --text: #FFFFFF;
  --text-muted: #B7A99A;
  --text-faint: rgba(255, 255, 255, 0.55);
  --terra-soft: #FFFFFF;
  background: #111111;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter) 2rem;
}

.site-footer__grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

/* Phones: the brand keeps its own row and the four link columns pair up, so
   the footer stays scannable instead of becoming one long stack. */
@media (min-width: 360px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  .site-footer__grid {
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
  .site-footer__brand {
    grid-column: auto;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1rem;
}

.site-footer__tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 28ch;
  margin: 0;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer__heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.site-footer__col a {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.5;
  transition: color var(--dur-fast);
}

.site-footer__col a:hover {
  color: var(--clay);
}

.site-footer__social {
  max-width: var(--container);
  margin: 3rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.site-footer__social a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  transition: color var(--dur-fast);
}

.site-footer__social a:hover {
  color: var(--text);
}

.site-footer__legal {
  max-width: var(--container);
  margin-inline: auto;
  margin-top: 1.5rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__cod {
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  transition: background var(--dur-fast), transform var(--dur-fast);
}

.wa-float:hover {
  background: var(--terra-soft);
  transform: translateY(-2px);
}

.wa-float__label {
  font-size: 0.82rem;
}

@media (max-width: 480px) {
  .wa-float__label {
    display: none;
  }
}

/* ---------- Search overlay ---------- */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
}

.search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn var(--dur-fast) var(--ease-soft) both;
}

.search-overlay__panel {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  margin-block-start: clamp(4rem, 12vh, 8rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  animation: fadeUp var(--dur-mid) var(--ease-expo) both;
}

.search-overlay__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-block: 0.6rem;
  color: var(--text-faint);
}

.search-box:focus-within {
  border-bottom-color: var(--terra);
  color: var(--terra-soft);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
}

.search-box input:focus {
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-faint);
}

.search-results {
  margin-top: 1.25rem;
}

/* ---------- Cart drawer extras ---------- */

.cart-progress {
  margin-bottom: 1.25rem;
}

.cart-progress__track {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.cart-progress__bar {
  height: 100%;
  background: var(--terra);
  border-radius: 999px;
  transition: width var(--dur-mid) var(--ease-soft);
}

.cart-progress__msg {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-empty {
  color: var(--text-faint);
  font-size: 0.92rem;
  text-align: center;
  padding: 2rem 0;
}

.cart-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cart-summary__row--total {
  font-weight: 800;
  color: var(--text);
  font-size: 1rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.6rem;
  margin-top: 0.3rem;
}

/* ---------- Error pages ---------- */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--gutter);
}

.error-wrap {
  width: 100%;
  max-width: 560px;
}

.error-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(2.5rem, 8vw, 4rem);
  animation: fadeUp var(--dur-mid) var(--ease-expo) both;
}

.error-card__code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.error-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.error-card__message {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero__scroll span,
  .hero__media,
  .collection-tile__media {
    animation: none !important;
    transform: none !important;
  }
  .drawer__panel,
  .drawer__backdrop,
  .search-overlay__panel,
  .search-overlay__backdrop {
    animation: none !important;
  }
  .product-card__actions {
    transform: none;
  }
}

/* ---------- Reading pages (about, custom made, shipping, returns, terms,
   privacy, FAQ) ----------
   These pages render into .prose and .page-lead, neither of which had a rule.
   The global list reset stripped the bullets and the item spacing, so the
   region table on /shipping read as four loose lines, and the headings used
   the browser's default margins inside a 1400 px column. */

.page-lead,
.contact__lead {
  margin: 1rem 0 0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Contact page ----------
   .contact__* shipped with no rules: the four details stacked as full-width
   serif headings and the form inputs stretched the whole 1400 px container.
   Details on the left, form capped to a readable column on the right. */

.contact__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  }
}

.contact__info {
  display: grid;
  gap: 1.6rem;
  align-content: start;
}

.contact__info-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

[dir="rtl"] .contact__info-title {
  letter-spacing: 0.04em;
}

.contact__info-item p {
  margin: 0.45rem 0 0;
  font-size: 1.05rem;
}

.contact__form {
  max-width: 560px;
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.page-cta p {
  margin: 0;
}

.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.15rem;
}

.prose h2 {
  margin: 2.6rem 0 0.7rem;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: var(--text);
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

/* A short dash instead of a bullet: the list keeps the editorial tone and
   still lines up under RTL because every offset is logical. */
.prose ul,
.prose ol {
  display: grid;
  gap: 0.5rem;
  padding-inline-start: 1.2rem;
}

.prose li {
  position: relative;
}

.prose li::before {
  content: "";
  position: absolute;
  inset-inline-start: -1.2rem;
  top: 0.95em;
  width: 0.6rem;
  height: 1px;
  background: var(--text-faint);
}

.prose ul.is-numbered {
  padding-inline-start: 0;
}

.prose ul.is-numbered li::before {
  content: none;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.prose a:hover {
  color: var(--text);
}

/* ---------- Auth pages ---------- */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--gutter);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(183, 169, 154, 0.28), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(183, 169, 154, 0.12), transparent 55%),
    var(--bg);
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  box-shadow: var(--shadow-card);
  animation: fadeUp var(--dur-mid) var(--ease-expo) both;
}

.auth-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.auth-card__lang {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
}

/* Theme toggle sits at the far end of the locale row. */
.auth-card__lang .theme-toggle {
  margin-inline-start: auto;
  color: var(--text-muted);
}

.auth-card__lang .theme-toggle:hover {
  color: var(--text);
  background: none;
}

.auth-card__head {
  margin-bottom: 1.5rem;
}

.auth-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.auth-card__sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.auth-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.3rem 0 1.25rem;
  font-size: 0.85rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  accent-color: var(--terra);
}

.auth-card__switch {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-card__switch a {
  color: var(--terra-soft);
  font-weight: 700;
}

.auth-card__foot {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.alert {
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  border: 1px solid;
}

.alert p {
  margin: 0;
}

.alert p + p {
  margin-top: 0.3rem;
}

.alert--success {
  color: var(--success);
  border-color: rgba(46, 125, 79, 0.4);
  background: rgba(46, 125, 79, 0.08);
}

.alert--error {
  color: var(--danger);
  border-color: rgba(179, 50, 43, 0.4);
  background: rgba(179, 50, 43, 0.07);
}

.alert--info {
  color: var(--text);
  border-color: var(--border);
  background: rgb(var(--ink-rgb) / 0.04);
}

/* ---------- Account page ---------- */

.account__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .account__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.account__panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
}

.account__panel--muted {
  color: var(--text-muted);
}

.account__panel-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.account__list {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.6rem;
}

.account__list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.5rem;
}

.account__list dt {
  color: var(--text-muted);
}

.account__list dd {
  margin: 0;
  font-weight: 600;
}

.account__logout {
  margin-top: 1rem;
}

/* ---------- Admin shell ---------- */

.admin-shell__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-shell__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--terra);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}

.admin-shell__nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-shell__user {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-shell__user button {
  color: var(--terra-soft);
  font-weight: 700;
}

.admin-shell__main {
  min-height: 60vh;
}

.admin-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .admin-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admin-stats__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-stats__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.admin-stats__label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-page__note {
  color: var(--text-faint);
  font-size: 0.88rem;
}

.admin-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  text-align: start;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------------------
   Phase 4 — Admin dashboard
--------------------------------------------------------------------------- */

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.admin-filter__presets {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.admin-filter__link {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
}

.admin-filter__link:hover {
  border-color: var(--text-faint);
}

.admin-filter__link.is-active {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--paper);
}

.admin-filter__custom {
  display: flex;
  align-items: end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-filter__custom label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.admin-filter__custom input[type="date"] {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
}

.admin-stats--6 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .admin-stats--6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .admin-stats--6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

.admin-stats__card small {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-faint);
}

.admin-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .admin-charts {
    grid-template-columns: 2fr 1fr;
  }
}

.admin-charts__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.admin-charts__canvas {
  position: relative;
  height: 260px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  padding: 0.75rem;
}

.admin-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  .admin-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.admin-table__num {
  text-align: end !important;
}

.admin-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: #8a8078;
  white-space: nowrap;
}

.admin-badge--received { background: #6B7A54; }
.admin-badge--confirmed { background: #2B3440; }
.admin-badge--preparing { background: #8a7a66; }
.admin-badge--shipped { background: #a8906f; }
.admin-badge--out_for_delivery { background: #777777; }
.admin-badge--delivered { background: #3a6b35; }
.admin-badge--cancelled { background: #a33a3a; }
.admin-badge--returned { background: #7a5a4a; }

/* ---------------------------------------------------------------------------
   Phase 5 — Catalog management
--------------------------------------------------------------------------- */

.admin-form-wrap {
  max-width: 1080px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.admin-tabs__btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-tabs__btn.is-active {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--paper);
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.25rem;
}

@media (min-width: 768px) {
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field--wide {
  grid-column: 1 / -1;
}

.admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  margin: 1rem 0 1.25rem;
}

.admin-checks--cols {
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
}

.admin-panel__lang {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
}

.admin-panel__lang summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.admin-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.admin-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.admin-images__item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  margin: 0;
}

.admin-images__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.admin-images__item figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem;
  font-size: 0.78rem;
}

.admin-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-panel__hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 1rem;
}

.hex-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hex-wrap .input {
  flex: 1;
  min-width: 90px;
}

.admin-inline button {
  background: none;
  border: none;
  padding: 0;
  color: var(--terra-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.admin-inline button.is-danger {
  color: var(--danger);
}

.admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  white-space: nowrap;
}

.admin-actions > a {
  color: var(--terra-soft);
  font-weight: 700;
}

.admin-prod {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 220px;
}

.admin-prod__img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.admin-prod__name {
  font-weight: 600;
}

.admin-flags {
  display: inline-flex;
  gap: 0.25rem;
}

.admin-flags span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--terra);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-table__center {
  text-align: center !important;
}

.admin-table__muted {
  display: block;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.admin-table__num.is-negative {
  color: var(--danger);
  font-weight: 700;
}

.admin-table__num.is-low {
  color: #a0671f;
  font-weight: 700;
}

.admin-table--spaced {
  margin-bottom: 1.5rem;
}

.admin-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  vertical-align: -2px;
  margin-inline-end: 0.25rem;
}

.admin-adjust {
  gap: 0.35rem;
  flex-wrap: wrap;
}

.admin-adjust__qty {
  width: 76px !important;
  padding: 0.4rem 0.5rem !important;
}

.admin-adjust__reason {
  width: auto !important;
  padding: 0.4rem 0.5rem !important;
}

.admin-adjust__note {
  width: 140px !important;
  padding: 0.4rem 0.5rem !important;
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

.admin-badge--draft { background: #8a8078; }
.admin-badge--active { background: #3a6b35; }
.admin-badge--hidden { background: #55524d; }
.admin-badge--out_of_stock { background: #a33a3a; }
.admin-badge--paused { background: #a0671f; }
.admin-badge--expired { background: #55524d; }

/* ============================================================
   Phase 6 — Shop
   ============================================================ */

.shop-hero {
  padding-block: clamp(3rem, 8vw, 5rem) 0;
}

.shop-hero__sub {
  max-width: 560px;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.shop {
  padding-block-start: clamp(2.5rem, 6vw, 4rem);
}

.shop__toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.shop__count {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop__sort {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.shop__sort-link {
  position: relative;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color var(--dur-fast);
}

.shop__sort-link:hover {
  color: var(--text);
}

.shop__sort-link.is-active {
  color: var(--text);
}

.shop__sort-link.is-active::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--terra);
}

.shop__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.shop__chips-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-inline-end: 0.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.chip:hover {
  border-color: var(--terra);
}

.chip__x {
  color: var(--text-faint);
  font-size: 1rem;
  line-height: 1;
}

.chip--clear {
  color: var(--text-muted);
  border-style: dashed;
}

.shop__layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.shop__filters {
  position: sticky;
  top: 2rem;
  border-inline-end: 1px solid var(--border);
  padding-inline-end: clamp(1.5rem, 3vw, 2.5rem);
}

.shop__filters-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 1.5rem;
}

/* Phones / tablets: the grid comes first and the panel opens from this bar.
   On desktop the sidebar is always visible and both are hidden. */
.shop__filters-bar {
  display: none;
}

.shop__filters-done {
  display: none;
}

.filter-group {
  margin-bottom: 1.75rem;
}

.filter-group__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.75rem;
}

.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.filter-list li + li {
  margin-top: 0.35rem;
}

.filter-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--dur-fast);
}

.filter-link:hover,
.filter-link.is-active {
  color: var(--text);
}

.filter-link.is-active .filter-link__name {
  color: var(--terra);
}

.swatch--sm {
  width: 14px;
  height: 14px;
  flex: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  min-width: 40px;
  text-align: center;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

.filter-chip:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.filter-chip.is-active {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--ivory);
}

.filter-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.75rem;
  color: var(--terra);
  flex: none;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.price-range__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}

.input--sm {
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
}

.shop__content {
  min-width: 0;
}

.shop__grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem);
}

/* ---------- Collections page ----------
   The page markup (.collection-block*) shipped without any rules: the section
   head stacked its title over the "See all" button, and each collection's
   product grid used the shop's five-column auto-fill, leaving one 1/5-wide
   card stranded on the left. The head is a row and the grid uses auto-fit
   with a capped card width, so one or two products sit centred at a sane
   size instead of hugging the edge. */
.collection-block {
  margin-top: clamp(2.25rem, 4.5vw, 3.75rem);
}

.collection-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.collection-block__title {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.collection-block__desc {
  margin-top: 0.35rem;
  max-width: 60ch;
  color: var(--text-muted);
}

.collection-block .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 380px));
  justify-content: start;
}

.collection-block__empty {
  padding: 2.5rem 0;
  color: var(--text-muted);
}

.shop__empty {
  border: 1px dashed var(--border);
  padding: 4rem 2rem;
  text-align: center;
}

.shop__empty-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}

.pagination__link {
  min-width: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

.pagination__link:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.pagination__link.is-active {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--ivory);
}

.pagination__dot {
  color: var(--text-faint);
  padding: 0.5rem 0.25rem;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--dur-fast);
}

.search-result:hover {
  opacity: 0.85;
}

.search-result__img {
  width: 52px;
  height: 66px;
  object-fit: cover;
  flex: none;
  border-radius: 2px;
}

.search-result__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.search-result__name {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result__price {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.search-results__empty {
  margin: 1.5rem 0 0;
  color: var(--text-faint);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .shop__layout {
    grid-template-columns: 1fr;
  }

  /* The products come first: the filter panel is closed until the bar above
     the grid is tapped, and it opens in place, right under the bar.
     Everything here is gated on `.js` (set in the head boot script): without
     JavaScript the panel stays open so the filters remain reachable. */
  .js .shop__filters-bar {
    display: block;
    margin-bottom: 1.25rem;
  }

  .shop__filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .shop__filters-toggle:hover {
    border-color: var(--terra);
  }

  .shop__filters-toggle__label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
  }

  .shop__filters-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0;
    text-align: center;
  }

  .shop__filters-toggle__chevron {
    flex: none;
    transition: transform var(--dur-fast);
  }

  .shop__filters-toggle[aria-expanded="true"] .shop__filters-toggle__chevron {
    transform: rotate(180deg);
  }

  .shop__filters {
    position: static;
    border: 1px solid var(--border);
    padding: 1.25rem 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    scroll-margin-top: 6rem;
  }

  .js .shop__filters {
    display: none;
  }

  .js .shop__filters.is-open {
    display: block;
  }

  /* The bar above already says "Filters". */
  .js .shop__filters-title {
    display: none;
  }

  .js .shop__filters-done {
    display: flex;
    margin-top: 0.5rem;
  }
}

@media (max-width: 640px) {
  .shop__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  /* One fixed row: with the fallback font the links wrapped onto a second
     line and the webfont swap then pulled the whole grid up by ~63 px
     (CLS 0.126). A single scrollable row has a height that no font can
     change, and the tabs stay reachable by swiping. */
  .shop__sort {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }

  .shop__sort::-webkit-scrollbar {
    display: none;
  }

  .shop__sort-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .shop__grid,
  .product-grid,
  .collection-block .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ============================================================
   TOUCH TARGETS (phones / tablets)
   Every control a thumb has to hit keeps at least a 40 px box.
   Text links (breadcrumbs, product names) are deliberately left
   alone: they are inline links, not buttons.
   ============================================================ */

@media (max-width: 899px) {
  /* The wishlist heart sits in the corner of the card photo. */
  .product-card__wishlist {
    width: 40px;
    height: 40px;
    inset-block-start: 0.45rem;
    inset-inline-end: 0.45rem;
  }

  /* The lockup link itself: 44 px tall without moving the header. */
  .site-header__logo {
    min-height: 44px;
    padding-block: 0.5rem;
    margin-block: -0.5rem;
  }

  /* Sort tabs: padding grows the hit area, the rule under the active tab
     moves with it. */
  .shop__sort-link {
    padding-block: 0.7rem;
  }
  .shop__sort-link.is-active::after {
    bottom: 0.5rem;
  }

  /* Stacked language list (footer + drawer). */
  .lang-switch--column .lang-switch__link {
    padding-block: 0.8rem;
  }

  /* Small "See all" button on the collections page. */
  .collection-block__head .btn--sm {
    min-height: 40px;
  }

  /* Category filter rows and footer link lists are thumb targets: full-height
     rows instead of 21 px text lines. */
  .filter-link {
    min-height: 40px;
    padding-block: 0.2rem;
  }

  .site-footer__col {
    gap: 0.15rem;
  }
  .site-footer__col a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
  .site-footer__social a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  /* Size filter chips wrap to several rows on a phone: give each one a real
     box instead of a 36 px strip. */
  .filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding-block: 0.55rem;
  }

  /* The card title is the main tap target under the photo. Padding grows the
     box, the negative margin keeps the card rhythm unchanged. */
  .product-card__name {
    padding-block: 0.65rem;
    margin-block: -0.65rem;
  }

  /* Header language switch sits between 42-44 px icon buttons. */
  .site-header .lang-switch__link {
    padding-block: 0.7rem;
  }

  /* Drawer language row at the bottom of the mobile menu. */
  .drawer__lang .lang-switch__link {
    padding-block: 0.7rem;
  }

  /* Small buttons (price filter "Apply", collection "See all"). */
  .btn--sm {
    min-height: 40px;
  }

  /* Auth card: the lockup link, the language row and the standalone links. */
  .auth-card__brand {
    min-height: 44px;
  }
  .auth-card__lang .lang-switch__link {
    padding-block: 0.7rem;
  }
  .auth-card__row .link-arrow,
  .auth-card__foot a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
  /* Sits inside a sentence on login/register, so the hit area grows with
     padding and the line box stays put. */
  .auth-card__switch a {
    display: inline-block;
    padding-block: 0.7rem;
    margin-block: -0.7rem;
  }

  /* Phone / email / instagram links in the contact panel. */
  .link-plain {
    display: inline-block;
    padding-block: 0.6rem;
    margin-block: -0.6rem;
  }
}
