/* ==========================================================================
   article.tn - Compact Buy-Box Editorial Hardware Design System (RTL ar-TN)
   Mobile-First COD Conversion Architecture:
   - Warm Studio Alabaster (#F6F4EF)
   - Matte Obsidian (#111113)
   - Hardware Signal Red (#E03A2B)
   - Warm Leather Tan (#B8834E)
   - Active Sensor Green (#16984B)
   ========================================================================== */

:root {
  --bg-canvas: #F6F4EF;
  --bg-canvas-alt: #EFECE4;
  --bg-surface: #FFFFFF;
  --bg-obsidian: #111113;
  --bg-obsidian-card: #1B1B20;

  --ink-primary: #111113;
  --ink-secondary: #484850;
  --ink-muted: #70707A;
  --ink-inverse: #F8F7F4;
  --ink-inverse-muted: #A9A9B2;

  --accent-red: #E03A2B;
  --accent-red-hover: #C62E20;
  --accent-tan: #B8834E;
  --accent-green: #16984B;

  --border-light: rgba(17, 17, 19, 0.09);
  --border-strong: rgba(17, 17, 19, 0.18);
  --border-dark: rgba(255, 255, 255, 0.10);
  --border-dark-strong: rgba(255, 255, 255, 0.18);

  --shadow-sm: 0 2px 8px rgba(17, 17, 19, 0.04);
  --shadow-md: 0 12px 30px rgba(17, 17, 19, 0.07);
  --shadow-lg: 0 20px 50px rgba(17, 17, 19, 0.11);
  --shadow-red: 0 10px 26px rgba(224, 58, 43, 0.28);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  --font-display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', monospace;

  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-canvas);
  color: var(--ink-primary);
  line-height: 1.58;
  overflow-x: hidden;
}

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

button, input, select {
  font-family: inherit;
  color: inherit;
}

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

.num {
  font-variant-numeric: tabular-nums;
}

.ltr-inline {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

section[id], div[id] {
  scroll-margin-top: 72px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(14px, 3.5vw, 32px);
}

/* ==========================================================================
   1. Ultra-Compact Top Strip & Sticky Header
   ========================================================================== */
.top-bar {
  background: var(--bg-obsidian);
  color: var(--ink-inverse);
  font-size: 0.78rem;
  font-weight: 500;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-block: 7px;
  text-align: center;
}

.top-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  flex-shrink: 0;
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 58, 43, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(224, 58, 43, 0); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(246, 244, 239, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
}

.brand-logo__img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

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

.nav__trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.nav__trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-obsidian);
  color: #FFFFFF;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s var(--ease);
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--accent-red);
  transform: translateY(-1px);
}

.nav__cta-price {
  background: rgba(255, 255, 255, 0.16);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
}

/* ==========================================================================
   2. TOP-OF-PAGE BUY BOX (Media Gallery + Product Details + Instant Checkout)
   ========================================================================== */
.buybox-section {
  padding-block: clamp(16px, 2.8vw, 34px) clamp(34px, 5vw, 56px);
}

.buybox-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(20px, 3.8vw, 44px);
  align-items: start;
}

/* --- Left/Start Column: Interactive Swipeable Media Gallery --- */
.gallery-col {
  position: sticky;
  top: 74px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.45;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-obsidian);
  border: 4px solid #FFFFFF;
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
}

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  direction: ltr; /* Predictable slide indexing across RTL/LTR */
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  background: var(--bg-obsidian);
  direction: rtl;
}

.gallery-slide video,
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slide--contain {
  background: #FAF9F6;
}

.gallery-slide--contain img {
  object-fit: contain;
  padding: 24px;
}

/* Subtle Optical Viewfinder Brackets */
.vf-bracket {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(255, 255, 255, 0.65);
  border-style: solid;
  pointer-events: none;
  z-index: 3;
}
.vf-bracket--tl { top: 14px; left: 14px; border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
.vf-bracket--tr { top: 14px; right: 14px; border-width: 2px 2px 0 0; border-radius: 0 3px 0 0; }

.gallery-hud-top {
  position: absolute;
  top: 14px;
  inset-inline: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
  pointer-events: none;
}

.vf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(17, 17, 19, 0.74);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.vf-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2BE474;
  box-shadow: 0 0 8px #2BE474;
}

.gallery-slide-controls {
  position: absolute;
  bottom: 14px;
  inset-inline: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 5;
}

.slide-caption {
  background: rgba(17, 17, 19, 0.72);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.slide-media-btns {
  display: flex;
  gap: 7px;
}

.vf-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(17, 17, 19, 0.76);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.vf-btn:hover {
  background: var(--accent-red);
}

/* Gallery Prev / Next Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(17, 17, 19, 0.62);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-arrow:hover {
  background: var(--bg-obsidian);
}

.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }

/* Thumbnail Selector Rail */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.thumb-btn {
  position: relative;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  padding: 0;
  overflow: hidden;
  background: var(--bg-surface);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn--video {
  background: var(--bg-obsidian);
  padding: 0;
}

.thumb-btn--video img {
  filter: brightness(0.86);
  transition: filter 0.2s ease;
}

.thumb-btn--video:hover img,
.thumb-btn--video.is-active img {
  filter: brightness(0.96);
}

.thumb-btn--video .thumb-play {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(224, 58, 43, 0.92);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}

.thumb-btn.is-active {
  border-color: var(--accent-red);
  transform: translateY(-2px);
}

.thumb-label {
  position: absolute;
  bottom: 4px;
  inset-inline: 4px;
  background: rgba(17, 17, 19, 0.72);
  color: #FFFFFF;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Right/End Column: Product Details + Inline COD Checkout --- */
.details-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.1vw, 2.2rem);
  font-weight: 800;
  line-height: 1.24;
  margin: 0;
  letter-spacing: -0.015em;
}

.product-title span {
  color: var(--accent-red);
}

.product-lead {
  margin: -4px 0 0;
  font-size: 0.96rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* Compact 2x2 Key Specs Chips */
.quick-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-spec {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.quick-spec__icon {
  color: var(--accent-red);
  flex-shrink: 0;
  font-size: 0.95rem;
}

/* Price + Offer Strip */
.price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 13px 16px;
}

.price-bar__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.price-bar__amount {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink-primary);
}

.price-bar__delivery {
  font-size: 0.86rem;
  color: var(--ink-secondary);
  font-weight: 600;
}

.price-bar__cod {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0E6B35;
  background: rgba(22, 152, 75, 0.11);
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

/* ==========================================================================
   INLINE COD CHECKOUT CARD (Right Inside the Top Buy Box!)
   ========================================================================== */
.checkout-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--ink-primary);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.5vw, 24px);
  box-shadow: var(--shadow-lg);
}

.checkout-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.checkout-card__head h2 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  margin: 0;
}

.checkout-card__badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-red);
  background: rgba(224, 58, 43, 0.10);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.cod-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-canvas);
  font-size: 0.94rem;
  color: var(--ink-primary);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--ink-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(17, 17, 19, 0.08);
}

.field.has-error input,
.field.has-error select {
  border-color: var(--accent-red);
  background: #FFF8F7;
}

.field__error {
  font-size: 0.76rem;
  color: var(--accent-red);
  font-weight: 600;
  display: none;
}

.field.has-error .field__error {
  display: block;
}

.phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  direction: ltr;
}

.phone-prefix {
  position: absolute;
  left: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink-secondary);
  padding-right: 8px;
  border-right: 1px solid var(--border-strong);
  pointer-events: none;
}

.phone-wrap input {
  padding-left: 66px;
  text-align: left;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

/* Compact Quantity + Live Total Row */
.order-summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.qty-btn:hover {
  background: var(--bg-obsidian);
  color: #FFFFFF;
  border-color: var(--bg-obsidian);
}

.qty-value {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

.price-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 145px;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.price-line--product strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.price-line--delivery {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.price-line--delivery span:last-child {
  font-weight: 600;
  color: var(--ink-secondary);
}

/* Primary Submit Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--r-pill);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease;
  text-align: center;
}

.btn--primary {
  background: var(--accent-red);
  color: #FFFFFF;
  padding: 15px 22px;
  font-size: 1rem;
  box-shadow: var(--shadow-red);
}

.btn--primary:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(224, 58, 43, 0.34);
}

.btn--primary:active {
  transform: translateY(0);
}

.form-submit-btn {
  width: 100%;
}

.form-submit-btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.form-submit-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: #FFF3F1;
  border: 1px solid rgba(224, 58, 43, 0.35);
  color: var(--accent-red);
  font-size: 0.82rem;
  font-weight: 600;
}

.checkout-trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.checkout-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.checkout-trust-row svg {
  width: 14px;
  height: 14px;
  color: var(--accent-green);
  flex-shrink: 0;
}

/* Order Confirmation Receipt (In-Place) */
.order-success {
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: fadeUp 0.35s var(--ease);
}

.order-success.is-visible {
  display: flex;
}

.order-success__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-success__badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(22, 152, 75, 0.14);
  color: var(--accent-green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.order-success h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 2px;
}

.order-success__lead {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.receipt-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.receipt-row span {
  color: var(--ink-muted);
}

.receipt-row strong {
  font-family: var(--font-display);
  color: var(--ink-primary);
  text-align: left;
}

.order-success__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn--whatsapp {
  background: #1B9E4B;
  color: #FFFFFF;
  padding: 13px 18px;
  font-size: 0.9rem;
  flex: 1;
}

.btn--whatsapp:hover {
  background: #15823D;
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--ink-primary);
  padding: 12px 16px;
  font-size: 0.86rem;
}

/* ==========================================================================
   3. COMPACT DARK STUDIO MODULE (Gesture Lab + 3 Steps + What's in Box)
   ========================================================================== */
.compact-section {
  padding-block: clamp(28px, 4vw, 48px);
}

.studio-panel {
  background: var(--bg-obsidian);
  color: var(--ink-inverse);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3.5vw, 36px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.studio-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(480px 300px at 15% 10%, rgba(224, 58, 43, 0.16), transparent 70%);
  pointer-events: none;
}

.studio-panel__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3.5vw, 38px);
  align-items: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--ink-secondary);
}

.section-kicker--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-dark);
  color: var(--ink-inverse);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.28;
  margin: 12px 0 8px;
}

.section-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.studio-panel .section-sub {
  color: var(--ink-inverse-muted);
}

/* Compact Interactive Gesture Lab */
.gesture-box {
  background: var(--bg-obsidian-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-md);
  padding: 16px;
}

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

.gesture-box__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
}

.led-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(22, 152, 75, 0.16);
  color: #5BE391;
  border: 1px solid rgba(22, 152, 75, 0.35);
}

.led-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2BE474;
  box-shadow: 0 0 10px #2BE474;
}

.led-indicator.is-paused {
  background: rgba(224, 58, 43, 0.16);
  color: #FF8E82;
  border-color: rgba(224, 58, 43, 0.38);
}

.led-indicator.is-paused .led-indicator__dot {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
}

.led-indicator.is-spin {
  background: rgba(196, 147, 99, 0.18);
  color: #F0C699;
  border-color: rgba(196, 147, 99, 0.4);
}

.led-indicator.is-spin .led-indicator__dot {
  background: #E7AF76;
  box-shadow: 0 0 10px #E7AF76;
}

.gesture-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.gesture-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-xs);
  padding: 10px 6px;
  cursor: pointer;
  color: var(--ink-inverse-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.gesture-btn span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}

.gesture-btn.is-active {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--accent-red);
  color: #FFFFFF;
}

.gesture-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-inverse-muted);
  line-height: 1.6;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-xs);
  border-right: 3px solid var(--accent-red);
}

/* Compact 3-Step Horizontal / Stacked List + Box Contents */
.mini-steps {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-step {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-sm);
  padding: 11px 13px;
}

.mini-step__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mini-step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: #FFFFFF;
}

.mini-step span {
  font-size: 0.8rem;
  color: var(--ink-inverse-muted);
}

.box-strip {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--ink-inverse-muted);
}

.box-strip strong {
  color: #FFFFFF;
  font-family: var(--font-display);
}

/* ==========================================================================
   4. COMPACT FAQ (5 Essential Tunisian Objections)
   ========================================================================== */
.section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.faq-list {
  display: grid;
  gap: 9px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: right;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.faq-trigger__plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
  transition: transform 0.22s var(--ease), background 0.2s ease, color 0.2s ease;
}

.faq-item.is-open .faq-trigger__plus {
  transform: rotate(45deg);
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #FFFFFF;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s var(--ease);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel__inner {
  overflow: hidden;
}

.faq-panel__body {
  margin: 0;
  padding: 0 16px 15px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.68;
}

/* ==========================================================================
   6. Minimal Footer & Smart Mobile Sticky Return-to-Checkout Bar
   ========================================================================== */
.site-footer {
  background: var(--bg-obsidian);
  color: var(--ink-inverse-muted);
  padding-block: 26px;
  margin-top: 16px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}

.footer__logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__cta {
  padding: 10px 18px;
  font-size: 0.84rem;
}

/* Sticky bar ONLY shows on mobile when user scrolls BELOW the top checkout card */
.mobile-sticky {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 95;
  background: rgba(17, 17, 19, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(110%);
  transition: transform 0.28s var(--ease);
}

.mobile-sticky.is-visible {
  transform: translateY(0);
}

.mobile-sticky__price {
  color: #FFFFFF;
  line-height: 1.2;
}

.mobile-sticky__price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.04rem;
}

.mobile-sticky__price span {
  font-size: 0.72rem;
  color: var(--ink-inverse-muted);
}

.mobile-sticky__btn {
  padding: 11px 18px;
  font-size: 0.88rem;
  flex: 1;
  max-width: 210px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Breakpoints (Mobile-First au Maximum)
   ========================================================================== */
@media (max-width: 960px) {
  .buybox-grid,
  .studio-panel__grid {
    grid-template-columns: 1fr;
  }

  .gallery-col {
    position: static;
  }

  .nav__trust {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px;
  }

  .nav {
    min-height: 52px;
  }

  .brand-logo__img {
    height: 32px;
  }

  .nav__cta {
    padding: 7px 13px;
    font-size: 0.78rem;
  }

  .buybox-section {
    padding-block: 12px 24px;
  }

  /* Compact square-ish media stage on mobile so product + checkout sit right below! */
  .gallery-stage {
    aspect-ratio: 4 / 3.85;
    border-radius: var(--r-lg);
    border-width: 3px;
  }

  .gallery-thumbs {
    gap: 7px;
  }

  .thumb-btn--video {
    font-size: 0.66rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .checkout-trust-row {
    justify-content: flex-start;
    gap: 8px 14px;
  }

  .mobile-sticky {
    display: flex;
  }
}
