/* ═══════════════════════════════════════════════════════════════════════════
   SCHIAPARELLI — Custom Theme
   Black & White · RTL Persian (IRANSansX) · Luxury Editorial
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── IRANSansX Font Stack ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Thin.woff2') format('woff2');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-UltraLight.woff2') format('woff2');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-DemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --black:       #000000;
  --white:       #ffffff;
  --gray-faint:  #f7f7f7;
  --gray-light:  #e8e8e8;
  --gray-mid:    #9a9a9a;

  --font-sans: 'IRANSansX', 'Tahoma', 'Arial', sans-serif;

  /* Type scale */
  --text-xs:    0.72rem;   /* labels, meta */
  --text-sm:    0.85rem;   /* captions */
  --text-base:  1rem;
  --text-lg:    1.2rem;
  --text-xl:    1.6rem;
  --text-2xl:   2.2rem;
  --text-3xl:   3rem;
  --text-display: clamp(2.4rem, 5vw, 5rem);

  /* Spacing rhythm */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 360ms;

  /* Header */
  --header-h: 72px;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  lang: fa;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--black);
  background-color: var(--white);
  text-align: right;
  /* Render Persian text crisply */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Latin/English fragments inside Persian text — isolate bidi */
[lang="en"], .ltr, bdi {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
}

/* Product codes and numbers keep LTR order */
.code, .price, .en {
  unicode-bidi: isolate;
  direction: ltr;
  font-family: 'Gotham', 'Helvetica Neue', 'Arial', sans-serif;
  letter-spacing: 0.06em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--duration) var(--ease);
}
a:hover { opacity: 0.6; }

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

ul, ol { list-style: none; }

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Layout Shell ─────────────────────────────────────────────────────────── */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ── Site Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--black);
  /*
   * 3-column grid: [empty-left] [nav-center] [logo-right]
   * Logo is pinned to the right column (RTL inline-start).
   * Nav items sit in the auto-width center column — truly centered.
   * The first 1fr column balances the logo's width so the nav stays centred.
   */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--space-md);
  transition: background var(--duration) var(--ease);
}

/*
 * Nav — center column, items centered with flexbox.
 * The two flanking 1fr columns are always equal, so grid-column:2 is
 * geometrically centered across the full header width.
 */
.site-header__nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-content: center; /* flex items centered within the auto column */
}

.site-header__nav a {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}

.site-header__nav a::after {
  content: '';
  position: absolute;
  inset-block-end: -3px;
  inset-inline: 0;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration) var(--ease);
}
.site-header__nav a:hover::after { transform: scaleX(1); opacity: 1; }

/* Logo — rightmost column (RTL inline-start) */
.site-header__logo {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.site-header__logo img {
  width: auto;
  height: 32px;
  object-fit: contain;
  /* Invert SVG to black */
  filter: invert(1);
}

/* Icon actions — removed from layout; rule kept as no-op safety net */
.site-header__actions { display: none; }

/* Announcement bar */
/* Announcement bar removed — homepage hero now handles header clearance */

/*
 * Homepage main content: push below the fixed header.
 * Collection, about, and product pages have their own padding-top rules.
 */
#main-content {
  padding-top: var(--header-h);
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 60vh;   /* placeholder fallback only — real images drive their own height */
  overflow: hidden;
}

.hero__media {
  width: 100%;
  min-height: inherit; /* .ph placeholder fills the minimum when no real image */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.08) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

.hero__copy {
  color: var(--white);
  max-width: 640px;
}

.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  opacity: 0.85;
}

.hero__title {
  font-size: var(--text-display);
  font-weight: 200;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-size: var(--text-lg);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: var(--space-md);
  max-width: 480px;
}

.hero__cta {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--white);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.hero__cta:hover {
  background: var(--white);
  color: var(--black);
  opacity: 1;
}

/* ── Section Headers ──────────────────────────────────────────────────────── */
.section-header {
  padding: var(--space-lg) var(--space-md) var(--space-md);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--black);
  margin-bottom: var(--space-md);
}

.section-header__title {
  font-size: var(--text-2xl);
  font-weight: 200;
  letter-spacing: 0.04em;
}

.section-header__link {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}

/* ── Editorial Grid ───────────────────────────────────────────────────────── */
.editorial-grid {
  padding-inline: var(--space-md);
  padding-bottom: var(--space-xl);
}

/* Row patterns */
.grid-row {
  display: grid;
  gap: 2px;
  margin-bottom: 2px;
}

.grid-row--full   { grid-template-columns: 1fr; }
.grid-row--halves { grid-template-columns: 1fr 1fr; }
.grid-row--thirds { grid-template-columns: 1fr 1fr 1fr; }
.grid-row--asymL  { grid-template-columns: 2fr 1fr; }
.grid-row--asymR  { grid-template-columns: 1fr 2fr; }

/* Editorial card */
.editorial-card {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.editorial-card__media {
  overflow: hidden;
}

/* Aspect ratios for editorial variety */
.editorial-card--hero   .editorial-card__media { aspect-ratio: 16/7; }
.editorial-card--square .editorial-card__media { aspect-ratio: 1/1; }
.editorial-card--port   .editorial-card__media { aspect-ratio: 3/4; max-height: 65vh; }
.editorial-card--wide   .editorial-card__media { aspect-ratio: 4/3; }
.editorial-card--tall   .editorial-card__media { aspect-ratio: 2/3; }

/* ── Asymmetric rows: lock both columns to the same explicit height ───────── */
/* Source-order beats the card-type rules above (equal specificity = 0,2,0).  */
.grid-row--asymL .editorial-card__media,
.grid-row--asymR .editorial-card__media {
  aspect-ratio: unset;   /* let height: drive sizing, not the ratio */
  height: 55vh;
  max-height: 520px;
}

.editorial-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}

.editorial-card:hover .editorial-card__media img {
  transform: scale(1.04);
}

.editorial-card__body {
  padding: 20px 0 32px;
}

.editorial-card__category {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 8px;
}

.editorial-card__title {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 8px;
}

.editorial-card__caption {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--gray-mid);
  line-height: 1.7;
  max-width: 480px;
}

/* Hover overlay on card (shows "مشاهده") */
.editorial-card__hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease);
  pointer-events: none;
}

.editorial-card__hover span {
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  border: 1px solid var(--white);
  padding: 10px 28px;
}

.editorial-card:hover .editorial-card__hover {
  background: rgba(0,0,0,0.28);
}
.editorial-card:hover .editorial-card__hover span {
  opacity: 1;
  transform: translateY(0);
}

/* ── Feature Band (divider between sections) ──────────────────────────────── */
.feature-band {
  border-block: 1px solid var(--black);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.feature-band__quote {
  font-size: var(--text-2xl);
  font-weight: 200;
  line-height: 1.5;
  max-width: 800px;
  margin-inline: auto;
}

.feature-band__attr {
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

/* ── Site Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--black);
  padding: var(--space-lg) var(--space-md) var(--space-md);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.site-footer__col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--black);
  padding-bottom: 12px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__links a {
  font-size: var(--text-sm);
  font-weight: 300;
}

/* ── Social Media Strip ───────────────────────────────────────────────────── */
.site-footer__social {
  padding: var(--space-lg) 0 var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--gray-light);
}

.site-footer__social-label {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  color: var(--gray-mid);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: block;
}

.site-footer__social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  opacity: 0.55;
  transition: opacity 320ms var(--ease),
              transform 320ms var(--ease);
  text-decoration: none;
  line-height: 1;
}

.site-footer__social-link:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.1);
  text-decoration: none;
}

.site-footer__social-link svg {
  display: block;
  pointer-events: none;
}

/* ── Site Footer Bottom ───────────────────────────────────────────────────── */
.site-footer__bottom {
  border-top: 1px solid var(--gray-light);
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.site-footer__copy {
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--gray-mid);
}

/* ── Product Detail Page ──────────────────────────────────────────────────── */
.product-detail {
  padding-top: var(--header-h);
}

.product-detail__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
}

.product-detail__media {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow: hidden;
}

.product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__info {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-inline-end: 1px solid var(--gray-light);
}

.product-detail__breadcrumb {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--gray-mid);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-detail__breadcrumb a:hover { color: var(--black); opacity: 1; }
.product-detail__breadcrumb span { color: var(--gray-light); }

.product-detail__category {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: var(--space-sm);
}

.product-detail__title {
  font-size: var(--text-3xl);
  font-weight: 200;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.product-detail__subtitle {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--gray-mid);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.product-detail__divider {
  width: 40px;
  height: 1px;
  background: var(--black);
  margin-block: var(--space-md);
}

.product-detail__description {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 2;
  color: #333;
  margin-bottom: var(--space-md);
}

.product-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: var(--space-md);
  border-block: 1px solid var(--gray-light);
  margin-bottom: var(--space-md);
}

.product-detail__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

.product-detail__meta-label {
  font-weight: 500;
  color: var(--gray-mid);
  letter-spacing: 0.1em;
}

.product-detail__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.btn-primary {
  width: 100%;
  padding: 18px 24px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--black);
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--black);
}

.btn-secondary {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  color: var(--black);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--black);
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
  text-decoration: none;
  display: block;
}
.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
  opacity: 1;
}

/* ── Related Products Strip ───────────────────────────────────────────────── */
.related-section {
  padding: var(--space-xl) var(--space-md);
  border-top: 1px solid var(--black);
}

.related-section__title {
  font-size: var(--text-xl);
  font-weight: 200;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.04em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* ── 404 / Error ──────────────────────────────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.error-page__code {
  font-size: 8rem;
  font-weight: 100;
  line-height: 1;
  color: var(--gray-light);
  margin-bottom: var(--space-sm);
}

.error-page__title {
  font-size: var(--text-2xl);
  font-weight: 200;
  margin-bottom: var(--space-sm);
}

.error-page__text {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--gray-mid);
  margin-bottom: var(--space-lg);
}

/* ── Utilities ────────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* ── Switch to hamburger nav on all tablet sizes ─────────────────────── */
  :root { --header-h: 60px; }
  .site-header { padding-inline: var(--space-sm); }
  .site-header__nav { display: none; }
  .nav-toggle { display: flex; }
  /* ── Layout ────────────────────────────────────────────────────────────── */
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail__hero { grid-template-columns: 1fr; }
  .product-detail__media {
    position: relative;
    height: 60vw;
    min-height: 340px;
    max-height: 560px;
  }
  .product-detail__info {
    border: none;
    padding: var(--space-md);
  }
  .editorial-card--port .editorial-card__media { max-height: 55vh; }
  .grid-row--asymL .editorial-card__media,
  .grid-row--asymR .editorial-card__media { height: 48vh; max-height: 420px; }
}

@media (max-width: 768px) {
  .hero__overlay { padding: var(--space-md); }
  .hero__title { font-size: var(--text-2xl); }

  .grid-row--halves,
  .grid-row--thirds,
  .grid-row--asymL,
  .grid-row--asymR { grid-template-columns: 1fr; }

  .editorial-card--hero   .editorial-card__media { aspect-ratio: 3/2; }
  .editorial-card--square .editorial-card__media { aspect-ratio: 3/4; }
  .editorial-card--port   .editorial-card__media { max-height: 50vh; }
  .grid-row--asymL .editorial-card__media,
  .grid-row--asymR .editorial-card__media { height: 45vh; max-height: none; }

  .section-header { flex-direction: column; gap: var(--space-sm); }

  /* ── Fix 2: spread label — keep row layout, prevent wrapping ──────── */
  .spread__label-title { font-size: var(--text-base); }
  .spread__label-link  { white-space: nowrap; flex-shrink: 0; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }

  .related-grid { grid-template-columns: 1fr; }

  .feature-band__quote { font-size: var(--text-xl); }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1.2rem;
    --space-lg: 2.5rem;
  }
  .site-footer__grid { grid-template-columns: 1fr; }
  /* Very small screens: stack spread label title + link vertically */
  .spread__label {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    padding-bottom: var(--space-xs);
  }
  /* ── Hero overlay: tighter padding + fluid type at 360px ─────────── */
  .hero__overlay  { padding: var(--space-sm); }
  .hero__title    { font-size: clamp(1.4rem, 5.5vw, 1.8rem); }
  .hero__subtitle { font-size: var(--text-sm); }
  .hero__cta      { padding: 11px 24px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLACEHOLDER SYSTEM
   Replaces broken external images with structured wireframe boxes.
   All ratios are driven by the parent .editorial-card--{type} class.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Add cinema ratio (21:8 widescreen cinematic strip) */
.editorial-card--cinema .editorial-card__media { aspect-ratio: 21/8; }

/* Make the media container the positioning root for the hover overlay */
.editorial-card__media {
  position: relative;
}

/* ── Placeholder base ────────────────────────────────────────────────────── */
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* Subtle architectural horizontal rule grid — gives depth without noise */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.022) 79px,
      rgba(255, 255, 255, 0.022) 80px
    );
  transition: transform 800ms var(--ease);
}

/* Mirror the old img hover zoom — same feel, no image needed */
.editorial-card:hover .ph { transform: scale(1.04); }

/* Vertical hairline through centre — wireframe crosshair */
.ph::before {
  content: '';
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Horizontal hairline through centre */
.ph::after {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* ── Inner label assembly ────────────────────────────────────────────────── */
.ph__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  user-select: none;
  position: relative;    /* sits above the ::before / ::after hairlines */
  z-index: 1;
}

.ph__line {
  display: block;
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.18);
}

.ph__label {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.30em;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  text-align: center;
  direction: rtl;
  white-space: nowrap;
  line-height: 1.6;
}

.ph__num {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.14);
  margin-top: 4px;
}

/* ── Colour palette — cool blue-slate editorial family ────────────────────
   Lightness varies across 9 stops; hue stays within the same cool family.
   Darker tones anchor focal pieces; lighter tones serve supporting roles. */
.ph--c0 { background-color: #09131D; }   /* deepest navy     — hero anchor  */
.ph--c1 { background-color: #0F1B28; }   /* near-black navy                 */
.ph--c2 { background-color: #152334; }   /* dark navy                       */
.ph--c3 { background-color: #1A2B3F; }   /* charcoal blue                   */
.ph--c4 { background-color: #1E3248; }   /* slate navy                      */
.ph--c5 { background-color: #223851; }   /* medium slate                    */
.ph--c6 { background-color: #273F5A; }   /* cool steel blue                 */
.ph--c7 { background-color: #2C4763; }   /* steel blue                      */
.ph--c8 { background-color: #324E6C; }   /* lighter blue (accent / variety) */

/* Hero override: architectural grid lines in both directions */
.hero .ph {
  background-color: #09131D;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 99px,
      rgba(255, 255, 255, 0.016) 99px,
      rgba(255, 255, 255, 0.016) 100px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 99px,
      rgba(255, 255, 255, 0.016) 99px,
      rgba(255, 255, 255, 0.016) 100px
    );
}

/* Hover overlay now lives inside .editorial-card__media,
   so it only covers the placeholder — not the text body */
.editorial-card__media .editorial-card__hover {
  position: absolute;
  inset: 0;
}

/* ── Section layout: gaps & padding ─────────────────────────────────────── */
.spread {
  padding-inline: var(--space-md);
  padding-bottom: var(--space-md);
}

.spread + .spread { padding-top: 0; }

/* Gap between cards in a row — tight like a printed lookbook */
.grid-row { gap: 6px; margin-bottom: 6px; }

/* Section divider line */
.spread__label {
  padding: var(--space-lg) 0 var(--space-sm);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--black);
  margin-bottom: var(--space-sm);
}

.spread__label-title {
  font-size: var(--text-xl);
  font-weight: 200;
  letter-spacing: 0.04em;
}

.spread__label-link {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}

.spread__label--cinema { border-bottom: none; margin-bottom: 0; padding-bottom: var(--space-xs); }

/* ── Card body spacing refinement ───────────────────────────────────────── */
.editorial-card__body {
  padding: 16px 0 28px;
}

/* ── Responsive: collapse asymmetric row on tablet ───────────────────────── */
@media (max-width: 900px) {
  .grid-row--asymL,
  .grid-row--asymR { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ph__label { display: none; }      /* de-clutter small screens */
  .ph__num   { display: none; }
  .ph__line  { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DROPDOWN NAVIGATION
   Pure-CSS reveal on :hover/:focus-within — zero JavaScript.
   RTL-aware: dropdown aligns to inline-start (right) of its trigger.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Wrapper that is the positioning root for the panel */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Trigger link — flex row so chevron sits next to text */
.nav-item__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}

/* CSS-drawn chevron (right+bottom borders, rotated 45 °) */
.nav-item__chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right:  1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
  transition: transform 240ms var(--ease);
}

/* Rotate chevron upward when open */
.nav-item:hover         .nav-item__chevron,
.nav-item:focus-within  .nav-item__chevron {
  transform: rotate(225deg) translateY(2px);
}

/* ── The dropdown panel ──────────────────────────────────────────────────── */
.nav-dropdown {
  position: absolute;
  /* Sit just below the header bottom border */
  top: calc(100% + 18px);
  /* RTL: align panel's right edge to trigger's right edge (inline-start) */
  right: 0;
  min-width: 170px;
  background: var(--white);
  border: 1px solid var(--black);
  z-index: 300;

  /* ── Hidden state ── */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity    220ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0ms   linear 220ms,
    transform  220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/*
  Invisible bridge spanning the gap between the nav bar and the panel top.
  Without it the panel closes as the cursor crosses the white-space gap.
*/
.nav-dropdown::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left:  -4px;
  right: -4px;
  height: 22px;
}

/* ── Visible state (hover OR keyboard focus inside) ─────────────────────── */
.nav-item:hover        .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity    220ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0ms   linear 0ms,
    transform  220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Individual dropdown links ───────────────────────────────────────────── */
.nav-dropdown a {
  display: block;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--black);
  text-align: right;           /* RTL reading direction */
  border-bottom: 1px solid var(--gray-light);
  transition:
    background var(--duration) var(--ease),
    color     var(--duration) var(--ease),
    padding   var(--duration) var(--ease);
  position: relative;
}

.nav-dropdown a:last-child { border-bottom: none; }

/* Invert block on hover — luxury micro-interaction */
.nav-dropdown a:hover {
  background: var(--black);
  color: var(--white);
  padding-right: 26px;   /* subtle indent that emphasises RTL direction */
  opacity: 1;
}

/* Active / current season indicator */
.nav-dropdown a[aria-current="page"] {
  font-weight: 600;
  background: var(--gray-faint);
}


/* ═══════════════════════════════════════════════════════════════════════════
   COLLECTION SUBPAGE
   Hero (video replacement) · Editorial text · 15-item lookbook grid
   ═══════════════════════════════════════════════════════════════════════════ */

.collection-page {
  padding-top: var(--header-h);
}

/* ── Hero — replaces the original full-width autoplay video ─────────────── */
.collection-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;    /* cinematic widescreen — matches typical fashion video */
  overflow: hidden;
}

/* Dark architectural placeholder */
.collection-hero__ph {
  width: 100%;
  height: 100%;
  background-color: #07111C;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent, transparent 119px,
      rgba(255,255,255,0.018) 120px
    ),
    repeating-linear-gradient(
      0deg,
      transparent, transparent 79px,
      rgba(255,255,255,0.018) 80px
    );
}

/* Wireframe label — centred inside the box */
.collection-hero__ph-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: rgba(255,255,255,0.2);
  text-align: center;
  text-transform: uppercase;
  direction: rtl;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Overlay: gradient + centred title text */
.collection-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.06) 55%,
    transparent      100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  z-index: 2;
}

.collection-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}

.collection-hero__title {
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 200;
  line-height: 1.15;
  color: var(--white);
}

/* ── Editorial text block ────────────────────────────────────────────────── */
.collection-editorial {
  max-width: 680px;
  margin-inline: auto;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  border-bottom: 1px solid var(--black);
}

.collection-editorial__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: var(--space-md);
}

.collection-editorial__divider {
  width: 28px;
  height: 1px;
  background: var(--black);
  margin: 0 auto var(--space-md);
}

.collection-editorial__body {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 2.2;
  color: #2e2e2e;
  text-align: center;   /* centred editorial block, proper RTL */
}

.collection-editorial__body p + p {
  margin-top: 1.2em;
}

/* ── Lookbook section ────────────────────────────────────────────────────── */
.lookbook-section {
  padding-inline: var(--space-md);
  padding-bottom: var(--space-xl);
}

.lookbook-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--black);
  margin-bottom: var(--space-md);
}

.lookbook-header__title {
  font-size: var(--text-xl);
  font-weight: 200;
  letter-spacing: 0.04em;
}

.lookbook-header__meta {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
}

/* ── Fluid portrait grid — works with any number of items ───────────────── */
.lookbook-grid {
  display: grid;
  /* auto-fill: as many 280 px columns as fit; expands to fill remainder */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px 16px;
}

/* Individual look card */
.look-card {
  display: block;
  cursor: pointer;
}

/* Portrait container — 3:4 aspect ratio */
.look-card__frame {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

/* Placeholder fills the frame */
.look-card__frame .ph {
  width: 100%;
  height: 100%;
  transition: transform 600ms var(--ease);
}

.look-card:hover .look-card__frame .ph {
  transform: scale(1.03);
}

/* Hover overlay inside the frame */
.look-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 260ms var(--ease);
  pointer-events: none;
  z-index: 2;
}

.look-card__overlay span {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid var(--white);
  padding: 9px 22px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity   240ms var(--ease),
    transform 240ms var(--ease);
}

.look-card:hover .look-card__overlay              { background: rgba(0,0,0,0.26); }
.look-card:hover .look-card__overlay span         { opacity: 1; transform: translateY(0); }

/* Look number label */
.look-card__num {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--gray-mid);
  text-align: center;
  display: block;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .collection-hero { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .collection-hero { aspect-ratio: 4/3; }
  /* auto-fill already collapses to 2 columns at ~600px with minmax(280px).
     Override only the gap for small screens. */
  .lookbook-grid { gap: 24px 12px; }
}

@media (max-width: 380px) {
  /* Force 1 column on very small phones */
  .lookbook-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT PAGE  ( /about )
   Structure: intro title block → 5 alternating sections → contact block
   ═══════════════════════════════════════════════════════════════════════════ */

.about-page { padding-top: var(--header-h); }

/* ── Opening title block ────────────────────────────────────────────────── */
.about-intro {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  border-bottom: 1px solid var(--black);
}

.about-intro__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: var(--space-md);
}

.about-intro__title {
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  max-width: 900px;
  margin-inline: auto;
}

.about-intro__divider {
  width: 36px;
  height: 1px;
  background: var(--black);
  margin: var(--space-md) auto;
}

.about-intro__lead {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 2.0;
  color: #2e2e2e;
  max-width: 640px;
  margin-inline: auto;
}

/* ── Alternating section (text ↔ placeholder) ───────────────────────────── */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 72vh;
  border-bottom: 1px solid var(--black);
}

/* Visual (placeholder) cell */
.about-section__visual {
  overflow: hidden;
  position: relative;
}

.about-section__visual .ph {
  width: 100%;
  height: 100%;
  min-height: 420px;
  transition: transform 900ms var(--ease);
}

.about-section__visual:hover .ph { transform: scale(1.025); }

/* Text cell */
.about-section__copy {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Vertical divider between the two cells */
  border-inline-start: 1px solid var(--black);
}

/*
  Alt variant — flips which cell is on which side.
  In RTL: order: -1 moves the visual to the RIGHT (inline-start) column.
  The border moves to inline-end to keep the vertical line between cells.
*/
.about-section--alt .about-section__visual { order: -1; }
.about-section--alt .about-section__copy {
  border-inline-start: none;
  border-inline-end: 1px solid var(--black);
}

/* Section copy elements */
.about-section__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: var(--space-sm);
}

.about-section__title {
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 200;
  line-height: 1.12;
  margin-bottom: var(--space-xs);
}

.about-section__rule {
  width: 28px;
  height: 1px;
  background: var(--black);
  margin: var(--space-sm) 0 var(--space-md);
}

.about-section__body {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 2.15;
  color: #2e2e2e;
}

.about-section__body p + p { margin-top: 1.1em; }

.about-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-lg);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: opacity var(--duration) var(--ease);
}
.about-section__cta:hover { opacity: 0.5; }

/* ── Contact & Location block ───────────────────────────────────────────── */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
  border-bottom: 1px solid var(--black);
}

/* Map placeholder — dark, entire area is a clickable link to Google Maps */
.contact-block__map {
  position: relative;
  overflow: hidden;
  background-color: #0A1525;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 99px, rgba(255,255,255,0.016) 100px),
    repeating-linear-gradient(0deg,  transparent, transparent 79px, rgba(255,255,255,0.016) 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
  min-height: 400px;
  transition: background-color 320ms var(--ease);
}

.contact-block__map:hover { background-color: #0f2038; }

/* Pin SVG icon */
.contact-block__map-pin svg {
  width: 32px;
  height: 32px;
  stroke: rgba(255,255,255,0.35);
  fill: rgba(255,255,255,0.06);
  stroke-width: 1.2;
  transition: stroke 260ms ease, fill 260ms ease;
}
.contact-block__map:hover .contact-block__map-pin svg {
  stroke: rgba(255,255,255,0.65);
  fill: rgba(255,255,255,0.1);
}

.contact-block__map-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  text-align: center;
  direction: rtl;
}

.contact-block__map-btn {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 24px;
  direction: rtl;
  transition: border-color 260ms ease, color 260ms ease;
}
.contact-block__map:hover .contact-block__map-btn {
  border-color: rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.8);
}

/* Info panel — right side (inline-start in RTL) */
.contact-block__info {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-inline-start: 1px solid var(--black);
}

.contact-block__title {
  font-size: var(--text-2xl);
  font-weight: 200;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-lg);
}

/* Individual detail row */
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--gray-faint);
}

.contact-detail:last-child { border-bottom: none; }

.contact-detail__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.contact-detail__value {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.8;
  color: var(--black);
}

/* Phone / email stay visually LTR inside RTL context */
.contact-detail__value--num {
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.04em;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-section__copy { padding: var(--space-lg) var(--space-md); }
  .contact-block__info  { padding: var(--space-lg) var(--space-md); }
}

@media (max-width: 900px) {
  .about-section,
  .contact-block { grid-template-columns: 1fr; }

  /* On mobile, always: visual on top, text below */
  .about-section__copy {
    border-inline-start: none;
    border-top: 1px solid var(--black);
  }
  .about-section--alt .about-section__visual { order: 0; }
  .about-section--alt .about-section__copy {
    border-inline-end: none;
    border-top: 1px solid var(--black);
  }

  .contact-block__info {
    border-inline-start: none;
    border-top: 1px solid var(--black);
  }
}

@media (max-width: 600px) {
  .about-intro__title    { font-size: 2.2rem; }
  .about-section__title  { font-size: 1.6rem; }
  .about-section__visual .ph { min-height: 260px; }
  .contact-block__map    { min-height: 260px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE NAVIGATION — Hamburger button + slide-in overlay panel
   RTL-aware: panel slides in from the right (inline-end) side.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hamburger toggle button ─────────────────────────────────────────────── */
.nav-toggle {
  display: none;        /* hidden on desktop; revealed inside @media 768px above */
  grid-column: 1;       /* physical left column — visually left on mobile */
  justify-self: start;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  border-radius: 1px;
  transition: transform 280ms var(--ease), opacity 280ms var(--ease);
}

/* Animate three bars → × when menu is open */
.nav-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ── Mobile nav panel ────────────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;                  /* physical right edge */
  width: min(340px, 85vw);
  height: 100dvh;
  background: var(--white);
  border-left: 1px solid var(--black);   /* border on the opening (left) edge */
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  /* visibility: hidden prevents any paint/hit-test of off-screen content */
  visibility: hidden;
  transition: transform 340ms var(--ease), visibility 0ms linear 340ms;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 340ms var(--ease), visibility 0ms linear 0ms;
}

.mobile-nav__inner {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Close button (top-right of panel in LTR, top-left in RTL visual) ──── */
.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-md);
  margin-inline-start: auto;  /* pushes to left end in RTL */
  background: none;
  border: 1px solid var(--black);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--black);
  font-family: var(--font-sans);
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.mobile-nav__close:hover {
  background: var(--black);
  color: var(--white);
}

/* ── Nav items inside the panel ─────────────────────────────────────────── */
.mobile-nav__nav {
  direction: rtl;
  flex: 1;
}

/* Top-level items (خانه, کالکشن‌ها, درباره ما) */
.mobile-nav__group > a,
.mobile-nav__nav > a {
  display: block;
  font-size: var(--text-xl);
  font-weight: 200;
  letter-spacing: 0.06em;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-light);
  color: var(--black);
  text-decoration: none;
  transition: opacity 200ms;
}
.mobile-nav__group > a:hover,
.mobile-nav__nav > a:hover {
  opacity: 0.5;
  text-decoration: none;
}

/* Sub-items (بهار, تابستان, پاییز, زمستان) */
.mobile-nav__sub {
  padding-inline-start: var(--space-sm);
  border-bottom: 1px solid var(--gray-light);
}
.mobile-nav__sub a {
  display: block;
  font-size: var(--text-sm);
  font-weight: 300;
  letter-spacing: 0.08em;
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-faint);
  color: var(--black);
  text-decoration: none;
  transition: opacity 200ms;
}
.mobile-nav__sub a:last-child { border-bottom: none; }
.mobile-nav__sub a:hover { opacity: 0.5; text-decoration: none; }
.mobile-nav__sub a[aria-current="page"] { font-weight: 500; }

/* ── Backdrop ────────────────────────────────────────────────────────────── */
.mobile-nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 340ms var(--ease);
}
.mobile-nav__backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Body scroll lock ────────────────────────────────────────────────────── */
body.menu-open { overflow: hidden; }
