/* ============================================================
   Les Délices de Ghaya — "Azur & Chaux"
   Light Mediterranean: pure white and chalk, sky azure and sea
   turquoise, thin-line Moorish arches, airy spacing, pill CTAs.
   User-confirmed model #2 from the style board.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Prata&family=Work+Sans:wght@400;500;600&family=Amiri:wght@400;700&display=swap');

:root {
  /* Grounds */
  --blanc: #FFFFFF;
  --ciel: #F2F8FC;
  --nacre: #EAF4FE;

  /* Blues */
  --azur: #1E7BD7;
  --azur-deep: #155FAD;
  --marine: #16324F;
  --ardoise: #5E7A93;

  /* Sea accent */
  --turquoise: #17A2B8;
  --turquoise-ink: #0E7A8A;
  --or-doux: #E8C878;
  --or-doux-deep: #C9A44C;

  /* System */
  --ligne: #E1EBF4;
  --danger: #C0392B;
  --success: #2E7D32;

  --font-display: 'Prata', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --font-ar: 'Amiri', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--blanc);
  color: var(--marine);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--marine); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--azur); outline-offset: 3px; }

[lang="ar"], .ar { font-family: var(--font-ar); font-size: 1.1em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Announcement strip ---------- */

.announce {
  background: var(--azur);
  color: var(--blanc);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: center;
  padding: 9px 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px 999px 6px 6px;
  border: 1.5px solid var(--azur);
  background: var(--ciel);
  color: var(--azur);
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--marine);
  line-height: 1.1;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-top: 4px;
}

.main-nav { display: flex; gap: 30px; font-size: 0.78rem; }
.main-nav a {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ardoise);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover {
  color: var(--azur);
  border-bottom-color: var(--azur);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.cart-button {
  position: relative;
  background: var(--azur);
  color: var(--blanc);
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s, box-shadow 0.15s;
}
.cart-button:hover { background: var(--azur-deep); box-shadow: 0 6px 16px rgba(30, 123, 215, 0.3); }

.cart-count {
  background: var(--blanc);
  color: var(--azur);
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0 4px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--blanc) 0%, var(--ciel) 100%);
  padding: 72px 0 68px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 640px 380px at 85% 8%, rgba(23, 162, 184, 0.08), transparent 65%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.hero-copy { max-width: 600px; }

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--turquoise);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.18;
  margin: 0 0 20px;
  color: var(--marine);
}

.hero h1 em {
  font-style: normal;
  color: var(--azur);
}

.hero p {
  font-size: 1.02rem;
  max-width: 54ch;
  color: var(--ardoise);
  margin: 0 0 30px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Arch niche vitrine (right side) — thin-line arch, airy */
.hero-vitrine {
  flex-shrink: 0;
  width: 300px;
  padding: 48px 30px 34px;
  background: var(--blanc);
  border: 1.5px solid var(--azur);
  border-radius: 999px 999px 18px 18px;
  box-shadow: 0 22px 44px rgba(30, 123, 215, 0.14);
  text-align: center;
  position: relative;
}
.hero-vitrine::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--ligne);
  border-radius: 999px 999px 12px 12px;
  pointer-events: none;
}
.hero-vitrine .vitrine-emoji {
  display: block;
  font-size: 4rem;
  line-height: 1;
  margin: 12px auto 6px;
  filter: saturate(0.9) drop-shadow(0 10px 12px rgba(22, 50, 79, 0.2));
}
.hero-vitrine .vitrine-caption {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--marine);
  margin-top: 14px;
}
.hero-vitrine .vitrine-note {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--turquoise);
  margin-top: 6px;
}

@media (max-width: 940px) {
  .hero-vitrine { display: none; }
}

/* Trust strip */
.trust-strip {
  border-bottom: 1px solid var(--ligne);
  background: var(--blanc);
}
.trust-strip .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ardoise);
}
.trust-strip .star-8 { width: 8px; height: 8px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled {
  color: rgba(22, 50, 79, 0.32);
  background: rgba(22, 50, 79, 0.07);
  border-color: transparent;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary {
  background: var(--azur);
  color: var(--blanc);
}
.btn-primary:hover:not(:disabled) {
  background: var(--azur-deep);
  box-shadow: 0 8px 20px rgba(30, 123, 215, 0.3);
}

.btn-dark {
  background: var(--marine);
  color: var(--blanc);
}
.btn-dark:hover:not(:disabled) { background: #0F2438; }

.btn-gold {
  background: var(--turquoise);
  color: var(--blanc);
}
.btn-gold:hover:not(:disabled) { background: #128193; }

.btn-outline {
  background: transparent;
  border: 1.5px solid #9CC8EE;
  color: var(--azur);
}
.btn-outline:hover:not(:disabled) { border-color: var(--azur); background: var(--nacre); }

.btn-ghost-white {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--blanc);
}
.btn-ghost-white:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }

.btn-danger {
  background: transparent;
  border: none;
  color: var(--danger);
}
.btn-danger:hover:not(:disabled) { text-decoration: underline; }

.btn-block { width: 100%; }
.btn-compact { padding: 10px 20px; font-size: 0.68rem; }

/* ---------- Category navigation ---------- */

.category-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 36px 0 10px;
}

.category-pill {
  flex-shrink: 0;
  background: var(--blanc);
  border: 1.5px solid var(--ligne);
  border-radius: 999px;
  padding: 9px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ardoise);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.category-pill:hover { color: var(--azur); border-color: #9CC8EE; }
.category-pill.active {
  color: var(--blanc);
  background: var(--azur);
  border-color: var(--azur);
}

/* ---------- Section titles ---------- */

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin: 52px 0 10px;
}
.section-title h2 { margin: 0; font-size: 1.85rem; }
.section-title span {
  color: var(--ardoise);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.rule-diamond {
  position: relative;
  height: 1px;
  width: 200px;
  margin: 12px auto 34px;
  background: var(--ligne);
}
.rule-diamond::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--turquoise);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 8px var(--blanc);
}

/* ---------- Product grid & cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
  padding-bottom: 60px;
}

.product-card {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(30, 123, 215, 0.08);
  transition: transform 0.18s ease-out, box-shadow 0.18s, border-color 0.18s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #9CC8EE;
  box-shadow: 0 18px 38px rgba(30, 123, 215, 0.16);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ciel);
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1.5px solid var(--azur);
  border-radius: 999px 999px 10px 10px;
  opacity: 0.45;
  pointer-events: none;
}

.product-plate {
  position: relative;
  z-index: 1;
  font-size: 3.2rem;
  line-height: 1;
}
.product-plate span {
  display: block;
  filter: saturate(0.9) contrast(0.97) drop-shadow(0 3px 4px rgba(22, 50, 79, 0.22));
}

.product-pedestal {
  position: absolute;
  z-index: 0;
  bottom: 20%;
  width: 90px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(22, 50, 79, 0.16), transparent 70%);
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  background: var(--blanc);
  border: 1px solid var(--turquoise);
  color: var(--turquoise);
  font-size: 0.56rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.product-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.product-eyebrow {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--turquoise);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.3;
  color: var(--marine);
}
.product-name-ar {
  font-family: var(--font-ar);
  color: var(--ardoise);
  font-size: 0.88rem;
  direction: rtl;
  text-align: left;
}

.product-desc {
  color: var(--ardoise);
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
}

.product-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.product-price {
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--azur);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.product-price small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ardoise);
  letter-spacing: 0.06em;
}
.product-unit {
  display: block;
  font-size: 0.68rem;
  color: var(--ardoise);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.product-footer .btn { width: 100%; background: var(--marine); }
.product-footer .btn:hover:not(:disabled) { background: var(--azur); box-shadow: 0 8px 20px rgba(30, 123, 215, 0.3); }

.out-of-stock {
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--danger);
  text-align: center;
  padding: 12px 0;
}

/* ---------- Cart drawer ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 50, 79, 0.45);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--blanc);
  z-index: 51;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(22, 50, 79, 0.25);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  background: var(--ciel);
  border-bottom: 1px solid var(--ligne);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--marine);
}
.cart-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--ardoise);
  transition: color 0.15s;
}
.cart-close:hover { color: var(--marine); }

.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }

.cart-empty {
  text-align: center;
  color: var(--ardoise);
  font-family: var(--font-display);
  font-size: 1.02rem;
  padding: 70px 20px;
}

.cart-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ligne);
}

.cart-line-emoji {
  font-size: 1.5rem;
  width: 54px;
  height: 58px;
  background: var(--ciel);
  border: 1px solid var(--ligne);
  border-radius: 999px 999px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--marine);
}
.cart-line-price {
  color: var(--ardoise);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-control button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--ligne);
  background: var(--blanc);
  font-weight: 600;
  color: var(--marine);
  transition: border-color 0.15s, color 0.15s;
}
.qty-control button:hover { border-color: var(--azur); color: var(--azur); }
.qty-control span { min-width: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.remove-line {
  background: none;
  border: none;
  color: var(--ardoise);
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-left: 8px;
}
.remove-line:hover { color: var(--danger); text-decoration: underline; }

.cart-summary {
  border-top: 1px solid var(--ligne);
  background: var(--ciel);
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ardoise);
  font-variant-numeric: tabular-nums;
}
.summary-row.total {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--marine);
  padding-top: 10px;
  border-top: 1px solid var(--ligne);
}

/* ---------- Checkout ---------- */

.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  padding: 44px 0 76px;
  align-items: start;
}
@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.card {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(30, 123, 215, 0.07);
  padding: 30px;
}

.card h2 { margin-top: 0; font-size: 1.5rem; }
.card h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ardoise);
  margin: 30px 0 14px;
}

/* Order-summary panel — light azure */
.summary-panel {
  background: var(--ciel);
  border: 1px solid var(--ligne);
  border-top: 3px solid var(--azur);
  border-radius: 14px;
  padding: 28px;
  color: var(--marine);
}
.summary-panel h2 { color: var(--marine); font-size: 1.5rem; margin-top: 0; }
.summary-panel .summary-row { color: var(--ardoise); }
.summary-panel .summary-row.total {
  color: var(--azur);
  border-top-color: #CBDDF0;
}
.summary-panel .cart-line { border-bottom-color: #D9E7F3; }
.summary-panel .cart-line-emoji { background: var(--blanc); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ardoise);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--blanc);
  color: var(--marine);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--azur);
  box-shadow: 0 0 0 3px rgba(30, 123, 215, 0.14);
}

.field { margin-bottom: 14px; }

/* Payment radio cards */
.payment-options { display: flex; flex-direction: column; gap: 10px; }

.payment-option {
  position: relative;
  background: var(--blanc);
  border: 1.5px solid var(--ligne);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.payment-option:hover { border-color: #9CC8EE; }
.payment-option.selected {
  border-color: var(--azur);
  background: var(--nacre);
  box-shadow: 0 0 0 3px rgba(30, 123, 215, 0.12);
}
.payment-option.disabled { opacity: 0.45; cursor: not-allowed; }

.payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.radio-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #A9BFD2;
  background: var(--blanc);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}
.payment-option.selected .radio-mark { border-color: var(--azur); }
.payment-option.selected .radio-mark::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--azur);
}

.pay-info { display: flex; flex-direction: column; gap: 3px; }

.pay-lockup {
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--marine);
}
.lockup-cod { display: flex; align-items: center; gap: 10px; }

.coin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--or-doux);
  border: 1.5px solid var(--or-doux-deep);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.payment-option .desc { font-size: 0.8rem; color: var(--ardoise); }

.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ardoise);
}
.star-8 {
  width: 9px;
  height: 9px;
  background: var(--turquoise);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  flex-shrink: 0;
}

.error-banner {
  background: rgba(192, 57, 43, 0.06);
  color: var(--danger);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}
.error-banner.show { display: block; }

/* ---------- Order confirmation ---------- */

.confirmation-wrap {
  max-width: 620px;
  margin: 60px auto 76px;
  padding: 0 24px;
  text-align: center;
}

.conf-arch {
  position: relative;
  width: 128px;
  height: 148px;
  margin: 0 auto 26px;
  background: var(--ciel);
  border: 1.5px solid var(--azur);
  border-radius: 999px 999px 14px 14px;
  box-shadow: 0 18px 36px rgba(30, 123, 215, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.conf-arch::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid var(--ligne);
  border-radius: 999px 999px 9px 9px;
  pointer-events: none;
}

.seal {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--azur);
  border: none;
  box-shadow: 0 0 0 4px var(--blanc), 0 8px 20px rgba(30, 123, 215, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.seal .seal-glyph { display: block; }
.seal.success .seal-glyph {
  width: 16px;
  height: 30px;
  border-right: 3.5px solid var(--blanc);
  border-bottom: 3.5px solid var(--blanc);
  transform: rotate(45deg);
  margin-top: -8px;
}
.seal.failed { background: var(--danger); }
.seal.failed .seal-glyph {
  position: relative;
  width: 26px;
  height: 26px;
}
.seal.failed .seal-glyph::before,
.seal.failed .seal-glyph::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 26px;
  height: 3.5px;
  background: var(--blanc);
}
.seal.failed .seal-glyph::before { transform: rotate(45deg); }
.seal.failed .seal-glyph::after { transform: rotate(-45deg); }
.seal.pending { background: var(--ciel); border: 1.5px solid var(--azur); }
.seal.pending .seal-glyph {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(30, 123, 215, 0.25);
  border-top-color: var(--azur);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.status-title {
  font-size: 1.9rem;
  margin: 0 0 10px;
}

.status-sub {
  color: var(--ardoise);
  margin-bottom: 14px;
}

.order-ref {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--azur);
  font-variant-numeric: tabular-nums;
  margin-bottom: 32px;
}

/* 3-step timeline */
.timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto 36px;
  max-width: 420px;
}
.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}
.timeline-step::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -50%;
  width: 100%;
  height: 1.5px;
  background: var(--ligne);
}
.timeline-step:first-child::before { display: none; }
.timeline-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blanc);
  border: 1.5px solid #A9BFD2;
  position: relative;
  z-index: 1;
}
.timeline-step.done .timeline-dot { background: var(--azur); border-color: var(--azur); }
.timeline-step span {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ardoise);
}
.timeline-step.done span { color: var(--azur); }

.order-summary-card {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(30, 123, 215, 0.07);
  padding: 30px;
  text-align: left;
}
.order-summary-card h3 {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ardoise);
  margin: 24px 0 12px;
}

.tag-gold {
  display: inline-block;
  background: var(--blanc);
  border: 1px solid var(--turquoise);
  color: var(--turquoise);
  font-size: 0.56rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
}

/* Status chips */
.badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
}
.badge.paid, .badge.confirmed, .badge.delivered {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
}
.badge.pending, .badge.awaiting_payment, .badge.due_on_delivery,
.badge.preparing, .badge.out_for_delivery {
  background: rgba(30, 123, 215, 0.1);
  color: var(--azur-deep);
}
.badge.failed, .badge.cancelled {
  background: rgba(192, 57, 43, 0.08);
  color: var(--danger);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--marine);
  color: rgba(255, 255, 255, 0.72);
  padding: 52px 0 44px;
  margin-top: 64px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 0.85rem;
}
.site-footer strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--blanc);
}

/* ---------- Admin ---------- */

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 230px;
  background: var(--marine);
  color: var(--blanc);
  padding: 30px 18px 24px;
  flex-shrink: 0;
}
.admin-sidebar .brand { margin-bottom: 34px; }
.admin-sidebar .brand-text { color: var(--blanc); font-size: 1.15rem; }
.admin-sidebar .brand-text small { color: #7FC4D6; }
.admin-sidebar .brand-mark {
  background: transparent;
  border-color: #7FC4D6;
  color: #7FC4D6;
}
.admin-sidebar nav a {
  display: block;
  padding: 11px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  background: rgba(30, 123, 215, 0.35);
  color: var(--blanc);
}
.admin-sidebar-footer {
  margin-top: 40px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}
.admin-sidebar-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }
.admin-sidebar-footer a:hover { color: var(--blanc); }

.admin-main { flex: 1; padding: 36px; max-width: 1100px; background: var(--blanc); }
.admin-main h2 { font-size: 1.6rem; }

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--blanc) 0%, var(--ciel) 100%);
}
.admin-login-card {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-top: 3px solid var(--azur);
  border-radius: 14px;
  box-shadow: 0 24px 56px rgba(30, 123, 215, 0.14);
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 400px;
}
.admin-login-card h2 { font-size: 1.4rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 10px;
  overflow: hidden;
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ligne); }
th {
  background: var(--ciel);
  color: var(--ardoise);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: var(--nacre); }
td { font-variant-numeric: tabular-nums; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-select {
  border: 1px solid var(--ligne);
  background: var(--blanc);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  width: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 50, 79, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--blanc);
  border-radius: 14px;
  border-top: 3px solid var(--azur);
  padding: 30px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(22, 50, 79, 0.3);
}
.modal h2 { margin-top: 0; font-size: 1.4rem; }

.empty-state {
  text-align: center;
  color: var(--ardoise);
  font-family: var(--font-display);
  font-size: 1.02rem;
  padding: 64px 20px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--marine);
  color: var(--blanc);
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 70;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--blanc);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
