:root {
  /* Color Tokens: Architectural Emerald-Obsidian, Crisp Gallery Porcelain & 18K Sovereign Gold */
  --bg-page: #f7f7f5;
  --bg-surface: #ecece7;
  --bg-elevated: #ffffff;
  --bg-dark: #0b1612;
  --bg-dark-elevated: #11221c;

  --text-primary: #0e1a15;
  --text-muted: #4a5650;
  --text-on-dark: #f6f5f0;
  --text-muted-on-dark: #b5c2bc;

  --accent-gold: #d8b268;
  --accent-gold-hover: #e5c37f;
  --accent-gold-text: #7d5a1c;
  --border-light: rgba(14, 26, 21, 0.12);
  --border-dark: rgba(216, 178, 104, 0.22);

  /* Typography: Strictly 2 Font Families + Strictly 3 Body Sizes */
  --font-sans: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-latin: 'Cormorant Garamond', Georgia, serif;

  --text-heading: clamp(1.75rem, 2.8vw, 2.375rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;

  /* Motion & Layout */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container-max: 1320px;
  --radius-sm: 2px;
  --radius-md: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
  font-size: var(--text-body);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ltr-text {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}

/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  padding-block: 1.25rem;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out), padding-block 220ms var(--ease-out);
}

.site-header.is-scrolled {
  padding-block: 0.9rem;
  background-color: rgba(11, 22, 18, 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  white-space: nowrap;
}

.brand-logo-picture {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-crest {
  height: 2.35rem;
  width: auto;
  object-fit: contain;
  transition: height 220ms var(--ease-out);
}

.site-header.is-scrolled .brand-crest {
  height: 2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav-link,
.nav-utility-btn {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text-on-dark);
  opacity: 0.88;
  white-space: nowrap;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity 180ms var(--ease-out), color 180ms var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-utility-btn:hover,
.nav-utility-btn:focus-visible {
  opacity: 1;
  color: var(--accent-gold);
}

.nav-link-accent {
  color: var(--accent-gold);
  opacity: 1;
}

.nav-lang-btn {
  padding-inline-start: 0.9rem;
  border-inline-start: 1px solid var(--border-dark);
  font-size: var(--text-sm);
  font-weight: 700;
  opacity: 0.92;
}

.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.mobile-header-actions .nav-lang-btn {
  border-inline-start: 0;
  padding-inline-start: 0;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background-color: var(--text-on-dark);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}

.mobile-menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 35;
  padding: 6rem 1.5rem 2rem;
  background-color: var(--bg-dark);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  padding-block: 1.1rem;
  font-size: var(--text-heading);
  font-weight: 600;
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--border-dark);
  text-align: start;
}

.mobile-nav-btn {
  background: transparent;
  border-top: 0;
  border-inline: 0;
  cursor: pointer;
}

/* =========================================
   Hero: Full-Bleed Haute Joaillerie Takeover
   ========================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

html[dir='ltr'] .hero-image {
  transform: scaleX(-1);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(11, 22, 18, 0.78) 0%,
    rgba(11, 22, 18, 0.42) 44%,
    rgba(11, 22, 18, 0.08) 78%,
    rgba(11, 22, 18, 0.14) 100%
  );
}

html[dir='ltr'] .hero-scrim {
  background: linear-gradient(
    90deg,
    rgba(11, 22, 18, 0.78) 0%,
    rgba(11, 22, 18, 0.42) 44%,
    rgba(11, 22, 18, 0.08) 78%,
    rgba(11, 22, 18, 0.14) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 7rem 4rem;
}

.hero-copy {
  max-width: 36rem;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 6vw, 5.15rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
}

.hero-subtitle {
  margin: 0 0 2.25rem;
  max-width: 46ch;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-muted-on-dark);
}

/* Buttons */
.btn-primary,
.btn-dark,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.125rem;
  padding: 0.75rem 1.85rem;
  font-size: var(--text-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  border: 1px solid var(--accent-gold);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  border: 1px solid var(--bg-dark);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background-color: var(--bg-dark-elevated);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--text-primary);
  color: var(--text-on-dark);
}

.btn-outline:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* =========================================
   Catalog Section: Crisp Gallery Surface
   ========================================= */
.catalog-section {
  padding-block: 5.5rem 6rem;
  background-color: var(--bg-page);
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.section-heading-group {
  max-width: 42rem;
}

.section-title {
  margin: 0 0 0.65rem;
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-title-light {
  color: var(--text-on-dark);
}

.section-desc {
  margin: 0;
  max-width: 60ch;
  font-size: var(--text-body);
  color: var(--text-muted);
}

.section-desc-light {
  color: var(--text-muted-on-dark);
}

.sync-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.sync-status-text {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.sync-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-gold-text);
  cursor: pointer;
  transition: color 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.sync-trigger:hover,
.sync-trigger:focus-visible {
  color: var(--text-primary);
}

.sync-trigger.is-syncing svg {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toolbar: Connected Category Tabs + Search, Sort, Availability, Currency */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 1.5rem 2.5rem;
}

.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-item {
  position: relative;
  padding: 0.65rem 1.15rem;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.tab-item:hover {
  color: var(--text-primary);
}

.tab-item.is-active {
  color: var(--text-primary);
  font-weight: 700;
  border-bottom-color: var(--text-primary);
}

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.search-field {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 16rem;
  min-width: 14rem;
  padding: 0.55rem 0.9rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: border-color 180ms var(--ease-out);
}

.search-field:focus-within {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.select-field select {
  min-height: 2.6rem;
  padding: 0.45rem 0.9rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color 180ms var(--ease-out);
}

.select-field select:focus-visible {
  outline: none;
  border-color: var(--text-primary);
}

/* Featured Latest Arrival Editorial Stage */
.featured-slot:not(:empty) {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-light);
}

.featured-piece {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  cursor: pointer;
}

.featured-media-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-surface);
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.featured-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
}

.featured-piece:hover .featured-media-frame img {
  transform: scale(1.03);
}

.featured-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.featured-title {
  margin: 0;
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.featured-title-en {
  margin: -0.4rem 0 0;
  font-family: var(--font-latin);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text-muted);
  direction: ltr;
}

.featured-summary {
  margin: 0;
  max-width: 56ch;
  font-size: var(--text-body);
  color: var(--text-muted);
}

.featured-specs-line {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.featured-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding-top: 0.25rem;
}

.price-primary {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--accent-gold-text);
}

.price-secondary {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
}

/* Gallery Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
}

.product-item {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  cursor: pointer;
}

.product-item.is-sold .product-media-frame img {
  filter: saturate(0.45);
  opacity: 0.85;
}

.product-media-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background-color: var(--bg-surface);
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.product-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms var(--ease-out);
}

.product-item:hover .product-media-frame img,
.product-item:focus-within .product-media-frame img {
  transform: scale(1.035);
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--bg-dark);
  color: var(--accent-gold);
  text-align: center;
  font-size: var(--text-body);
  font-weight: 600;
}

.video-play-indicator {
  position: absolute;
  bottom: 0.9rem;
  inset-inline-end: 0.9rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(11, 22, 18, 0.74);
  backdrop-filter: blur(6px);
  color: var(--text-on-dark);
  border-radius: 50%;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.product-item:hover .video-play-indicator,
.featured-piece:hover .video-play-indicator {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  transform: scale(1.06);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.product-title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
}

.product-title-en {
  margin: 0;
  font-family: var(--font-latin);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  direction: ltr;
  text-align: start;
}

html[dir='rtl'] .product-title-en {
  text-align: right;
}

.product-specs {
  margin: 0.1rem 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.product-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-light);
}

.product-row-end {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.product-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.wishlist-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.wishlist-icon-btn:hover,
.wishlist-icon-btn:focus-visible {
  color: var(--accent-gold-text);
  transform: scale(1.08);
}

.wishlist-icon-btn.is-saved {
  color: var(--accent-gold-text);
}

.catalog-empty {
  padding-block: 4rem;
  text-align: center;
}

.empty-title {
  margin: 0 0 0.4rem;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text-primary);
}

.empty-desc {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.catalog-footer {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

/* =========================================
   Atelier & Services Section (Emerald-Obsidian)
   ========================================= */
.atelier-section {
  padding-block: 6rem;
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.atelier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 4rem;
  align-items: center;
}

.service-list {
  list-style: none;
  margin: 2.25rem 0 2.5rem;
  padding: 0;
  border-top: 1px solid var(--border-dark);
}

.service-item {
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--border-dark);
}

.service-title {
  margin: 0 0 0.35rem;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--accent-gold);
}

.service-body {
  margin: 0;
  max-width: 58ch;
  font-size: var(--text-body);
  color: var(--text-muted-on-dark);
}

.atelier-media {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.atelier-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 41rem;
  object-fit: cover;
}

/* =========================================
   Contact, Branch & Map Section
   ========================================= */
.contact-section {
  padding-block: 5.5rem;
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.contact-header {
  max-width: 42rem;
  margin-bottom: 2.75rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-light);
}

.contact-cell {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-cell:nth-child(odd) {
  padding-inline-end: 1.75rem;
}

.contact-cell:nth-child(even) {
  padding-inline-start: 1.75rem;
  border-inline-start: 1px solid var(--border-light);
}

.contact-label {
  margin: 0 0 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-gold-text);
}

.contact-value {
  margin: 0 0 0.3rem;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text-primary);
}

.contact-note {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.inline-link,
.inline-action-btn {
  display: inline-block;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(125, 90, 28, 0.45);
  transition: color 180ms var(--ease-out), text-decoration-color 180ms var(--ease-out);
}

.inline-link:hover,
.inline-link:focus-visible,
.inline-action-btn:hover,
.inline-action-btn:focus-visible {
  color: var(--accent-gold-text);
  text-decoration-color: var(--accent-gold-text);
}

.contact-action {
  margin-top: 2.25rem;
}

.contact-map-col {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: var(--bg-page);
}

.branch-map {
  display: block;
  width: 100%;
  height: 23.5rem;
  border: 0;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  padding-block: 2.75rem;
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.footer-logo-link {
  display: inline-flex;
  flex-shrink: 0;
}

.footer-logo {
  height: 4.5rem;
  width: auto;
  object-fit: contain;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-wordmark {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 800;
  color: var(--text-on-dark);
}

.footer-note {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted-on-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: var(--text-sm);
  color: var(--text-muted-on-dark);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-gold);
}

/* =========================================
   Product Lightbox Modal (Single Clean Scroll)
   ========================================= */
.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  background-color: rgba(11, 22, 18, 0.82);
  backdrop-filter: blur(8px);
}

.modal-backdrop {
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop[hidden],
.drawer-backdrop[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(100%, 64rem);
  max-height: min(88dvh, 45rem);
  overflow: hidden;
  background-color: var(--bg-page);
  color: var(--text-primary);
  border-radius: var(--radius-md);
}

.modal-close,
.drawer-close {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(247, 247, 245, 0.92);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.modal-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  z-index: 5;
}

.modal-close:hover,
.modal-close:focus-visible,
.drawer-close:hover,
.drawer-close:focus-visible {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  max-height: min(88dvh, 45rem);
}

.modal-media-col {
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal-stage {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 22rem;
  max-height: min(88dvh, 45rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.modal-stage img,
.modal-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--bg-dark);
}

.modal-stage img.is-zoomable {
  cursor: zoom-in;
  transition: transform 240ms var(--ease-out);
}

.modal-stage img.is-zoomed {
  cursor: zoom-out;
  transform: scale(2.1);
}

.modal-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--bg-dark-elevated);
  overflow-x: auto;
}

.modal-thumb-btn {
  width: 3.75rem;
  height: 3.75rem;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}

.modal-thumb-btn.is-active {
  border-color: var(--accent-gold);
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info-col {
  padding: 2.25rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow-y: auto;
  max-height: min(88dvh, 45rem);
}

.modal-title {
  margin: 0;
  padding-inline-end: 2.75rem;
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
}

.modal-title-en {
  margin: -0.65rem 0 0;
  font-family: var(--font-latin);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text-muted);
  direction: ltr;
  text-align: start;
}

html[dir='rtl'] .modal-title-en {
  text-align: right;
}

.modal-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.modal-meta-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}

.modal-meta-row dt {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.modal-meta-row dd {
  margin: 0.1rem 0 0;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text-primary);
}

.modal-caption {
  font-size: var(--text-body);
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre-line;
}

.modal-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.modal-primary-btn {
  width: 100%;
}

.modal-secondary-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* =========================================
   Wishlist Drawer
   ========================================= */
.drawer-backdrop {
  justify-content: flex-end;
}

.drawer-panel {
  width: min(100%, 27rem);
  height: 100dvh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.drawer-title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 800;
  color: var(--text-primary);
}

.drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wishlist-empty {
  padding-block: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.wishlist-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.wishlist-thumb {
  width: 4.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  cursor: pointer;
}

.wishlist-row-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wishlist-row-title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

.wishlist-row-meta {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.wishlist-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: var(--text-sm);
}

.drawer-footer {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-clear-btn {
  align-self: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 1080px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-piece,
  .atelier-grid,
  .contact-layout,
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .atelier-media {
    order: -1;
  }

  .atelier-image {
    aspect-ratio: 4 / 3;
  }

  .modal-panel {
    max-height: 92dvh;
    overflow-y: auto;
  }

  .modal-grid {
    max-height: none;
  }

  .modal-stage {
    max-height: 55dvh;
  }

  .modal-info-col {
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 880px) {
  .main-nav {
    display: none;
  }

  .mobile-header-actions {
    display: flex;
  }

  .hero-image {
    object-position: 28% center;
  }

  .hero-scrim,
  html[dir='ltr'] .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(11, 22, 18, 0.56) 0%,
      rgba(11, 22, 18, 0.72) 55%,
      rgba(11, 22, 18, 0.88) 100%
    );
  }

  .hero-content {
    padding-block: 8rem 4rem;
    align-self: flex-end;
  }

  .sync-meta {
    align-items: flex-start;
  }

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

  .contact-cell:nth-child(odd),
  .contact-cell:nth-child(even) {
    padding-inline: 0;
    border-inline-start: 0;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 1.75rem, var(--container-max));
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .toolbar-controls {
    width: 100%;
  }

  .search-field {
    flex: 1 1 100%;
    min-width: 0;
  }

  .select-field {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .select-field select {
    width: 100%;
  }

  .modal-backdrop {
    padding: 0;
  }

  .modal-panel {
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .modal-info-col {
    padding: 1.5rem;
  }
}

/* =========================================
   Reduced Motion Preference
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
