/* ==========================================================================
   SAMPLE 02 — MODERN BLUE
   Clean ivory, deep royal blue, contemporary editorial. Geometric and calm.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;1,6..96,400&family=Manrope:wght@300;400;500;600;700&family=El+Messiri:wght@400;500;600&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600&display=swap");

.theme-modern {
  --max: 1280px;
  --radius: 6px;
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-ar-display: "El Messiri", "Noto Naskh Arabic", serif;
  --font-ar-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #eceef7;
  --ink: #111214;
  --muted: #6b707c;
  --accent: #2e3a8c;
  --accent-hover: #20296b;
  --accent-ink: #ffffff;
  --line: rgba(17, 18, 20, 0.12);
  --line-strong: rgba(17, 18, 20, 0.36);
  --header-bg: rgba(255, 255, 255, 0.94);
  --header-ink: #111214;
  --header-line: rgba(17, 18, 20, 0.1);
  --announce-bg: #2e3a8c;
  --announce-ink: #f5f3ec;
  --footer-bg: #1c2461;
  --footer-ink: #f4f1e9;
  --footer-line: rgba(244, 241, 233, 0.18);
  --card-bg: #ffffff;
  --card-line: rgba(17, 18, 20, 0.1);
  --image-bg: #e8ebf4;
  --shadow: 0 30px 70px -36px rgba(28, 36, 97, 0.34);
  --logo-h: 40px;
  --header-h: 82px;

  --admin-bg: #f6f4ee;
  --admin-card: #ffffff;
  --admin-sidebar: #1c2461;
  --admin-sidebar-ink: #f4f1e9;
  --admin-topbar: #ffffff;
  --admin-accent: #2e3a8c;
  --admin-accent-ink: #ffffff;
  --admin-line: rgba(17, 18, 20, 0.1);
}

/* Header */
.theme-modern .site-header {
  border-bottom-color: rgba(17, 18, 20, 0.08);
}

.theme-modern .brand img {
  height: 34px;
}

.theme-modern .announcement {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: none;
}

.theme-modern .nav-link {
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 12px;
}

.theme-modern .lang-toggle {
  border-radius: 100px;
}

/* Hero */
.hero-modern {
  position: relative;
  padding-block: clamp(44px, 6vw, 86px) 0;
  background:
    linear-gradient(180deg, #f6f4ee 0%, #eef0f8 72%, #e9ecf6 100%);
  overflow: hidden;
}

.hero-modern::before {
  content: "";
  position: absolute;
  top: -140px;
  inset-inline-end: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(46, 58, 140, 0.13);
}

.hero-modern-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: center;
}

.hero-modern-copy .display {
  margin-top: 18px;
}

.modern-display {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.6vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 400;
}

html[lang="ar"] .modern-display {
  font-family: var(--font-ar-display);
  letter-spacing: 0;
  line-height: 1.28;
}

.modern-display em {
  font-style: italic;
  color: var(--accent);
}

.hero-modern-copy .lead {
  margin-top: 24px;
  max-width: 46ch;
}

.hero-modern-visual {
  position: relative;
  min-height: clamp(420px, 46vw, 590px);
}

.blue-panel {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 78%;
  height: 82%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: 0 38px 80px -42px rgba(28, 36, 97, 0.55);
}

.blue-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blue-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(46, 58, 140, 0.05), rgba(17, 18, 20, 0.1));
  pointer-events: none;
}

.pattern-tile {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 40%;
  aspect-ratio: 1;
  padding: 14px;
  background: var(--surface);
  border-radius: 6px;
  box-shadow: 0 28px 56px -34px rgba(28, 36, 97, 0.4);
}

.pattern-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.feature-pill {
  position: absolute;
  top: 7%;
  inset-inline-start: 1%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 100px;
  background: var(--surface);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px -24px rgba(28, 36, 97, 0.45);
}

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

.feature-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-modern-visual::before {
  content: "";
  position: absolute;
  bottom: 12%;
  inset-inline-end: -2%;
  width: clamp(90px, 12vw, 150px);
  height: clamp(90px, 12vw, 150px);
  border-radius: 50%;
  border: 1px solid rgba(46, 58, 140, 0.28);
}

.hero-modern-stats {
  position: relative;
  z-index: 1;
  margin-top: clamp(44px, 6vw, 74px);
}

.hero-modern-stats .stats-band {
  border-block: 0;
  border-top: 1px solid rgba(17, 18, 20, 0.12);
  padding-block: clamp(24px, 3vw, 38px);
}

.hero-modern-stats .stat strong {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-modern-stats .stat span {
  letter-spacing: 0.1em;
  text-transform: none;
  font-size: 10px;
}

/* Marquee */
.theme-modern .marquee {
  background: var(--surface);
}

.theme-modern .marquee-track {
  font-size: 9px;
  letter-spacing: 0.22em;
}

/* Collections */
.modern-collections {
  padding-bottom: clamp(70px, 9vw, 120px);
}

.collection-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.collection-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
  color: #fff;
}

.collection-card:nth-child(2) {
  margin-top: 42px;
}

.collection-card:nth-child(3) {
  margin-top: 16px;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.collection-card:hover img {
  transform: scale(1.045);
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 14, 30, 0.72) 0%, rgba(12, 14, 30, 0.08) 52%, transparent 75%);
}

.collection-index {
  position: absolute;
  top: 15px;
  inset-inline-start: 15px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 9px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(5px);
}

.collection-copy {
  position: absolute;
  inset-inline: 20px;
  bottom: 20px;
  z-index: 2;
}

.collection-copy span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

html[lang="ar"] .collection-copy span {
  letter-spacing: 0;
  text-transform: none;
  font-size: 10px;
}

.collection-copy h3 {
  margin-top: 5px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 400;
}

html[lang="ar"] .collection-copy h3 {
  font-family: var(--font-ar-display);
}

/* Featured */
.modern-featured {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

/* Product cards */
.theme-modern .product-card {
  border-radius: 6px;
}

.theme-modern .product-badge {
  background: var(--accent);
  color: var(--accent-ink);
  letter-spacing: 0.08em;
  text-transform: none;
}

.theme-modern .quick-add {
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: none;
}

.theme-modern .quick-add:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.theme-modern .product-name {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

html[lang="ar"] .theme-modern .product-name {
  font-family: var(--font-ar-body);
}

/* Story */
.modern-story {
  background: var(--bg);
}

.modern-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.modern-story-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.05;
  background:
    linear-gradient(140deg, #e6e9f5 0%, #eef0f8 100%);
  border-radius: 6px;
  overflow: hidden;
}

.modern-story-visual::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(46, 58, 140, 0.16);
  border-radius: 50%;
}

.modern-story-main {
  position: relative;
  z-index: 1;
  width: 64%;
  height: 84%;
  object-fit: cover;
  border-radius: 3px;
  transform: rotate(-3.5deg);
  box-shadow: 0 30px 60px -34px rgba(28, 36, 97, 0.5);
}

.modern-story-small {
  position: absolute;
  z-index: 2;
  bottom: 7%;
  inset-inline-end: 6%;
  width: 40%;
  border: 8px solid var(--bg);
  border-radius: 3px;
  transform: rotate(3.5deg);
  box-shadow: 0 24px 48px -30px rgba(28, 36, 97, 0.46);
}

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

.modern-story-copy .lead {
  margin-top: 20px;
}

.modern-points {
  display: grid;
  gap: 13px;
  margin-top: 26px;
  margin-bottom: 32px;
}

.modern-points li {
  position: relative;
  padding-inline-start: 30px;
  font-size: 12px;
}

.modern-points li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

/* Values */
.modern-values {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.modern-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.modern-value {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px clamp(16px, 3vw, 34px);
}

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

.modern-value img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.modern-value h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
}

html[lang="ar"] .modern-value h3 {
  font-family: var(--font-ar-body);
}

.modern-value p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 24ch;
}

/* Quote */
.modern-quote {
  padding-block: clamp(70px, 9vw, 120px);
  background: var(--accent);
  color: var(--accent-ink);
  overflow: hidden;
  position: relative;
}

.modern-quote::before {
  content: "";
  position: absolute;
  top: -120px;
  inset-inline-start: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.modern-quote blockquote {
  max-width: 900px;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.2;
  font-style: italic;
  color: #fff;
}

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

.modern-quote cite {
  display: block;
  margin-top: 22px;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

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

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

.modern-newsletter .newsletter-box {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
}

.modern-newsletter .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.modern-newsletter h2 {
  color: #fff;
}

.modern-newsletter p {
  color: rgba(255, 255, 255, 0.72);
}

.modern-newsletter form {
  border-color: rgba(255, 255, 255, 0.45);
}

.modern-newsletter input {
  color: #fff;
}

.modern-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.modern-newsletter button {
  color: #fff;
}

.modern-newsletter button:hover {
  color: #111214;
}

/* Checkout accents */
.theme-modern .checkout-card {
  border-radius: 6px;
  background: var(--surface);
}

.theme-modern .summary {
  border-radius: 6px;
}

.theme-modern .payment-option {
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-modern-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-modern-visual {
    width: min(560px, 100%);
    margin-inline: auto;
    min-height: 480px;
  }

  .modern-story-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .modern-story-visual {
    width: min(520px, 100%);
    margin-inline: auto;
    order: 2;
  }

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

  .collection-card:nth-child(2) {
    margin-top: 30px;
  }

  .collection-card:nth-child(3) {
    margin-top: 0;
  }

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

  .modern-value {
    padding-block: 20px;
  }

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

@media (max-width: 640px) {
  .hero-modern {
    padding-top: 34px;
  }

  .hero-modern-visual {
    min-height: 390px;
  }

  .blue-panel {
    width: 82%;
    height: 80%;
  }

  .pattern-tile {
    width: 38%;
    padding: 9px;
  }

  .feature-pill {
    top: 4%;
    font-size: 9px;
  }

  .modern-display {
    font-size: clamp(2.6rem, 11vw, 3.6rem);
  }

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

  .collection-card {
    aspect-ratio: 4 / 4.4;
  }

  .collection-card:nth-child(2) {
    margin-top: 0;
  }

  .modern-story-visual {
    aspect-ratio: 1 / 1.1;
  }

  .modern-quote blockquote {
    font-size: 1.6rem;
  }

  .hero-modern-stats .stat strong {
    font-size: 1.5rem;
  }
}
