/* ============================================================
   CHRONO — Luxury Wristwatches
   Mobile-first, dark luxury theme.
   ============================================================ */

:root {
  --bg: #0c0c0c;
  --bg-alt: #111113;
  --surface: #161618;
  --surface-2: #1d1d20;
  --line: rgba(201, 162, 75, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #c9a24b;
  --gold-light: #e3c678;
  --ivory: #f4efe6;
  --muted: #a9a49a;
  --danger: #e0705f;
  --success: #7fb98a;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
  --radius: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
  font-weight: 500;
}

.section-title {
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
}

.section-lead {
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #171204;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 162, 75, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(244, 239, 230, 0.35);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-lg { padding: 1rem 2.4rem; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--ivory);
}
.logo::first-letter { color: var(--gold); }

.main-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(12, 12, 12, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 20px 1.25rem;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
}
.main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }

.nav-link {
  padding: 0.85rem 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.25s;
}
.nav-link:hover, .nav-link.active { color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }

.cart-link { position: relative; display: inline-flex; padding: 0.35rem; color: var(--ivory); }
.cart-link:hover { color: var(--gold-light); }
.cart-icon { width: 22px; height: 22px; }

.cart-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #171204;
  font-size: 0.65rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ivory);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 12, 12, 0.96) 30%, rgba(12, 12, 12, 0.55) 65%, rgba(12, 12, 12, 0.25) 100%),
    url("https://images.unsplash.com/photo-1523170335258-f5ed11844a49?q=80&w=1800&auto=format&fit=crop") center / cover no-repeat;
  transform: scale(1.05);
  animation: heroDrift 24s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.05) translateX(0); }
  to   { transform: scale(1.12) translateX(-1.5%); }
}

.hero-inner { position: relative; z-index: 1; padding-block: 5rem; }

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(3rem, 11vw, 6.5rem);
  font-weight: 700;
  margin-bottom: 1.4rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  max-width: 44ch;
  color: rgba(244, 239, 230, 0.85);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-bottom: 2.4rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid rgba(244, 239, 230, 0.4);
  border-radius: 12px;
}
.hero-scroll span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 720px; margin-bottom: 3rem; }

/* ---------- Product grids & cards ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.watch-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.watch-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0a0a0a; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.watch-card:hover .card-media img { transform: scale(1.06); }

.card-featured-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 0.3rem 0.7rem;
  background: rgba(12, 12, 12, 0.75);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: 2px;
  backdrop-filter: blur(6px);
}

.card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card-brand {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.card-price {
  font-size: 1.05rem;
  color: var(--ivory);
  font-weight: 500;
  margin: 0.35rem 0 0.9rem;
}

.card-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Loader & error ---------- */
.loader-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3.5rem 0;
  color: var(--muted);
}

.spinner {
  width: 42px;
  height: 42px;
  border: 2px solid var(--line-soft);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-box {
  grid-column: 1 / -1;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(224, 112, 95, 0.45);
  background: rgba(224, 112, 95, 0.08);
  border-radius: var(--radius);
  color: #ecb3ab;
}
.error-box p { margin: 0 0 0.6rem; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(12, 12, 12, 0.15), rgba(12, 12, 12, 0.55)),
    url("https://images.unsplash.com/photo-1451290337906-ac938fc89bce?q=80&w=1200&auto=format&fit=crop") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.about-copy p { color: var(--muted); }
.about-copy .btn { margin-top: 1.2rem; }

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-soft);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-light);
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Contact strip ---------- */
.contact-strip {
  background:
    linear-gradient(rgba(12, 12, 12, 0.9), rgba(12, 12, 12, 0.9)),
    url("https://images.unsplash.com/photo-1547996160-81dfa63595aa?q=80&w=1600&auto=format&fit=crop") center / cover fixed no-repeat;
  border-top: 1px solid var(--line);
}

.contact-inner { display: grid; gap: 2.5rem; align-items: center; }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: flex-start;
}
.newsletter-form input {
  flex: 1 1 240px;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.newsletter-msg { flex-basis: 100%; margin: 0.4rem 0 0; color: var(--success); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #080808;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  padding-block: 3.5rem 2rem;
}

.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 38ch; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-bottom {
  padding-block: 1.4rem;
  border-top: 1px solid var(--line-soft);
  color: #6b675f;
  font-size: 0.78rem;
}

/* ---------- Product page ---------- */
.product-page, .cart-page { padding-block: 2.5rem 6rem; min-height: 60vh; }

.back-link {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.2rem;
  transition: color 0.25s;
}
.back-link:hover { color: var(--gold-light); }

.product-detail {
  display: grid;
  gap: 2.5rem;
}

.product-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-name { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.product-price {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold-light);
  margin: 0 0 1.2rem;
}
.product-desc { color: var(--muted); max-width: 60ch; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0 2.2rem;
  font-size: 0.9rem;
}
.spec-table th, .spec-table td {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: start;
  vertical-align: top;
}
.spec-table th {
  width: 42%;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--gold);
}
.spec-table td { color: var(--ivory); }

.buy-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.qty-selector {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
}
.qty-selector button {
  width: 44px;
  background: var(--surface-2);
  border: none;
  color: var(--ivory);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.qty-selector button:hover { background: var(--gold); color: #171204; }
.qty-selector input {
  width: 58px;
  text-align: center;
  background: var(--surface);
  border: none;
  border-inline: 1px solid var(--line-soft);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-selector input::-webkit-inner-spin-button,
.qty-selector input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-selector input:focus { outline: none; }

.added-msg { margin-top: 1rem; color: var(--success); font-size: 0.9rem; }
.added-msg a { color: var(--gold-light); text-decoration: underline; }

/* ---------- Cart page ---------- */
.cart-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}
.cart-empty p { font-size: 1.1rem; margin-bottom: 1.6rem; }

.cart-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.cart-items { display: flex; flex-direction: column; gap: 1.1rem; }

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  align-items: center;
}

.cart-item-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
}

.cart-item-info { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.cart-item-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
}
.cart-item-brand { font-size: 0.65rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.cart-item-price { color: var(--muted); font-size: 0.9rem; }

.cart-item-controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line-soft);
}

.cart-item-controls .qty-selector button { width: 38px; }
.cart-item-controls .qty-selector input { width: 48px; padding: 0.55rem 0; }

.item-line-total { font-weight: 500; color: var(--gold-light); }

.remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color 0.25s;
}
.remove-btn:hover { color: var(--danger); }

.checkout-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.summary-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.summary-total {
  border-top: 1px solid var(--line);
  margin-top: 0.6rem;
  padding-top: 1rem;
  color: var(--ivory);
  font-size: 1.15rem;
  font-weight: 500;
}
.summary-total span:last-child { color: var(--gold-light); }

.checkout-form { display: flex; flex-direction: column; gap: 1rem; }
.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.checkout-form input,
.checkout-form textarea {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: normal;
  text-transform: none;
  resize: vertical;
}
.checkout-form input:focus,
.checkout-form textarea:focus { outline: none; border-color: var(--gold); }

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.85rem;
}

/* ---------- Order success ---------- */
.order-success {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.4s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.success-card {
  max-width: 520px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  animation: popIn 0.5s var(--ease);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.success-card p { color: var(--muted); }
.order-id code {
  color: var(--gold-light);
  background: rgba(201, 162, 75, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  word-break: break-all;
}

.success-check { width: 84px; margin: 0 auto 1.4rem; }
.success-check svg { width: 100%; height: auto; }
.check-circle {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: drawCircle 0.7s var(--ease) forwards;
}
.check-path {
  stroke: var(--gold-light);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck 0.45s var(--ease) 0.55s forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Breakpoints
   ============================================================ */

@media (min-width: 640px) {
  .container { padding-inline: 28px; }
  .cart-item { grid-template-columns: 120px 1fr; }
  .cart-item-img { width: 120px; height: 120px; }
}

@media (min-width: 768px) {
  .hamburger { display: none; }

  .main-nav {
    position: static;
    flex-direction: row;
    gap: 2rem;
    background: none;
    border: none;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-link { border: none; padding: 0.4rem 0; position: relative; }
  .nav-link::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
  }
  .nav-link:hover::after, .nav-link.active::after { width: 100%; }

  .product-detail { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); align-items: start; }
}

@media (min-width: 1024px) {
  .container { padding-inline: 32px; }
  .grid-featured { grid-template-columns: repeat(3, 1fr); }
  .about-inner { grid-template-columns: 0.9fr 1.1fr; gap: 4.5rem; }
  .contact-inner { grid-template-columns: 1.2fr 1fr; }
  .cart-layout { grid-template-columns: 1.6fr 1fr; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

/* ============================================================
   Language toggle, footer columns, contact info, legal pages, RTL
   ============================================================ */

/* ---------- Language & currency toggles ---------- */
.lang-toggle,
.currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.lang-toggle:hover,
.currency-toggle:hover { border-color: var(--gold); color: var(--gold-light); }
.lang-toggle .lang-ar,
.currency-toggle .cur-sar { font-family: "Tajawal", sans-serif; }
.lang-toggle .lang-sep,
.currency-toggle .cur-sep { opacity: 0.4; }
[dir="rtl"] .lang-toggle .lang-ar,
[dir="ltr"] .lang-toggle .lang-en { color: var(--gold-light); font-weight: 600; }
[data-currency="SAR"] .currency-toggle .cur-sar,
[data-currency="USD"] .currency-toggle .cur-usd { color: var(--gold-light); font-weight: 600; }

/* ---------- Footer columns ---------- */
.footer-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

.footer-contact p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-contact a { color: var(--ivory); transition: color 0.25s; }
.footer-contact a:hover { color: var(--gold-light); }

/* ---------- Contact info (index contact strip) ---------- */
.contact-reach { color: var(--muted); margin: 1.6rem 0 0.5rem; font-size: 0.9rem; }
.contact-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.contact-info a { color: var(--gold-light); transition: color 0.25s; }
.contact-info a:hover { color: var(--ivory); }

/* ---------- Legal / policy pages ---------- */
.legal-page { padding-block: 2.5rem 6rem; min-height: 60vh; }

.legal-updated {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.legal-body { max-width: 820px; color: var(--muted); }
.legal-body > p { margin: 0 0 1rem; }
.legal-body h2 {
  font-size: 1.35rem;
  color: var(--ivory);
  margin: 2.4rem 0 0.8rem;
}
.legal-body ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.4rem;
}
.legal-body li { margin-bottom: 0.45rem; }
.legal-body a { color: var(--gold-light); text-decoration: underline; }

/* ============================================================
   RTL (Arabic) adjustments
   ============================================================ */

[dir="rtl"] body {
  font-family: "Tajawal", "Inter", -apple-system, "Segoe UI", sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .logo,
[dir="rtl"] .card-name,
[dir="rtl"] .cart-item-name,
[dir="rtl"] .stat-num,
[dir="rtl"] .product-name {
  font-family: "Tajawal", "Playfair Display", serif;
}

/* Letter-spacing breaks Arabic script shaping — reset it in RTL. */
[dir="rtl"] * { letter-spacing: 0; }

/* Arabic reads better slightly bolder & with looser rhythm. */
[dir="rtl"] body { font-weight: 400; line-height: 1.8; }

/* Directional arrows flip with direction. */
.dir-arrow { display: inline-block; }
[dir="rtl"] .dir-arrow { transform: scaleX(-1); }

/* Hero background gradient: mirror so text side stays dark in RTL. */
[dir="rtl"] .hero-bg {
  background:
    linear-gradient(260deg, rgba(12, 12, 12, 0.96) 30%, rgba(12, 12, 12, 0.55) 65%, rgba(12, 12, 12, 0.25) 100%),
    url("https://images.unsplash.com/photo-1523170335258-f5ed11844a49?q=80&w=1800&auto=format&fit=crop") center / cover no-repeat;
}

/* Keep Latin/technical content (emails, phones, prices) LTR inside RTL text. */
[dir="rtl"] code,
[dir="rtl"] [dir="ltr"] { direction: ltr; unicode-bidi: isolate; }

/* ---------- Business identity (footer, Saudi E-Commerce Law) ---------- */
.footer-biz {
  padding-block: 1.1rem;
  border-top: 1px solid var(--line-soft);
  color: #6b675f;
  font-size: 0.78rem;
  line-height: 1.9;
}
.footer-biz p { margin: 0; }
.footer-biz strong { color: var(--muted); font-weight: 500; }

/* ---------- Delivery note (product page & checkout) ---------- */
.delivery-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
}
.delivery-note::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex: none;
}
.checkout-form .delivery-note { margin: 0; }

/* ---------- Checkout policy agreement ---------- */
.checkout-agree {
  margin: 0;
  color: #6b675f;
  font-size: 0.75rem;
  line-height: 1.7;
}
.checkout-agree a { color: var(--gold-light); text-decoration: underline; }
