:root {
  --bg: #f6f8fc;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-hover: #f8fbff;
  --text: #1b2430;
  --muted: #526273;
  --line: #d8e2ee;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent2: #1d4ed8;
  --gold: #d97706;
  --ok: #047857;
  --danger: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px rgba(28, 53, 87, 0.14);
  --shadow-sm: 0 8px 24px rgba(28, 53, 87, 0.1);
  --font: 'Cairo', 'Tajawal', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --container-max: 1240px;
  --gutter-inline: clamp(16px, 4vw, 24px);
  --section-gap: clamp(14px, 2.2vw, 24px);
  --text-body: clamp(0.95rem, 0.33vw + 0.9rem, 1.04rem);
  --text-title: clamp(1.18rem, 1.1vw + 0.92rem, 1.6rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1100px 540px at 8% -10%, rgba(37, 99, 235, 0.12), transparent),
    radial-gradient(900px 480px at 100% 0%, rgba(14, 165, 233, 0.08), transparent), var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.78;
  font-size: var(--text-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  word-spacing: 0.01em;
}

img,
iframe,
video {
  max-width: 100%;
}

html[dir="rtl"] .main,
html[dir="rtl"] .main p,
html[dir="rtl"] .main h1,
html[dir="rtl"] .main h2,
html[dir="rtl"] .main h3,
html[dir="rtl"] .main li,
html[dir="rtl"] .main label {
  text-align: right;
}

html[dir="rtl"] .main p,
html[dir="rtl"] .main li,
html[dir="rtl"] .desc,
html[dir="rtl"] .promo-cap,
html[dir="rtl"] .feature p,
html[dir="rtl"] .hero-lead,
html[dir="rtl"] .hero-tagline {
  padding-inline: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  unicode-bidi: plaintext;
}

html[dir="rtl"] .card-body,
html[dir="rtl"] .feature,
html[dir="rtl"] .thankyou-summary,
html[dir="rtl"] .checkout-summary {
  text-align: right;
}

a {
  color: var(--accent);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter-inline);
  width: 100%;
}

.main {
  width: 100%;
  padding: 24px 0 56px;
}

.main > * {
  min-width: 0;
}

/* ——— Top bar ——— */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 8px;
  flex-wrap: wrap;
}

.top-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 8px;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid #cde1fb;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  color: #1e3a8a;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 280px;
}

.logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: #eef4ff;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  max-width: min(48vw, 360px);
  min-width: 0;
  overflow: hidden;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #0f172a;
  background: linear-gradient(90deg, #1d4ed8, #2563eb 65%, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-inline-start: auto;
  background: #ffffff;
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  flex: 1 1 420px;
  min-width: min(100%, 320px);
}

.nav-link {
  color: #334155;
  font-weight: 700;
  font-size: 0.92rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 15px;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  min-width: 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  inset-inline-end: 14px;
  inset-inline-start: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #5b7cfa);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: #0f172a;
  background: #f8fbff;
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: #1d4ed8;
  background: #eff6ff;
}

.badge {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-inline-start: 4px;
  vertical-align: middle;
}

/* ——— Hero ——— */
.hero {
  margin: 0 0 20px;
  padding: clamp(20px, 2.8vw, 34px) clamp(18px, 2.7vw, 30px);
  border-radius: 18px;
  background: linear-gradient(130deg, rgba(37, 99, 235, 0.2), rgba(255, 255, 255, 0.98) 46%, rgba(240, 249, 255, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 22px;
  align-items: center;
}

.hero-chip {
  display: inline-flex;
  margin-bottom: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.25vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  text-wrap: balance;
}

.hero p {
  margin: 0 0 14px;
  color: #1e293b;
  font-size: clamp(0.94rem, 0.5vw + 0.86rem, 1.03rem);
}

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

.hero-lead {
  font-weight: 600;
  color: #0f172a !important;
}

.hero-media {
  position: relative;
  min-height: 360px;
}

.hero-book {
  position: absolute;
  border-radius: 14px;
  border: 1px solid #cfe0f2;
  background: #fff;
  box-shadow: 0 14px 30px rgba(30, 64, 175, 0.18);
  object-fit: contain;
  z-index: 2;
}

.hero-book-main {
  width: min(100%, 340px);
  inset-inline-start: 8px;
  top: -4px;
  transform: rotate(-7deg);
  z-index: 4;
}

.hero-book-alt {
  width: min(100%, 292px);
  inset-inline-start: 150px;
  top: 82px;
  transform: rotate(10deg);
  z-index: 3;
}

.hero-book-float {
  width: min(100%, 200px);
  inset-inline-start: -2px;
  top: 170px;
  transform: rotate(6deg);
  filter: saturate(1.02) brightness(1.02);
  opacity: 0.95;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 170px;
  height: 170px;
  background: rgba(56, 189, 248, 0.24);
  inset-inline-start: 210px;
  top: 40px;
}

.hero-glow-2 {
  width: 140px;
  height: 140px;
  background: rgba(99, 102, 241, 0.22);
  inset-inline-start: 70px;
  top: 170px;
}

.hero-proof-card {
  position: absolute;
  inset-inline-start: 6px;
  inset-inline-end: 68px;
  bottom: 8px;
  z-index: 5;
  border-radius: 14px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.95));
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.14);
  padding: 10px 12px;
}

.hero-benefits {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.hero-benefits li {
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
}

.hero-media-caption {
  position: absolute;
  inset-inline-end: 10px;
  bottom: -2px;
  z-index: 6;
  font-size: 0.75rem;
  color: #334155;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 999px;
  padding: 4px 10px;
  backdrop-filter: blur(8px);
}

.hero-proof-card strong {
  display: block;
  color: #0f172a;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.hero-proof-card span {
  display: block;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ——— Trust strip ——— */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  color: #1f2a37;
  font-size: 0.92rem;
}

.trust-item strong {
  color: #0f172a;
  font-weight: 700;
  margin-inline-end: 6px;
  font-size: 1.05rem;
}

.trust-item-0 {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.trust-item-1 {
  background: linear-gradient(135deg, #ecfeff, #ffffff);
}

.trust-item-2 {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.trust-item-3 {
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

/* ——— Promo banners ——— */
.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}

.brand-story {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.brand-story p {
  margin: 0;
  color: #334155;
  font-weight: 600;
}

.social-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.proof-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  box-shadow: var(--shadow-sm);
}

.proof-card strong {
  color: #1d4ed8;
  font-size: 1.2rem;
  line-height: 1.1;
}

.proof-card span {
  color: #475569;
  font-size: 0.85rem;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.promo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.promo-card img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #f8fbff;
  padding: 8px;
}

.promo-cap {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, #f8fbff, #fff7ed);
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  flex-shrink: 0;
}

/* ——— Features ——— */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.feature {
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.35);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: #334155;
  font-size: 0.92rem;
}

/* ——— Catalog ——— */
.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.catalog-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.catalog-head span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 100%;
  position: relative;
}

.most-requested-badge {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  background: linear-gradient(180deg, #f97316, #ea580c);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(59, 130, 246, 0.25);
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #f5f8fd;
  padding: 14px;
  transition: transform 0.35s ease;
}

.card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.card-body h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.desc {
  margin: 0;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.72;
  flex: 1;
}

.price {
  color: #0b7a75;
  font-weight: 800;
  font-size: 1.38rem;
  background: linear-gradient(90deg, #ecfeff, #eef2ff);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 700;
  text-align: center;
  transition: background 0.15s ease, transform 0.12s ease;
  min-height: 44px;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--accent-soft);
  text-decoration: none;
}

.btn-danger {
  background: var(--danger);
  color: #1a0a0a;
}

/* ——— Forms ——— */
.form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form .row {
  margin-bottom: 15px;
}

.hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: -6px;
  margin-bottom: 14px;
}

.alert {
  padding: 13px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.alert-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #991b1b;
}

.alert-ok {
  background: rgba(4, 120, 87, 0.1);
  border: 1px solid rgba(4, 120, 87, 0.2);
  color: #065f46;
}

/* ——— Tables ——— */
table.wide {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

table.wide th,
table.wide td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

table.wide th {
  background: #f3f7fe;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}

/* ——— Footer ——— */
.foot {
  margin-top: auto;
  padding: 18px 0 12px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(37, 99, 235, 0.08));
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  text-align: right;
}

.foot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  box-shadow: 0 10px 24px rgba(28, 53, 87, 0.08);
}

.foot h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
}

.foot p,
.foot a {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.66;
}

.foot a {
  color: var(--accent);
}

.foot-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.foot-icon-btn {
  min-width: 92px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #cfe0f5;
  background: #f8fbff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1e3a8a !important;
  padding-inline: 10px;
  text-decoration: none !important;
}

.foot-icon-btn:hover {
  background: #eaf2ff;
  border-color: #bfdbfe;
}

.foot-muted {
  color: #64748b !important;
  font-size: 0.78rem !important;
}

.foot-contact-note {
  margin-bottom: 4px !important;
  color: #0f766e !important;
  font-weight: 700;
}

.foot-check {
  color: #16a34a;
  font-weight: 700;
}

.foot-bottom {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: #7d8a99;
  font-size: 0.78rem;
}

/* ——— Admin ——— */
.admin-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #1e2836;
  border: 1px solid var(--line);
  color: var(--muted);
}

.pill:hover {
  color: var(--text);
  text-decoration: none;
  border-color: rgba(59, 130, 246, 0.35);
}

.pill-new {
  background: rgba(59, 130, 246, 0.12);
}
.pill-processing {
  background: rgba(240, 193, 75, 0.1);
}
.pill-done {
  background: rgba(52, 211, 153, 0.1);
}
.pill-cancelled {
  background: rgba(248, 113, 113, 0.1);
}

/* ——— Info / prose ——— */
.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.prose p {
  color: #3f4f61;
}

/* ——— Admin orders list ——— */
.admin-orders-scroll {
  overflow-x: auto;
  margin-bottom: 24px;
}

.admin-orders-table {
  min-width: 1100px;
}

.admin-orders-table th,
.admin-orders-table td {
  font-size: 0.85rem;
  vertical-align: middle;
}

.admin-mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
}

.admin-ua {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ref {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-date {
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-inline-form {
  display: inline;
  margin: 0;
}

.admin-act-btn {
  padding: 6px 10px !important;
  font-size: 0.8rem !important;
}

.admin-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-st-new {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}
.admin-st-processing {
  background: rgba(240, 193, 75, 0.15);
  color: #fcd34d;
}
.admin-st-done {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}
.admin-st-cancelled {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

.admin-subh {
  margin: 24px 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
}

.admin-ua-full {
  font-size: 0.78rem;
  word-break: break-word;
}

.admin-break {
  word-break: break-all;
  font-size: 0.82rem;
}

/* ——— Checkout summary ——— */
.checkout-summary {
  margin-bottom: 28px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.checkout-summary-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 800;
}

.checkout-summary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-summary-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checkout-summary-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.checkout-summary-thumb {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.checkout-summary-thumb--ph {
  background: #0a0d12;
}

.checkout-summary-main {
  flex: 1;
  min-width: 0;
}

.checkout-summary-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.checkout-summary-detail {
  font-size: 0.88rem;
  color: var(--muted);
}

.checkout-summary-sub {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ok);
  white-space: nowrap;
}

.checkout-summary-total {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.checkout-summary-total-label {
  color: var(--muted);
  font-weight: 600;
}

.checkout-summary-total-val {
  font-size: 1.35rem;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}

.checkout-form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.checkout-form-card {
  width: 100%;
  margin-inline: 0 auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.checkout-form-card .row {
  margin-bottom: 12px;
}

.checkout-form-card label {
  padding-inline-start: 2px;
}

.checkout-form-card input,
.checkout-form-card textarea,
.checkout-form-card select {
  direction: rtl;
  text-align: right;
  padding-inline-start: 16px;
  padding-inline-end: 12px;
}

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

/* ——— Cart page ——— */
.cart-page {
  max-width: 920px;
}

.cart-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
}

.cart-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 52rem;
}

.cart-empty-msg {
  color: var(--muted);
  font-size: 1.02rem;
}

.cart-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.cart-table.wide {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.cart-table .cart-col-product {
  min-width: 200px;
}

.cart-table .cart-col-unit,
.cart-table .cart-col-line {
  white-space: nowrap;
}

.cart-table .cart-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #1e293b;
}

.cart-product-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
}

.cart-thumb {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a0d12;
  flex-shrink: 0;
}

.cart-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  padding: 6px;
  line-height: 1.3;
}

.cart-product-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
}

.cart-qty-input {
  width: 88px !important;
  padding: 10px 12px !important;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem !important;
}

.cart-qty-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cart-stock-warn {
  display: block;
  margin-top: 8px;
  color: var(--danger);
  font-size: 0.82rem;
}

.cart-qty-hint {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 0.82rem;
}

.cart-remove-btn {
  padding: 8px 12px !important;
  font-size: 0.88rem !important;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
}

.cart-grand-wrap {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.cart-grand {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cart-grand-label {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.cart-grand-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}

.cart-grand-note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 520px) {
  .hero {
    padding: 18px 16px;
    margin-bottom: 12px;
  }
  .hero-split {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-media {
    min-height: 150px;
    margin-top: 2px;
  }
  .hero-book-main {
    width: 130px;
    inset-inline-start: 12px;
  }
  .hero-book-alt {
    width: 118px;
    inset-inline-start: 96px;
    top: 32px;
  }
  .hero-book-float,
  .hero-proof-card,
  .hero-glow {
    display: none;
  }
  .brand {
    font-size: 0.9rem;
  }
  .cart-product-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.product-text-only {
  max-width: 72rem;
  margin: 0 auto;
}

.product-text-only-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  line-height: 1.35;
}

.product-text-only-body {
  color: #0f172a;
  line-height: 2;
  font-size: clamp(1.03rem, 0.6vw + 0.9rem, 1.14rem);
  border: 1px solid #e6edf8;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 14px;
}

.product-desc-prose {
  text-wrap: pretty;
  word-spacing: 0.02em;
}

.product-text-only-back {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.product-text-only-back a {
  color: var(--accent);
  font-weight: 600;
}

.hero-tagline {
  font-weight: 700;
  color: #1e3a8a !important;
}

.delivery-badge {
  margin: -4px 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed #f59e0b;
  background: #fff8e8;
  color: #92400e;
  font-weight: 700;
}

.card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.card-image-link {
  display: block;
  overflow: hidden;
}

.card-image-link:hover .card-img {
  transform: scale(1.035);
}

.product-link {
  font-size: 0.93rem;
  font-weight: 700;
}

.card-delivery-note {
  margin: 0;
  color: #92400e;
  font-size: 0.88rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 8px 10px;
}

.card-buy-form {
  display: flex;
  margin-top: auto;
}

.card-qty-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.card-qty-input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.card-btn {
  width: 100%;
}

.product-page-title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.product-page-store {
  direction: rtl;
}

.product-store-main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: stretch;
}

.product-store-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.product-store-details-inline {
  margin-top: 4px;
  border: 1px solid #e4ecf8;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-details-heading {
  margin: 0 0 4px;
  font-size: 1.08rem;
  color: #0f172a;
  font-weight: 800;
  position: relative;
  padding-inline-end: 14px;
}

.product-details-heading::after {
  content: "";
  position: absolute;
  inset-block-end: -6px;
  inset-inline-end: 0;
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #f59e0b);
}

.product-store-details-inline .product-text-only-body {
  padding: 12px 14px;
  font-size: clamp(0.95rem, 0.45vw + 0.86rem, 1.05rem);
  line-height: 1.95;
  background: #ffffff;
  border-color: #e6edf8;
}

.product-store-details-inline .product-highlights {
  margin: 6px 0 0;
}

.product-store-buybox {
  position: sticky;
  top: 88px;
  border: 1px solid #d8d2fb;
  border-radius: 12px;
  background: #fcfbff;
  box-shadow: 0 8px 24px rgba(33, 26, 74, 0.1);
  padding: 12px;
}

.product-store-price-row {
  margin: 6px 0 8px;
  display: grid;
  gap: 4px;
}

.product-order-cta {
  width: 100%;
  border-radius: 10px;
  background: linear-gradient(180deg, #5d3ff2, #4b2be2);
  box-shadow: 0 8px 18px rgba(93, 63, 242, 0.35);
  animation: orderPulse 2s ease-in-out 3;
}

.product-order-cta.is-loading {
  opacity: 0.88;
  transform: scale(0.99);
}

.product-store-secure-note {
  margin: 8px 0 0;
  color: #526273;
  font-size: 0.86rem;
  text-align: center;
}

.product-stock-indicator {
  margin: 0 0 8px;
  display: inline-flex;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.83rem;
  font-weight: 700;
}

.product-stock-indicator.is-low {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.product-urgency {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  color: #334155;
  font-size: 0.84rem;
}

.product-estimated-delivery {
  margin: 6px 0 8px;
  color: #0f766e;
  font-size: 0.85rem;
  font-weight: 700;
}

.product-store-details {
  margin-top: 18px;
  border: 1px solid #e4ecf8;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}

.product-inline-checkout {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.product-inline-checkout-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #1e293b;
  text-align: center;
}

.product-trust-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.trust-badge-card {
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  color: #1e3a8a;
  border-radius: 12px;
  min-height: 58px;
  font-size: 0.79rem;
  font-weight: 800;
  padding: 8px 10px;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.trust-badge-card i {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #cfe0fb;
  font-style: normal;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.trust-badge-card b {
  font-weight: 800;
  line-height: 1.35;
}

.trust-badge-card:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.14);
}

.product-inline-checkout-form {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.product-inline-checkout-form .row {
  margin-bottom: 8px;
}

.qty-picker {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.qty-picker input {
  text-align: center;
  font-weight: 800;
  border: 0;
  background: transparent;
  min-height: 42px;
  font-size: 1.08rem;
}

.qty-picker input:focus-visible {
  outline: none;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.qty-btn:hover {
  filter: brightness(1.05);
}

.qty-btn:active {
  transform: scale(0.96);
}

.qty-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 6px !important;
}

.field-row {
  position: relative;
}

.field-icon {
  position: absolute;
  inset-inline-end: 12px;
  inset-inline-start: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  pointer-events: none;
  border-radius: 999px;
  background: #f1f5ff;
  border: 1px solid #dbeafe;
  color: #1e40af;
}

.floating-field {
  position: relative;
}

.floating-field input,
.floating-field textarea {
  width: 100%;
  border: 1px solid #d4deec;
  background: #fff;
  border-radius: 12px;
  min-height: 50px;
  font-size: 0.96rem;
  line-height: 1.55;
  padding-top: 20px;
  padding-bottom: 8px;
  padding-inline-start: 12px;
  padding-inline-end: 44px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  direction: rtl;
  text-align: right;
}

.floating-field textarea {
  min-height: 70px;
  resize: vertical;
}

.floating-field label {
  position: absolute;
  inset-inline-start: 12px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 !important;
  font-size: 0.9rem;
  color: #64748b;
  pointer-events: none;
  transition: transform 0.18s ease, font-size 0.18s ease, color 0.18s ease, top 0.18s ease;
}

.floating-field-textarea label {
  top: 18px;
  transform: none;
}

.field-row-textarea .field-icon {
  top: 18px;
  transform: none;
}

.floating-field input:focus,
.floating-field textarea:focus,
.floating-field input:not(:placeholder-shown),
.floating-field textarea:not(:placeholder-shown) {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.floating-field input:focus + label,
.floating-field textarea:focus + label,
.floating-field input:not(:placeholder-shown) + label,
.floating-field textarea:not(:placeholder-shown) + label {
  top: 11px;
  transform: none;
  font-size: 0.72rem;
  color: #1d4ed8;
}

.product-inline-checkout-form > .row > label {
  font-weight: 700;
  color: #475569;
  margin-bottom: 5px;
}

.product-inline-checkout-submit {
  margin-top: 6px;
}

@keyframes orderPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(93, 63, 242, 0.35);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(93, 63, 242, 0.42);
  }
}

.product-page-audience {
  margin: 0 0 18px;
  color: #1d4ed8;
  font-weight: 700;
}

.product-page-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
}

.product-page-media {
  display: grid;
  gap: 12px;
}

.product-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.product-cover {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  max-height: min(68vh, 520px);
  background: #f5f8fd;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1e293b;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-prev {
  inset-inline-end: 10px;
}

.carousel-next {
  inset-inline-start: 10px;
}

.product-carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
}

.carousel-thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 2px;
  cursor: pointer;
}

.carousel-thumb img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.carousel-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.product-cover-placeholder {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #f3f6fb;
}

.product-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.product-video-wrap-facebook {
  width: min(100%, 420px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: min(72vh, 640px);
}

.product-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.product-video-section {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.product-video-section h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.product-video-btn {
  width: 100%;
}

.product-price-box {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff 58%, #fff7ed);
  border: 1px solid #93c5fd;
  display: grid;
  gap: 8px;
}

.product-price-label {
  color: #0f172a;
  font-weight: 700;
}

.product-price-value {
  color: #075985;
  font-size: 2.2rem;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.product-delivery-note {
  color: #b45309;
  font-weight: 700;
  margin: 0;
}

.product-price-cta {
  margin-top: 4px;
}

.product-empty-desc {
  color: var(--muted);
}

.product-highlights {
  margin: 14px 0 18px;
  padding-inline-start: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.product-highlights li {
  margin-bottom: 0;
  border: 1px solid #dbe7f5;
  border-radius: 10px;
  background: #f8fbff;
  padding: 9px 11px;
  color: #1f2937;
  font-weight: 700;
  line-height: 1.65;
}

.product-highlights li::before {
  content: "✅ ";
  color: #047857;
  margin-inline-end: 2px;
}

.product-buy-form {
  display: none;
}

.product-gallery {
  margin-top: 16px;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.product-gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8fbff;
  cursor: zoom-in;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-reviews {
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.product-reviews h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.product-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.product-review-card {
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.product-review-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}

.product-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #dbeafe;
  flex-shrink: 0;
}

.product-review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-review-card p {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.72;
}

.product-review-meta strong {
  display: block;
  font-size: 0.88rem;
}

.product-review-meta span {
  color: #64748b;
  font-size: 0.82rem;
}

.product-review-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.sticky-mobile-order {
  position: fixed;
  right: 10px;
  left: 10px;
  bottom: 10px;
  z-index: 80;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 12px;
  padding: 8px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.3);
}

.sticky-mobile-order span {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.sticky-mobile-order .btn {
  width: auto;
  min-height: 40px;
  padding: 10px 14px;
}

.sticky-mobile-order .btn.is-disabled {
  opacity: 0.65;
  pointer-events: none;
}

.home-testimonials {
  margin-top: 28px;
  direction: rtl;
  text-align: right;
}

.home-testimonials-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 16px;
}

.home-testimonials .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  background: linear-gradient(135deg, #dbeafe, #eef2ff);
  border: 1px solid #c7d8fb;
  padding: 4px 10px;
  border-radius: 999px;
}

.home-testimonials .section-title {
  margin: 0;
}

.home-testimonials .section-subtitle {
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 56ch;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 16px 16px 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
  border-color: #cbd5e1;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: -10px;
  inset-inline-end: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1;
  color: rgba(37, 99, 235, 0.16);
  pointer-events: none;
}

.testimonial-card p {
  margin: 0;
  color: #1e293b;
  font-size: 0.95rem;
  line-height: 1.85;
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.20), 0 0 0 2px #dbeafe;
  flex-shrink: 0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.testimonial-meta strong {
  font-size: 0.98rem;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-meta span {
  color: #64748b;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.testimonial-meta span::before {
  content: "📍";
  font-size: 0.78rem;
}

.testimonial-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.30);
  flex-shrink: 0;
}

.testimonial-stars {
  margin: 0;
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 0.10em;
  text-shadow: 0 1px 0 rgba(245, 158, 11, 0.15);
}

@media (max-width: 700px) {
  .home-testimonials {
    margin-top: 22px;
  }

  .home-testimonials-head {
    margin-bottom: 12px;
    gap: 4px;
  }

  .home-testimonials .section-subtitle {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .testimonials-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 4px 4px 14px;
    margin-inline-start: -4px;
    margin-inline-end: -4px;
    scrollbar-width: thin;
    scroll-padding-inline-start: 8px;
  }

  .testimonials-grid::-webkit-scrollbar {
    height: 4px;
  }

  .testimonials-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
  }

  .testimonial-card {
    flex: 0 0 84%;
    max-width: 84%;
    scroll-snap-align: start;
    padding: 14px 14px 16px;
    border-radius: 14px;
  }

  .testimonial-card p {
    font-size: 0.9rem;
    line-height: 1.78;
  }

  .testimonial-avatar {
    width: 48px;
    height: 48px;
  }

  .testimonial-meta strong {
    font-size: 0.92rem;
  }

  .testimonial-meta span {
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  .testimonial-card {
    flex: 0 0 88%;
    max-width: 88%;
  }
}

.home-faq {
  margin-top: 18px;
}

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

.faq-item {
  border: 1px solid #dbe7f4;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #1e293b;
  list-style: none;
  position: relative;
  padding-inline-end: 22px;
  line-height: 1.7;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: '+';
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-52%);
  font-size: 1rem;
  color: #1d4ed8;
}

.faq-item[open] {
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
}

.faq-item[open] summary::before {
  content: '−';
}

.faq-item p {
  margin: 8px 0 0;
  color: #475569;
  line-height: 1.8;
  animation: faqFade 0.2s ease;
}

@keyframes faqFade {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-cta {
  margin-top: 20px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  padding: 16px;
  text-align: center;
}

.home-cta h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.home-cta p {
  margin: 0 0 12px;
  color: #334155;
}

.reveal-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-cover:hover,
.product-gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-img {
  max-width: min(96vw, 1300px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #fff;
}

.image-lightbox-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  inset-inline-start: max(16px, env(safe-area-inset-left));
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.thankyou-page {
  max-width: 900px;
  margin: 0 auto;
  text-align: right;
}

.thankyou-checkout-style {
  max-width: 760px;
  direction: rtl;
}

.thankyou-card {
  background: #fff;
  border: 1px solid #dbe4f4;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(20, 45, 74, 0.1);
  padding: 24px;
}

.thankyou-card-title {
  text-align: center;
  margin: 0 0 6px;
  color: #27364d;
  font-size: 2rem;
}

.thankyou-card-subtitle {
  text-align: center;
  margin: 0 0 18px;
  color: #64748b;
}

.thankyou-invoice {
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin: 16px 0;
}

.thankyou-invoice-head,
.thankyou-invoice-line {
  display: grid;
  grid-template-columns: 1.7fr 0.5fr 0.8fr;
  gap: 10px;
  align-items: center;
  padding: 12px 4px;
}

.thankyou-invoice-head {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.thankyou-invoice-line {
  border-top: 1px solid #edf2f7;
  color: #1e293b;
}

.thankyou-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.thankyou-item-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid #dbe4f4;
  object-fit: cover;
  background: #f8fbff;
  flex-shrink: 0;
}

.thankyou-item-thumb-ph {
  display: inline-block;
  background: #eef2f7;
}

.thankyou-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #1e293b;
}

.thankyou-item-text small {
  color: #64748b;
  font-size: 0.8rem;
}

.thankyou-totals {
  margin-top: 10px;
}

.thankyou-totals > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: #374151;
}

.thankyou-totals .is-grand {
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid #e2e8f0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2f46;
}

.thankyou-actions-center {
  justify-content: center;
  margin-top: 20px;
}

.thankyou-home-btn {
  min-width: 250px;
  background: linear-gradient(180deg, #5d3ff2, #4b2be2);
}

.thankyou-hero {
  padding: 22px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f2fe, #eef2ff);
  border: 1px solid #bfdbfe;
  margin-bottom: 16px;
}

.thankyou-hero-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.thankyou-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.thankyou-hero p {
  margin: 0;
  color: #334155;
}

.thankyou-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.thankyou-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #dbe7f3;
}

.thankyou-row:last-child {
  border-bottom: 0;
}

.thankyou-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.thankyou-steps article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.thankyou-steps h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.thankyou-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 700px) {
  .top {
    backdrop-filter: none;
  }

  .product-order-cta {
    animation: none;
  }

  .reveal-up,
  .reveal-up.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .feature,
  .foot-card,
  .proof-card,
  .testimonial-card,
  .product-store-buybox {
    box-shadow: 0 6px 14px rgba(28, 53, 87, 0.08);
  }

  html[dir="rtl"] .main {
    padding-inline: var(--gutter-inline);
  }

  body {
    font-size: 0.97rem;
    line-height: 1.78;
  }

  html[dir="rtl"] .main p,
  html[dir="rtl"] .main li,
  html[dir="rtl"] .desc,
  html[dir="rtl"] .promo-cap,
  html[dir="rtl"] .feature p,
  html[dir="rtl"] .hero-lead,
  html[dir="rtl"] .hero-tagline {
    padding-inline: 0;
  }

  .top-inner {
    justify-content: space-between;
    text-align: right;
    padding: 8px 0 6px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .brand-wrap {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .brand {
    max-width: 70vw;
    text-align: right;
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-inline-start: 0;
    background: transparent;
    overflow: visible;
  }

  .nav-link {
    justify-content: center;
    text-align: center;
    border: 1px solid #dbe7f4;
    border-radius: 8px;
    background: #f8fbff;
    font-size: 0.8rem;
    min-height: 38px;
    white-space: normal;
    line-height: 1.2;
    padding: 6px 4px;
    word-break: break-word;
  }
  .nav-link::after {
    display: none;
  }

  .wrap {
    padding: 0 18px;
  }

  .main {
    padding: 12px 0 28px;
  }

  .hero {
    padding: 18px 16px;
    margin-bottom: 12px;
  }

  .hero::after {
    opacity: 0.5;
  }

  .hero h1 {
    font-size: clamp(1.2rem, 6.2vw, 1.45rem);
    line-height: 1.35;
  }

  .hero p {
    font-size: 0.92rem;
    line-height: 1.74;
    margin-bottom: 10px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-media {
    min-height: auto;
    display: grid;
    place-items: center;
    padding: 6px 0 2px;
  }

  .hero-book {
    position: relative;
    inset: auto;
    transform: none;
    width: auto;
    max-width: 100%;
  }

  .hero-book-main {
    display: block;
    width: min(72vw, 260px);
    margin: 0 auto;
  }

  .hero-book-alt,
  .hero-book-float,
  .hero-proof-card,
  .hero-glow {
    display: none;
  }

  .hero,
  .feature,
  .card,
  .checkout-summary,
  .thankyou-hero,
  .thankyou-summary,
  .product-video-section,
  .product-gallery,
  .cart-grand-wrap {
    margin-inline: auto;
  }

  .hero-inner,
  .card-body,
  .feature,
  .promo-cap,
  .thankyou-page,
  .checkout-summary,
  .product-page-content,
  .product-text-only-body {
    text-align: right !important;
  }

  /* Strong RTL safety inset to avoid first-letter clipping on mobiles */
  html[dir="rtl"] .main h1,
  html[dir="rtl"] .main h2,
  html[dir="rtl"] .main h3,
  html[dir="rtl"] .main .section-title,
  html[dir="rtl"] .main .product-page-title,
  html[dir="rtl"] .main .catalog-head h2,
  html[dir="rtl"] .main .card-body h2,
  html[dir="rtl"] .main .product-video-section h2,
  html[dir="rtl"] .main .product-reviews h2,
  html[dir="rtl"] .main .thankyou-hero h1,
  html[dir="rtl"] .main .thankyou-steps h3,
  html[dir="rtl"] .main .home-cta h2 {
    padding-inline-start: 6px !important;
    margin-inline-start: 2px;
    text-indent: 0;
  }

  .cart-product-inner {
    align-items: flex-start;
    text-align: right;
  }

  .catalog-head,
  .checkout-summary-total,
  .cart-grand {
    justify-content: space-between;
    text-align: right;
  }

  .checkout-summary,
  .cart-page,
  .thankyou-page,
  .product-page,
  .product-video-section,
  .product-gallery {
    margin-inline: 0 !important;
  }

  .checkout-form-card {
    max-width: 100% !important;
    padding: 12px;
    border-radius: 10px;
  }

  .checkout-form-card input,
  .checkout-form-card textarea,
  .checkout-form-card select {
    min-height: 46px;
    font-size: 0.95rem;
    padding-inline-start: 18px;
    padding-inline-end: 12px;
  }

  .checkout-form-card textarea {
    min-height: 84px;
  }

  .checkout-form-actions .btn {
    flex: 1 1 100%;
  }

  .product-highlights {
    padding-inline: 20px;
    text-align: right;
  }

  .grid {
    grid-template-columns: 1fr;
  }
  .card-buy-form,
  .product-buy-form {
    display: block;
  }
  .product-page-main {
    grid-template-columns: 1fr;
  }
  .product-store-main {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .product-store-buybox {
    position: static;
    top: auto;
    padding: 12px;
  }
  .product-store-details {
    padding: 12px;
  }
  .product-inline-checkout {
    padding: 0;
  }
  .product-inline-checkout-form {
    padding: 10px;
  }
  .product-trust-badges {
    gap: 6px;
  }
  .trust-badge-card {
    min-height: 52px;
    padding: 7px 8px;
    font-size: 0.74rem;
    border-radius: 10px;
  }
  .trust-badge-card i {
    width: 22px;
    height: 22px;
    font-size: 0.84rem;
  }
  .qty-picker {
    grid-template-columns: 46px 1fr 46px;
  }
  .qty-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  .floating-field input,
  .floating-field textarea {
    min-height: 48px;
    padding-top: 18px;
    padding-bottom: 8px;
    padding-inline-start: 12px;
    padding-inline-end: 46px;
    border-radius: 10px;
    font-size: 0.93rem;
  }
  .floating-field textarea {
    min-height: 64px;
  }
  .floating-field label {
    inset-inline-start: 12px;
    right: auto;
    font-size: 0.86rem;
  }
  .field-icon {
    inset-inline-end: 11px;
    inset-inline-start: auto;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
  }
  .thankyou-card {
    padding: 16px;
  }
  .thankyou-card-title {
    font-size: 1.5rem;
  }
  .thankyou-invoice-head,
  .thankyou-invoice-line {
    grid-template-columns: 1fr;
    text-align: right;
    gap: 6px;
    padding: 10px 0;
  }
  .thankyou-item-main {
    justify-content: flex-start;
  }
  .thankyou-totals .is-grand {
    font-size: 1.2rem;
  }
  .btn {
    width: 100%;
    min-height: 46px;
  }
  .social-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .top-badges {
    padding-bottom: 6px;
    overflow-x: visible;
    flex-wrap: wrap;
    gap: 6px;
  }
  .top-badge {
    white-space: normal;
    flex: 1 1 calc(50% - 6px);
    font-size: 0.72rem;
    padding: 4px 8px;
    min-height: 30px;
    justify-content: center;
    text-align: center;
  }
  .sticky-mobile-order {
    display: flex;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 7px;
  }
  .main {
    padding-bottom: 74px;
  }
  .product-video-wrap-facebook {
    width: min(100%, 330px);
    aspect-ratio: 9 / 16;
    max-height: min(68vh, 560px);
  }
  .thankyou-actions .btn {
    width: 100%;
  }

  .foot-grid {
    text-align: right;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .foot-card {
    padding: 12px;
  }

  .foot-icons {
    justify-content: flex-start;
  }

  .trust-strip,
  .features,
  .promo-grid,
  .home-testimonials,
  .home-faq,
  .home-cta {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .trust-item,
  .feature,
  .card,
  .testimonial-card,
  .faq-item,
  .proof-card {
    border-radius: 10px;
  }

  .card-body {
    padding: 14px;
    gap: 10px;
  }

  .catalog-head h2 {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-link {
    min-height: 36px;
    font-size: 0.78rem;
  }

  .top-badge {
    flex: 1 1 100%;
    font-size: 0.74rem;
  }

  .hero-book-main {
    width: min(76vw, 230px);
  }

  .hero-actions {
    gap: 6px;
  }
}

@media (max-width: 390px) {
  .wrap {
    padding: 0 14px;
  }

  .brand {
    max-width: 100%;
    font-size: 0.88rem;
  }

  .hero h1 {
    font-size: clamp(1.12rem, 6vw, 1.3rem);
  }

  .hero p {
    font-size: 0.88rem;
  }
}

@media (max-width: 340px) {
  .wrap {
    padding: 0 12px;
  }

  .top-inner {
    gap: 5px;
    padding: 7px 0 5px;
  }

  .brand {
    font-size: 0.84rem;
  }

  .nav {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .nav-link {
    min-height: 35px;
    font-size: 0.76rem;
    padding: 6px 8px;
  }

  .top-badge {
    font-size: 0.7rem;
    padding: 4px 7px;
    min-height: 28px;
  }

  .hero {
    padding: 16px 13px;
  }

  .hero h1 {
    font-size: 1.08rem;
    line-height: 1.34;
  }

  .hero p {
    font-size: 0.84rem;
    line-height: 1.68;
  }

  .hero-book-main {
    width: min(74vw, 205px);
  }

  .card-body,
  .feature,
  .proof-card,
  .testimonial-card,
  .faq-item,
  .foot-card {
    padding: 11px;
  }

  .product-inline-checkout-form {
    padding: 9px;
  }

  .floating-field input,
  .floating-field textarea {
    min-height: 46px;
    font-size: 0.9rem;
    padding-top: 17px;
    padding-bottom: 8px;
    padding-inline-start: 11px;
    padding-inline-end: 44px;
  }

  .btn {
    min-height: 44px;
    font-size: 0.9rem;
  }
}

@media (max-width: 700px) {
  /* Mobile RTL stability layer: prevent clipping/overflow across sections */
  html,
  body,
  .top,
  .main,
  .wrap {
    max-width: 100%;
  }

  .main > * {
    min-width: 0;
  }

  body {
    font-size: 0.96rem;
    line-height: 1.82;
  }

  .wrap {
    padding-inline: clamp(16px, 4.6vw, 22px);
  }

  .main {
    padding-top: 12px;
    padding-bottom: 78px;
  }

  .top-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
  }

  .brand-wrap {
    flex: 1 1 auto;
    width: 100%;
  }

  .brand {
    max-width: 100%;
    font-size: clamp(0.9rem, 3.1vw, 1rem);
  }

  .nav {
    width: 100%;
    margin-inline-start: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border-radius: 12px;
    border: 1px solid #dbe7f5;
    padding: 6px;
  }

  .nav-link {
    min-height: 40px;
    font-size: 0.8rem;
    white-space: normal;
    line-height: 1.2;
    border: 1px solid #dbe7f4;
    background: #f8fbff;
  }

  .nav-link::after {
    display: none;
  }

  .top-badge {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    text-align: center;
  }

  .hero {
    padding: 16px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(1.18rem, 5.9vw, 1.5rem);
  }

  .hero-media {
    min-height: auto;
    display: grid;
    place-items: center;
    padding: 8px 0 4px;
  }

  .hero-book {
    position: relative;
    inset: auto;
    transform: none;
    width: auto;
  }

  .hero-book-main {
    width: min(72vw, 260px);
    margin: 0 auto;
  }

  .hero-book-alt,
  .hero-book-float,
  .hero-proof-card,
  .hero-media-caption,
  .hero-glow {
    display: none;
  }

  .product-store-main {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-store-buybox {
    position: static;
    top: auto;
  }

  .product-video-wrap-facebook {
    width: min(100%, 330px);
    aspect-ratio: 9 / 16;
    max-height: min(68vh, 560px);
  }

  .product-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .sticky-mobile-order {
    inset-inline: 8px;
    bottom: 8px;
  }

  .hero,
  .trust-strip,
  .promo-grid,
  .features,
  .grid,
  .home-testimonials,
  .home-faq,
  .home-cta,
  .product-page,
  .product-store-main,
  .product-store-details,
  .product-video-section,
  .product-gallery,
  .product-reviews,
  .checkout-summary,
  .cart-page,
  .thankyou-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  html[dir="rtl"] .main :is(h1, h2, h3, p, li, label, summary, .desc, .hero-tagline, .hero-lead) {
    overflow-wrap: anywhere;
    word-break: normal;
    text-wrap: pretty;
  }
}

@media (max-width: 430px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .top-badge {
    flex-basis: 100%;
  }

  .testimonial-card {
    flex-basis: 88%;
    max-width: 88%;
  }
}

@media (max-width: 700px) {
  /* Mobile sticky header rebuild: compact, non-intrusive, RTL-safe */
  .top {
    position: relative;
    top: auto;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .top-inner {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    padding-block: 6px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dbe7f4;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
  }

  .brand-wrap {
    width: auto;
    flex: 0 0 auto;
    gap: 6px;
  }

  .logo {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .brand {
    max-width: 42vw;
    line-height: 1.15;
    overflow: hidden;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .brand-tagline {
    font-size: 0.62rem;
    max-width: 42vw;
  }

  .nav {
    flex: 1 1 auto;
    min-width: 0;
    margin-inline-start: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #dbe7f4;
    border-radius: 999px;
    background: #f8fbff;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1;
  }

  .nav-link.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
  }

  .top-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 4px 0 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .top-badges::-webkit-scrollbar {
    display: none;
  }

  .top-badge {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    border-radius: 999px;
  }

  .main {
    padding-top: 10px;
  }

  #catalog,
  #why-bookaro,
  #order-now {
    scroll-margin-top: 64px;
  }
}

@media (min-width: 1200px) {
  .wrap {
    max-width: 1240px;
  }
  .hero {
    padding: 34px 30px;
  }
  .hero-split {
    gap: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Family bundle offer card (product page) ---- */
.bundle-offer-card {
  display: block;
  position: relative;
  margin: 4px 0 14px;
  padding: 14px 16px;
  border: 2px dashed #fbbf24;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bundle-offer-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.18);
  transform: translateY(-1px);
}

.bundle-offer-input {
  position: absolute;
  inset-inline-end: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #d97706;
  z-index: 2;
}

.bundle-offer-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline-end: 30px;
}

.bundle-offer-thumb img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #fde68a;
  background: #fff;
}

.bundle-offer-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.bundle-offer-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 0.02em;
}

.bundle-offer-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.45;
}

.bundle-offer-sub {
  font-size: 0.84rem;
  font-weight: 600;
  color: #92400e;
}

.bundle-offer-input:checked ~ .bundle-offer-inner .bundle-offer-title {
  color: #047857;
}

.bundle-offer-card:has(.bundle-offer-input:checked) {
  border-style: solid;
  border-color: #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.18);
}

/* ---- Live order total preview ---- */
.product-live-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 8px;
  padding: 12px 14px;
  background: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  flex-wrap: wrap;
}

.product-live-total-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e3a8a;
}

.product-live-total-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1d4ed8;
  letter-spacing: -0.02em;
}

.product-live-total-note {
  flex-basis: 100%;
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

/* ---- Thank-you page: WhatsApp confirm CTA + upsell ---- */
.thankyou-whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff !important;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(18, 140, 126, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  max-width: 460px;
}

.thankyou-whatsapp-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(18, 140, 126, 0.4);
  color: #fff !important;
}

.thankyou-whatsapp-cta-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.thankyou-whatsapp-help {
  text-align: center;
  font-size: 0.84rem;
  color: #475569;
  margin: 0 auto 18px;
  max-width: 460px;
  line-height: 1.6;
}

.thankyou-upsell {
  margin: 22px auto 0;
  max-width: 520px;
  padding: 18px;
  background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
  border: 1px solid #fde68a;
  border-radius: 16px;
  text-align: start;
}

.thankyou-upsell-title {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 0.02em;
}

.thankyou-upsell-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.thankyou-upsell-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #fcd34d;
  background: #fff;
  flex-shrink: 0;
}

.thankyou-upsell-info {
  flex: 1 1 auto;
  min-width: 0;
}

.thankyou-upsell-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 4px;
}

.thankyou-upsell-sub {
  display: block;
  font-size: 0.84rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.thankyou-upsell-cta {
  display: inline-block;
  padding: 8px 16px;
  background: #d97706;
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.18s ease;
}

.thankyou-upsell-cta:hover {
  background: #b45309;
  color: #fff !important;
}

@media (max-width: 480px) {
  .bundle-offer-inner {
    gap: 10px;
    padding-inline-end: 26px;
  }

  .bundle-offer-thumb img {
    width: 60px;
    height: 60px;
  }

  .bundle-offer-title {
    font-size: 0.92rem;
  }

  .product-live-total-value {
    font-size: 1.1rem;
  }

  .thankyou-whatsapp-cta {
    font-size: 0.96rem;
    padding: 12px 16px;
  }

  .thankyou-upsell-body {
    flex-wrap: wrap;
  }
}

/* Honeypot (anti-spam) */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Cookie consent banner */
.cookie-consent {
  position: fixed;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 200;
  max-width: 520px;
  margin-inline-start: auto;
  margin-inline-end: auto;
}

.cookie-consent-inner {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
  border: 1px solid #334155;
}

.cookie-consent-inner p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.65;
}

.cookie-consent-inner a {
  color: #93c5fd;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-consent-actions .btn {
  min-height: 38px;
  padding: 8px 14px;
}

@media (max-width: 700px) {
  .cookie-consent {
    inset-inline: 8px;
    bottom: 72px;
  }
}
