/* ==========================================================================
   العوالي (AL-AWALI) — Luxury Qamis Design System
   Auto Light/Dark Mode (prefers-color-scheme + light-dark) & Responsive
   ========================================================================== */

:root {
  color-scheme: light dark;

  --bg-ivory: #f8f6f1;
  --bg-surface: #ffffff;
  --bg-elevated: #fffdf7;
  --bg-input: #ffffff;
  --bg-header: rgba(248, 246, 241, 0.94);
  --bg-obsidian: #0d0d0e;
  --bg-charcoal: #171719;
  --bg-tint: #efebe2;
  --bg-offer: linear-gradient(135deg, #fffaf0 0%, #f6edda 100%);
  --bg-offer-text: #5d4210;
  --bg-danger-soft: #fef2f2;
  --bg-save-pill: #fef3c7;
  --fg-save-pill: #92400e;

  --text-main: #141311;
  --text-muted: #5c564c;
  --text-on-dark: #f7f4ec;
  --gold: #c8a24a;
  --gold-bright: #dfb85c;
  --gold-deep: #9c7926;
  --gold-text: #9c7926;
  --amber: #d18f2a;
  --sage: #cedad2;

  --border-subtle: rgba(200, 162, 74, 0.25);
  --border-dark: rgba(20, 19, 17, 0.12);
  --border-input: #c9c2b5;
  --danger: #b91c1c;
  --success: #15803d;

  --btn-action-bg: #0d0d0e;
  --btn-action-fg: #dfb85c;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 30px rgba(13, 13, 14, 0.06);
  --shadow-gold: 0 12px 32px rgba(200, 162, 74, 0.18);

  --font-ar-ui: 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-ar-display: 'Amiri', 'Tajawal', serif;
  --font-fr-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-fr-display: 'Cormorant Garamond', Georgia, serif;

  accent-color: var(--gold-text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-ivory: #0c0c0e;
    --bg-surface: #161619;
    --bg-elevated: #1e1c18;
    --bg-input: #111114;
    --bg-header: rgba(14, 14, 16, 0.92);
    --bg-tint: #131316;
    --bg-offer: linear-gradient(135deg, #211c12 0%, #2b2314 100%);
    --bg-offer-text: #ecd392;
    --bg-danger-soft: #2c1416;
    --bg-save-pill: #3b2d10;
    --fg-save-pill: #fcd34d;

    --text-main: #f3efe6;
    --text-muted: #b5aea0;
    --gold-text: #dfb85c;

    --border-dark: rgba(255, 255, 255, 0.14);
    --border-input: #3d382f;
    --danger: #f87171;
    --success: #4ade80;

    --btn-action-bg: #c8a24a;
    --btn-action-fg: #0d0d0e;

    --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.42);
    --shadow-gold: 0 12px 32px rgba(200, 162, 74, 0.2);
  }
}

@supports (color: light-dark(white, black)) {
  :root {
    --bg-ivory: light-dark(#f8f6f1, #0c0c0e);
    --bg-surface: light-dark(#ffffff, #161619);
    --bg-elevated: light-dark(#fffdf7, #1e1c18);
    --bg-input: light-dark(#ffffff, #111114);
    --bg-header: light-dark(rgba(248, 246, 241, 0.94), rgba(14, 14, 16, 0.92));
    --bg-tint: light-dark(#efebe2, #131316);
    --bg-offer-text: light-dark(#5d4210, #ecd392);
    --bg-danger-soft: light-dark(#fef2f2, #2c1416);
    --bg-save-pill: light-dark(#fef3c7, #3b2d10);
    --fg-save-pill: light-dark(#92400e, #fcd34d);
    --text-main: light-dark(#141311, #f3efe6);
    --text-muted: light-dark(#5c564c, #b5aea0);
    --gold-text: light-dark(#9c7926, #dfb85c);
    --border-dark: light-dark(rgba(20, 19, 17, 0.12), rgba(255, 255, 255, 0.14));
    --border-input: light-dark(#c9c2b5, #3d382f);
    --danger: light-dark(#b91c1c, #f87171);
    --success: light-dark(#15803d, #4ade80);
    --btn-action-bg: light-dark(#0d0d0e, #c8a24a);
    --btn-action-fg: light-dark(#dfb85c, #0d0d0e);
  }
}

:root[data-theme="dark"],
[data-theme="dark"],
.al-admin-shell[data-theme="dark"] {
  color-scheme: dark !important;
  --bg-ivory: #0c0c0e !important;
  --bg-surface: #161619 !important;
  --bg-elevated: #1e1c18 !important;
  --bg-input: #111114 !important;
  --bg-header: rgba(14, 14, 16, 0.92) !important;
  --bg-tint: #131316 !important;
  --bg-offer: linear-gradient(135deg, #211c12 0%, #2b2314 100%) !important;
  --bg-offer-text: #ecd392 !important;
  --bg-danger-soft: #2c1416 !important;
  --bg-save-pill: #3b2d10 !important;
  --fg-save-pill: #fcd34d !important;
  --text-main: #f3efe6 !important;
  --text-muted: #b5aea0 !important;
  --gold-text: #dfb85c !important;
  --border-dark: rgba(255, 255, 255, 0.14) !important;
  --border-input: #3d382f !important;
  --danger: #f87171 !important;
  --success: #4ade80 !important;
  --btn-action-bg: #c8a24a !important;
  --btn-action-fg: #0d0d0e !important;
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.42) !important;
  --shadow-gold: 0 12px 32px rgba(200, 162, 74, 0.2) !important;
}

:root[data-theme="light"],
[data-theme="light"],
.al-admin-shell[data-theme="light"] {
  color-scheme: light !important;
  --bg-ivory: #f8f6f1 !important;
  --bg-surface: #ffffff !important;
  --bg-elevated: #fffdf7 !important;
  --bg-input: #ffffff !important;
  --bg-header: rgba(248, 246, 241, 0.94) !important;
  --bg-tint: #efebe2 !important;
  --bg-offer: linear-gradient(135deg, #fffaf0 0%, #f6edda 100%) !important;
  --bg-offer-text: #5d4210 !important;
  --bg-danger-soft: #fef2f2 !important;
  --bg-save-pill: #fef3c7 !important;
  --fg-save-pill: #92400e !important;
  --text-main: #141311 !important;
  --text-muted: #5c564c !important;
  --gold-text: #9c7926 !important;
  --border-dark: rgba(20, 19, 17, 0.12) !important;
  --border-input: #c9c2b5 !important;
  --danger: #b91c1c !important;
  --success: #15803d !important;
  --btn-action-bg: #0d0d0e !important;
  --btn-action-fg: #dfb85c !important;
  --shadow-soft: 0 10px 30px rgba(13, 13, 14, 0.06) !important;
  --shadow-gold: 0 12px 32px rgba(200, 162, 74, 0.18) !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.al-luxury-body {
  margin: 0;
  background-color: var(--bg-ivory);
  color: var(--text-main);
  font-family: var(--font-ar-ui);
  font-size-adjust: from-font;
  line-height: 1.6;
  text-align: start;
  overflow-x: clip;
}

html[lang="fr"] body.al-luxury-body {
  font-family: var(--font-fr-ui);
}

@supports not (font-size-adjust: from-font) {
  body.al-luxury-body {
    line-height: 1.65;
  }
}

h1, h2, h3, h4 {
  font-family: var(--font-ar-display);
  line-height: 1.25;
  margin-block: 0 0.5rem;
  text-wrap: balance;
  color: inherit;
}

html[lang="fr"] h1,
html[lang="fr"] h2,
html[lang="fr"] h3 {
  font-family: var(--font-fr-display);
  letter-spacing: -0.01em;
}

p {
  margin-block: 0 1rem;
  text-wrap: pretty;
}

img {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.al-container {
  inline-size: min(1240px, 100% - 1.75rem);
  margin-inline: auto;
}

/* Announcement Bar */
.al-announcement-bar {
  background: var(--bg-obsidian);
  color: var(--gold-bright);
  font-size: clamp(0.76rem, 0.72rem + 0.25vw, 0.88rem);
  font-weight: 500;
  text-align: center;
  padding-block: 0.5rem;
  padding-inline: 0.75rem;
  border-block-end: 1px solid var(--border-subtle);
}

/* Header */
.al-site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--border-dark);
}

.al-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding-block: 0.65rem;
}

.al-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-inline-size: 0;
}

.al-brand-medallion {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  background: var(--bg-obsidian);
  color: var(--gold-bright);
  border: 1.5px solid var(--gold);
  font-family: var(--font-ar-display);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
}

.al-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.al-brand-text strong {
  font-family: var(--font-ar-display);
  font-size: 1.3rem;
  color: var(--text-main);
}

.al-brand-text small {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gold-text);
  font-weight: 600;
}

.al-brand-lockup.is-footer .al-brand-text strong {
  color: var(--gold-bright);
}

.al-brand-lockup.is-footer .al-brand-text small {
  color: #ccc5b8;
}

.al-main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-weight: 600;
  font-size: 0.94rem;
}

.al-main-nav a {
  padding-block: 0.35rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.al-main-nav a:hover {
  color: var(--gold-text);
}

.al-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.al-lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 40px;
  padding-inline: 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--bg-obsidian);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.18s, background-color 0.18s;
}

.al-lang-switch:hover {
  transform: translateY(-1px);
  background: #23211e;
}

@media (max-width: 780px) {
  .al-main-nav {
    order: 3;
    inline-size: 100%;
    justify-content: center;
    gap: 1rem;
    padding-block-start: 0.35rem;
    border-block-start: 1px solid var(--border-dark);
    font-size: 0.88rem;
    overflow-x: auto;
  }
}

/* Hero Section */
.al-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(200, 162, 74, 0.14), transparent 45%),
    linear-gradient(160deg, #111112 0%, #1d1b18 100%);
  color: var(--text-on-dark);
  padding-block: clamp(2rem, 4.5vw, 4.5rem);
}

.al-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.al-hero-grid.is-no-visual {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.al-hero-grid.is-no-visual .al-hero-lead {
  margin-left: auto;
  margin-right: auto;
}

.al-hero-grid.is-no-visual .al-hero-actions,
.al-hero-grid.is-no-visual .al-trust-pills {
  justify-content: center;
}

@media (max-width: 860px) {
  .al-hero-grid {
    grid-template-columns: 1fr;
  }
}

.al-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-block-end: 0.65rem;
}

.al-hero h1 {
  font-size: clamp(1.85rem, 1.35rem + 2.4vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-block-end: 0.95rem;
}

.al-hero-lead {
  font-size: clamp(0.96rem, 0.92rem + 0.3vw, 1.15rem);
  color: #d9d3c6;
  max-inline-size: 54ch;
  margin-block-end: 1.5rem;
}

.al-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-end: 1.5rem;
}

.al-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d7b25a 0%, #b48628 100%);
  color: #0d0d0e;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s, filter 0.2s;
}

.al-btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.al-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 184, 92, 0.5);
  color: var(--gold-bright);
  font-weight: 600;
  transition: background-color 0.2s;
}

.al-btn-ghost:hover {
  background: rgba(223, 184, 92, 0.12);
}

.al-btn-outline,
.al-btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 46px;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: transparent;
  cursor: pointer;
}

.al-btn-outline-dark {
  color: var(--text-main);
  border-color: var(--gold-text);
}

.al-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: #e4decb;
}

.al-hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #1a1917;
  max-inline-size: 460px;
  margin-inline: auto;
}

.al-hero-frame img {
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  max-block-size: 64dvh;
  object-fit: cover;
}

.al-hero-sash-accent {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 1.4rem;
  block-size: 42px;
  background-image:
    linear-gradient(45deg, rgba(209, 143, 42, 0.85) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(209, 143, 42, 0.85) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(209, 143, 42, 0.85) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(209, 143, 42, 0.85) 75%);
  background-color: rgba(180, 108, 22, 0.85);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  display: grid;
  place-items: center;
  border-block: 1px solid rgba(255, 226, 150, 0.45);
}

.al-sash-seal {
  display: grid;
  place-items: center;
  inline-size: 62px;
  block-size: 62px;
  border-radius: 50%;
  background: var(--bg-obsidian);
  color: var(--gold-bright);
  border: 2px solid var(--gold);
  font-family: var(--font-ar-display);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Signature Checkerboard Divider */
.al-checker-ribbon {
  block-size: 10px;
  background-image:
    linear-gradient(45deg, #d18f2a 25%, transparent 25%),
    linear-gradient(-45deg, #d18f2a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d18f2a 75%),
    linear-gradient(-45deg, transparent 75%, #d18f2a 75%);
  background-color: #a66118;
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
}

/* Sections */
.al-section {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.al-section-tinted {
  background: var(--bg-tint);
}

.al-section-dark {
  background: var(--bg-obsidian);
  color: var(--text-on-dark);
}

.al-section-head {
  text-align: center;
  margin-block-end: 1.75rem;
}

.al-section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-text);
  text-transform: uppercase;
  margin-block-end: 0.35rem;
}

.al-section-head h2 {
  font-size: clamp(1.55rem, 1.25rem + 1.4vw, 2.5rem);
}

/* Catalog Toolbar */
.al-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-end: 1.5rem;
  padding: 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
}

.al-filter-input {
  flex: 2 1 200px;
}

.al-filter-select {
  flex: 1 1 150px;
}

/* Product Grid & Cards */
.al-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(0.95rem, 2vw, 1.5rem);
}

.al-product-grid.al-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}

.qamis-card {
  container: card / inline-size;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 0.65rem;
  min-inline-size: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.qamis-card:has(a.card-link:hover),
.qamis-card:has(a.card-link:focus-visible) {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.qamis-card a.card-link:focus-visible {
  outline: none;
}

.qamis-card:has(a.card-link:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.qamis-card a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.qamis-card a:not(.card-link),
.qamis-card button {
  position: relative;
  z-index: 1;
}

.qamis-card-media {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-tint);
}

.qamis-card-media img {
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.al-card-img-placeholder {
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: 0.05em;
  font-size: 1.1rem;
}

.qamis-card:has(a.card-link:hover) .qamis-card-media img {
  transform: scale(1.03);
}

.al-card-badge {
  position: absolute;
  inset-block-start: 0.7rem;
  inset-inline-start: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 13, 14, 0.86);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 8;
}

.al-card-badge.is-gold {
  background: linear-gradient(135deg, #dfc06a, #b48424);
  color: #0d0d0e;
}

.qamis-card-header h3 {
  font-size: 1.15rem;
  margin-block: 0.15rem 0;
}

.qamis-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.al-card-swatches {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.al-swatch-mini {
  inline-size: 22px;
  block-size: 22px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.45);
  cursor: pointer;
  padding: 0;
}

.al-swatch-mini.is-active {
  box-shadow: 0 0 0 2px var(--gold);
  transform: scale(1.1);
}

.al-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.al-card-price strong {
  color: var(--text-main);
  font-size: 1.08rem;
}

.al-card-price del {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.qamis-card-footer {
  align-self: end;
  padding-block-start: 0.25rem;
}

.al-btn-card {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  min-block-size: 46px;
  border-radius: var(--radius-sm);
  background: var(--btn-action-bg);
  color: var(--btn-action-fg);
  font-weight: 700;
  font-size: 0.92rem;
  transition: filter 0.2s;
}

.qamis-card:has(a.card-link:hover) .al-btn-card {
  filter: brightness(1.08);
}

/* Craftsmanship Grid */
.al-craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}

.al-craft-item {
  padding: 1.4rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.al-craft-num {
  display: inline-block;
  font-family: var(--font-fr-display);
  font-size: 1.6rem;
  color: var(--gold-bright);
  margin-block-end: 0.5rem;
}

/* Individual Product Page */
.al-product-page {
  padding-block: 1.25rem 5rem;
}

@media (max-width: 920px) {
  .al-product-page {
    padding-block-end: 6.5rem;
  }
}

.al-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-block-end: 1.1rem;
}

.al-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 3.5vw, 3rem);
  align-items: start;
}

@media (max-width: 920px) {
  .al-product-layout {
    grid-template-columns: 1fr;
  }
}

.al-main-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: var(--bg-tint);
  touch-action: pan-y;
  user-select: none;
}

.al-main-stage img {
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: opacity 0.18s ease-in-out, transform 0.22s ease-out;
}

.al-main-stage img.is-animating {
  opacity: 0.25;
  transform: scale(0.985);
}

.al-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 13, 14, 0.72);
  color: #f7f4ec;
  border: 1.5px solid rgba(200, 162, 74, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  padding: 0;
}

.al-carousel-arrow:hover {
  background: rgba(13, 13, 14, 0.92);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-50%) scale(1.08);
}

.al-carousel-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.al-carousel-arrow.is-prev {
  inset-inline-start: 12px;
}

.al-carousel-arrow.is-next {
  inset-inline-end: 12px;
}

.al-carousel-badge {
  position: absolute;
  inset-block-end: 0.85rem;
  inset-inline-start: 0.85rem;
  min-block-size: 32px;
  padding-inline: 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 162, 74, 0.45);
  background: rgba(13, 13, 14, 0.78);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9;
  letter-spacing: 0.5px;
}

.al-zoom-trigger {
  position: absolute;
  inset-block-end: 0.85rem;
  inset-inline-end: 0.85rem;
  min-block-size: 40px;
  padding-inline: 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(13, 13, 14, 0.84);
  color: var(--gold-bright);
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
}

.al-thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block-start: 0.75rem;
}

.al-thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  inline-size: 68px;
  block-size: 84px;
  cursor: pointer;
  background: none;
}

.al-thumb-btn.is-active {
  border-color: var(--gold);
}

.al-thumb-btn img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* Native Accordions (<details>) */
.al-specs-accordion {
  margin-block-start: 1.35rem;
  display: grid;
  gap: 0.65rem;
}

.al-specs-accordion details {
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding-inline: 1rem;
}

.al-specs-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-block-size: 48px;
  font-weight: 700;
  cursor: pointer;
}

.al-specs-accordion summary::-webkit-details-marker {
  display: none;
}

.al-specs-accordion summary::before {
  content: "";
  inline-size: 0.75em;
  block-size: 0.75em;
  flex-shrink: 0;
  border-inline-end: 2px solid var(--gold-text);
  border-block-end: 2px solid var(--gold-text);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.al-specs-accordion details:not([open]) summary::before {
  transform: rotate(-45deg);
}

.al-specs-accordion details:not([open]) summary:dir(rtl)::before {
  transform: rotate(135deg);
}

.al-specs-accordion details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.al-specs-accordion details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .al-specs-accordion details::details-content {
    transition: block-size 0.28s ease, content-visibility 0.28s ease allow-discrete;
  }
}

.al-details-body {
  padding-block: 0.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Order Column */
.al-product-head h1 {
  font-size: clamp(1.55rem, 1.3rem + 1.2vw, 2.3rem);
}

.al-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 0.5rem 0.9rem;
}

.al-price-now {
  font-size: 1.7rem;
  color: var(--text-main);
}

.al-price-was {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.al-save-pill {
  background: var(--bg-save-pill);
  color: var(--fg-save-pill);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.al-link-btn {
  background: none;
  border: none;
  padding: 0.35rem 0;
  color: var(--gold-text);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  margin-block-end: 1rem;
}

/* Order Form Box */
.al-order-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 2.5vw, 1.65rem);
  box-shadow: var(--shadow-soft);
}

.al-order-box h2 {
  font-size: 1.3rem;
  margin-block-end: 1rem;
}

/* Offers Banner */
.al-offers-banner {
  background: var(--bg-offer);
  border: 1px solid rgba(200, 162, 74, 0.5);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-block-end: 1rem;
}

.al-offers-heading {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-block-end: 0.55rem;
  color: var(--bg-offer-text);
}

.al-offer-pills-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.al-offer-pill {
  text-align: start;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 162, 74, 0.45);
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.al-offer-pill.is-active {
  background: var(--btn-action-bg);
  color: var(--btn-action-fg);
  border-color: var(--gold);
}

/* Quantity Stepper */
.al-qty-block {
  margin-block-end: 1rem;
}

.al-qty-block label {
  display: block;
  font-weight: 700;
  margin-block-end: 0.45rem;
}

.al-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-ivory);
}

.al-qty-stepper button {
  inline-size: 48px;
  block-size: 48px;
  border: none;
  background: var(--bg-obsidian);
  color: var(--gold-bright);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.al-qty-stepper input {
  inline-size: 60px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.1rem;
}

/* Multi-piece Matrix */
.al-pieces-matrix {
  display: grid;
  gap: 0.65rem;
  margin-block-end: 1.2rem;
}

.al-piece-row {
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-ivory);
  border: 1px solid var(--border-dark);
  display: grid;
  gap: 0.6rem;
}

.al-piece-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-text);
}

.al-piece-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.al-piece-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.al-piece-color-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-block-size: 42px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-dark);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.al-piece-color-btn.is-selected {
  border-color: var(--gold);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 2px var(--gold);
}

.al-color-dot {
  inline-size: 16px;
  block-size: 16px;
  border-radius: 50%;
  border: 1px solid rgba(128, 128, 128, 0.45);
}

.al-piece-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.al-size-btn {
  min-inline-size: 44px;
  min-block-size: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
}

.al-size-btn.is-selected {
  background: var(--btn-action-bg);
  color: var(--btn-action-fg);
  border-color: var(--gold);
}

/* Dynamic Form Fields (12-column responsive grid) */
.al-form-fields-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.95rem;
  margin-block-end: 1.15rem;
}

@media (max-width: 680px) {
  .al-form-fields-grid {
    grid-template-columns: 1fr;
  }
  .al-form-group.is-half,
  .al-form-group.is-third,
  .al-form-group.is-fourth {
    grid-column: 1 / -1 !important;
  }
}

.al-form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
  min-inline-size: 0;
}

.al-form-group.is-full {
  grid-column: 1 / -1;
}

.al-form-group.is-half {
  grid-column: span 6;
}

.al-form-group.is-third {
  grid-column: span 4;
}

.al-form-group.is-fourth {
  grid-column: span 3;
}

.al-field-icon {
  margin-inline-end: 6px;
  font-size: 1.05em;
  display: inline-block;
  vertical-align: middle;
}

.al-form-section-divider {
  grid-column: 1 / -1;
  padding: 14px 0 6px 0;
  margin-top: 10px;
  border-bottom: 1px solid var(--border-dark, rgba(200, 162, 74, 0.25));
}

.al-form-section-divider h3 {
  margin: 0 0 3px 0;
  font-size: 1.08rem;
  color: var(--gold, #D4AF37);
  display: flex;
  align-items: center;
  gap: 8px;
}

.al-form-section-divider p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.al-form-notice-box {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(200, 162, 74, 0.08);
  border: 1px solid rgba(200, 162, 74, 0.35);
  border-radius: 8px;
  margin: 6px 0;
}

.al-form-notice-box .al-notice-icon {
  font-size: 20px;
  line-height: 1;
}

.al-form-notice-box strong {
  display: block;
  font-size: 0.92rem;
  color: var(--gold, #D4AF37);
  margin-bottom: 2px;
}

.al-form-notice-box p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-main);
}

.al-form-group label {
  font-weight: 700;
  font-size: 0.92rem;
}

.al-req {
  color: var(--danger);
}

.al-field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.al-order-box input:not([type="radio"]):not([type="checkbox"]),
.al-order-box select,
.al-order-box textarea,
.al-catalog-toolbar input,
.al-catalog-toolbar select,
.al-tracking-form input {
  font: inherit;
  font-size: max(1rem, 1em);
  min-block-size: 48px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-main);
  inline-size: 100%;
}

@media (pointer: coarse) {
  .al-order-box input:not([type="radio"]):not([type="checkbox"]),
  .al-order-box select {
    min-block-size: 52px;
  }
}

.al-order-box :is(input, select, textarea):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.al-order-box :is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--danger);
  background-color: var(--bg-danger-soft);
}

.al-order-box :is(:user-valid, .user-valid-fallback) {
  border-color: var(--success);
}

.al-error-msg {
  display: none;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 600;
}

.al-order-box :is(:user-invalid, .user-invalid-fallback) + .al-error-msg {
  display: block;
}

/* Delivery Cards */
.al-delivery-radios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (max-width: 380px) {
  .al-delivery-radios {
    grid-template-columns: 1fr;
  }
}

.al-delivery-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border: 2px solid var(--border-input);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-ivory);
}

.al-delivery-card:has(> input:checked) {
  border-color: var(--gold);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--gold);
}

.al-delivery-card input {
  accent-color: var(--gold-text);
}

.al-custom-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.al-custom-choice-pill,
.al-custom-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-block-size: 46px;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  background: var(--bg-ivory);
  color: var(--text-main);
  cursor: pointer;
  font-weight: 600;
}

.al-custom-choice-pill:has(> input:checked),
.al-custom-checkbox-row:has(> input:checked) {
  border-color: var(--gold);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--gold);
}

.al-custom-choice-pill input,
.al-custom-checkbox-row input {
  accent-color: var(--gold-text);
}

.al-delivery-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.al-delivery-rate {
  font-size: 0.9rem;
  color: var(--gold-text);
}

/* Financial Summary */
.al-price-summary {
  background: var(--bg-ivory);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.45rem;
  margin-block-end: 1rem;
}

.al-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.al-sum-row.is-discount {
  color: var(--success);
}

.al-sum-row.is-total {
  border-block-start: 1px dashed var(--border-dark);
  padding-block-start: 0.55rem;
  margin-block-start: 0.2rem;
  font-size: 1.15rem;
}

.al-global-error {
  padding: 0.75rem;
  background: var(--bg-danger-soft);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: var(--radius-sm);
  margin-block-end: 0.85rem;
  font-weight: 600;
}

.al-btn-submit-luxury {
  inline-size: 100%;
  min-block-size: 58px;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #121213 0%, #26221a 100%);
  color: var(--gold-bright);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s, filter 0.2s;
}

@media (prefers-color-scheme: dark) {
  .al-btn-submit-luxury {
    background: linear-gradient(135deg, #d7b25a 0%, #b48628 100%);
    color: #0d0d0e;
  }
  .al-btn-submit-luxury small {
    color: #272013;
  }
}

.al-btn-submit-luxury span {
  font-size: 1.1rem;
  font-weight: 800;
}

.al-btn-submit-luxury small {
  font-size: 0.78rem;
  opacity: 0.9;
}

.al-btn-submit-luxury:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.al-btn-submit-luxury[disabled] {
  opacity: 0.7;
  cursor: wait;
}

/* Sticky Mobile CTA */
.al-sticky-mobile-cta {
  display: none;
}

@media (max-width: 920px) {
  .al-sticky-mobile-cta {
    position: fixed;
    inset-block-end: 0;
    inset-inline: 0;
    z-index: 35;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1rem;
    background: rgba(13, 13, 14, 0.96);
    color: #fff;
    border-block-start: 1px solid var(--gold);
  }
  .al-sticky-mobile-cta small {
    display: block;
    font-size: 0.78rem;
    color: #ccc5b8;
  }
}

/* Native Dialogs (Size Guide & Zoom) */
.al-dialog {
  max-inline-size: min(640px, 94vw);
  inline-size: 100%;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 0;
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.al-dialog.is-lightbox {
  max-inline-size: min(820px, 94vw);
  background: var(--bg-obsidian);
  padding: 0.75rem;
}

.al-dialog.is-lightbox img {
  inline-size: 100%;
  max-block-size: 82dvh;
  object-fit: contain;
}

.al-dialog:modal {
  overscroll-behavior: contain;
}

.al-dialog::backdrop {
  background: rgba(13, 13, 14, 0.72);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.al-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-block-end: 1px solid var(--border-dark);
}

.al-dialog-close {
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  background: var(--bg-ivory);
  color: var(--text-main);
  cursor: pointer;
  font-weight: 700;
}

.al-dialog-body {
  padding: 1.25rem;
}

.al-size-calc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-block-end: 1rem;
  padding: 0.85rem;
  background: var(--bg-ivory);
  border-radius: var(--radius-sm);
}

.al-size-calc input {
  inline-size: 90px;
  min-block-size: 42px;
  padding-inline: 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-input);
  background: var(--bg-input);
  color: var(--text-main);
}

.al-calc-result {
  font-weight: 800;
  color: var(--gold-text);
}

.al-size-table {
  inline-size: 100%;
  border-collapse: collapse;
}

.al-size-table th,
.al-size-table td {
  padding: 0.65rem;
  border-block-end: 1px solid var(--border-dark);
  text-align: start;
}

/* Thank You & Tracking Pages */
.al-thankyou-page {
  padding-block: clamp(2rem, 6vw, 4.5rem);
}

.al-thankyou-card {
  max-inline-size: 680px;
  margin-inline: auto;
  background: var(--bg-surface);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.al-thankyou-seal {
  display: grid;
  place-items: center;
  inline-size: 72px;
  block-size: 72px;
  border-radius: 50%;
  background: var(--bg-obsidian);
  color: var(--gold-bright);
  border: 2px solid var(--gold);
  font-size: 2rem;
  margin-inline: auto;
  margin-block-end: 1rem;
}

.al-thankyou-msg {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-inline-size: 52ch;
  margin-inline: auto;
}

.al-receipt-box {
  text-align: start;
  background: var(--bg-ivory);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-block: 1.5rem;
}

.al-receipt-head {
  display: flex;
  justify-content: space-between;
  border-block-end: 1px solid var(--border-dark);
  padding-block-end: 0.65rem;
  margin-block-end: 0.75rem;
}

.al-receipt-list {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.al-receipt-list > div {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.al-receipt-list dt {
  color: var(--text-muted);
}

.al-receipt-list dd {
  margin: 0;
  font-weight: 600;
}

.al-receipt-list > div.is-total {
  border-block-start: 1px dashed var(--border-dark);
  padding-block-start: 0.6rem;
  font-size: 1.12rem;
}

.al-thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.al-tracking-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.25rem;
}

.al-tracking-form input {
  flex: 1 1 220px;
}

.al-tracking-result {
  text-align: start;
  padding: 1rem;
  background: var(--bg-ivory);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
}

/* Footer */
.al-site-footer {
  background: var(--bg-obsidian);
  color: var(--text-on-dark);
  padding-block-start: 2.75rem;
}

.al-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.75rem;
  padding-block-end: 2.25rem;
}

.al-footer-desc {
  color: #ccc5b8;
  font-size: 0.92rem;
  margin-block-start: 0.85rem;
}

.al-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  color: #ddd6c7;
}

.al-footer-bottom {
  border-block-start: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #a9a192;
}

/* ==========================================================================
   Anti-Theft & Watermark Protection (حماية الصور والعلامة المائية)
   ========================================================================== */
.al-img-guard {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
  pointer-events: auto;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.al-watermark-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 12px;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

/* Filigrane 'حاجة' seul en grand au centre de la photo */
.al-watermark-overlay::before {
  content: 'حاجة';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  font-family: 'Amiri', 'Traditional Arabic', 'Scheherazade New', 'Cinzel', serif;
  font-size: clamp(3.8rem, 18vw, 8rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.09);
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.12), 0 1px 6px rgba(212, 175, 55, 0.08);
  letter-spacing: 4px;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
  z-index: 1;
}

#al-zoom-dialog .al-watermark-overlay::before,
.al-main-stage .al-watermark-overlay::before {
  font-size: clamp(5.5rem, 24vw, 12rem);
}

.al-wm-pill {
  background: rgba(14, 14, 16, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold-bright, #d7b25a);
  border: 1px solid rgba(200, 162, 74, 0.45);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  pointer-events: none;
}

/* Interdire le glisser-déposer et la sélection des photos */
img,
.qamis-card-media img,
.al-main-stage img,
.al-hero-frame img,
#al-zoom-dialog img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Toast de notification anti-vol */
.al-protection-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 18, 20, 0.95);
  color: var(--gold-bright, #d7b25a);
  border: 1.5px solid rgba(200, 162, 74, 0.55);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  text-align: center;
  max-width: 90vw;
}

.al-protection-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Forminator-Style Form Builder (Studio Admin)
   ========================================================================== */
.al-fb-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-dark, rgba(200, 162, 74, 0.2));
}

.al-fb-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.al-fb-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.al-fb-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-dark, rgba(0, 0, 0, 0.14));
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
  color: var(--text-main);
}

.al-fb-card:hover {
  border-color: var(--gold, #D4AF37);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.al-fb-card.is-hidden-field {
  opacity: 0.65;
  border-style: dashed;
}

.al-fb-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.al-fb-order-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.al-fb-order-btns button {
  width: 24px;
  height: 20px;
  padding: 0;
  line-height: 1;
  font-size: 11px;
  cursor: pointer;
  background: var(--bg-input, #0F1115);
  color: var(--text-main);
  border: 1px solid var(--border-card, #2D333B);
  border-radius: 3px;
}

.al-fb-order-btns button:hover {
  background: var(--gold);
  color: #000;
}

.al-fb-index-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  width: 20px;
  text-align: center;
}

.al-fb-card-main {
  flex: 1;
  min-width: 0;
}

.al-fb-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.al-fb-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.al-fb-type-badge.is-text { background: rgba(59, 130, 246, 0.18); color: #60A5FA; border-color: rgba(59, 130, 246, 0.4); }
.al-fb-type-badge.is-textarea { background: rgba(99, 102, 241, 0.18); color: #818CF8; border-color: rgba(99, 102, 241, 0.4); }
.al-fb-type-badge.is-phone { background: rgba(16, 185, 129, 0.18); color: #34D399; border-color: rgba(16, 185, 129, 0.4); }
.al-fb-type-badge.is-select { background: rgba(168, 85, 247, 0.18); color: #C084FC; border-color: rgba(168, 85, 247, 0.4); }
.al-fb-type-badge.is-radio { background: rgba(236, 72, 153, 0.18); color: #F472B6; border-color: rgba(236, 72, 153, 0.4); }
.al-fb-type-badge.is-checkbox { background: rgba(139, 92, 246, 0.18); color: #A78BFA; border-color: rgba(139, 92, 246, 0.4); }
.al-fb-type-badge.is-number { background: rgba(245, 158, 11, 0.18); color: #FBBF24; border-color: rgba(245, 158, 11, 0.4); }
.al-fb-type-badge.is-email { background: rgba(14, 165, 233, 0.18); color: #38BDF8; border-color: rgba(14, 165, 233, 0.4); }
.al-fb-type-badge.is-date { background: rgba(239, 68, 68, 0.18); color: #F87171; border-color: rgba(239, 68, 68, 0.4); }
.al-fb-type-badge.is-time { background: rgba(249, 115, 22, 0.18); color: #FB923C; border-color: rgba(249, 115, 22, 0.4); }
.al-fb-type-badge.is-section { background: rgba(234, 179, 8, 0.18); color: #FDE047; border-color: rgba(234, 179, 8, 0.4); }
.al-fb-type-badge.is-alert { background: rgba(6, 182, 212, 0.18); color: #22D3EE; border-color: rgba(6, 182, 212, 0.4); }
.al-fb-type-badge.is-wilaya { background: rgba(200, 162, 74, 0.18); color: var(--gold, #D4AF37); border-color: rgba(200, 162, 74, 0.4); }
.al-fb-type-badge.is-delivery { background: rgba(200, 162, 74, 0.18); color: var(--gold, #D4AF37); border-color: rgba(200, 162, 74, 0.4); }

.al-fb-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.al-fb-card-title strong {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
}

.al-fb-card-id {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
}


/* Ligne d'information épurée (Style Forminator Minimalist) */
.al-fb-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted, #a8a29e);
  margin-top: 3px;
}

.al-fb-meta-sep {
  color: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.al-fb-meta-id code {
  font-size: 10px;
  padding: 1px 5px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold, #d4af37);
  border-radius: 3px;
  font-family: monospace;
}

.al-fb-meta-item.is-req {
  color: #f87171;
}

.al-fb-meta-item.is-vis {
  color: #34d399;
}

.al-fb-meta-item.is-hid {
  color: #a8a29e;
  text-decoration: line-through;
}

.al-fb-meta-item.is-strict {
  color: #34d399;
}

.al-fb-meta-sheet code {
  color: var(--text-main, #f7f4ec);
  font-size: 11px;
  background: rgba(212, 175, 55, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
}

.al-fb-sys-lock {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold, #d4af37);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.al-fb-card-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.al-fb-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--bg-input, #0F1115);
  color: var(--text-muted);
  border: 1px solid var(--border-card, #2D333B);
}

.al-fb-pill.is-req {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.al-fb-pill.is-gold {
  color: var(--gold, #D4AF37);
  border-color: rgba(200, 162, 74, 0.35);
  background: rgba(200, 162, 74, 0.08);
}

.al-fb-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Modals & Dialogs (Style Forminator) */
.al-fb-modal {
  width: min(780px, 95vw);
  max-height: 92vh;
  border-radius: 14px;
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #141311);
  border: 1px solid var(--gold, #D4AF37);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.al-fb-modal::backdrop {
  background: rgba(13, 13, 14, 0.75);
  backdrop-filter: blur(5px);
}

.al-fb-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-dark, rgba(0, 0, 0, 0.12));
  background: var(--bg-ivory, #f8f6f1);
}

.al-fb-modal-head h3 {
  margin: 0;
  font-size: 15px;
  color: var(--gold, #D4AF37);
  font-weight: 700;
}

.al-fb-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-dark, rgba(0, 0, 0, 0.12));
  background: var(--bg-elevated, #fffdf7);
  overflow-x: auto;
}

.al-fb-tab-btn {
  padding: 11px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted, #64748b);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.al-fb-tab-btn:hover {
  color: var(--text-main);
  background: rgba(200, 162, 74, 0.05);
}

.al-fb-tab-btn.is-active {
  color: var(--gold, #D4AF37);
  border-bottom-color: var(--gold, #D4AF37);
  background: rgba(200, 162, 74, 0.1);
}

.al-fb-tab-content {
  padding: 20px;
  max-height: calc(92vh - 170px);
  overflow-y: auto;
  background: var(--bg-surface, #ffffff);
}

.al-fb-tab-pane {
  display: none;
}

.al-fb-tab-pane.is-active {
  display: block;
}

.al-fb-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-dark, rgba(0, 0, 0, 0.12));
  background: var(--bg-ivory, #f8f6f1);
}

.al-fb-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.al-fb-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .al-fb-grid-2,
  .al-fb-grid-3 {
    grid-template-columns: 1fr;
  }
}

.al-fb-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}

.al-fb-inp {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-input, #ffffff);
  border: 1px solid var(--border-input, #c9c2b5);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 13px;
  transition: border-color 0.15s ease;
}

.al-fb-inp:focus {
  border-color: var(--gold, #D4AF37);
  box-shadow: 0 0 0 2px rgba(200, 162, 74, 0.25);
  outline: none;
}

.al-fb-icon-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.al-fb-icon-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.al-fb-icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated, #fffdf7);
  border: 1px solid var(--border-dark, rgba(0, 0, 0, 0.15));
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.al-fb-icon-btn:hover {
  border-color: var(--gold);
  background: rgba(200, 162, 74, 0.12);
}

.al-fb-check-card {
  padding: 12px 14px;
  background: var(--bg-elevated, #fffdf7);
  border: 1px solid var(--border-dark, rgba(0, 0, 0, 0.12));
  border-radius: 8px;
}

.al-fb-check-card strong {
  color: var(--text-main);
}

.al-fb-check-card small {
  color: var(--text-muted);
}

.al-fb-width-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.al-fb-width-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-elevated, #fffdf7);
  border: 1px solid var(--border-dark, rgba(0, 0, 0, 0.12));
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.al-fb-width-card:hover,
.al-fb-width-card:has(input:checked) {
  border-color: var(--gold, #D4AF37);
  background: rgba(200, 162, 74, 0.08);
}

.al-fb-width-card strong {
  color: var(--text-main);
  display: block;
  font-size: 13px;
}

.al-fb-width-card small {
  color: var(--text-muted);
  font-size: 11px;
}

.al-fb-w-bar {
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  margin: 4px 0;
  overflow: hidden;
}

.al-fb-w-bar span {
  display: block;
  height: 100%;
  background: var(--gold, #D4AF37);
  border-radius: 2px;
}

.al-fb-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  padding: 20px;
  max-height: 75vh;
  overflow-y: auto;
}

.al-fb-type-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-input, #11141A);
  border: 1px solid var(--border-card, #2D333B);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.al-fb-type-card:hover {
  border-color: var(--gold, #D4AF37);
  background: rgba(200, 162, 74, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.al-fb-type-card-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.al-fb-type-card-info h4 {
  margin: 0 0 2px 0;
  font-size: 13px;
  color: var(--text-main);
}

.al-fb-type-card-info p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

