
/* ═══════════════════════════════════════════════════════════
   CheckoutBD — Complete Frontend Design System
   Islamic Brain Development E-commerce · Bangladesh
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────────────── */
:root {
  --brand:        #1B6B4A;
  --brand-dark:   #0F4730;
  --brand-mid:    #2E8B5A;
  --brand-light:  #E8F5EE;
  --brand-xlight: #F0FAF5;
  --accent:       #D4A017;
  --accent-dark:  #B88A10;
  --accent-light: #FEF3C7;
  --text:         #1A1A18;
  --text-2:       #4B4B48;
  --text-muted:   #7A7A75;
  --text-xmuted:  #ADADAA;
  --bg:           #F9F7F2;
  --bg-2:         #F2EFE8;
  --white:        #FFFFFF;
  --border:       rgba(0,0,0,.1);
  --border-2:     rgba(0,0,0,.18);
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --shadow-xl:    0 20px 60px rgba(0,0,0,.16);
  --transition:   .22s ease;
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { transition: color var(--transition); }

/* ── Announcement bar ───────────────────────────────────── */
.announce-bar {
  background: var(--theme-primary-color, var(--brand));
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}
.announce-bar a { color: var(--accent-light); text-decoration: underline; }

/* ── Navigation ─────────────────────────────────────────── */
.navbar-main {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}
.navbar-main .container {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 12px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-arabic {
  font-family: 'Amiri', serif;
  font-size: 24px;
  color: var(--brand);
  line-height: 1;
}
.brand-text {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -.02em;
}
.navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  margin: 0 auto;
  padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px !important;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2) !important;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--brand-light);
  color: var(--theme-primary-color, var(--brand)) !important;
}
.nav-link.active {
  background: var(--brand-light);
  color: var(--theme-primary-color, var(--brand)) !important;
}
.nav-subscribe {
  background: var(--theme-primary-color, var(--brand)) !important;
  color: #fff !important;
  border-radius: 20px !important;
  padding: 8px 18px !important;
}
.nav-subscribe:hover {
  background: var(--brand-dark) !important;
  color: #fff !important;
}
.dropdown-menu {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  margin-top: 8px;
}
.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.dropdown-item:hover {
  background: var(--brand-light);
  color: var(--theme-primary-color, var(--brand));
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 20px;
  transition: var(--transition);
  position: relative;
}
.nav-icon:hover { background: var(--bg-2); color: var(--theme-primary-color, var(--brand)); }
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.btn-nav-login {
  border: 1.5px solid var(--border-2);
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.btn-nav-login:hover { border-color: var(--brand); color: var(--brand); }
.btn-nav-register {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.btn-nav-register:hover { background: var(--brand-dark); color: #fff; }

/* ── Flash alerts ───────────────────────────────────────── */
.alert-flash {
  border-radius: 0;
  border: none;
  border-left: 4px solid;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-flash.alert-success { border-left-color: var(--brand); }
.alert-flash.alert-danger   { border-left-color: #DC2626; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-brand {
  background: var(--theme-primary-color, var(--brand));
  color: #fff;
  border: none;
  border-radius: var(--theme-border-radius, var(--radius-sm));
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-brand:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27,107,74,.25);
}
.btn-outline-brand {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline-brand:hover {
  background: var(--brand);
  color: #fff;
}
.btn-hero-primary {
  background: var(--theme-accent-color, var(--accent));
  color: #fff;
  border: none;
  padding: 15px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(212,160,23,.35);
}
.btn-hero-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,160,23,.45);
}
.btn-hero-secondary {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,.25);
  border-color: #fff;
  color: #fff;
}

/* ── Section helpers ─────────────────────────────────────── */
.section-pad {
  padding: 72px 0;
}
.section-pad + .section-pad {
  border-top: 1px solid rgba(0,0,0,.04);
}
@media (max-width: 768px) {
  .section-pad { padding: 48px 0; }
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--theme-primary-color, var(--brand));
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 560px;
}

/* ── Hero section ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #082B1C 0%, #0F4730 40%, #1B6B4A 75%, #2E8B5A 100%);
  color: #fff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(212,160,23,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 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.025'%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");
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.hero h1 .highlight { color: #F8D56A; }
.hero-desc {
  font-size: 17px;
  opacity: .88;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num { font-size: 28px; font-weight: 800; line-height: 1; }
.hero-stat-label { font-size: 12px; opacity: .7; margin-top: 4px; }
.hero-visual {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(12px);
}
.hero-ayah {
  font-family: 'Amiri', serif;
  font-size: 42px;
  color: #F8D56A;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}
.hero-ayah-trans {
  text-align: center;
  opacity: .75;
  font-size: 13px;
  font-style: italic;
  margin-bottom: 24px;
}

/* ── Trust strip ─────────────────────────────────────────── */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.trust-item i { font-size: 20px; color: var(--brand); }

/* ── Product cards ───────────────────────────────────────── */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--theme-border-radius, var(--radius));
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(27,107,74,.2);
}
.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background: linear-gradient(135deg, var(--brand-xlight), var(--brand-light));
}
.badge-sale {
  position: absolute; top: 10px; left: 10px;
  background: var(--theme-accent-color, var(--accent)); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 3px 9px; border-radius: 4px;
  letter-spacing: .03em; text-transform: uppercase;
}
.badge-digital {
  position: absolute; top: 10px; left: 10px;
  background: #2563EB; color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 3px 9px; border-radius: 4px;
}
.btn-wishlist {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.btn-wishlist:hover { background: #fff; color: var(--theme-accent-color, #e53e3e); transform: scale(1.1); }
.product-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-cat {
  font-size: 11px;
  color: var(--theme-primary-color, var(--brand));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}
.product-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-name a { text-decoration: none; color: inherit; }
.product-card-name a:hover { color: var(--theme-primary-color, var(--brand)); }
.product-card-age {
  font-size: 11px;
  font-weight: 700;
  color: var(--theme-primary-color, var(--brand));
  background: color-mix(in srgb, var(--theme-primary-color, var(--brand)) 12%, white);
  border-radius: var(--theme-border-radius, 999px);
  padding: 3px 9px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.product-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--theme-primary-color, var(--brand));
}
.product-price-original {
  font-size: 12px;
  color: var(--text-xmuted);
  text-decoration: line-through;
  margin-left: 4px;
}
.btn-add-cart {
  background: var(--theme-primary-color, var(--brand));
  color: #fff;
  border: none;
  border-radius: var(--theme-border-radius, var(--radius-sm));
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-add-cart:hover {
  background: var(--brand-dark);
  transform: scale(1.08);
}

/* ── Subscription plan cards ─────────────────────────────── */
.plan-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.plan-card.featured { border-color: var(--theme-primary-color, var(--brand)); }
.plan-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--theme-primary-color, var(--brand));
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .04em;
}
.plan-age-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.plan-name { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.plan-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.plan-pricing { margin-bottom: 6px; }
.plan-price { font-size: 38px; font-weight: 800; color: var(--brand); line-height: 1; }
.plan-period { font-size: 14px; color: var(--text-muted); margin-left: 2px; }
.plan-billing-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 0 18px;
}
.plan-billing-tab {
  flex: 1;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  transition: var(--transition);
  background: var(--bg);
}
.plan-billing-tab.active {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand);
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.plan-features li {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.plan-features li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 0px;
}
.btn-plan {
  display: block;
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-plan:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,107,74,.3);
}
.plan-card.featured .btn-plan {
  background: var(--theme-accent-color, var(--accent));
}
.plan-card.featured .btn-plan:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(212,160,23,.35);
}

/* ── Category cards ─────────────────────────────────────── */
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--theme-border-radius, var(--radius));
  padding: 22px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
}
.category-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  color: var(--text);
}
.category-icon {
  width: 60px; height: 60px;
  border-radius: var(--theme-border-radius, 16px);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  transition: var(--transition);
}
.category-card:hover .category-icon { transform: scale(1.1); }
.category-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.category-count { font-size: 12px; color: var(--text-muted); }

/* ── Age group cards ─────────────────────────────────────── */
.age-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: #fff;
  text-decoration: none;
  display: block;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.age-card::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.age-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); color: #fff; }
.age-card-emoji { font-size: 44px; margin-bottom: 14px; display: block; }
.age-card-range { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.age-card-label { font-size: 16px; font-weight: 700; margin: 4px 0 8px; }
.age-card-desc { font-size: 13px; opacity: .85; line-height: 1.5; }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 14px; right: 20px;
  font-family: 'Amiri', serif;
  font-size: 64px;
  color: var(--brand-light);
  line-height: 1;
  pointer-events: none;
}
.testimonial-stars { color: #F59E0B; font-size: 16px; margin-bottom: 12px; }
.testimonial-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial-author { font-weight: 700; font-size: 14px; }
.testimonial-location { font-size: 12px; color: var(--text-muted); }

/* ── Blog cards ──────────────────────────────────────────── */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--theme-border-radius, var(--radius));
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-size: 11px; color: var(--theme-primary-color, var(--brand));
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 7px;
}
.blog-card-title {
  font-size: 16px; font-weight: 700;
  line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-card-title a { text-decoration: none; color: var(--text); }
.blog-card-title a:hover { color: var(--theme-primary-color, var(--brand)); }
.blog-card-meta { font-size: 12px; color: var(--text-muted); margin-top: auto; padding-top: 12px; }

/* ── Page hero ───────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0F4730, #1B6B4A);
  color: #fff;
  padding: 52px 0;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 8px; }
.page-hero p { opacity: .85; font-size: 15px; max-width: 520px; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}
.breadcrumb { margin: 0; background: none; padding: 0; }
.breadcrumb-item { font-size: 13px; }
.breadcrumb-item a { color: var(--theme-primary-color, var(--brand)); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-xmuted); }

/* ── Forms ───────────────────────────────────────────────── */
.form-label { font-weight: 600; font-size: 13px; margin-bottom: 5px; color: var(--text-2); }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  transition: var(--transition);
  background: var(--white);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27,107,74,.1);
  outline: none;
}
.form-control.is-invalid { border-color: #DC2626; }
.invalid-feedback { font-size: 12px; color: #DC2626; margin-top: 4px; }

/* ── Cart ────────────────────────────────────────────────── */
.cart-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg);
  flex-shrink: 0;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 34px; height: 36px;
  background: var(--bg);
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--brand-light); color: var(--theme-primary-color, var(--brand)); }
.qty-input {
  width: 44px; height: 36px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

/* ── Order summary ───────────────────────────────────────── */
.order-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 90px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; font-weight: 800; font-size: 18px; }
.summary-row.discount { color: var(--theme-primary-color, var(--brand)); }

/* ── Stars ───────────────────────────────────────────────── */
.stars-filled { color: #F59E0B; }
.stars-empty  { color: #D1D5DB; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #121210;
  color: #C4C2BB;
  margin-top: auto;
}
.footer-brand { display: flex; align-items: center; gap: 6px; }
.footer-brand .brand-arabic { color: var(--theme-primary-color, #4CAF80); }
.footer-brand .brand-text { color: #fff; }
.footer-tagline { font-size: 13px; color: #888; line-height: 1.6; margin-top: 10px; }
.footer-heading { color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #888; text-decoration: none; font-size: 13px; transition: var(--transition); display: flex; align-items: center; gap: 5px; }
.footer-links a:hover { color: var(--theme-primary-color, #4CAF80); }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #888; margin-bottom: 8px; }
.footer-contact i { color: #4CAF80; font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.social-links { display: flex; gap: 8px; margin-top: 16px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #C4C2BB;
  text-decoration: none;
  font-size: 18px;
  transition: var(--transition);
}
.social-btn:hover { background: var(--theme-primary-color, var(--brand)); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 16px 0;
}
.payment-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.payment-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #C4C2BB;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ── Product page ─────────────────────────────────────────── */
.product-gallery-main {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg);
  cursor: zoom-in;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-gallery-main:hover img { transform: scale(1.04); }
.product-thumb {
  width: 72px; height: 72px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.product-thumb:hover, .product-thumb.active { border-color: var(--brand); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.product-price-main { font-size: 38px; font-weight: 800; color: var(--theme-primary-color, var(--brand)); line-height: 1; }
.product-price-original { font-size: 20px; color: var(--text-xmuted); text-decoration: line-through; margin-left: 10px; }
.product-badge-sale {
  background: #FEF3C7; color: #92400E;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; margin-left: 8px;
}
.product-meta-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
}
.product-meta-badge.in-stock { background: #D1FAE5; border-color: transparent; color: #065F46; }
.product-meta-badge.out-of-stock { background: #FEE2E2; border-color: transparent; color: #991B1B; }
.product-meta-badge.digital { background: #DBEAFE; border-color: transparent; color: #1E40AF; }
.btn-add-cart-main {
  background: var(--theme-primary-color, var(--brand));
  color: #fff;
  border: none;
  border-radius: var(--theme-border-radius, var(--radius-sm));
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex: 1;
}
.btn-add-cart-main:hover {
  background: var(--brand-dark);
  box-shadow: 0 4px 16px rgba(27,107,74,.3);
}
/* Standalone themed CTA button (Submit Question/Review, Notify Me) —
   same theme-token color as .btn-add-cart-main but without its
   display:flex/flex:1 sizing, which is specifically meant for sharing a
   flex row with the quantity stepper. Reusing .btn-add-cart-main outside
   that one layout stretched the button to fill unrelated flex rows, or
   wrapped its text onto two lines inside a shrunk flex item — both
   produced an oversized/misshapen button. This class sizes to its own
   content instead. */
.btn-theme-primary {
  display: inline-block;
  background: var(--theme-primary-color, var(--brand));
  color: #fff;
  border: none;
  border-radius: var(--theme-border-radius, var(--radius-sm));
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-theme-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 4px 16px rgba(27,107,74,.3);
}
.product-trust-items { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.product-trust-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.product-trust-item i { color: var(--theme-primary-color, var(--brand)); font-size: 15px; }

/* ── Tabs ────────────────────────────────────────────────── */
.nav-tabs { border-bottom: 2px solid var(--border); }
.nav-tabs .nav-link { color: var(--text-muted); font-weight: 600; font-size: 14px; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 10px 18px; transition: var(--transition); }
.nav-tabs .nav-link.active { color: var(--theme-primary-color, var(--brand)); border-bottom-color: var(--theme-primary-color, var(--brand)); background: none; }
.nav-tabs .nav-link:hover { color: var(--theme-primary-color, var(--brand)); }
.tab-content { background: var(--white); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--theme-border-radius, var(--radius)) var(--theme-border-radius, var(--radius)); padding: 24px; }

/* ── Checkout ─────────────────────────────────────────────── */
.checkout-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.checkout-section h5 { font-weight: 700; font-size: 16px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.checkout-section h5 i { color: var(--theme-primary-color, var(--brand)); font-size: 20px; }
.address-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 8px;
}
.address-option:hover, .address-option.selected { border-color: var(--theme-primary-color, var(--brand)); background: var(--brand-xlight); }
.payment-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition);
}
.payment-option:hover, .payment-option.selected { border-color: var(--theme-primary-color, var(--brand)); background: var(--brand-xlight); }
.payment-option-name { font-weight: 700; font-size: 14px; }
.payment-option-desc { font-size: 12px; color: var(--text-muted); }

/* ── Account ──────────────────────────────────────────────── */
.account-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.account-nav-link:hover { background: var(--bg-2); color: var(--brand); }
.account-nav-link.active { background: var(--brand-light); color: var(--brand); font-weight: 700; }
.account-nav-link i { font-size: 18px; }
.subscription-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* ── Pagination overrides ────────────────────────────────── */
.pagination { gap: 4px; }
.page-link { border-radius: var(--radius-sm) !important; border: 1.5px solid var(--border); color: var(--text-2); font-weight: 600; font-size: 14px; padding: 7px 14px; }
.page-link:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .navbar-main .container { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .navbar-collapse { width: 100%; padding: 12px 0; border-top: 1px solid var(--border); margin-top: 10px; }
  .navbar-nav { flex-direction: column; gap: 2px; width: 100%; }
  .nav-link { width: 100%; }
  .nav-actions { order: -1; margin-left: auto; }
  .hero { padding: 52px 0; }
  .hero-stats { gap: 20px; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 575px) {
  .hero { padding: 40px 0; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .product-price-main { font-size: 28px; }
}

/* ── Utility ──────────────────────────────────────────────── */
.text-brand { color: var(--brand) !important; }
.bg-brand   { background: var(--brand) !important; }
.bg-brand-light { background: var(--brand-light) !important; }
.rounded-brand { border-radius: var(--radius) !important; }
.shadow-brand { box-shadow: 0 4px 20px rgba(27,107,74,.15) !important; }
.border-brand { border-color: var(--brand) !important; }
.fw-800 { font-weight: 800 !important; }
.cursor-pointer { cursor: pointer !important; }
.aspect-1 { aspect-ratio: 1; }
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }


/* ── Mobile overflow fix ─────────────────────────────────── */
html, body {
  overflow-x: clip;
}
img, video, iframe {
  max-width: 100%;
}
@media (max-width: 640px) {
  /* Bootstrap g-5 gutter too wide for mobile — causes 24px overflow */
  .row.g-5 {
    --bs-gutter-x: 1rem;
  }
  .row.g-4 {
    --bs-gutter-x: 0.75rem;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-cta {
    flex-wrap: wrap;
  }
  .section-title {
    font-size: 22px;
  }
  .announcement-bar, .topbar {
    font-size: 11px;
    padding-left: 8px;
    padding-right: 8px;
  }
}


/* ── Mobile nav collapse fix ─────────────────────────────── */
@media (max-width: 991px) {
  #mainNav {
    display: none !important;
    width: 100%;
  }
  #mainNav.show {
    display: block !important;
    background: #fff;
    padding: 8px 0 16px;
    border-top: 1px solid #E5E7EB;
  }
  #mainNav .navbar-nav {
    flex-direction: column !important;
    width: 100%;
    gap: 2px;
  }
  #mainNav .nav-item {
    width: 100%;
  }
  #mainNav .nav-link {
    padding: 10px 16px;
    display: block;
  }
  #mainNav .nav-subscribe {
    display: inline-block;
    width: auto !important;
    align-self: flex-start;
    margin: 8px 16px;
  }
  #mainNav ~ .navbar-icons,
  #mainNav .navbar-icons {
    border-top: 1px solid #F3F4F6;
    padding-top: 10px;
    margin-top: 6px;
  }
}


/* ── Sticky shop filter (desktop) ────────────────────────── */
@media (min-width: 992px) {
  #filterForm {
    position: sticky;
    top: 90px;
  }
}


/* ── Theme Engine design tokens (Design Tokens → CSS gate) ──
   Previously-unstyled Theme Engine markup only (.theme-header/
   .theme-footer/#pdpPrice/.pdp-thumb/.pdp-swatch) — none of these
   selectors existed anywhere else in this file before this block, so
   nothing already-live is touched. `--theme-*` custom properties are
   emitted per-tenant/request by themes/layouts/base.blade.php; the
   var() fallback here is the same static default already used
   throughout this file's own --brand value, so a page rendered before
   that inline <style> block loads (or with it absent/empty) still
   renders identically to today. Deliberately does not touch this
   file's existing --brand/--text/etc. :root variables or any selector
   defined above — tenant-driven tokens are additive only.

   Theme visual differentiation extension (8-theme catalog, Tier 2):
   .section-eyebrow/.product-card/.product-card-age/.category-card/
   .category-icon/.btn-add-cart (all defined above, pre-existing
   selectors) now read --theme-primary-color/--theme-border-radius as
   their FIRST preference, falling back to this file's own existing
   --brand/--radius/etc. values exactly as before when a tenant/theme
   has no override configured — a tenant with no design-token override
   renders byte-identical to before this change. This is the only
   currently-live per-theme visual differentiation mechanism:
   PlatformThemeVersion.component_manifest/layout_definition are not
   consumed by any Blade view (confirmed by direct inspection), so
   design tokens (sourced from TenantThemeOverride.settings only —
   PlatformThemeVersion itself has no token-default mechanism today)
   are the only lever available without touching ThemeManager/
   BladeThemeRenderer/Blade templates. */
/* "Skip to main content" (themes/layouts/base.blade.php) never had
   accompanying CSS — the standard WCAG skip-link pattern moves it
   off-screen until it receives keyboard focus (Tab), at which point it
   should become visible; with no CSS at all it instead rendered as
   plain always-visible text at the very top of every themed page. Not
   present in the legacy frontend.layouts.app at all — this is
   Theme-Engine-only markup that was left half-implemented. Theme-token
   color so it, like everything else theme-colored, adapts per tenant. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  background: var(--theme-primary-color, var(--brand));
  color: #fff;
  padding: 10px 18px;
  z-index: 2000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--theme-border-radius, 8px) 0;
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

.theme-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
}
.theme-header__brand {
  font-family: var(--theme-font-family, 'Nunito'), system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--theme-primary-color, #1B6B4A);
  text-decoration: none;
}
.theme-footer {
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
#pdpPrice {
  color: var(--theme-primary-color, #1B6B4A);
  font-weight: 800;
  font-size: 1.4rem;
}
.pdp-thumb.active {
  border: 2px solid var(--theme-primary-color, #1B6B4A);
  border-radius: var(--theme-border-radius, 8px);
}
.pdp-swatch[aria-pressed="true"] {
  background: var(--theme-primary-color, #1B6B4A);
  border-color: var(--theme-primary-color, #1B6B4A);
  color: #fff;
}
