/* =====================================================================
   style.css — Customer store (COD store)
   - Arabic RTL layout
   - CSS variables for light & dark themes (theme switch via [data-theme])
   - Mobile-first, fully responsive
   - Smooth CSS animations
   - Premium modern UI
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (overridable from admin → settings → CSS variables) */
  --color-primary: #4f46e5;
  --color-primary-rgb: 79, 70, 229;
  --color-accent: #f59e0b;
  --color-accent-rgb: 245, 158, 11;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;

  /* Neutrals (light theme) */
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-accent: #faf5ff;
  --surface: #ffffff;
  --surface-2: #f4f5fa;
  --border: #e6e8ef;
  --text: #1a1d2e;
  --text-muted: #6b7088;
  --text-soft: #8b90a3;
  --shadow-sm: 0 1px 2px rgba(20, 23, 40, 0.06);
  --shadow: 0 4px 14px rgba(20, 23, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 23, 40, 0.12);
  --shadow-glow: 0 8px 30px rgba(var(--color-primary-rgb), 0.25);

  /* Typography */
  --font-base: "Tahoma", "Segoe UI", "Cairo", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
  --font-heading: "Tahoma", "Cairo", "Segoe UI", sans-serif;

  /* Spacing & radius */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Layout */
  --container: 1180px;
  --header-h: 72px;

  --transition: 0.25s ease;
}

[data-theme="dark"] {
  --bg: #0f1117;
  --bg-soft: #161a24;
  --bg-accent: #1a1530;
  --surface: #161a24;
  --surface-2: #1f2533;
  --border: #2a3142;
  --text: #e7e9f3;
  --text-muted: #a0a6bd;
  --text-soft: #7c8298;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 8px 30px rgba(var(--color-primary-rgb), 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; margin: 0; font-weight: 800; }
p { margin: 0 0 var(--space-4); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Container & helpers ---------- */
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: var(--space-8) 0; }
.section--soft { background: var(--bg-soft); }
.section--accent { background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.08), rgba(var(--color-accent-rgb), 0.06)); }
.section__title { text-align: center; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: var(--space-2); }
.section__title--start { text-align: start; }
.section__subtitle { text-align: center; color: var(--text-muted); margin-bottom: var(--space-6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(var(--color-primary-rgb), 0.35); }
.btn--solid { background: var(--color-accent); color: #1a1d2e; box-shadow: 0 8px 24px rgba(var(--color-accent-rgb), 0.3); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(var(--color-accent-rgb), 0.45); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--color-primary); color: var(--color-primary); }
.btn--danger { background: var(--color-danger); color: #fff; }
.btn--danger:hover { background: #dc2626; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.badge--soft { background: rgba(var(--color-primary-rgb), 0.12); color: var(--color-primary); }
.badge--solid { background: var(--color-accent); color: #1a1d2e; }

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.announce__inner { display: flex; align-items: center; justify-content: center; padding: 8px 16px; position: relative; }
.announce__close {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  opacity: 0.85;
}
.announce__close:hover { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-4);
}
.logo { display: flex; align-items: center; gap: var(--space-2); font-weight: 800; }
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  box-shadow: var(--shadow-glow);
}
.logo__text { font-size: 20px; }
.nav { display: flex; gap: var(--space-5); }
.nav__link { color: var(--text-muted); font-weight: 600; transition: color var(--transition); }
.nav__link:hover { color: var(--color-primary); }
.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform var(--transition), background var(--transition);
}
.theme-toggle:hover { transform: rotate(20deg); background: var(--color-primary); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  position: absolute;
  top: var(--header-h);
  inset-inline: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  gap: var(--space-2);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
  z-index: 49;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav__link { padding: 12px 8px; border-radius: var(--radius-sm); font-weight: 600; color: var(--text-muted); }
.mobile-nav__link:hover { background: var(--surface-2); color: var(--color-primary); }
.mobile-nav__link--cta { background: var(--color-primary); color: #fff; text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: var(--space-7) 0; background: radial-gradient(circle at top right, rgba(var(--color-primary-rgb), 0.08), transparent 60%), var(--bg); }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-7); align-items: center; }
.hero__title { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: var(--space-3); }
.hero__subtitle { color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 540px; }
.hero__price { display: flex; align-items: baseline; gap: var(--space-3); margin: var(--space-5) 0; flex-wrap: wrap; }
.price { font-weight: 800; }
.price--now { font-size: 2.2rem; color: var(--color-primary); }
.price--now small { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.price--old { font-size: 1.2rem; color: var(--text-soft); text-decoration: line-through; }
.price--lg { font-size: 3rem; }
.discount-tag {
  background: var(--color-danger);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
}
.hero__cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero__trust { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.trust-pill {
  background: var(--surface-2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.hero__media { display: flex; justify-content: center; }
.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12), rgba(var(--color-accent-rgb), 0.12));
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  animation: floaty 5s ease-in-out infinite;
}
.hero__image { border-radius: var(--radius); }
.hero__float-tag {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  background: var(--color-accent);
  color: #1a1d2e;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--surface); border-block: 1px solid var(--border); }
.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding: var(--space-5) 0;
}
.trust-item { display: flex; align-items: center; gap: var(--space-3); justify-content: center; }
.trust-item span { font-size: 28px; }
.trust-item strong { display: block; font-size: 15px; }
.trust-item small { color: var(--text-muted); font-size: 13px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: var(--space-4); max-width: 600px; margin: 0 auto; }
.gallery__main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery__main img { max-height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.gallery__thumb {
  width: 88px; height: 88px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface);
  padding: 6px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  overflow: hidden;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.is-active { border-color: var(--color-primary); }
.gallery__thumb:hover { transform: translateY(-3px); }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card__icon {
  width: 60px; height: 60px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: rgba(var(--color-primary-rgb), 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.feature-card h3 { font-size: 18px; margin-bottom: var(--space-2); }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- Description ---------- */
.description { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-7); align-items: center; }
.description__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.check-list li { position: relative; padding-inline-start: 30px; margin-bottom: var(--space-2); }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--color-success); font-weight: 800; }

/* ---------- Offer ---------- */
.offer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-6);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}
.offer__title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: var(--space-3); }
.offer__subtitle { color: var(--text-muted); margin-bottom: var(--space-4); }
.offer__price { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-5); }
.offer__countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.countdown {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: center;
}
.countdown__num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.countdown small { color: var(--text-muted); font-size: 12px; }

/* ---------- Specs ---------- */
.specs-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.spec-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  border-inline-end: 1px solid var(--border);
}
.spec-row:nth-last-child(-n+2) { border-bottom: 0; }
.spec-row:nth-child(2n) { border-inline-end: 0; }
.spec-row__key { font-weight: 700; color: var(--text); }
.spec-row__val { color: var(--text-muted); }

/* ---------- Reviews ---------- */
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); }
.rating-summary { display: flex; align-items: center; gap: var(--space-2); }
.stars { color: var(--color-accent); font-size: 1.1rem; letter-spacing: 2px; }
.rating-summary__num { font-weight: 800; font-size: 1.2rem; }
.rating-summary__count { color: var(--text-muted); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.review-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.review-card__name { font-weight: 700; }
.review-card__city { color: var(--text-muted); font-size: 13px; }
.review-card__text { color: var(--text-muted); font-size: 15px; }
.review-card__date { font-size: 12px; color: var(--text-soft); margin-top: var(--space-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item.is-open { box-shadow: var(--shadow); }
.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  text-align: start;
  font-weight: 700;
  font-size: 16px;
}
.faq-item__q:hover { color: var(--color-primary); }
.faq-item__icon { transition: transform var(--transition); color: var(--color-primary); font-size: 20px; }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  color: var(--text-muted);
}
.faq-item__a-inner { padding: 0 var(--space-5) var(--space-4); }
.faq-item.is-open .faq-item__a { max-height: 240px; }

/* ---------- Order form ---------- */
.order-wrap { max-width: 760px; }
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}
.order-card__head { text-align: center; margin-bottom: var(--space-5); }
.order-card__head h2 { font-size: 1.8rem; margin-bottom: var(--space-2); }
.order-card__head p { color: var(--text-muted); margin: 0; }
.order-summary {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}
.order-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--text-muted);
}
.order-summary__row strong { color: var(--text); }
.order-summary__row--total {
  border-top: 2px dashed var(--border);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}
.order-summary__row--total span:last-child { color: var(--color-primary); }

.form__group { margin-bottom: var(--space-4); }
.form__group label { display: block; font-weight: 700; margin-bottom: var(--space-2); font-size: 14px; }
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}
.form__group textarea { resize: vertical; min-height: 80px; }
.form__group.is-invalid input,
.form__group.is-invalid select,
.form__group.is-invalid textarea { border-color: var(--color-danger); }
.form__error { display: block; color: var(--color-danger); font-size: 13px; margin-top: 4px; min-height: 16px; }
.form__hint { display: block; color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.form__pay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(var(--color-primary-rgb), 0.08);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}
.form__pay-label { color: var(--text-muted); font-weight: 700; }
.form__pay-value { font-weight: 800; color: var(--color-primary); }
.form__disclaimer { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: var(--space-3); margin-bottom: 0; }

.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty input { width: 80px; text-align: center; border: 0; padding: 10px 0; }
.qty input:focus { box-shadow: none; }
.qty__btn { padding: 0 18px; font-size: 20px; background: var(--surface-2); border-inline-start: 1px solid var(--border); border-inline-end: 1px solid var(--border); transition: background var(--transition); }
.qty__btn:first-child { border-inline-start: 0; }
.qty__btn:last-child { border-inline-end: 0; }
.qty__btn:hover { background: var(--color-primary); color: #fff; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); animation: fadeIn 0.2s ease; }
.modal__card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: pop 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal__card--wide { max-width: 720px; }
.modal__card--sm { max-width: 400px; }
.modal__close {
  position: absolute;
  top: 12px; inset-inline-end: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 22px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { background: var(--color-danger); color: #fff; }
.modal__title { font-size: 1.4rem; margin-bottom: var(--space-4); }
.modal__text { color: var(--text-muted); margin-bottom: var(--space-4); }
.modal__actions { display: flex; gap: var(--space-3); justify-content: flex-end; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Order confirmation ---------- */
.confirm { text-align: center; }
.confirm__check {
  width: 80px; height: 80px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--color-success);
  color: #fff;
  font-size: 44px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  animation: pop 0.35s ease;
}
.confirm__title { font-size: 1.6rem; margin-bottom: var(--space-2); }
.confirm__text { color: var(--text-muted); margin-bottom: var(--space-4); }
.confirm__box {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  text-align: start;
}
.confirm__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--text-muted);
}
.confirm__row strong { color: var(--text); }
.confirm__row--total {
  border-top: 2px dashed var(--border);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}
.confirm__row--total strong { color: var(--color-primary); }

/* ---------- Star input ---------- */
.star-input { display: flex; gap: 6px; font-size: 32px; direction: ltr; }
.star-input__star { color: var(--border); cursor: pointer; transition: color var(--transition), transform var(--transition); }
.star-input__star:hover { transform: scale(1.1); }
.star-input__star.is-active { color: var(--color-accent); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 20px;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 200;
  font-weight: 600;
}
[dir="rtl"] .toast { transform: translateX(50%) translateY(20px); }
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
[dir="rtl"] .toast.is-show { transform: translateX(50%) translateY(0); }
.toast.is-error { background: var(--color-danger); color: #fff; }
.toast.is-success { background: var(--color-success); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: var(--space-6); margin-top: var(--space-7); }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
}
.site-footer__brand { display: flex; align-items: center; gap: var(--space-3); }
.site-footer__brand strong { display: block; font-size: 18px; }
.site-footer__brand small { color: var(--text-muted); }
.site-footer__links { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__links a { color: var(--text-muted); transition: color var(--transition); }
.site-footer__links a:hover { color: var(--color-primary); }
.site-footer__contact { display: flex; flex-direction: column; gap: var(--space-2); color: var(--text-muted); }
.site-footer__bottom { border-top: 1px solid var(--border); padding: var(--space-4) 0; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ---------- Sticky mobile order bar ---------- */
.sticky-order {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 40;
  transform: translateY(110%);
  transition: transform var(--transition);
}
.sticky-order.is-show { transform: translateY(0); }
.sticky-order__info { display: flex; flex-direction: column; }
.sticky-order__price { font-weight: 800; font-size: 1.2rem; color: var(--color-primary); }
.sticky-order__old { font-size: 0.85rem; color: var(--text-soft); text-decoration: line-through; }
.sticky-order__btn { flex: 1; max-width: 240px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text { order: 2; }
  .hero__media { order: 1; }
  .hero__subtitle { margin-inline: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .description { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--space-4); }
  .specs-table { grid-template-columns: 1fr; }
  .spec-row { border-inline-end: 0 !important; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .header__actions .btn--sm { display: none; }
  .trust-strip__inner { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .section { padding: var(--space-6) 0; }
  .section__title { font-size: 1.6rem; }
  .gallery__main { padding: var(--space-3); }
  .offer__countdown { grid-template-columns: repeat(2, 1fr); }
  .order-card { padding: var(--space-4); }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .sticky-order__btn { font-size: 15px; padding: 12px 18px; }
  .btn--lg { font-size: 15px; padding: 14px 20px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
