/* ==========================================================================
   pages.css — storefront page compositions:
   home hero, catalog toolbar, product detail + gallery, auctions, contact.
   ========================================================================== */

/* ============================================================ home hero == */

.hero {
  position: relative;
  min-block-size: min(88vh, 780px);
  display: grid;
  align-items: center;
  background: var(--dark-bg);
  color: var(--dark-text);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  opacity: 0.5;
  animation: hero-drift 26s var(--ease) infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.04) translateX(-1%); }
  to   { transform: scale(1.13) translateX(1.5%); }
}

.hero::after {
  /* Readability scrim: dark on the text side, transparent toward the art. */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(20, 16, 12, 0.62), rgba(20, 16, 12, 0.34) 45%, rgba(20, 16, 12, 0.9)),
    radial-gradient(75% 90% at 22% 45%, rgba(20, 16, 12, 0.78), transparent 68%);
}
:root[dir="rtl"] .hero::after {
  background:
    linear-gradient(to bottom, rgba(20, 16, 12, 0.62), rgba(20, 16, 12, 0.34) 45%, rgba(20, 16, 12, 0.9)),
    radial-gradient(75% 90% at 78% 45%, rgba(20, 16, 12, 0.78), transparent 68%);
}

.hero__inner {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 9vw, 8rem);
  max-inline-size: 660px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 6px 15px 6px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--dark-line);
  background: rgba(217, 183, 107, 0.08);
  backdrop-filter: blur(8px);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold-bright);
  animation: fade-up var(--t-slow) var(--ease-out) both;
}
:root[lang="ar"] .hero__eyebrow { text-transform: none; letter-spacing: 0; font-size: var(--fs-xs); }
.hero__eyebrow-dot {
  inline-size: 20px; block-size: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}
.hero__eyebrow-dot svg { inline-size: 12px; block-size: 12px; }

.hero__title {
  margin-block-start: var(--sp-5);
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--dark-text);
  animation: fade-up var(--t-slower) var(--ease-out) 90ms both;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-bright);
  /* gold gradient text with a solid fallback */
  background: linear-gradient(100deg, var(--gold-bright), #f0dcae 45%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[lang="ar"] .hero__title em { font-style: normal; font-weight: 700; }

.hero__lede {
  margin-block-start: var(--sp-5);
  max-inline-size: 52ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.14rem);
  line-height: var(--lh-body);
  color: var(--dark-text-soft);
  animation: fade-up var(--t-slower) var(--ease-out) 180ms both;
}

.hero__actions {
  margin-block-start: var(--sp-7);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  animation: fade-up var(--t-slower) var(--ease-out) 280ms both;
}

.hero__stats {
  margin-block-start: var(--sp-8);
  display: flex;
  gap: clamp(1.5rem, 1rem + 3vw, 3.4rem);
  flex-wrap: wrap;
  padding-block-start: var(--sp-6);
  border-block-start: 1px solid var(--dark-line);
  animation: fade-up var(--t-slower) var(--ease-out) 380ms both;
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.4rem + 1.1vw, 2.3rem);
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1;
}
.hero__stat-label {
  margin-block-start: 6px;
  font-size: var(--fs-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--dark-muted);
}
:root[lang="ar"] .hero__stat-label { text-transform: none; letter-spacing: 0; font-size: var(--fs-xs); }

.hero__scroll {
  position: absolute;
  inset-block-end: var(--sp-5);
  inset-inline: 0;
  margin-inline: auto;
  inline-size: max-content;
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--dark-muted);
  font-size: var(--fs-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  animation: fade-in var(--t-slower) var(--ease) 900ms both;
}
:root[lang="ar"] .hero__scroll { text-transform: none; letter-spacing: 0; }
.hero__scroll-line {
  inline-size: 1px; block-size: 34px;
  background: linear-gradient(to bottom, var(--gold-bright), transparent);
}
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* ========================================================= value strip === */

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--sp-5);
}
.value {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out), border-color var(--t-slow) var(--ease-out);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-gold); }
.value__icon {
  inline-size: 44px; block-size: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--gold-wash);
  color: var(--gold-deep);
}
.value__icon svg { inline-size: 21px; block-size: 21px; }
.value__title { font-size: var(--fs-h4); font-weight: 600; margin-block-end: 4px; }
.value__text { font-size: var(--fs-xs); color: var(--text-muted); line-height: var(--lh-body); }

/* ============================================================= story ===== */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

.story__figure {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 3;
}
.story__figure img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.story__badge {
  position: absolute;
  inset-block-end: var(--sp-5);
  inset-inline-start: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-md);
}
.story__badge-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1;
}
.story__badge-label { font-size: var(--fs-2xs); color: var(--text-muted); margin-block-start: 4px; }

.story__points { display: flex; flex-direction: column; gap: var(--sp-4); margin-block-start: var(--sp-6); }
.story__point { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--text-soft); }
.story__point svg { inline-size: 19px; block-size: 19px; color: var(--gold); flex-shrink: 0; margin-block-start: 3px; }

/* =========================================================== categories = */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: var(--sp-4);
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-block-size: 220px;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.cat-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  inline-size: 100%; block-size: 100%;
  object-fit: cover;
  transition: transform var(--t-slower) var(--ease-out);
}
.cat-card:hover .cat-card__img { transform: scale(1.09); }
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.9) 8%, rgba(20, 16, 12, 0.28) 55%, rgba(20, 16, 12, 0.1));
  transition: background var(--t-slow) var(--ease);
}
.cat-card:hover::after { background: linear-gradient(to top, rgba(20, 16, 12, 0.94) 12%, rgba(20, 16, 12, 0.44) 60%, rgba(20, 16, 12, 0.16)); }
.cat-card__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}
.cat-card__count {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 4px;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.74);
}
.cat-card__count svg {
  inline-size: 14px; block-size: 14px;
  transition: transform var(--t-base) var(--ease-out);
}
.cat-card:hover .cat-card__count svg { transform: translateX(4px); }
:root[dir="rtl"] .cat-card:hover .cat-card__count svg { transform: translateX(-4px); }

/* ================================================================= CTA === */

.cta {
  position: relative;
  padding-block: clamp(3.5rem, 2.4rem + 5vw, 6rem);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg));
  text-align: center;
  isolation: isolate;
}
.cta::before {
  content: '';
  position: absolute;
  inset-block-start: -55%;
  inset-inline: 0;
  margin-inline: auto;
  inline-size: min(760px, 130%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 183, 107, 0.20), transparent 62%);
  z-index: -1;
}
.cta__title { color: var(--dark-text); }
.cta__lede {
  margin: var(--sp-4) auto 0;
  max-inline-size: 52ch;
  color: var(--dark-text-soft);
  font-size: var(--fs-sm);
}
.cta__actions { margin-block-start: var(--sp-6); display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ======================================================= catalog toolbar = */

.catalog {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: clamp(1.4rem, 1rem + 2vw, 2.6rem);
  align-items: start;
}
@media (max-width: 1000px) { .catalog { grid-template-columns: 1fr; } }

.filters {
  position: sticky;
  color: var(--text);   /* light surface: reset inherited colour */
  inset-block-start: calc(var(--header-h) + var(--sp-4));
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  max-block-size: calc(100vh - var(--header-h) - var(--sp-8));
  overflow-y: auto;
}
@media (max-width: 1000px) {
  .filters {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: var(--z-drawer);
    inline-size: min(340px, 88vw);
    max-block-size: none;
    border-radius: 0;
    border: none;
    border-inline-end: 1px solid var(--line);
    box-shadow: var(--sh-xl);
    transform: translateX(-101%);
    visibility: hidden;
    transition: transform var(--t-slow) var(--ease-out), visibility var(--t-slow);
    padding-block-end: var(--sp-9);
  }
  .filters.is-open { transform: none; visibility: visible; }
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block-end: var(--sp-4);
  border-block-end: 1px solid var(--line);
}
.filters__title { font-size: var(--fs-h4); font-weight: 600; }
.filters__close { display: none; }
@media (max-width: 1000px) { .filters__close { display: grid; } }

.filter-group { display: flex; flex-direction: column; gap: var(--sp-3); }
.filter-group__label {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
:root[lang="ar"] .filter-group__label { text-transform: none; letter-spacing: 0; font-size: var(--fs-xs); }
.filter-group__chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* Dual-thumb price range built from two overlaid range inputs.
   The whole widget is pinned LTR in both directions: slider geometry is
   inherently physical, and mirroring it would put the low value on the right
   while the labels below say otherwise. The value labels flip normally. */
.range {
  position: relative;
  block-size: 30px;
  display: flex;
  align-items: center;
  direction: ltr;
}
.range__track {
  position: absolute;
  inset-inline: 0;
  block-size: 4px;
  border-radius: var(--r-pill);
  background: var(--paper-3);
}
.range__fill {
  position: absolute;
  block-size: 4px;
  border-radius: var(--r-pill);
  background: var(--gold);
}
.range input[type="range"] {
  position: absolute;
  inset-inline: 0;
  inline-size: 100%;
  block-size: 30px;
  margin: 0;
  background: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  direction: ltr; /* range geometry is always LTR; labels handle RTL */
}
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  inline-size: 17px; block-size: 17px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--gold);
  box-shadow: var(--sh-sm);
  cursor: grab;
  transition: transform var(--t-fast) var(--ease-spring);
}
.range input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.18); }
.range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  inline-size: 15px; block-size: 15px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--gold);
  box-shadow: var(--sh-sm);
  cursor: grab;
}
.range input[type="range"]::-moz-range-track { background: none; }
.range__values {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-block-end: var(--sp-5);
}
.toolbar__search { flex: 1 1 260px; min-inline-size: 0; }
.toolbar__count {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-inline-end: auto;
}
/* The base .select is 100% wide; in the toolbar it must size to its content,
   otherwise it wraps onto its own row and spans the whole grid. */
.toolbar .select {
  flex: 0 0 auto;
  inline-size: auto;
  min-inline-size: 210px;
}
@media (max-width: 620px) {
  .toolbar .select { flex: 1 1 100%; inline-size: 100%; }
}
.toolbar__filter-btn { display: none; }
@media (max-width: 1000px) { .toolbar__filter-btn { display: inline-flex; } }

.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-block-end: var(--sp-4); }

/* ================================================= product detail modal == */

.pd {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  overflow: hidden;
  min-block-size: 0;
}
@media (max-width: 900px) { .pd { grid-template-columns: 1fr; overflow-y: auto; } }

/* ---------------------------------------------------------------- gallery */

.gallery {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  min-inline-size: 0;
  border-inline-end: 1px solid var(--line);
}

.gallery__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-3);
  cursor: zoom-in;
  flex-shrink: 0;
}
.gallery__stage.is-video { cursor: default; }

.gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow) var(--ease), visibility var(--t-slow);
}
.gallery__slide.is-active { opacity: 1; visibility: visible; }

.gallery__img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  /* Cursor-tracked zoom: JS writes --ox/--oy as percentages. */
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transition: transform var(--t-slower) var(--ease-out);
}
.gallery__stage.is-zoomed .gallery__slide.is-active .gallery__img { transform: scale(2.1); transition-duration: var(--t-base); }

.gallery__video { inline-size: 100%; block-size: 100%; object-fit: cover; background: #000; }

/* Graceful failure when a video/image URL can't load. */
.media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-5);
  text-align: center;
  background: var(--paper-3);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}
.media-fallback svg { inline-size: 34px; block-size: 34px; opacity: 0.45; }

.gallery__nav {
  position: absolute;
  inset-block-start: 50%;
  translate: 0 -50%;
  inline-size: 42px; block-size: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(251, 249, 245, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--sh-sm);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease-spring);
  z-index: 3;
}
.gallery:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
.gallery__nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery__nav svg { inline-size: 18px; block-size: 18px; }
.gallery__nav--prev { inset-inline-start: var(--sp-4); }
.gallery__nav--next { inset-inline-end: var(--sp-4); }
@media (hover: none) { .gallery__nav { opacity: 1; } }

.gallery__counter {
  position: absolute;
  inset-block-end: var(--sp-4);
  inset-inline-start: var(--sp-4);
  z-index: 3;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: rgba(20, 16, 12, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.gallery__zoom-hint {
  position: absolute;
  inset-block-end: var(--sp-4);
  inset-inline-end: var(--sp-4);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: rgba(20, 16, 12, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: var(--fs-2xs);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.gallery:hover .gallery__zoom-hint { opacity: 1; }
.gallery__zoom-hint svg { inline-size: 12px; block-size: 12px; }
@media (hover: none) { .gallery__zoom-hint { display: none; } }

.gallery__thumbs {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3);
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}
.gallery__thumb {
  position: relative;
  flex: 0 0 auto;
  inline-size: 62px;
  block-size: 62px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.62;
  transition: opacity var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.gallery__thumb:hover { opacity: 1; transform: translateY(-2px); }
.gallery__thumb.is-active { opacity: 1; border-color: var(--gold); }
.gallery__thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.gallery__thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 16, 12, 0.42);
  color: #fff;
}
.gallery__thumb-play svg { inline-size: 17px; block-size: 17px; }

/* ------------------------------------------------------------ detail pane */

.pd__info {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  overflow-y: auto;
  padding: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  padding-block-start: clamp(2.6rem, 2rem + 2vw, 3.2rem);
  gap: var(--sp-5);
}
/* Without this the flex children shrink when the pane overflows, silently
   clipping the auction panel and half the spec grid instead of scrolling. */
.pd__info > * { flex-shrink: 0; }
@media (max-width: 900px) { .pd__info { overflow-y: visible; } }

.pd__badges { display: flex; flex-wrap: wrap; gap: 6px; }

.pd__type {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold-deep);
}
:root[lang="ar"] .pd__type { text-transform: none; letter-spacing: 0; font-size: var(--fs-xs); }

.pd__name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  font-weight: 600;
  line-height: var(--lh-tight);
  margin-block-start: 4px;
}

.pd__desc { color: var(--text-soft); font-size: var(--fs-sm); line-height: var(--lh-body); }

/* Price block — normal product */
.pd__price-block {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--bg-sunken);
  border: 1px solid var(--line);
}
.pd__price {
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 600;
  line-height: 1;
}
.pd__price-note { font-size: var(--fs-xs); color: var(--text-muted); }

/* Spec table */
.pd__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: var(--sp-4);
  background: var(--bg-elevated);
}
.spec__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.spec__label svg { inline-size: 13px; block-size: 13px; color: var(--gold); }
.spec__value { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }

.pd__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-block-start: auto; padding-block-start: var(--sp-2); }
.pd__actions .btn { flex: 1 1 160px; }

.pd__note {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--gold-wash);
  font-size: var(--fs-xs);
  color: var(--gold-deep);
  line-height: var(--lh-body);
}
.pd__note svg { inline-size: 16px; block-size: 16px; flex-shrink: 0; margin-block-start: 2px; }

/* ============================================================= auctions == */

/* Auction price/bid panel inside the detail modal */
.auction-panel {
  border-radius: var(--r-lg);
  border: 1px solid rgba(192, 73, 47, 0.24);
  background: linear-gradient(150deg, rgba(192, 73, 47, 0.07), rgba(176, 141, 63, 0.05));
  overflow: hidden;
}
.auction-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: rgba(192, 73, 47, 0.09);
  border-block-end: 1px solid rgba(192, 73, 47, 0.16);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--live);
}
:root[lang="ar"] .auction-panel__head { text-transform: none; letter-spacing: 0; font-size: var(--fs-xs); }

.auction-panel__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }

.bid-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.bid-label { font-size: var(--fs-2xs); color: var(--text-muted); display: block; margin-block-end: 3px; }
.bid-amount {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--live);
  line-height: 1;
}
.bid-start { font-size: var(--fs-sm); color: var(--text-soft); font-weight: 600; }

/* Countdown */
.countdown-grid { display: flex; gap: var(--sp-2); }
.count-cell {
  min-inline-size: 54px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  text-align: center;
}
/* Both are block-level so the unit sits under the figure rather than
   running on beside it ("02DAYS"). */
.count-cell__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  color: var(--ink);
}
.count-cell__label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-block-start: 3px;
}
:root[lang="ar"] .count-cell__label { text-transform: none; letter-spacing: 0; font-size: var(--fs-2xs); }
.countdown-grid.is-urgent .count-cell { border-color: rgba(192, 73, 47, 0.36); }
.countdown-grid.is-urgent .count-cell__num { color: var(--live); }

.bid-form { display: flex; gap: var(--sp-2); align-items: flex-start; }
.bid-form .input-group { flex: 1; }
.bid-form .field { flex: 1; }

.auction-ended {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  font-size: var(--fs-xs);
  color: var(--text-soft);
}
.auction-ended svg { inline-size: 17px; block-size: 17px; color: var(--text-muted); flex-shrink: 0; }

/* Auctions page banner */
.auction-banner {
  position: relative;
  padding: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg));
  color: var(--dark-text);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-6);
  align-items: center;
}
@media (max-width: 760px) { .auction-banner { grid-template-columns: 1fr; } }
.auction-banner::before {
  content: '';
  position: absolute;
  inset-block-start: -70%;
  inset-inline-end: -10%;
  inline-size: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 73, 47, 0.28), transparent 62%);
  z-index: -1;
}
.auction-banner__title { color: var(--dark-text); }
.auction-banner__lede { margin-block-start: var(--sp-3); color: var(--dark-text-soft); font-size: var(--fs-sm); max-inline-size: 54ch; }
.auction-banner__stats { display: flex; gap: var(--sp-6); flex-wrap: wrap; }
.auction-banner__stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1;
}
.auction-banner__stat-label { font-size: var(--fs-2xs); color: var(--dark-muted); margin-block-start: 5px; }

/* ============================================================== contact == */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--sp-5);
  max-inline-size: 980px;
  margin-inline: auto;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem) var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out), border-color var(--t-slow) var(--ease-out);
}
.contact-card::before {
  content: '';
  position: absolute;
  inset-block-start: -60%;
  inset-inline: 0;
  margin-inline: auto;
  inline-size: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-wash, var(--gold-wash));
  opacity: 0;
  z-index: -1;
  transition: opacity var(--t-slow) var(--ease);
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--accent, var(--gold));
}
.contact-card:hover::before { opacity: 1; }

.contact-card__icon {
  inline-size: 62px; block-size: 62px;
  display: grid; place-items: center;
  border-radius: var(--r-lg);
  background: var(--accent, var(--gold));
  color: #fff;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent, var(--gold)) 34%, transparent);
  transition: transform var(--t-slow) var(--ease-spring);
}
.contact-card:hover .contact-card__icon { transform: scale(1.08) rotate(-5deg); }
.contact-card__icon svg { inline-size: 27px; block-size: 27px; }

.contact-card__label {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
:root[lang="ar"] .contact-card__label { text-transform: none; letter-spacing: 0; font-size: var(--fs-xs); }

.contact-card__value {
  font-family: var(--font-display);
  font-size: 1.44rem;
  font-weight: 600;
  color: var(--ink);
  /* Phone numbers must read as digits, not the display serif's old-style
     figures; and they stay LTR inside Arabic copy. */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  direction: ltr;
  unicode-bidi: isolate;
  word-break: break-word;
}
.contact-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-start: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent, var(--gold-deep));
}
.contact-card__action svg {
  inline-size: 14px; block-size: 14px;
  transition: transform var(--t-base) var(--ease-out);
}
.contact-card:hover .contact-card__action svg { transform: translateX(4px); }
:root[dir="rtl"] .contact-card:hover .contact-card__action svg { transform: translateX(-4px); }

.contact-hours {
  max-inline-size: 620px;
  margin: var(--sp-8) auto 0;
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--bg-sunken);
  text-align: center;
}
.contact-hours__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-block-end: var(--sp-3); }
.contact-hours__text { font-size: var(--fs-sm); color: var(--text-muted); margin-inline: auto; }
