/*
Theme Name: صندوق الطفل المبدع
Theme URI: https://jouebut.ma
Description: Arabic RTL kids creative box eCommerce theme
Author: jouebut.ma
Version: 1.0.0
Text Domain: sandoq-atfal
*/

/* =============================================
   TOKENS
============================================= */
:root {
  --clr-primary:    #006DB8;   /* main brand blue */
  --clr-secondary:  #FFDC39;   /* highlight yellow */
  --clr-accent:     #D3E15F;   /* lime-green accent */
  --clr-cta:        #EA3D2F;   /* call-to-action red */
  --clr-blue:       #1C08AC;   /* dark indigo */
  --clr-purple:     #D0BFFF;
  --clr-orange:     #EA3D2F;   /* alias → cta */
  --clr-bg:         #F0F6FF;   /* light blue tinted background */
  --clr-surface:    #FFFFFF;
  --clr-text:       #1A2233;
  --clr-muted:      #6B7A8D;
  --clr-border:     #C9DFF0;   /* light blue border */

  --radius-sm:  12px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);

  --gap-xs:  8px;
  --gap-sm:  16px;
  --gap-md:  24px;
  --gap-lg:  40px;
  --gap-xl:  64px;

  --font-base: 'Cairo', sans-serif;
  --transition: .25s ease;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  direction: rtl;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================
   LAYOUT
============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gap-sm);
}

section { padding-block: var(--gap-lg); }

/* =============================================
   TYPOGRAPHY
============================================= */
h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { font-size: 1rem; }

.section-title {
  text-align: center;
  margin-bottom: var(--gap-md);
}
.section-title h2 { margin-bottom: var(--gap-xs); }
.section-title p  { color: var(--clr-muted); font-size: .95rem; }

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,109,184,.35);
}
.btn-primary:hover {
  background: #005a9e;
  box-shadow: 0 6px 20px rgba(0,109,184,.50);
}

.btn-secondary {
  background: var(--clr-secondary);
  color: var(--clr-text);
  box-shadow: 0 4px 16px rgba(255,220,57,.40);
}
.btn-secondary:hover { background: #e5c200; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
}
.btn-outline:hover { background: var(--clr-primary); color: #fff; }

.btn-cta {
  background: var(--clr-cta);
  color: #fff;
  box-shadow: 0 4px 16px rgba(234,61,47,.35);
}
.btn-cta:hover {
  background: #c8281b;
  box-shadow: 0 6px 20px rgba(234,61,47,.50);
}

.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: .875rem; }

/* =============================================
   BADGE
============================================= */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
}
.badge-primary { background: #D6EAFB; color: var(--clr-primary); }
.badge-accent   { background: #ECF5D5; color: #4a6a18; }
.badge-yellow   { background: #FFF9CC; color: #8a6400; }

/* =============================================
   LOGO
============================================= */
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }

.site-logo-img {
  display: block;
  width: 140px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.site-logo-img--footer {
  width: 120px;
  max-height: 42px;
  /* footer is dark — keep image readable; add brightness filter if logo is dark */
  filter: brightness(0) invert(1);
}

@media (max-width: 639px) {
  .site-logo-img       { width: 110px; }
  .site-logo-img--footer { width: 100px; }
}

/* =============================================
   HEADER
============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-surface);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: var(--clr-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.site-logo .logo-text {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--clr-text);
}
.site-logo .logo-text span { color: var(--clr-primary); }

/* Nav */
.nav-primary { display: none; }
.nav-primary ul { display: flex; gap: var(--gap-md); align-items: center; }
.nav-primary a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--clr-text);
  transition: color var(--transition);
  position: relative;
}
.nav-primary a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-primary a:hover { color: var(--clr-primary); }
.nav-primary a:hover::after { width: 100%; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
}

.header-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 1.1rem;
  transition: background var(--transition);
  position: relative;
}
.header-icon-btn:hover { background: var(--clr-border); }

.cart-count {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  background: var(--clr-primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--clr-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: var(--gap-sm);
  gap: var(--gap-xs);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 12px var(--gap-sm);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background var(--transition);
}
.mobile-nav a:hover { background: var(--clr-bg); color: var(--clr-primary); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: contents; }
.mobile-nav li { display: contents; }

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--clr-text);
  color: #fff;
  padding-top: var(--gap-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  padding-bottom: var(--gap-lg);
}

.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text span { color: var(--clr-secondary); }
.footer-brand p {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  margin-top: var(--gap-sm);
  line-height: 1.7;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--gap-sm);
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.footer-contact-link--wa    { color: #25D366; }
.footer-contact-link--email { color: #b0d4ff; }
.footer-contact-link:hover  { opacity: .8; }

.footer-col h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: var(--gap-sm);
  color: var(--clr-secondary);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }

.social-links {
  display: flex;
  gap: var(--gap-xs);
  margin-top: var(--gap-sm);
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
}
.social-links a:hover { background: var(--clr-primary); }
.social-links a svg { width: 20px; height: 20px; display: block; color: #fff; }

/* Contact page variant — light background */
.contact-social {
  margin-top: var(--gap-md);
  text-align: center;
}
.contact-social h3 {
  margin-bottom: var(--gap-sm);
  font-size: 1rem;
  color: var(--clr-text, #333);
}
.social-links--contact {
  justify-content: center;
}
.social-links--contact a {
  background: var(--clr-bg, #fef9f0);
  color: var(--clr-primary, #FF6B9D);
  border: 1.5px solid var(--clr-border, #eee);
}
.social-links--contact a svg { color: currentColor; }
.social-links--contact a:hover {
  background: var(--clr-primary, #FF6B9D);
  color: #fff;
  border-color: var(--clr-primary, #FF6B9D);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--gap-sm);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap-xs);
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,.45); font-size: .8rem; }

/* =============================================
   HERO SECTION
============================================= */
.hero-section {
  position: relative;
  padding-block: 56px 64px;
  overflow: hidden;
  isolation: isolate;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-section > .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -1;
}
@media (max-width: 1023px) {
  .hero-section > .hero-bg { object-position: 30% 22%; }
}

/* Desktop gradient: strong dark panel on the right (RTL text side), fully transparent over subject */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left,
      rgba(10,20,40,.82) 0%,
      rgba(10,20,40,.70) 28%,
      rgba(10,20,40,.35) 52%,
      rgba(10,20,40,0)   72%);
  z-index: 0;
}

/* Mobile: image top, content panel bottom with solid-to-transparent gradient */
@media (max-width: 1023px) {
  .hero-section {
    min-height: 520px;
    padding-block: 32px 40px;
    background-position: 30% 22%;
    align-items: flex-end;
  }
  .hero-section::before {
    background: linear-gradient(
      to top,
      rgba(10,20,40,.88) 0%,
      rgba(10,20,40,.75) 35%,
      rgba(10,20,40,.25) 70%,
      rgba(10,20,40,0)   100%
    );
  }
}

@media (max-width: 600px) {
  .hero-section {
    min-height: auto;
    padding-block: 40px 48px;
    align-items: center;
  }
  .hero-actions { gap: 10px; }
  .hero-actions .btn-lg {
    padding: 12px 18px;
    font-size: .9rem;
  }
  .hero-stats { gap: var(--gap-sm); margin-top: var(--gap-sm); }
  .hero-stat strong { font-size: 1.25rem; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gap-lg);
}

.hero-content {
  max-width: 560px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.hero-badge { margin-bottom: var(--gap-sm); }
.hero-badge .badge {
  background: rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
}
.hero-title { margin-bottom: var(--gap-sm); color: #fff; }
.hero-title strong { color: var(--clr-secondary); }
.hero-desc {
  color: rgba(255,255,255,.92);
  font-size: 1.05rem;
  margin-bottom: var(--gap-md);
  max-width: 460px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  justify-content: center;
}
.hero-actions .btn {
  flex: 0 0 auto;
}
/* Shrink hero buttons slightly so 3 fit in two tidy rows */
.hero-actions .btn-lg {
  padding: 14px 22px;
  font-size: .95rem;
}

.hero-stats {
  display: flex;
  gap: var(--gap-md);
  justify-content: center;
  margin-top: var(--gap-md);
  flex-wrap: wrap;
}
.hero-stats { padding-top: var(--gap-sm); border-top: 1px solid rgba(255,255,255,.2); }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--clr-secondary); }
.hero-stat span { font-size: .8rem; color: rgba(255,255,255,.8); }

.hero-visual {
  display: none !important; /* photo carries the visual; float cards hidden to keep subject clean */
}

.hero-float-card {
  position: absolute;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  z-index: 2;
}
.hero-float-card.card-age  { bottom: 8px;  left: -8px; }
.hero-float-card.card-happy { top: 8px;    left: -24px; }
.hero-float-card .card-icon { font-size: 1.2rem; }

/* Outline CTA in hero: solid frosted pill so it reads against any part of the photo */
.hero-actions .btn-outline {
  background: rgba(255,255,255,.92);
  border: 2px solid #fff;
  color: var(--clr-primary);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-actions .btn-outline:hover {
  background: #fff;
  color: var(--clr-primary);
  transform: translateY(-1px);
}

/* =============================================
   CATEGORIES SECTION
============================================= */
.categories-section { background: var(--clr-surface); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-sm);
}

.category-card {
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--clr-text);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.category-card h3 { font-size: 1rem; font-weight: 700; }
.category-card p  { font-size: .8rem; color: var(--clr-muted); }

.cat-drawing   { background: #EEF5FC; }
.cat-drawing .category-icon   { background: #C8DFF5; }
.cat-crafts    { background: #FDFCE8; }
.cat-crafts .category-icon    { background: #EFF9C0; }
.cat-learning  { background: #F8FCE8; }
.cat-learning .category-icon  { background: #DFF0A0; }
.cat-games     { background: #EEEAFF; }
.cat-games .category-icon     { background: #C7BFF9; }

/* =============================================
   BOXES SECTION
============================================= */
.boxes-section {
  background: linear-gradient(180deg, var(--clr-bg) 0%, var(--clr-surface) 100%);
}

/* boxes-grid and products-grid now use the shared shop-grid component */
.boxes-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-sm);
}

.box-card {
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.box-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.box-card-image {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.box-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.box-card-image .box-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.box-card-body { padding: var(--gap-md); }
.box-card-body h3 { margin-bottom: var(--gap-xs); }
.box-card-body p  { color: var(--clr-muted); font-size: .9rem; margin-bottom: var(--gap-sm); }

.box-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-xs);
}
.box-price { font-size: 1.3rem; font-weight: 800; color: var(--clr-primary); }
.box-price span { font-size: .8rem; color: var(--clr-muted); font-weight: 400; }

.box-card-footer {
  padding: var(--gap-sm) var(--gap-md);
  border-top: 1px solid var(--clr-border);
  display: flex;
  gap: var(--gap-xs);
}
.box-card-footer .btn { flex: 1; }

.box-clr-pink   { background: linear-gradient(135deg, #C8DFF5, #90C0E8); }
.box-clr-yellow { background: linear-gradient(135deg, #FFFCE0, #FFDC39); }
.box-clr-green  { background: linear-gradient(135deg, #E8F5D0, #BDD647); }

/* =============================================
   PRODUCTS SECTION
============================================= */
.products-section { background: var(--clr-surface); }

.products-filter {
  display: flex;
  gap: var(--gap-xs);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--gap-md);
}
.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-border);
  font-family: var(--font-base);
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-muted);
  background: transparent;
  transition: var(--transition);
}
.filter-btn.is-active,
.filter-btn:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-sm);
}

/* .product-card — legacy homepage card, kept for reference only */
.product-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--clr-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary);
}

.product-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.product-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.wishlist-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--clr-surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
}
.wishlist-btn:hover { background: #D6EAFB; }

.product-body { padding: 12px; }
.product-body h4 { font-size: .9rem; margin-bottom: 4px; }
.product-body .product-age { font-size: .75rem; color: var(--clr-muted); margin-bottom: 8px; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price { font-size: 1rem; font-weight: 800; color: var(--clr-primary); }
.add-to-cart-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--clr-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
}
.add-to-cart-btn:hover { background: #005a9e; }

.products-more {
  text-align: center;
  margin-top: var(--gap-md);
}

/* =============================================
   CTA SECTION
============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #004F8A 100%);
  border-radius: var(--radius-xl);
  margin-inline: var(--gap-sm);
  padding: var(--gap-xl) var(--gap-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -70px; left: -70px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}

.cta-inner {
  position: relative;
  z-index: 1;
}
.cta-icon { font-size: 3.5rem; margin-bottom: var(--gap-sm); }
.cta-section h2 { color: #fff; margin-bottom: var(--gap-sm); }
.cta-section p  { color: rgba(255,255,255,.85); margin-bottom: var(--gap-md); max-width: 480px; margin-inline: auto; }

.cta-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-md);
}
.cta-step {
  background: rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
}
.cta-step-num {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.3);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.btn-white {
  background: #fff;
  color: var(--clr-primary);
  font-weight: 800;
}
.btn-white:hover { background: #f0f0f0; }

/* =============================================
   TESTIMONIALS SECTION
============================================= */
.testimonials-section { background: var(--clr-bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-sm);
}

.testimonial-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
  box-shadow: var(--shadow-sm);
}

.testimonial-stars { color: #FFDC39; font-size: 1rem; margin-bottom: var(--gap-sm); letter-spacing: 2px; }
.testimonial-text  {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--clr-text);
  margin-bottom: var(--gap-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.author-name  { font-size: .9rem; font-weight: 700; }
.author-child { font-size: .8rem; color: var(--clr-muted); }

/* =============================================
   TRUST BAR
============================================= */
.trust-bar {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding-block: var(--gap-sm);
}

/* Always a single flex row — all 3 items side by side */
.trust-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: var(--gap-xs);
  flex-wrap: nowrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  flex: 1;
  min-width: 0; /* allow text to shrink */
}

/* Compact icon on mobile */
.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.trust-item span {
  font-size: .72rem;
  font-weight: 600;
  color: var(--clr-muted);
  line-height: 1.4;
}

/* Restore full size on tablet+ */
@media (min-width: 640px) {
  .trust-bar { padding-block: var(--gap-md); }
  .trust-items { justify-content: center; gap: var(--gap-lg); }
  .trust-icon  { width: 52px; height: 52px; font-size: 1.4rem; }
  .trust-item span { font-size: .8rem; }
}

/* =============================================
   RESPONSIVE — TABLET 640px+
============================================= */
@media (min-width: 640px) {
  .categories-grid   { grid-template-columns: repeat(4, 1fr); }
  .boxes-grid,
  .products-grid     { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   RESPONSIVE — DESKTOP 1024px+
============================================= */
@media (min-width: 1024px) {
  section { padding-block: var(--gap-xl); }

  .nav-primary { display: flex; }
  .menu-toggle { display: none; }

  .hero-section { min-height: 600px; padding-block: 80px 88px; }
  /* Grid: text pinned right, empty column left (image subject area) */
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(480px, 520px) 1fr;
    align-items: center;
    text-align: right;
    gap: var(--gap-lg);
  }
  .hero-content {
    text-align: right;
    grid-column: 1;
    max-width: 520px;
  }
  .hero-desc    { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-stats   { justify-content: flex-start; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .boxes-grid,
  .products-grid     { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

  .cta-section  { margin-inline: 0; padding: var(--gap-xl) var(--gap-xl); }
}

/* =============================================
   PAGE HEADER (shop, archive, etc.)
============================================= */
.page-hero {
  background: linear-gradient(135deg, #EEF5FC 0%, #F5FBEE 100%);
  padding-block: var(--gap-lg);
  border-bottom: 1px solid var(--clr-border);
}
.page-hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
.page-hero-inner .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--clr-muted);
}
.breadcrumb a { color: var(--clr-primary); font-weight: 600; }
.breadcrumb span { color: var(--clr-border); }
.page-hero-inner h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-hero-meta {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}
.results-count { font-size: .875rem; color: var(--clr-muted); }

/* Sort select */
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 36px 8px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--clr-border);
  font-family: var(--font-base);
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-text);
  background: var(--clr-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left 12px center;
  cursor: pointer;
  transition: border-color var(--transition);
}
.sort-select:focus {
  outline: none;
  border-color: var(--clr-primary);
}

/* View toggle */
.view-toggle {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}
.view-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--clr-border);
  font-size: .9rem;
  color: var(--clr-muted);
  background: var(--clr-surface);
  transition: var(--transition);
}
.view-btn.is-active,
.view-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: #EEF5FC;
}

/* =============================================
   SHOP LAYOUT (sidebar + grid)
============================================= */
.shop-layout {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  padding-block: var(--gap-lg);
}

/* =============================================
   FILTER SIDEBAR
============================================= */
.filter-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  padding: 12px var(--gap-sm);
  border: 1.5px solid var(--clr-border);
}
.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--clr-text);
}
.filter-toggle-btn .filter-icon { font-size: 1rem; }
.active-filters-count {
  width: 20px;
  height: 20px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Filter panel (mobile: collapsible) */
.filter-panel {
  display: none;
  flex-direction: column;
  gap: var(--gap-md);
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
  border: 1.5px solid var(--clr-border);
}
.filter-panel.is-open { display: flex; }

.filter-group { display: flex; flex-direction: column; gap: 12px; }

.filter-group-title {
  font-size: .875rem;
  font-weight: 800;
  color: var(--clr-text);
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-group-title button {
  font-size: .75rem;
  color: var(--clr-primary);
  font-weight: 600;
}

/* Category chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--clr-border);
  font-family: var(--font-base);
  font-size: .8rem;
  font-weight: 600;
  color: var(--clr-muted);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.filter-chip.is-active,
.filter-chip:hover {
  border-color: var(--clr-primary);
  background: #EEF5FC;
  color: var(--clr-primary);
}

/* Price range */
.price-range-wrap { display: flex; flex-direction: column; gap: 10px; }
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--clr-border);
  font-family: var(--font-base);
  font-size: .875rem;
  text-align: center;
  color: var(--clr-text);
  background: var(--clr-bg);
}
.price-input:focus {
  outline: none;
  border-color: var(--clr-primary);
}
.price-sep { color: var(--clr-muted); font-size: .8rem; }

/* Range slider track */
.range-track {
  position: relative;
  height: 4px;
  background: var(--clr-border);
  border-radius: 4px;
}
.range-fill {
  position: absolute;
  height: 100%;
  background: var(--clr-primary);
  border-radius: 4px;
  right: 0;
  width: 70%;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--clr-primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,109,184,.4);
  cursor: pointer;
}

/* Age checkboxes */
.filter-checks { display: flex; flex-direction: column; gap: 10px; }
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-text);
}
.filter-check input[type="checkbox"] { display: none; }
.check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: .7rem;
  color: transparent;
  background: transparent;
}
.filter-check input:checked + .check-box {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

.filter-actions {
  display: flex;
  gap: var(--gap-xs);
  padding-top: var(--gap-sm);
  border-top: 1.5px solid var(--clr-border);
}
.filter-actions .btn { flex: 1; }

/* =============================================
   SHOP PRODUCT GRID (extends base .product-card)
============================================= */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-sm);
}

/* Shop card — richer than homepage mini card */
.shop-product-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--clr-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.shop-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary);
}

.shop-product-img {
  height: 220px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.shop-product-img a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.shop-product-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Badges on image */
.product-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Wishlist on image */
.shop-wishlist-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--clr-surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  border: 1.5px solid transparent;
}
.shop-wishlist-btn:hover,
.shop-wishlist-btn.is-active {
  background: #EEF5FC;
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

/* Quick-view on hover */
.shop-product-img .quick-view-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  background: rgba(255,255,255,.92);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--clr-primary);
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.shop-product-card:hover .quick-view-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.shop-product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.shop-product-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.shop-product-name {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
}
.shop-product-age {
  font-size: .78rem;
  color: var(--clr-muted);
}

/* Star rating */
.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.rating-stars {
  display: inline-flex;
  align-items: center;
  color: #FFDC39;
  font-size: .85rem;
  letter-spacing: 1px;
  line-height: 1;
}
.rating-count {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  color: var(--clr-muted);
  line-height: 1;
}

/* Utility: CTA background wrap */
.cta-wrap { background: var(--clr-bg); }

.shop-product-footer {
  padding: 0 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.shop-product-price {
  display: flex;
  flex-direction: column;
}
.price-current { font-size: 1.05rem; font-weight: 800; color: var(--clr-primary); }
.price-old     { font-size: .78rem; color: var(--clr-muted); text-decoration: line-through; }

.btn-add-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: .8rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-add-cart:hover { background: #005a9e; }
.btn-add-cart:active { transform: scale(.96); }

/* =============================================
   SHOP — CARD: NAME CLAMP + BOX DESC
============================================= */
.shop-product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Box "عرض الصندوق" button — mirrors btn-add-cart */
.btn-view-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  background: var(--clr-secondary);
  color: var(--clr-text);
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.btn-view-box:hover { background: #ffc533; }
.btn-view-box:active { transform: scale(.96); }

/* Short description: hidden in grid, visible in list */
.box-short-desc {
  display: none;
  font-size: .78rem;
  color: var(--clr-muted);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.shop-grid:not(.list-view) .box-short-desc { display: none; }
.shop-grid.list-view     .box-short-desc { display: -webkit-box; }

/* =============================================
   SHOP — LIST VIEW
   Card has 3 children: img / body / footer
   Use CSS grid so body+footer stack in column 2
============================================= */
.shop-grid.list-view {
  grid-template-columns: 1fr;
}
.shop-grid.list-view .shop-product-card {
  /* Switch from flex-column to 2-col grid */
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-template-rows: 1fr auto;
  min-height: 130px;
  /* reset hover lift so card doesn't shift layout */
}
.shop-grid.list-view .shop-product-img {
  grid-column: 1;
  grid-row: 1 / 3;     /* span image across both content rows */
  width: 100%;
  aspect-ratio: unset;  /* let height be driven by the grid rows */
  min-height: 130px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.shop-grid.list-view .shop-product-body {
  grid-column: 2;
  grid-row: 1;
  padding: 12px 12px 6px;
  gap: 4px;
  min-width: 0;         /* prevent text overflow in constrained column */
  overflow: hidden;
  align-self: start;
}
.shop-grid.list-view .shop-product-footer {
  grid-column: 2;
  grid-row: 2;
  padding: 0 12px 12px;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
}
/* More lines for name in list view */
.shop-grid.list-view .shop-product-name {
  -webkit-line-clamp: 3;
}

/* =============================================
   SHOP — MOBILE CARD ADJUSTMENTS (< 640px)
============================================= */
@media (max-width: 639px) {
  /* Tighten card internals for 2-col narrow grid cards */
  .shop-product-body {
    padding: 10px;
    gap: 4px;
  }
  .shop-product-footer {
    padding: 0 10px 10px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .price-current { font-size: .9rem; }
  .price-old     { font-size: .72rem; }
  /* Compact buttons on narrow cards */
  .btn-add-cart,
  .btn-view-box {
    padding: 8px 10px;
    font-size: .75rem;
  }
  /* List view on mobile: smaller image column */
  .shop-grid.list-view .shop-product-card {
    grid-template-columns: 100px 1fr;
    min-height: 110px;
  }
  .shop-grid.list-view .shop-product-img  { min-height: 110px; }
  .shop-grid.list-view .shop-product-body { padding: 10px 10px 4px; }
  .shop-grid.list-view .shop-product-footer { padding: 0 10px 10px; }
}

/* =============================================
   PAGINATION
============================================= */
.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: var(--gap-md);
  flex-wrap: wrap;
}
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-base);
  font-size: .875rem;
  font-weight: 700;
  border: 1.5px solid var(--clr-border);
  color: var(--clr-text);
  background: var(--clr-surface);
  cursor: pointer;
  transition: var(--transition);
}
.page-btn.is-active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}
.page-btn:hover:not(.is-active) {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.page-btn.page-dots {
  border: none;
  background: none;
  cursor: default;
  color: var(--clr-muted);
}
.page-btn.page-dots:hover { color: var(--clr-muted); border: none; }

/* No-results */
.shop-no-results {
  text-align: center;
  padding: var(--gap-xl);
  color: var(--clr-muted);
}
.shop-no-results .no-results-icon { font-size: 3rem; margin-bottom: var(--gap-sm); }

/* =============================================
   SHOP RESPONSIVE
============================================= */
@media (min-width: 640px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .shop-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--gap-lg);
  }

  /* Sidebar always visible on desktop */
  .filter-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 84px;
  }
  .filter-toggle-bar { display: none; }
  .filter-panel {
    display: flex;
    border: 1.5px solid var(--clr-border);
  }

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

  .shop-grid { grid-template-columns: repeat(3, 1fr); }

  .shop-grid.list-view .shop-product-card { grid-template-columns: 200px 1fr; }
  .shop-grid.list-view .shop-product-img  { min-height: 160px; }
}

/* =============================================
   AJAX ADD-TO-CART — "عرض السلة ←" injected link
============================================= */
/* WooCommerce injects <a class="added_to_cart wc-forward"> next to the button */
a.added_to_cart.wc-forward {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-primary);
  color: var(--clr-primary);
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
a.added_to_cart.wc-forward:hover {
  background: var(--clr-primary);
  color: #fff;
}

/* =============================================
   AJAX ADD-TO-CART — "عرض السلة" notice
============================================= */
.woocommerce-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  flex-wrap: wrap;
  background: #D1FAE5;
  color: #065F46;
  border: 1.5px solid #6EE7B7;
  border-radius: var(--radius-lg);
  padding: 12px var(--gap-md);
  font-size: .88rem;
  font-weight: 600;
  list-style: none;
  margin-bottom: var(--gap-sm);
}
.woocommerce-message a.button,
.woocommerce-message .wc-forward {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.woocommerce-message a.button:hover,
.woocommerce-message .wc-forward:hover {
  background: #ff6b97;
}

/* ==============================================
   WOOCOMMERCE MY ACCOUNT — SANDOQ OVERRIDE
=============================================== */

/* Layout */
.sandoq-account-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
  align-items: start;
  padding-block: var(--gap-lg);
}
@media (min-width: 1024px) {
  .sandoq-account-layout {
    grid-template-columns: 260px 1fr;
  }
}

/* Sidebar */
.sandoq-account-sidebar {
  position: sticky;
  top: 84px;
}

/* Nav */
.sandoq-account-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.sandoq-account-nav li { border-bottom: 1px solid var(--clr-border); }
.sandoq-account-nav li:last-child { border-bottom: none; }
.sandoq-account-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px var(--gap-md);
  font-size: .9rem;
  font-weight: 600;
  color: var(--clr-text);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.sandoq-account-nav li a:hover {
  background: #FFF0F5;
  color: var(--clr-primary);
}
.sandoq-account-nav li.is-active a,
.sandoq-account-nav li a[aria-current="page"] {
  background: var(--clr-primary);
  color: #fff;
  font-weight: 800;
}
.sandoq-account-nav .nav-icon { font-size: 1.1rem; }

/* Logout item */
.sandoq-account-nav .woocommerce-MyAccount-navigation-link--customer-logout a {
  color: var(--clr-primary);
}
.sandoq-account-nav .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #FFE4ED;
}

/* Content area */
.sandoq-account-content {
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--gap-md);
}
.sandoq-account-content h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-sm);
  border-bottom: 1.5px solid var(--clr-border);
}

/* WooCommerce notices inside account */
.sandoq-account-content .woocommerce-message,
.sandoq-account-content .woocommerce-error,
.sandoq-account-content .woocommerce-info {
  padding: 12px var(--gap-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--gap-sm);
  font-size: .88rem;
  font-weight: 600;
  list-style: none;
}
.sandoq-account-content .woocommerce-message { background: #D1FAE5; color: #065F46; border: 1.5px solid #6EE7B7; }
.sandoq-account-content .woocommerce-error   { background: #FEE2E2; color: #991B1B; border: 1.5px solid #FCA5A5; }
.sandoq-account-content .woocommerce-info    { background: #EFF6FF; color: #1E40AF; border: 1.5px solid #BFDBFE; }

/* ── Orders list ─────────────────────────── */
.wl-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.wl-orders-head {
  display: none;
}
@media (min-width: 640px) {
  .wl-orders-head {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 120px 100px;
    gap: var(--gap-sm);
    padding: 10px var(--gap-md);
    background: var(--clr-bg);
    border-bottom: 1.5px solid var(--clr-border);
    font-size: .75rem;
    font-weight: 800;
    color: var(--clr-muted);
    text-align: right;
  }
}
.wl-order-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: var(--gap-sm) var(--gap-md);
  border-bottom: 1px solid var(--clr-border);
  font-size: .88rem;
}
.wl-order-row:last-child { border-bottom: none; }
.wl-order-row:hover { background: var(--clr-bg); }
@media (min-width: 640px) {
  .wl-order-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 120px 100px;
    gap: var(--gap-sm);
    flex-wrap: unset;
  }
}
.wl-order-num  { font-weight: 800; color: var(--clr-primary); }
.wl-order-date { color: var(--clr-muted); font-size: .82rem; }
.wl-order-total { font-weight: 700; }
.wl-order-total small { display: block; font-size: .75rem; color: var(--clr-muted); font-weight: 400; }

/* Order status badges */
.wl-order-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.wl-status-done    { background: #D3F9EE; color: #059669; }
.wl-status-process { background: #EEF2FF; color: #6366F1; }
.wl-status-cancel  { background: #FFE4ED; color: var(--clr-primary); }

/* ── View order ──────────────────────────── */
.wl-order-status-text {
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 12px var(--gap-md);
  font-size: .9rem;
  margin-bottom: var(--gap-md);
  line-height: 1.7;
}
.wl-section-title {
  font-size: 1rem;
  font-weight: 800;
  margin-block: var(--gap-md) var(--gap-sm);
}
.wl-order-notes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.wl-order-note {
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 10px var(--gap-md);
}
.wl-note-date { font-size: .75rem; color: var(--clr-muted); display: block; margin-bottom: 4px; }
.wl-note-body p { margin: 0; font-size: .88rem; }

/* WooCommerce order table (view-order) */
.woocommerce-table--order-details { width: 100%; border-collapse: collapse; margin-top: var(--gap-md); font-size: .88rem; }
.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
  padding: 10px var(--gap-sm);
  border-bottom: 1px solid var(--clr-border);
  text-align: right;
}
.woocommerce-table--order-details thead { background: var(--clr-bg); font-weight: 800; }
.woocommerce-table--order-details tfoot tr:last-child td,
.woocommerce-table--order-details tfoot tr:last-child th { font-weight: 800; font-size: 1rem; }
.woocommerce-customer-details { margin-top: var(--gap-md); }
.woocommerce-customer-details address {
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--gap-sm) var(--gap-md);
  font-style: normal;
  font-size: .88rem;
  line-height: 1.8;
}

/* ── Addresses ───────────────────────────── */
.wl-intro-text { color: var(--clr-muted); font-size: .88rem; margin-bottom: var(--gap-md); }
.wl-address-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}
@media (min-width: 640px) {
  .wl-address-grid { grid-template-columns: repeat(2, 1fr); }
}
.wl-address-card {
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.wl-address-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gap-md);
  background: var(--clr-bg);
  border-bottom: 1.5px solid var(--clr-border);
}
.wl-address-card-title { font-weight: 800; font-size: .9rem; }
.wl-address-body { padding: var(--gap-md); }
.wl-address-text {
  font-style: normal;
  line-height: 1.8;
  font-size: .88rem;
  color: var(--clr-text);
}
.wl-address-empty { color: var(--clr-muted); font-size: .85rem; }

/* ── Forms (edit address / edit account) ── */
.wl-form-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-sm);
  border-bottom: 1.5px solid var(--clr-border);
}
.wl-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-md);
}
@media (min-width: 640px) {
  .wl-form-grid { grid-template-columns: 1fr 1fr; }
  .wl-form-grid .form-full,
  .wl-form-grid p.form-row-wide { grid-column: 1 / -1; }
}

/* WooCommerce-generated form fields */
.woocommerce-address-fields__field-wrapper p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.woocommerce-address-fields__field-wrapper label {
  font-size: .875rem;
  font-weight: 700;
}
.woocommerce-address-fields__field-wrapper .required { color: var(--clr-primary); }
.woocommerce-address-fields__field-wrapper input,
.woocommerce-address-fields__field-wrapper select,
.woocommerce-address-fields__field-wrapper textarea {
  width: 100%;
  padding: 13px var(--gap-sm);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--clr-border);
  font-family: var(--font-base);
  font-size: .95rem;
  background: var(--clr-bg);
  transition: border-color var(--transition);
  appearance: none;
}
.woocommerce-address-fields__field-wrapper input:focus,
.woocommerce-address-fields__field-wrapper select:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(255,143,171,.12);
}

.wl-form-actions {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
  padding-top: var(--gap-md);
  border-top: 1.5px solid var(--clr-border);
}

.wl-password-fieldset {
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
  margin-bottom: var(--gap-md);
}
.wl-password-fieldset legend {
  padding: 0 8px;
  font-weight: 800;
  font-size: .9rem;
}
.form-hint-inline { font-size: .75rem; color: var(--clr-muted); font-weight: 400; }

/* Empty state */
.wl-empty-state {
  text-align: center;
  padding: var(--gap-xl) var(--gap-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
}
.wl-empty-state h3 { font-size: 1.2rem; }
.wl-empty-state p  { color: var(--clr-muted); font-size: .9rem; }

/* Pagination */
.wl-pagination { display: flex; gap: 8px; margin-top: var(--gap-md); justify-content: center; }

/* WC account content cleanup */
.woocommerce-MyAccount-content > h2:first-child { display: none; }

/* =============================================
   SECTION 1 — SCREEN VS BOX (PAIN POINT)
============================================= */
.svb-section {
  background: var(--clr-surface);
}

.svb-inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  align-items: center;
}

/* Image block */
.svb-visual {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.svb-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* Text block */
.svb-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.svb-eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--clr-cta);
  background: #FFF0EE;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.svb-title {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1.25;
}

.svb-desc {
  color: var(--clr-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.svb-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.svb-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--clr-text);
}

.svb-check {
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: #D3F9EE;
  color: #14906e;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 900;
}

/* Desktop: side-by-side — image left, text right (RTL: text is leading side) */
@media (min-width: 768px) {
  .svb-inner {
    flex-direction: row-reverse; /* row-reverse in RTL = image left, text right */
    align-items: center;
  }
  .svb-visual {
    flex: 0 0 44%;
    max-width: 44%;
  }
  .svb-content {
    flex: 1;
    min-width: 0;
  }
}

/* =============================================
   SECTION 2 — FAMILY EMOTIONAL MOMENT
============================================= */
.fm-section {
  background: linear-gradient(160deg, #FFFDF5 0%, #FFF5FB 100%);
}

.fm-inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  align-items: center;
}

/* Image block with floating badge */
.fm-visual {
  width: 100%;
  position: relative;
  flex-shrink: 0;
  padding-bottom: 28px; /* room for the overflowing badge */
}

.fm-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.fm-float-badge {
  position: absolute;
  bottom: 0;
  left: var(--gap-md);  /* RTL: visually on the left (end) side */
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--clr-border);
}

.fm-badge-icon { font-size: 1.8rem; line-height: 1; }

.fm-float-badge div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fm-float-badge strong {
  font-size: .9rem;
  font-weight: 800;
  color: var(--clr-text);
  display: block;
}

.fm-float-badge span {
  font-size: .75rem;
  color: var(--clr-muted);
  display: block;
}

/* Text block */
.fm-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.fm-eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: #a06000;
  background: #FFF8CC;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.fm-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1.25;
}

.fm-desc {
  color: var(--clr-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.fm-quote {
  background: var(--clr-surface);
  border-inline-start: 4px solid var(--clr-secondary); /* RTL-aware border */
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--gap-sm) var(--gap-md);
  font-size: .95rem;
  font-style: italic;
  color: var(--clr-text);
  line-height: 1.75;
  margin: 0;
  box-shadow: var(--shadow-sm);
}

.fm-quote-author {
  font-size: .8rem;
  color: var(--clr-muted);
  font-weight: 600;
  margin-top: -4px;
}

/* Desktop: image right, text left (RTL row = first item on right) */
@media (min-width: 768px) {
  .fm-inner {
    flex-direction: row; /* RTL row: first child (image) goes to the right */
    align-items: center;
  }
  .fm-visual {
    flex: 0 0 44%;
    max-width: 44%;
    padding-bottom: 32px;
  }
  .fm-content {
    flex: 1;
    min-width: 0;
  }
}

/* =============================================
   SECTION 3 — SOCIAL PROOF + URGENCY + SCARCITY
============================================= */
.urgency-section {
  background: var(--clr-bg);
}

/* Proof bar — 2-col mobile, 4-col tablet+ */
.urgency-proof-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-sm);
  margin-bottom: var(--gap-lg);
}

.urgency-proof-item {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: var(--gap-md) var(--gap-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--clr-border);
}

.urgency-proof-item strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--clr-primary);
  margin-bottom: 4px;
}

.urgency-proof-item span {
  font-size: .78rem;
  color: var(--clr-muted);
  font-weight: 600;
}

/* Dark CTA box */
.urgency-cta-box {
  background: linear-gradient(135deg, #0F1D30 0%, #1A2B40 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.urgency-cta-inner {
  padding: var(--gap-lg) var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  color: #fff;
  justify-content: center;
}

/* Pulsing scarcity badge */
.urgency-scarcity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 61, 47, .14);
  border: 1px solid rgba(234, 61, 47, .45);
  color: #ff7062;
  font-size: .82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.urgency-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: #EA3D2F;
  border-radius: 50%;
  animation: urgency-blink 1.4s ease-in-out infinite;
}

@keyframes urgency-blink {
  0%, 100% { opacity: 1;  transform: scale(1);   }
  50%       { opacity: .4; transform: scale(1.5); }
}

.urgency-cta-inner h2 {
  color: #fff;
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.3;
}

.urgency-cta-inner p {
  color: rgba(255, 255, 255, .78);
  font-size: 1rem;
  line-height: 1.85;
}

/* Reassurance pills */
.urgency-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.urgency-reassurance span {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .88);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Image panel — hidden on mobile, shown desktop */
.urgency-cta-visual {
  display: none;
}

.urgency-cta-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive adjustments */
@media (min-width: 640px) {
  .urgency-proof-bar { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .urgency-cta-box {
    flex-direction: row;
    min-height: 380px;
  }
  .urgency-cta-inner {
    flex: 1;
    padding: var(--gap-xl) var(--gap-lg);
  }
  .urgency-cta-visual {
    display: block;
    flex: 0 0 38%;
    max-width: 38%;
    position: relative;
    overflow: hidden;
  }
}

@media (min-width: 1024px) {
  .urgency-cta-inner { padding: var(--gap-xl); }
}
}
