/* ==========================================================================
   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;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(12, 14, 30, 0.78) 0%, rgba(12, 14, 30, 0.12) 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 */
/* Special request */
.modern-request {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.modern-request-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.modern-request-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

html[lang="ar"] .modern-request-copy h2 {
  font-family: var(--font-ar-display);
  letter-spacing: 0;
}

.modern-request-copy .lead {
  max-width: 44ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.modern-request-points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.modern-request-points li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 12px;
  line-height: 1.5;
}

.modern-request-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.modern-request-panel {
  padding: clamp(22px, 3vw, 36px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.special-request-form .form-grid {
  gap: 14px;
}

.special-request-submit {
  width: 100%;
  margin-top: 8px;
}

.special-request-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.special-request-success {
  margin-top: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.special-request-success > strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

html[lang="ar"] .special-request-success > strong {
  font-family: var(--font-ar-display);
}

.special-request-success p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.special-request-success .btn {
  margin-top: 12px;
}

.special-request-fallback a {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .modern-request-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.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;
  }
}

/* Editable homepage gallery */
.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  align-items: start;
}

.home-gallery-grid .collection-card {
  aspect-ratio: 4 / 5;
}

.home-gallery-grid .collection-card:nth-child(2),
.home-gallery-grid .collection-card:nth-child(3) {
  margin-top: 0;
}

/* Account + checkout identity */
.account-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 10px;
  color: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}

.account-link:hover {
  color: var(--accent);
}

.account-link svg {
  width: 18px;
  height: 18px;
}

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

.checkout-account-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.checkout-account-inner > svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.checkout-account-inner > div:first-of-type {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.checkout-account-inner strong {
  font-size: 12px;
  font-weight: 500;
}

.checkout-account-inner span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.checkout-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-saved-address {
  margin-bottom: 15px;
}

.checkout-saved-address select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.checkout-save-address {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
}

.checkout-save-address input {
  margin-top: 2px;
  accent-color: var(--accent);
}

/* Account page */
.account-section {
  padding-block: clamp(34px, 4vw, 58px) clamp(70px, 9vw, 120px);
}

.account-auth {
  display: grid;
  gap: 24px;
}

.account-benefits {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.account-benefits h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.account-benefits ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.account-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.account-benefits li svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.account-guest-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-guest-link svg,
.account-continue svg {
  width: 15px;
  height: 15px;
}

html[lang="ar"] .account-guest-link {
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.account-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.account-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.account-card .btn-block {
  margin-top: 20px;
}

.account-card-desc {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.account-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

.account-error {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(161, 59, 59, 0.3);
  background: rgba(161, 59, 59, 0.06);
  color: #a13b3b;
  font-size: 10px;
  line-height: 1.5;
}

.account-demo-note {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.account-dashboard {
  display: grid;
  gap: 26px;
}

.account-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.account-welcome h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.account-welcome p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.account-welcome .account-since {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="ar"] .account-welcome .account-since {
  letter-spacing: 0;
  text-transform: none;
}

.account-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: start;
}

.account-panel {
  min-width: 0;
}

.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.account-panel-head .eyebrow {
  margin-bottom: 8px;
  font-size: 9px;
}

.account-panel-head h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
}

.account-order-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="ar"] .account-order-count {
  letter-spacing: 0;
  text-transform: none;
  font-size: 10px;
}

.account-empty {
  padding: 16px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.account-address-list,
.account-order-list {
  display: grid;
  gap: 10px;
}

.account-address-card,
.account-order-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}

.account-address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-address-head strong {
  font-size: 12px;
  font-weight: 500;
}

.account-default-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-address-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.account-address-card .account-address-phone {
  margin-top: 4px;
  font-size: 10px;
}

.account-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.account-address-actions button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.account-address-actions button.is-danger {
  color: #a13b3b;
}

html[lang="ar"] .account-address-actions button {
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.account-address-form {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.account-address-form[hidden] {
  display: none;
}

.account-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.account-check input {
  accent-color: var(--accent);
}

.account-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.account-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-order-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-order-head strong {
  font-size: 11px;
  font-weight: 600;
}

.account-order-head span {
  color: var(--muted);
  font-size: 9px;
}

.account-order-status {
  padding: 3px 7px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

html[lang="ar"] .account-order-status {
  letter-spacing: 0;
  text-transform: none;
  font-size: 9px;
}

.account-order-items {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.account-order-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.account-order-item strong {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.account-order-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.account-order-ship {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.account-continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

@media (max-width: 1100px) {
  .account-link span {
    display: none;
  }
}

@media (max-width: 900px) {
  .account-benefits ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-auth-grid,
  .account-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .checkout-account-inner,
  .account-welcome {
    flex-wrap: wrap;
  }

  .checkout-account-actions {
    width: 100%;
  }

  .account-panel-head {
    flex-wrap: wrap;
  }
}

/* VAT + invoice actions */
.summary-vat {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10px;
}

.summary-vat strong {
  color: var(--muted);
  font-weight: 500;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.account-order-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}

.account-order-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.account-order-actions svg {
  width: 14px;
  height: 14px;
}

html[lang="ar"] .account-order-actions button {
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.account-order-vat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

html[lang="ar"] .account-order-vat {
  font-size: 10px;
}

/* Out-of-stock storefront states */
.product-card.is-out-of-stock .product-media img {
  filter: grayscale(0.55);
  opacity: 0.72;
}

.product-card.is-out-of-stock .product-badge {
  background: #6f6a63;
  color: #fff;
}

.product-stock-msg {
  margin-top: 8px;
  color: #a13b3b;
  font-size: 10px;
  line-height: 1.5;
}

.stock-notify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.stock-notify-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.stock-notify-btn svg {
  width: 14px;
  height: 14px;
}

html[lang="ar"] .stock-notify-btn {
  font-size: 11px;
  letter-spacing: 0;
}

.stock-note.is-out {
  color: #a13b3b;
}

.stock-note.is-out .stock-dot {
  background: #a13b3b;
}

.out-stock-box {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, #a13b3b 25%, var(--line));
  background: color-mix(in srgb, #a13b3b 4%, var(--surface));
}

.out-stock-box p {
  margin-bottom: 13px;
  color: #a13b3b;
  font-size: 11px;
  line-height: 1.6;
}

.out-stock-box .btn {
  width: 100%;
}

.mobile-buy.is-out .mobile-buy-info strong {
  color: var(--muted);
}

.stock-notify-card {
  position: relative;
  width: min(460px, 100%);
  text-align: start;
}

.stock-notify-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
}

.stock-notify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
}

.stock-notify-icon svg {
  width: 24px;
  height: 24px;
}

.stock-notify-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.stock-notify-card > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.stock-notify-card form {
  margin-top: 22px;
}

.stock-notify-card .btn {
  margin-top: 16px;
}

/* Form validation */
.field-error {
  margin-top: 6px;
  color: #a13b3b;
  font-size: 10px;
  line-height: 1.45;
}

.checkout-terms + .field-error {
  margin-top: 8px;
}

.checkout-field-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.checkout-field-hint.is-error {
  color: #a13b3b;
}

.summary-ship-meta {
  color: var(--muted);
  font-size: 10px;
}

.summary-ship-meta strong {
  font-weight: 500;
}

.summary-shipping-error {
  margin: 8px 0;
  color: #a13b3b;
  font-size: 10px;
  line-height: 1.5;
}

/* 404 page */
.error-page {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 340px);
  padding-block: clamp(60px, 10vw, 120px);
}

.error-panel {
  position: relative;
  width: min(720px, 100%);
  margin-inline: auto;
  overflow: hidden;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-align: center;
}

.error-panel::after {
  position: absolute;
  top: -70px;
  inset-inline-end: -70px;
  width: 230px;
  height: 230px;
  background: url("assets/images/pattern.png") center / cover;
  opacity: 0.09;
  content: "";
  pointer-events: none;
}

.error-code {
  display: block;
  color: color-mix(in srgb, var(--accent) 48%, transparent);
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.error-panel .eyebrow {
  margin-top: 28px;
}

.error-panel h1 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.error-copy {
  max-width: 44ch;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .error-page {
    min-height: 0;
    padding-block: 38px 60px;
  }

  .error-panel {
    padding: 30px 22px 28px;
  }

  .error-actions .btn {
    width: 100%;
  }
}


.error-footer {
  margin-top: 0;
  padding-top: 0;
}

.error-footer .footer-bottom {
  border-top: 0;
}

/* Small-phone header fit */
@media (max-width: 520px) {
  .site-header .header-inner {
    gap: 8px;
    padding-inline: 14px;
  }

  .header-actions {
    gap: 2px;
  }

  .account-link {
    display: none;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }

  .brand img {
    height: 28px;
  }

  .lang-toggle {
    height: 34px;
    padding: 0 8px;
    font-size: 9px;
  }

  .cart-btn {
    height: 36px;
    padding: 0 5px;
    gap: 4px;
  }

  .cart-btn svg {
    width: 18px;
    height: 18px;
  }

  .cart-count {
    min-width: 16px;
    height: 16px;
    font-size: 8px;
  }

  /* Enlarge touch targets without changing the visual size */
  .nav-toggle,
  .lang-toggle,
  .cart-btn,
  .link-arrow {
    position: relative;
  }

  .nav-toggle::after,
  .lang-toggle::after,
  .cart-btn::after,
  .link-arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 44px);
    height: max(100%, 44px);
    transform: translate(-50%, -50%);
  }
}

/* Keep fixed drawers within the visual viewport on narrow phones */
.mobile-nav,
.cart-drawer {
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
}

/* Keep newsletter content inside its card on very narrow screens */
.newsletter-box > * {
  min-width: 0;
}

.newsletter-box h2,
.newsletter-box p {
  overflow-wrap: anywhere;
}

.care-help-email {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

/* Display currency */
.currency-picker {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--header-line);
  border-radius: 100px;
  color: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.currency-picker select {
  max-width: 105px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.mobile-nav-currency {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-top: 18px;
  padding-bottom: 6px;
  border-top: 1px solid var(--line);
}

.mobile-nav-currency > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.mobile-nav-currency select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.summary-currency-note {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .currency-picker {
    display: none;
  }
}
