/* ==========================================================================
   SAMPLE 03 — NOIR ATELIER
   Near-black, antique gold and warm sand. Cinematic, editorial, luxurious.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Marcellus&family=Outfit:wght@300;400;500;600&family=El+Messiri:wght@400;500;600&family=Noto+Kufi+Arabic:wght@300;400;500;600&display=swap");

.theme-noir {
  --max: 1280px;
  --radius: 0px;
  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-ar-display: "El Messiri", "Noto Naskh Arabic", serif;
  --font-ar-body: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;

  --bg: #0d0c0a;
  --surface: #15130f;
  --surface-2: #1d1a15;
  --ink: #efe7d8;
  --muted: #a2957f;
  --accent: #c9a86a;
  --accent-hover: #b08f4f;
  --accent-ink: #14110c;
  --line: rgba(239, 231, 216, 0.16);
  --line-strong: rgba(239, 231, 216, 0.38);
  --header-bg: rgba(13, 12, 10, 0.9);
  --header-ink: #efe7d8;
  --header-line: rgba(239, 231, 216, 0.12);
  --announce-bg: #c9a86a;
  --announce-ink: #14110c;
  --footer-bg: #080807;
  --footer-ink: #efe7d8;
  --footer-line: rgba(239, 231, 216, 0.15);
  --card-bg: #14120e;
  --card-line: rgba(201, 168, 106, 0.2);
  --image-bg: #1a1712;
  --shadow: 0 34px 80px -40px rgba(0, 0, 0, 0.75);
  --logo-h: 42px;
  --logo-filter: invert(1);
  --header-h: 84px;

  --admin-bg: #0d0c0a;
  --admin-card: #15130f;
  --admin-sidebar: #080807;
  --admin-sidebar-ink: #efe7d8;
  --admin-topbar: #15130f;
  --admin-accent: #c9a86a;
  --admin-accent-ink: #14110c;
  --admin-line: rgba(239, 231, 216, 0.14);
}

/* Global dark adjustments */
.theme-noir .site-header {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.theme-noir .announcement {
  font-size: 9.5px;
  letter-spacing: 0.24em;
}

.theme-noir .brand img {
  filter: invert(1);
}

.theme-noir .main-nav .nav-link {
  font-size: 10px;
  letter-spacing: 0.22em;
}

.theme-noir .lang-toggle {
  border-color: rgba(239, 231, 216, 0.25);
}

.theme-noir .cart-count {
  color: #14110c;
}

.theme-noir .product-badge {
  background: var(--accent);
  color: #14110c;
  letter-spacing: 0.12em;
}

.theme-noir .quick-add {
  border-color: rgba(201, 168, 106, 0.28);
}

.theme-noir .quick-add:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #14110c;
}

.theme-noir .filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #14110c;
}

.theme-noir .variant-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #14110c;
}

.theme-noir .variant-btn.is-active small {
  color: rgba(20, 17, 12, 0.65);
}

.theme-noir .product-card:hover {
  border-color: rgba(201, 168, 106, 0.55);
}

.theme-noir .checkout-card {
  background: rgba(21, 19, 15, 0.7);
}

.theme-noir .footer-newsletter .newsletter-form input,
.theme-noir .newsletter-box input {
  color: var(--ink);
}

/* Hero */
.hero-noir {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(93vh, 900px);
  overflow: hidden;
  background: #0a0908;
  color: #f3ebdd;
}

.hero-noir-bg {
  position: absolute;
  inset: 0;
}

.hero-noir-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: brightness(0.56) saturate(0.82) contrast(1.03);
}

.hero-noir-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.56) 46%, rgba(10, 9, 8, 0.18) 100%),
    linear-gradient(to top, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.12) 48%, rgba(10, 9, 8, 0.28) 100%);
}

html[dir="rtl"] .hero-noir-shade {
  background:
    linear-gradient(-90deg, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.56) 46%, rgba(10, 9, 8, 0.18) 100%),
    linear-gradient(to top, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.12) 48%, rgba(10, 9, 8, 0.28) 100%);
}

.hero-noir-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(80px, 15vh, 170px);
  padding-bottom: clamp(44px, 7vh, 80px);
}

.hero-noir .eyebrow {
  color: var(--accent);
}

.hero-noir h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.98;
  color: #f6eee0;
  max-width: 13ch;
}

html[lang="ar"] .hero-noir h1 {
  line-height: 1.3;
  max-width: 18ch;
}

.hero-noir h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-noir .lead {
  margin-top: 24px;
  max-width: 44ch;
  color: rgba(243, 235, 221, 0.7);
}

.hero-noir .hero-actions {
  margin-top: 32px;
}

.hero-noir .btn-primary {
  background: var(--accent);
  color: #14110c;
}

.hero-noir .btn-primary:hover {
  background: #d9ba80;
}

.hero-noir .btn-line {
  color: #f3ebdd;
  border-color: rgba(243, 235, 221, 0.5);
}

.hero-noir .btn-line:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-noir-meta {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 20px;
  border-top: 1px solid rgba(239, 231, 216, 0.2);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 235, 221, 0.6);
}

html[lang="ar"] .hero-noir-meta {
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
}

/* Marquee */
.theme-noir .marquee {
  background: var(--accent);
  color: #14110c;
  border: 0;
}

.theme-noir .marquee-track {
  color: #14110c;
  font-size: 9px;
  letter-spacing: 0.26em;
}

.theme-noir .marquee-track .dot {
  color: #14110c;
  opacity: 0.55;
}

/* Featured */
.noir-featured {
  background: var(--bg);
}

.noir-featured .product-card {
  background: var(--surface);
}

.theme-noir .product-name {
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
}

/* Story */
.noir-story {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.noir-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}

.noir-story-copy h2 {
  font-size: clamp(2.1rem, 3.9vw, 3.5rem);
  margin-top: 14px;
}

.noir-story-copy h2 em {
  font-style: italic;
  color: var(--accent);
}

.noir-story-copy .lead {
  margin-top: 20px;
  max-width: 50ch;
  color: var(--muted);
}

.noir-story-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  margin-bottom: 32px;
}

.noir-story-list li {
  position: relative;
  padding-inline-start: 24px;
  font-size: 12px;
  color: var(--ink);
}

.noir-story-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 11px;
  height: 1px;
  background: var(--accent);
}

.noir-story-visual {
  position: relative;
  padding: 18px;
}

.noir-story-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 168, 106, 0.45);
  transform: translate(18px, 18px);
  pointer-events: none;
}

.noir-story-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  filter: brightness(0.94);
}

/* Values */
.noir-values {
  background: var(--bg);
}

.noir-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.noir-value {
  padding: clamp(24px, 3.5vw, 42px) clamp(16px, 2vw, 28px) 0;
}

.noir-value + .noir-value {
  border-inline-start: 1px solid var(--line);
}

.noir-value-index {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.noir-value h3 {
  font-size: 1.35rem;
  margin-top: 14px;
  margin-bottom: 8px;
}

.noir-value p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 26ch;
}

/* Quote */
.noir-quote {
  padding-block: clamp(72px, 10vw, 130px);
  background: var(--surface-2);
  border-block: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.noir-quote::before,
.noir-quote::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(60px, 14vw, 200px);
  height: 1px;
  background: rgba(201, 168, 106, 0.4);
}

.noir-quote::before {
  inset-inline-start: 0;
}

.noir-quote::after {
  inset-inline-end: 0;
}

.noir-quote .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.noir-quote blockquote {
  max-width: 880px;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.24;
  font-style: italic;
  color: var(--ink);
}

html[lang="ar"] .noir-quote blockquote {
  font-family: var(--font-ar-display);
  font-style: normal;
  line-height: 1.55;
}

.noir-quote cite {
  display: block;
  margin-top: 24px;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

html[lang="ar"] .noir-quote cite {
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
}

/* Newsletter */
.noir-newsletter {
  padding-block: clamp(56px, 8vw, 100px);
}

.noir-newsletter .newsletter-box {
  background: transparent;
  border: 1px solid rgba(201, 168, 106, 0.35);
}

.noir-newsletter .newsletter-box .eyebrow {
  color: var(--accent);
}

.noir-newsletter .newsletter-box h2 {
  color: var(--ink);
}

.noir-newsletter .newsletter-box p {
  color: var(--muted);
}

.noir-newsletter .newsletter-box form {
  border-color: rgba(239, 231, 216, 0.35);
}

.noir-newsletter .newsletter-box input {
  color: var(--ink);
}

.noir-newsletter .newsletter-box input::placeholder {
  color: rgba(239, 231, 216, 0.4);
}

/* Footer logo */
.theme-noir .footer-brand img {
  filter: invert(0);
  opacity: 0.88;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-noir {
    min-height: 84vh;
  }

  .hero-noir-bg img {
    object-position: center 30%;
  }

  .noir-story-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .noir-story-visual {
    width: min(540px, 100%);
    margin-inline: auto;
  }

  .noir-values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .noir-value:nth-child(3) {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .noir-value:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .hero-noir {
    min-height: 82vh;
  }

  .hero-noir h1 {
    font-size: clamp(2.7rem, 12vw, 3.8rem);
  }

  .hero-noir .lead {
    font-size: 0.95rem;
  }

  .hero-noir-meta {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .noir-values-grid {
    grid-template-columns: 1fr;
  }

  .noir-value {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .noir-value + .noir-value {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .noir-story-visual {
    padding: 12px;
  }

  .noir-story-visual::before {
    transform: translate(10px, 10px);
  }

  .noir-quote::before,
  .noir-quote::after {
    display: none;
  }
}
