/* ============================================================
   Mother's Club Theme — Main Stylesheet
   Colors: Teal #5BB8B8 | Rose #E8829A | Gold #C9A96E | Cream #FFF8F5
   ============================================================ */

:root {
  --teal:       #5BB8B8;
  --teal-dark:  #3D9A9A;
  --teal-light: #A8DEDE;
  --rose:       #E8829A;
  --rose-light: #F4B8C8;
  --rose-dark:  #C5607A;
  --gold:       #C9A96E;
  --gold-light: #E8D5B0;
  --cream:      #FFF8F5;
  --cream-2:    #FFF0EC;
  --white:      #FFFFFF;
  --dark:       #2D2D2D;
  --gray:       #6B6B6B;
  --gray-light: #F5F5F5;
  --border:     #EDE0DA;
  --shadow:     0 4px 24px rgba(91,184,184,0.10);
  --shadow-md:  0 8px 40px rgba(91,184,184,0.15);
  --radius:     14px;
  --radius-sm:  8px;
  --radius-pill:50px;
  --font-ar:    'Tajawal', 'Cairo', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* --- Reset ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ar);
  background: var(--cream);
  color: var(--dark);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- Utilities ---------------------------------------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 72px 0; }
.section-pad-sm { padding: 48px 0; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* --- Section Header ----------------------------------- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(91,184,184,0.10);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}
.section-header h2 span { color: var(--rose); }
.section-header p {
  color: var(--gray);
  font-size: 16px;
  max-width: 560px;
  margin: 12px auto 0;
}
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--rose));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* --- Buttons ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(91,184,184,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(91,184,184,0.45);
}
.btn-rose {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232,130,154,0.35);
}
.btn-rose:hover { transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a8854a);
  color: var(--white);
}
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }

/* ═══════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════ */
.topbar {
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { color: rgba(255,255,255,0.85); font-size: 12px; }
.topbar-links a:hover { color: var(--white); }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 12px;
}
.topbar-social a:hover { background: var(--rose); }

/* --- Topbar Actions (search + cart + user + social) --- */
.topbar { position: relative; z-index: 1001; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
/* Search trigger button */
.topbar-search-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 12px;
  border-radius: 50px;
  background: rgba(255,255,255,0.13);
  border: 1.5px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-ar);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s;
  white-space: nowrap;
}
.topbar-search-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
}
.topbar-search-btn kbd {
  font-family: var(--font-ar);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  line-height: 1.5;
}
.topbar-actions .user-trigger { padding: 6px 14px; font-size: 13px; }
.topbar-actions .user-trigger.guest {
  background: rgba(255,255,255,0.13);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.topbar-actions .user-trigger.guest:hover { background: rgba(255,255,255,0.22); color: #fff; box-shadow: none; }
.topbar-actions .user-trigger .avatar { width: 24px; height: 24px; font-size: 12px; }
.topbar-actions .user-dropdown { z-index: 1010; }

/* Fix logo always visible */
.site-logo { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.site-logo img { height: 60px; width: auto; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--radius-sm);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; right: 16px;
  width: 0; height: 2px;
  background: var(--teal);
  border-radius: 1px;
  transition: var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: calc(100% - 32px); }
.main-nav a:hover { color: var(--teal); }

/* --- Dropdown Nav --- */
.nav-item-drop { position: relative; }
.nav-drop-trigger {
  display: flex !important;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}
.drop-arrow { transition: transform 0.25s ease; flex-shrink: 0; }
.nav-item-drop:hover .drop-arrow { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 215px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13), 0 2px 8px rgba(91,184,184,0.08);
  border: 1px solid #EDE0DA;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 2000;
}
.nav-item-drop:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; right: 22px;
  width: 12px; height: 12px;
  background: #fff;
  border-top: 1px solid #EDE0DA;
  border-right: 1px solid #EDE0DA;
  transform: rotate(-45deg);
}
.nav-dropdown a {
  display: block !important;
  padding: 9px 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #2D2D2D !important;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-dropdown a::after { display: none !important; }
.nav-dropdown a:hover {
  background: rgba(91,184,184,0.10);
  color: var(--teal) !important;
  padding-right: 20px !important;
}

/* --- Mobile Nav Accordion --- */
.mob-nav-acc { margin-bottom: 2px; }
.mob-acc-trigger {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; font-size: 15px; font-weight: 700;
  color: #1A1A1A; background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: right; border-radius: 12px;
  transition: all 0.22s;
}
.mob-acc-trigger:hover, .mob-acc-trigger.open {
  background: rgba(91,184,184,0.08); color: #3D9A9A;
}
.mob-acc-arrow { margin-right: auto; transition: transform 0.25s; }
.mob-acc-trigger.open .mob-acc-arrow { transform: rotate(180deg); }
.mob-acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
  padding-right: 52px;
}
.mob-acc-body.open { max-height: 400px; }
.mob-sub-item {
  display: block; padding: 9px 0;
  font-size: 13.5px; color: #5A5A5A;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color 0.2s;
}
.mob-sub-item:last-child { border-bottom: none; margin-bottom: 6px; }
.mob-sub-item:hover { color: #3D9A9A; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search {
  display: flex;
  align-items: center;
  background: var(--gray-light);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  gap: 8px;
  width: 220px;
  transition: var(--transition);
}
.header-search:focus-within {
  background: var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.header-search input {
  border: none;
  background: transparent;
  font-family: var(--font-ar);
  font-size: 14px;
  outline: none;
  width: 100%;
  direction: rtl;
}
.header-search svg { color: var(--gray); flex-shrink: 0; }

/* --- User Menu ---------------------------------------- */
.user-menu { position: relative; }
.user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-ar);
  transition: var(--transition);
}
.user-trigger:hover { box-shadow: 0 4px 16px rgba(91,184,184,0.4); }
.user-trigger .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.user-trigger .avatar img {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* Guest State */
.user-trigger.guest {
  background: var(--white);
  color: var(--teal);
  border: 2px solid var(--teal);
}
.user-trigger.guest:hover { background: var(--teal); color: var(--white); }

/* Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 999;
}
.user-menu:hover .user-dropdown,
.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Guest Dropdown */
.dropdown-guest { padding: 16px; }
.dropdown-guest h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.dropdown-guest p { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.dropdown-guest .auth-btns { display: flex; flex-direction: column; gap: 8px; }
.dropdown-guest .auth-btns .btn { width: 100%; justify-content: center; }

/* Logged-in Dropdown */
.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(91,184,184,0.08), rgba(232,130,154,0.08));
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.dropdown-user-info .big-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--rose));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 20px;
  flex-shrink: 0;
}
.dropdown-user-info .big-avatar img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.dropdown-user-info .info h5 { font-size: 15px; font-weight: 700; }
.dropdown-user-info .info span { font-size: 12px; color: var(--teal); font-weight: 600; }
.dropdown-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--dark);
}
.dropdown-links a:hover { background: var(--cream); color: var(--teal); }
.dropdown-links a svg { color: var(--teal); }
.dropdown-divider { height: 1px; background: var(--border); margin: 8px 0; }
.dropdown-links a.logout { color: var(--rose); }
.dropdown-links a.logout:hover { background: rgba(232,130,154,0.08); }
.dropdown-links a.logout svg { color: var(--rose); }

/* Cart Icon */
.cart-icon {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}
.cart-icon:hover { background: var(--teal); color: var(--white); }
.cart-badge {
  position: absolute;
  top: -2px; left: -2px;
  width: 18px; height: 18px;
  background: var(--rose);
  color: var(--white);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: calc(100dvh - 214px);
  min-height: 400px;
}
/* Owl resets */
.hero-slider .owl-carousel { height: 100%; }
.hero-slider .owl-stage-outer,
.hero-slider .owl-stage,
.hero-slider .owl-item { height: 100%; }
.hero-slide {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,45,45,0.65) 0%, rgba(91,184,184,0.25) 100%);
}
.hero-slide:nth-child(2) .hero-slide-overlay {
  background: linear-gradient(135deg, rgba(197,96,122,0.55) 0%, rgba(201,169,110,0.25) 100%);
}
.hero-slide:nth-child(3) .hero-slide-overlay {
  background: linear-gradient(135deg, rgba(45,45,45,0.5) 0%, rgba(91,184,184,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-text {
  max-width: 600px;
  color: var(--white);
  opacity: 1;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4,0,0.2,1) 0.3s;
}
.hero-slide.active .hero-text { opacity: 1; transform: translateY(0); }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-tag::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.6; transform:scale(1.3); }
}
.hero-text h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-text h1 .highlight {
  color: var(--rose-light);
  position: relative;
}
.hero-text p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-white {
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hero-cta .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.hero-cta .btn-ghost {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,0.25); }

/* Hero stats removed */

/* Legacy hero nav removed — handled by Owl Carousel */

/* ═══════════════════════════════════════════════════════
   QUICK CATEGORIES BAR
   ═══════════════════════════════════════════════════════ */
.categories-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  display: none !important;
}
.cats-scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.cats-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.cat-pill.active,
.cat-pill:hover {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
}
.cat-pill:not(.active):not(:hover) {
  background: var(--gray-light);
  color: var(--dark);
}
.cat-pill .cat-icon { font-size: 18px; }

/* ═══════════════════════════════════════════════════════
   AD BANNER — FULL WIDTH (Style 1)
   ═══════════════════════════════════════════════════════ */
.ad-fullwidth {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, #7DD3C0 100%);
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}
.ad-fullwidth::before {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.ad-fullwidth::after {
  content: '';
  position: absolute;
  bottom: -40px; right: 10%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.ad-fullwidth-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.ad-fullwidth-text { color: var(--white); }
.ad-fullwidth-text .ad-label {
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ad-fullwidth-text h3 { font-size: 22px; font-weight: 800; }
.ad-fullwidth-text p { font-size: 14px; opacity: 0.85; margin-top: 4px; }

/* --- AD BOXES — Grid (Style 2) ------------------------ */
.ads-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ad-box {
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
}
.ad-box .ad-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.15);
  color: var(--white);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.ad-box-1 { background: linear-gradient(135deg, #E8829A, #C5607A); color: var(--white); }
.ad-box-2 { background: linear-gradient(135deg, #C9A96E, #a8763a); color: var(--white); }
.ad-box-3 { background: linear-gradient(135deg, #5BB8B8, #3D9A9A); color: var(--white); }
.ad-box h4 { font-size: 18px; font-weight: 800; }
.ad-box p { font-size: 13px; opacity: 0.88; }
.ad-box .btn-white-sm {
  align-self: flex-start;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-ar);
}
.ad-box .btn-white-sm:hover { background: rgba(255,255,255,0.35); }

/* --- AD SIDEBAR Strip (Style 3) ---------------------- */
.ad-strip {
  background: linear-gradient(90deg, var(--rose-light), var(--gold-light));
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
}
.ad-strip-text h4 { font-size: 16px; font-weight: 800; color: var(--dark); }
.ad-strip-text p { font-size: 13px; color: var(--gray); }
.ad-strip-logo { height: 48px; width: auto; object-fit: contain; flex-shrink: 0; }
.promo-strip-wrap { padding: 0 0 32px; }

/* --- AD Floating Badge (Style 4) --------------------- */
.ad-floating {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 16px;
  max-width: 280px;
  display: none; /* enable via JS */
}
.ad-floating-close {
  position: absolute;
  top: 8px; left: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gray-light);
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   ARTICLE SECTIONS
   ═══════════════════════════════════════════════════════ */

/* --- Style 1: Featured Grid --------------------------- */
.articles-featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.article-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card-featured { grid-row: 1 / 3; display: flex; flex-direction: column; }
.article-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.article-card-featured .article-thumb { flex: 1; min-height: 280px; aspect-ratio: unset; height: auto; }
.article-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-cat-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--teal);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.article-cat-badge.rose { background: var(--rose); }
.article-cat-badge.gold { background: var(--gold); }
.article-body { padding: 20px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 10px;
}
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--dark);
}
.article-card-featured .article-body h3 { font-size: 24px; }
.article-body p { font-size: 14px; color: var(--gray); line-height: 1.7; }
.article-body .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
}
.article-body .read-more:hover { color: var(--teal-dark); }

/* --- Style 2: Horizontal List ------------------------ */
.articles-list { display: flex; flex-direction: column; gap: 20px; }
.article-list-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.article-list-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.article-list-thumb {
  width: 140px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.article-list-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-list-item:hover .article-list-thumb img { transform: scale(1.08); }
.article-list-body {
  padding: 16px 16px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.article-list-body .badge {
  display: inline-block;
  background: rgba(91,184,184,0.12);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}
.article-list-body h4 { font-size: 15px; font-weight: 700; line-height: 1.4; }
.article-list-body .meta { font-size: 12px; color: var(--gray); }

/* --- Style 3: Magazine Cards -------------------------- */
.articles-magazine {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mag-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.mag-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mag-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.mag-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mag-card:hover .mag-thumb img { transform: scale(1.07); }
.mag-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.mag-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.mag-body h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 12px;
}
.mag-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}
.mag-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray);
}
.mag-author .a-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--rose-light));
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.mag-likes { font-size: 12px; color: var(--gray); display: flex; align-items: center; gap: 4px; }

/* --- Style 4: Trending Ticker ------------------------- */
/* -- Trending Cards Strip -- */
.trending-strip {
  padding: 32px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trending-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.trending-strip-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trending-strip-title span { color: var(--rose); }

/* Trending category filter */
.trending-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.trending-filter-btn {
  padding: 7px 18px;
  border-radius: 50px;
  background: #F5F0EB;
  border: 1.5px solid #EDE0DA;
  font-family: var(--font-ar);
  font-size: 13px;
  font-weight: 600;
  color: #3D3D3D;
  cursor: pointer;
  transition: all 0.22s;
  line-height: 1;
}
.trending-filter-btn:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: rgba(91,184,184,0.08);
}
.trending-filter-btn.active {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(91,184,184,0.35);
}
.trending-cards.trending-loading {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s;
}

.trending-cards-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  padding-bottom: 4px;
}
.trending-cards-wrap::-webkit-scrollbar { display: none; }
.trending-cards-wrap:active { cursor: grabbing; }
.trending-cards {
  display: flex;
  gap: 16px;
  width: max-content;
}
.trending-card {
  width: 190px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.trending-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(91,184,184,0.18);
  border-color: var(--teal);
}
.trending-card-thumb {
  width: 100%;
  height: 118px;
  overflow: hidden;
  position: relative;
}
.trending-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.trending-card:hover .trending-card-thumb img { transform: scale(1.06); }
.trending-rank {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.trending-rank.gold { background: #E6A817; }
.trending-rank.silver { background: #8C9BA5; }
.trending-rank.bronze { background: #C47B3C; }
.trending-card-body { padding: 10px 12px 12px; }
.trending-card-cat {
  font-size: 11px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 5px;
}
.trending-card-body h5 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-card-views { font-size: 11px; color: var(--gray); }

/* Modern Featured Articles */
/* ═══════════════════════════════════════════════════════
   EDITORIAL UNIFIED SECTION — Tabbed Articles Hub
   ═══════════════════════════════════════════════════════ */
.editorial-hub { margin-bottom: 56px; }
.editorial-hub-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.editorial-hub-header h2 { margin-bottom: 0; }
.editorial-hub-header h2 span { color: var(--rose); }

/* Tab Strip */
.editorial-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0;
}
.editorial-tabs::-webkit-scrollbar { display: none; }
.ed-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ar);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  border-radius: 10px 10px 0 0;
  transition: all 0.2s ease;
}
.ed-tab:hover { color: var(--teal); background: rgba(91,184,184,0.05); }
.ed-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
  background: rgba(91,184,184,0.07);
}

/* Panels */
.ed-panel { display: none; animation: edFadeIn 0.3s ease; }
.ed-panel.active { display: block; }
@keyframes edFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Load More */
.editorial-load-more {
  text-align: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.editorial-load-more p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 14px;
}

.featured-articles-section {
  margin: 52px 0 10px;
  padding: 34px 0 10px;
 }
.featured-articles-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.featured-articles-title {
  text-align: right;
 }
.soft-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: #f3e8ff;
  color: #9b5de5;
  font-size: 12px;
  font-weight: 800;
}
.soft-eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.featured-articles-title h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.1;
}
.articles-view-all {
  min-width: 140px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(230, 126, 198, 0.55);
  border-radius: var(--radius-pill);
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255,255,255,0.72);
}
.articles-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row-reverse;
  gap: 12px;
  flex-wrap: wrap;
}
.articles-tabs button {
  min-width: 72px;
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.92);
  color: var(--dark);
  box-shadow: 0 8px 22px rgba(30,43,58,0.06);
  font-family: var(--font-ar);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.articles-tabs button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #ea7bd7, #c66fe2);
  color: var(--white);
}
.modern-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.modern-article-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 22px 48px rgba(30,43,58,0.08);
  transition: var(--transition);
}
.modern-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 56px rgba(30,43,58,0.12);
}
.modern-article-media {
  position: relative;
  height: 168px;
  overflow: hidden;
}
.modern-article-media img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
  transition: transform 0.55s ease;
}
.modern-article-card:hover .modern-article-media img {
  transform: scale(1.05);
}
.modern-article-cat,
.modern-article-label {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.66);
  font-size: 11px;
  font-weight: 900;
}
.modern-article-label {
  right: auto;
  left: 16px;
  background: #fff0c9;
  color: #b87900;
}
.modern-article-label.blue {
  background: #dceeff;
  color: #2673d8;
}
.article-pink .modern-article-media { background: #fde8f0; }
.article-peach .modern-article-media { background: #fff0df; }
.article-lavender .modern-article-media { background: #f0ebff; }
.article-mint .modern-article-media { background: #e6fbef; }
.article-rose .modern-article-media { background: #fde8f1; }
.article-cream .modern-article-media { background: #fff3df; }
.article-pink .modern-article-cat,
.article-rose .modern-article-cat { color: #ff4f86; }
.article-peach .modern-article-cat { color: #f27a1a; }
.article-lavender .modern-article-cat { color: #9b5de5; }
.article-mint .modern-article-cat { color: #16a86d; }
.article-cream .modern-article-cat { color: #9b5de5; }
.modern-article-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 18px;
}
.modern-article-body h3 {
  color: var(--dark);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.55;
  margin-bottom: 10px;
}
.modern-article-body p {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 18px;
}
.modern-article-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray);
  font-size: 12px;
}

/* -- Editorial Panel: Featured First Card -- */
.ed-panel .modern-articles-grid > article:first-child {
  grid-column: span 2;
  flex-direction: row;
  min-height: 240px;
}
.ed-panel .modern-articles-grid > article:first-child .modern-article-media {
  flex: 0 0 46%;
  height: auto;
  min-height: 240px;
  border-radius: 0;
}
.ed-panel .modern-articles-grid > article:first-child .modern-article-body {
  padding: 28px 28px 24px;
  justify-content: center;
}
.ed-panel .modern-articles-grid > article:first-child .modern-article-body h3 {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.ed-panel .modern-articles-grid > article:first-child .modern-article-body p {
  font-size: 14px;
  -webkit-line-clamp: unset;
  display: block;
}
/* on 2-col: featured still spans 2 */
@media(max-width:992px) {
  .ed-panel .modern-articles-grid > article:first-child { grid-column: span 2; }
}
/* on 1-col (768px): revert to stacked layout */
@media(max-width:768px) {
  .ed-panel .modern-articles-grid > article:first-child {
    grid-column: span 1;
    flex-direction: column;
  }
  .ed-panel .modern-articles-grid > article:first-child .modern-article-media {
    height: 185px;
    min-height: unset;
    flex: none;
  }
  .ed-panel .modern-articles-grid > article:first-child .modern-article-body {
    padding: 20px 22px 18px;
  }
  .ed-panel .modern-articles-grid > article:first-child .modern-article-body h3 {
    font-size: 17px;
  }
}

/* ═══════════════════════════════════════════════════════
   SHOP / DIRECTORY PRODUCTS
   ═══════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-light);
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.08); }
.product-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  color: var(--white);
}
.badge-sale { background: var(--rose); }
.badge-new { background: var(--teal); }
.badge-hot { background: var(--gold); }
.product-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }
.product-action-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  transition: var(--transition);
  font-size: 16px;
}
.product-action-btn:hover { background: var(--teal); color: var(--white); }
.product-body { padding: 16px; }
.product-cat { font-size: 11px; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.product-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.product-stars { display: flex; gap: 2px; color: var(--gold); font-size: 13px; margin-bottom: 8px; }
.product-stars span { color: var(--gray); font-size: 12px; margin-right: 4px; }
.product-price { display: flex; align-items: center; gap: 8px; }
.price-current { font-size: 18px; font-weight: 900; color: var(--teal-dark); }
.price-old { font-size: 13px; color: var(--gray); text-decoration: line-through; }
.add-to-cart-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ar);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.add-to-cart-btn:hover { opacity: 0.88; transform: scale(0.98); }

/* Featured Guides */
.guides-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  perspective: 1200px;
  margin-bottom: 8px;
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.guide-flip-card {
  min-height: 252px;
  position: relative;
}
.guide-flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(.2,.7,.2,1);
}
.guide-flip-card:hover .guide-flip-inner {
  transform: rotateY(180deg);
}
.guide-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 14px;
  backface-visibility: hidden;
  box-shadow: 0 18px 38px rgba(30,43,58,0.14);
}
.guide-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 34px 30px;
  color: var(--white);
}
.guide-pregnancy .guide-front { background: linear-gradient(135deg, #5bb8b8, #3fa3a0); }
.guide-nursing .guide-front { background: linear-gradient(135deg, #d3ae68, #ad7c33); }
.guide-soon .guide-front { background: linear-gradient(135deg, #df7895, #c75272); }
.guide-tag {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}
.guide-front h3 {
  max-width: 330px;
  margin: 5px 0 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.45;
}
.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}
.guide-price-line {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  font-weight: 800;
}
.guide-price-line del {
  margin-inline-start: 6px;
  opacity: 0.62;
  font-weight: 500;
}
.guide-card-footer a {
  min-width: 136px;
  padding: 11px 20px;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: var(--radius-pill);
  color: var(--white);
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
.guide-card-footer a:hover {
  background: rgba(255,255,255,0.24);
}
.guide-back {
  display: block;
  transform: rotateY(180deg);
  background: var(--dark);
}
.guide-back img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.guide-back::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,43,58,0.54), transparent 58%);
}
.guide-back span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 1;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
}
.guide-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.guide-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f7f2ed;
}
.guide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.guide-card:hover .guide-thumb img { transform: scale(1.05); }
.guide-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--rose);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}
.guide-badge.soon { background: var(--gold); }
.guide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.guide-cat {
  margin-bottom: 7px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.guide-body h4 {
  min-height: 48px;
  margin-bottom: 9px;
  color: var(--dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
}
.guide-body p {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.guide-price,
.guide-status {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-weight: 900;
}
.guide-price del {
  color: var(--gray);
  font-size: 12px;
  font-weight: 500;
}
.guide-status {
  color: var(--gold);
  font-size: 13px;
}
.guide-btn {
  width: 100%;
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}
.guide-btn.muted {
  background: var(--gray-light);
  color: var(--dark);
}

/* ══════════════════════════════════════════════
   GUIDES SHOWCASE — Premium Dark Section
   ══════════════════════════════════════════════ */
.guides-showcase {
  padding: 80px 0;
  background: linear-gradient(135deg, #1B2D3F 0%, #2A1438 55%, #1B2D3F 100%);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
}
.guides-showcase::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(91,184,184,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.guides-showcase::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,130,154,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.guides-showcase-inner { position: relative; z-index: 1; }
.guides-showcase-head {
  text-align: center;
  margin-bottom: 56px;
}
.guides-showcase-head .eyebrow {
   border: none;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(91,184,184,0.10);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.guides-showcase-head h2 { color: #fff; font-size: 34px; margin: 12px 0 10px; }
.guides-showcase-head h2 span { color: #5BB8B8; }
.guides-showcase-head p { color: rgba(255,255,255,0.52); font-size: 15px; max-width: 480px; margin: 0 auto; }
.guides-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

/* -- Active Guide Card -- */
.gsc-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  padding: 32px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.35s;
  backdrop-filter: blur(10px);
}
.gsc-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-10px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.35);
}
.book3d-wrap {
  perspective: 700px;
  margin-bottom: 28px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book3d {
  width: 132px;
  height: 178px;
  position: relative;
  transform: rotateY(-22deg);
  transition: transform 0.5s ease;
}
.gsc-card:hover .book3d { transform: rotateY(-8deg) translateY(-8px); }
.book3d-cover {
  width: 100%;
  height: 100%;
  border-radius: 3px 10px 10px 3px;
  overflow: hidden;
  box-shadow: 10px 14px 40px rgba(0,0,0,0.6), inset -2px 0 8px rgba(0,0,0,0.15);
  position: relative;
}
.book3d-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book3d-spine {
  position: absolute;
  top: 0; left: -14px;
  width: 14px; height: 100%;
  background: linear-gradient(to right, #060606, #252525);
  border-radius: 2px 0 0 2px;
}
.book3d-pages {
  position: absolute;
  top: 3px; right: -8px;
  width: 9px;
  height: calc(100% - 6px);
  background: repeating-linear-gradient(to bottom, #f5f2ed 0, #f5f2ed 2px, #e5e2dd 2px, #e5e2dd 3px);
  border-radius: 0 2px 2px 0;
  box-shadow: 3px 0 8px rgba(0,0,0,0.25);
}
.gsc-avail-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(39,174,96,0.18);
  border: 1px solid rgba(39,174,96,0.38);
  color: #4ecb7a;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 13px;
}
.gsc-card h4 { color: #fff; font-size: 15px; font-weight: 800; line-height: 1.55; margin-bottom: 8px; }
.gsc-card > p { color: rgba(255,255,255,0.48); font-size: 12.5px; line-height: 1.65; margin-bottom: 18px; }
.gsc-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.gsc-price strong,
.gsc-price ins { color: #5BB8B8; font-size: 22px; font-weight: 900; text-decoration: none; }
.gsc-price del { color: rgba(255,255,255,0.28); font-size: 13px; }
.gsc-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
.gsc-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #5BB8B8, #3D9A9A);
  color: #fff;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  transition: all 0.28s;
  box-shadow: 0 6px 20px rgba(91,184,184,0.35);
}
.gsc-btn:hover {
  background: linear-gradient(135deg, #4AAABB, #2D8080);
  box-shadow: 0 10px 30px rgba(91,184,184,0.5);
  color: #fff;
}

/* -- Coming Soon CSS Mockup Card -- */
.gsc-soon-card {
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(255,255,255,0.22);
  border-radius: 22px;
  padding: 32px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.35s;
}
.gsc-soon-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.3);
}
.css-book3d-wrap {
  perspective: 700px;
  margin-bottom: 28px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.css-book3d {
  width: 132px;
  height: 178px;
  position: relative;
  transform: rotateY(-22deg);
  transition: transform 0.5s ease;
}
.gsc-soon-card:hover .css-book3d { transform: rotateY(-8deg) translateY(-8px); }
.css-book3d-cover {
  width: 100%;
  height: 100%;
  border-radius: 3px 10px 10px 3px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 14px;
  box-sizing: border-box;
  box-shadow: 10px 14px 40px rgba(0,0,0,0.6), inset -2px 0 8px rgba(0,0,0,0.12);
}
.css-book3d-cover.cover-rose  {
  background: linear-gradient(155deg, #F4A0B5 0%, #D85E7A 38%, #9E2344 100%);
}
.css-book3d-cover.cover-blue , .gsc-soon-card .css-book3d-cover {
  background: linear-gradient(155deg, #93B4E8 0%, #5074C4 38%, #2A3F8A 100%);
}
.css-book3d-brand {
  font-size: 7px;
  font-weight: 900;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.css-book3d-icon { font-size: 24px; margin-bottom: 6px; display: block; line-height: 1; }
.css-book3d-title {
  font-size: 11.5px;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  flex: 1;
  text-align: right;
}
.css-book3d-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.css-book3d-line { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.2); }
.css-book3d-line:nth-child(1) { width: 82%; }
.css-book3d-line:nth-child(2) { width: 66%; }
.css-book3d-line:nth-child(3) { width: 76%; }
.css-book3d-line:nth-child(4) { width: 50%; }
.css-book3d-badge {
  position: absolute;
  top: 12px; left: -2px;
  background: #FFD700;
  color: #7A5200;
  font-size: 7.5px;
  font-weight: 900;
  padding: 3px 10px 3px 12px;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}
.css-book3d-spine {
  position: absolute;
  top: 0; left: -14px;
  width: 14px; height: 100%;
  background: linear-gradient(to right, #060606, #252525);
  border-radius: 2px 0 0 2px;
}
.css-book3d-pages {
  position: absolute;
  top: 3px; right: -8px;
  width: 9px;
  height: calc(100% - 6px);
  background: repeating-linear-gradient(to bottom, #f5f2ed 0, #f5f2ed 2px, #e5e2dd 2px, #e5e2dd 3px);
  border-radius: 0 2px 2px 0;
  box-shadow: 3px 0 8px rgba(0,0,0,0.25);
}
.gsc-soon-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,210,70,0.14);
  border: 1px solid rgba(255,210,70,0.32);
  color: #FFD246;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 13px;
}
.gsc-soon-card h4 { color: rgba(255,255,255,0.82); font-size: 15px; font-weight: 800; line-height: 1.55; margin-bottom: 8px; }
.gsc-soon-card > p { color: rgba(255,255,255,0.38); font-size: 12.5px; line-height: 1.65; margin-bottom: 16px; }
.gsc-notify {
  display: flex;
  gap: 6px;
  width: 100%;
}
.gsc-notify input {
  flex: 1; min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  direction: rtl;
  outline: none;
  transition: border-color 0.25s;
}
.gsc-notify input:focus { border-color: rgba(255,255,255,0.35); }
.gsc-notify input::placeholder { color: rgba(255,255,255,0.28); }
.gsc-notify button {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.25s;
}
.gsc-notify button:hover { background: rgba(255,255,255,0.2); }
@media(max-width:992px) {
  .guides-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .guides-showcase-head h2 { font-size: 26px; }
  .guides-showcase { padding: 60px 0; }
}
@media(max-width:600px) {
  .guides-showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .guides-showcase { padding: 48px 0; }
}

/* Courses Section */
.courses-section {
  background: #FAFAF8;
}
.courses-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.courses-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 10px 28px rgba(30,43,58,0.06);
}
.courses-filter button {
  min-width: 82px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--dark);
  font-family: var(--font-ar);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition);
}
.courses-filter button.active {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease, opacity .25s ease;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.course-card.is-hidden {
  display: none;
}
.course-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-light);
}
.course-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s ease;
}
.course-card:hover .course-thumb img {
  transform: scale(1.06);
}
.course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(30,43,58,0.14);
}
.course-badge.paid { background: var(--rose); }
.course-badge.free { background: var(--teal); }
.course-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}
.course-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.course-meta span {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(91,184,184,0.1);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
}
.course-body h3 {
  min-height: 52px;
  color: var(--dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 10px;
}
.course-body p {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.course-instructor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: rgba(91,184,184,0.04);
}
.course-instructor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(91,184,184,0.3);
}
.course-instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.course-instructor-info { line-height: 1.3; }
.course-instructor-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
}
.course-instructor-title {
  font-size: 11px;
  color: var(--gray);
}
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.course-price {
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 900;
}
.course-price del {
  margin-inline-start: 6px;
  color: var(--gray);
  font-size: 12px;
  font-weight: 500;
}
.course-price.free {
  color: var(--rose);
}
.course-footer a {
  min-width: 112px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}
.course-footer a:hover {
  background: var(--teal-dark);
}

/* Listing Card (Directory Style) */
.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.listing-thumb { aspect-ratio: 3/2; overflow: hidden; position: relative; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.listing-card:hover .listing-thumb img { transform: scale(1.06); }
.listing-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.listing-body { padding: 16px; }
.listing-body h4 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.listing-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--gray); }
.listing-meta span { display: flex; align-items: center; gap: 6px; }
.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.listing-price { font-size: 20px; font-weight: 900; color: var(--teal-dark); }
.listing-price small { font-size: 12px; font-weight: 400; color: var(--gray); }

/* ═══════════════════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════════════════ */
.newsletter-section {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal), #85CADA);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '♡';
  position: absolute;
  top: -20px; right: 5%;
  font-size: 200px;
  color: rgba(255,255,255,0.05);
  line-height: 1;
}
.newsletter-section::after {
  content: '✿';
  position: absolute;
  bottom: -30px; left: 3%;
  font-size: 180px;
  color: rgba(255,255,255,0.05);
}
.newsletter-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  color: var(--white);
}
.newsletter-inner h2 { font-size: 32px; font-weight: 900; margin-bottom: 12px; }
.newsletter-inner p { font-size: 16px; opacity: 0.88; margin-bottom: 32px; }
.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  outline: none;
  font-family: var(--font-ar);
  font-size: 15px;
  direction: rtl;
}
.newsletter-form button {
  padding: 16px 32px;
  background: var(--rose);
  color: var(--white);
  border: none;
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--rose-dark); }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .site-logo img { height: 52px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; opacity: 0.75; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  font-size: 16px;
}
.footer-social a:hover { background: var(--teal); color: var(--white); }
.footer-col h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 30px; height: 2px;
  background: var(--teal);
  border-radius: 1px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; opacity: 0.75; display: flex; align-items: center; gap: 8px; }
.footer-links a::before { content: '›'; color: var(--teal); font-size: 16px; }
.footer-links a:hover { opacity: 1; color: var(--teal); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; gap: 10px; font-size: 14px; opacity: 0.75; }
.footer-contact-item .icon { color: var(--teal); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.6;
}
.footer-bottom a { color: var(--teal); }

/* ═══════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FFF8F5 0%, rgba(91,184,184,0.08) 50%, rgba(232,130,154,0.08) 100%);
  padding: 60px 0;
}
.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.12);
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.auth-side {
  background: linear-gradient(160deg, var(--teal-dark), var(--teal), #85CADA);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.auth-side::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.auth-side-content { position: relative; z-index: 1; }
.auth-side img { height: 80px; filter: brightness(0) invert(1); margin: 0 auto 24px; }
.auth-side h2 { font-size: 28px; font-weight: 900; margin-bottom: 12px; }
.auth-side p { font-size: 15px; opacity: 0.88; line-height: 1.7; margin-bottom: 32px; }
.auth-features { display: flex; flex-direction: column; gap: 14px; text-align: right; }
.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.auth-feature-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.auth-form-panel {
  background: var(--white);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-tabs {
  display: flex;
  background: var(--gray-light);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 32px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
}
.auth-tab.active {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.auth-form-title { margin-bottom: 28px; }
.auth-form-title h3 { font-size: 26px; font-weight: 900; }
.auth-form-title p { font-size: 14px; color: var(--gray); margin-top: 4px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ar);
  font-size: 15px;
  outline: none;
  direction: rtl;
  transition: var(--transition);
  background: var(--white);
}
.form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(91,184,184,0.1); }
.form-input.error { border-color: var(--rose); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-input-wrap { position: relative; }
.form-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 18px;
}
.form-input-wrap .form-input { padding-right: 44px; }
.toggle-password {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  cursor: pointer;
  font-size: 18px;
  background: none;
  border: none;
}
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type="checkbox"] { accent-color: var(--teal); width: 16px; height: 16px; }
.forgot-link { color: var(--teal); font-weight: 700; }
.forgot-link:hover { color: var(--teal-dark); }
.btn-auth {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  justify-content: center;
  margin-bottom: 20px;
}
.social-login { margin-top: 4px; }
.social-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gray);
}
.social-login-divider::before,
.social-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.social-btns { display: flex; gap: 12px; }
.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-family: var(--font-ar);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
  color: var(--dark);
}
.social-btn:hover { border-color: var(--teal); color: var(--teal); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .guides-promo-grid { grid-template-columns: repeat(3, 1fr); }
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles-magazine { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ads-grid { grid-template-columns: 1fr 1fr; }
  .articles-featured-grid { grid-template-columns: 1fr; }
  .modern-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-card-featured { grid-row: auto; }
  .auth-container { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .hero-slider { height: calc(100dvh - 214px); min-height: 360px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-search { display: none; }
  .user-menu { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .ads-grid { grid-template-columns: 1fr; }
  .articles-magazine { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .guides-promo-grid,
  .guides-grid { grid-template-columns: 1fr; }
  .courses-header { align-items: stretch; flex-direction: column; }
  .courses-filter { align-self: flex-start; flex-wrap: wrap; border-radius: var(--radius); }
  .guide-flip-card { min-height: 260px; }
  .guide-card-footer { flex-wrap: wrap; }
  .featured-articles-head { flex-direction: column-reverse; }
  .featured-articles-title { width: 100%; }
  .articles-view-all { align-self: flex-start; }
  .hero-slider { height: calc(100dvh - 172px); min-height: 320px; }
  .hero-stat { padding: 12px 16px; }
  .hero-stat .num { font-size: 20px; }
  .topbar .inner { flex-direction: column; gap: 8px; text-align: center; }
  .topbar-search-btn { display: none; }
  .topbar-actions .user-menu { display: none; }
  .topbar-actions { gap: 8px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .guides-promo-grid,
  .guides-grid,
  .courses-grid,
  .modern-articles-grid { grid-template-columns: 1fr; }
  .courses-filter,
  .courses-filter button { width: 100%; }
  .articles-tabs button { flex: 1; min-width: 88px; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius); }
  .newsletter-form input,
  .newsletter-form button { border-radius: var(--radius); }
  .hero-stats-inner { display: none; }
  .hero-text h1 { font-size: 28px; }
  .auth-form-panel { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   OWL HERO OVERRIDES
   ═══════════════════════════════════════════════════════ */
.hero-slider .owl-stage-outer,
.hero-slider .owl-stage,
.hero-slider .owl-item { height: 100%; }
.hero-slider .owl-item .hero-slide { height: 100%; }
.hero-slider .owl-nav {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  display: flex; justify-content: space-between;
  padding: 0 20px; pointer-events: none; z-index: 10; margin: 0;
}
.hero-slider .owl-nav button {
  pointer-events: all;
  width: 48px !important; height: 48px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.15) !important;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3) !important;
  color: #fff !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  transition: all 0.3s !important;
  font-size: 0 !important;
}
.hero-slider .owl-nav button span { font-size: 28px; line-height: 1; color: #fff; }
.hero-slider .owl-nav button:hover { background: rgba(255,255,255,0.88) !important; }
.hero-slider .owl-nav button:hover span { color: #3D9A9A; }
.hero-slider .owl-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 8px; margin: 0;
}
.hero-slider .owl-dot { background: none !important; border: none !important; padding: 0 !important; }
.hero-slider .owl-dot span {
  width: 8px !important; height: 8px !important;
  border-radius: 4px !important;
  background: rgba(255,255,255,0.4) !important;
  transition: all 0.35s ease !important;
  margin: 0 !important; display: block;
}
.hero-slider .owl-dot.active span {
  width: 28px !important;
  background: #fff !important;
}
.fadeIn  { animation: owlFadeIn  0.9s ease both; }
.fadeOut { animation: owlFadeOut 0.9s ease both; }
@keyframes owlFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes owlFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ═══════════════════════════════════════════════════════
   HERO TEXT ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.hero-el { opacity: 0; }
.hero-el:nth-child(1) { --animate-delay: 0s;    }
.hero-el:nth-child(2) { --animate-delay: 0.25s; }
.hero-el:nth-child(3) { --animate-delay: 0.48s; }
.hero-el:nth-child(4) { --animate-delay: 0.70s; }
.hero-el.animate__animated { --animate-duration: 0.85s; }

/* Page-specific hero slide backgrounds */
.slide-1 .hero-slide-bg {
  background-image: linear-gradient(135deg,#2D2D2D 0%,#5BB8B8 100%);
  background-image: url('https://images.unsplash.com/photo-1555252333-9f8e92e65df9?w=1400&q=80');
}
.slide-2 .hero-slide-bg {
  background-image: url('https://images.unsplash.com/photo-1492725764893-90b379c2b6e7?w=1400&q=80');
}
.slide-3 .hero-slide-bg {
  background-image: url('https://images.unsplash.com/photo-1491013516836-7db643ee125a?w=1400&q=80');
}

/* ═══════════════════════════════════════════════════════
   EXPLORE SECTION
   ═══════════════════════════════════════════════════════ */
.explore-section { background: #FAFAF8; }
.explore-bottom-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.explore-bottom-row .explore-tags-wrap { flex: 1; margin-bottom: 0; }
.explore-promo-card {
  flex: 0 0 300px;
  background: linear-gradient(135deg, #E8829A, #C5607A);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.explore-promo-card h4 { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.explore-promo-card p  { font-size: 14px; opacity: 0.88; margin-bottom: 20px; line-height: 1.6; }
@media (max-width: 768px) {
  .explore-bottom-row { flex-direction: column; }
  .explore-promo-card { flex: none; }
}
.explore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 300px;
  gap: 24px;
  margin-bottom: 28px;
  align-items: start;
}
.explore-widget-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(91,184,184,0.10);
  border: 1px solid #EDE0DA;
}
.widget-header {
  background: linear-gradient(135deg, #5BB8B8, #3D9A9A);
  color: #fff;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-body { padding: 16px; }
.widget-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #2D2D2D;
  margin-bottom: 4px;
  transition: all 0.3s;
}
.widget-cats a:hover { background: rgba(91,184,184,0.1); color: #3D9A9A; }
.widget-cats a .count {
  background: #F5F5F5;
  color: #6B6B6B;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
}
.widget-posts { display: flex; flex-direction: column; gap: 12px; }
.widget-post { display: flex; gap: 10px; }
.widget-post-thumb {
  width: 64px; height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.widget-post-info h5 { font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.widget-post-info span { font-size: 11px; color: #6B6B6B; }
.explore-tags-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid #EDE0DA;
}
.explore-tags-title {
  font-size: 15px;
  font-weight: 800;
  color: #2D2D2D;
  margin-bottom: 16px;
}
.widget-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.widget-tag {
  display: inline-block;
  padding: 6px 14px;
  background: #F5F5F5;
  border-radius: 50px;
  font-size: 13px;
  color: #2D2D2D;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}
.widget-tag:hover { background: #5BB8B8; color: #fff; text-decoration: none; }
.widget-ad {
  background: linear-gradient(135deg, #E8829A, #C5607A);
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.widget-ad h4 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.widget-ad p { font-size: 13px; opacity: 0.88; margin-bottom: 16px; }
@media (max-width: 992px) {
  .explore-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .explore-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   MOBILE MENU — App-Style Slide Panel
   ═══════════════════════════════════════════════════════ */
.mob-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mob-overlay.open { opacity: 1; pointer-events: all; }

.mob-menu {
  position: fixed;
  top: 0; right: 0;
  width: 310px; max-width: 88vw;
  height: 100dvh;
  background: #fff;
  z-index: 9999;
  transform: translateX(110%);
  transition: transform 0.42s cubic-bezier(0.25,0.46,0.45,0.94);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mob-menu.open {
  transform: translateX(0);
  box-shadow: -6px 0 48px rgba(0,0,0,0.22);
}
.mob-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #EDE0DA;
  background: linear-gradient(135deg,#FFF8F5,#fff);
  flex-shrink: 0;
}
.mob-logo img { height: 34px; width: auto; }
.mob-logo .custom-logo-link { display: flex; }
.mob-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: #F5F5F5; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #2D2D2D; transition: all 0.22s;
}
.mob-close:hover { background: #E8829A; color: #fff; }
.mob-user {
  margin: 14px 14px 0;
  padding: 16px;
  background: linear-gradient(135deg,rgba(91,184,184,0.10),rgba(61,154,154,0.05));
  border-radius: 16px;
  border: 1px solid rgba(91,184,184,0.22);
  flex-shrink: 0;
}
.mob-user-title { font-size: 14px; font-weight: 800; color: #1A1A1A; margin-bottom: 3px; }
.mob-user-sub   { font-size: 12px; color: #6B6B6B; margin-bottom: 12px; }
.mob-auth-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mob-btn {
  padding: 9px 0; border-radius: 10px; font-size: 13px; font-weight: 700;
  text-align: center; text-decoration: none; transition: all 0.22s;
  font-family: inherit; cursor: pointer; border: none; display: block;
}
.mob-btn-primary { background: linear-gradient(135deg,#5BB8B8,#3D9A9A); color: #fff; }
.mob-btn-outline { background: transparent; color: #3D9A9A; border: 1.5px solid #5BB8B8; }
.mob-btn:hover   { opacity: 0.85; transform: scale(0.97); }
.mob-user-logged { display: flex; align-items: center; gap: 12px; }
.mob-user-av {
  width: 50px; height: 50px; border-radius: 50%;
  border: 2.5px solid #5BB8B8;
  font-size: 24px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#E8F8F8,#C8ECEC); flex-shrink: 0;
}
.mob-user-name  { font-size: 15px; font-weight: 800; color: #1A1A1A; }
.mob-user-badge {
  display: inline-block; font-size: 11px; color: #fff;
  background: linear-gradient(135deg,#5BB8B8,#3D9A9A);
  padding: 2px 10px; border-radius: 20px; margin-top: 3px;
}
.mob-user-logout {
  margin-right: auto; font-size: 12px; color: #E8829A;
  background: none; border: none; cursor: pointer; font-family: inherit; font-weight: 700;
}
.mob-nav {
  flex: 1; overflow-y: auto; padding: 10px 10px 6px;
  scrollbar-width: none;
}
.mob-nav::-webkit-scrollbar { display: none; }
.mob-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 13px;
  text-decoration: none; color: #2D2D2D;
  font-size: 15px; font-weight: 600;
  margin-bottom: 2px; transition: all 0.22s;
  position: relative;
}
.mob-nav-item:hover, .mob-nav-item.active {
  background: linear-gradient(135deg,rgba(91,184,184,0.13),rgba(91,184,184,0.06));
  color: #3D9A9A;
}
.mob-nav-item.active { font-weight: 800; }
.mob-nav-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #F5F5F5; display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0; transition: all 0.22s;
}
.mob-nav-item:hover .mob-nav-icon,
.mob-nav-item.active .mob-nav-icon {
  background: linear-gradient(135deg,#5BB8B8,#3D9A9A);
}
.mob-nav-arr { margin-right: auto; color: #C5B8B0; font-size: 18px; line-height: 1; }
.mob-nav-badge {
  position: absolute; left: 12px;
  background: #E8829A; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 20px;
}
.mob-divider { height: 1px; background: #EDE0DA; margin: 8px 14px; }
.mob-section-label {
  font-size: 10px; font-weight: 700; color: #A0A0A0;
  text-transform: uppercase; letter-spacing: 0.9px;
  padding: 6px 12px 3px;
}
.mob-menu.open .mob-nav-item { animation: mobNavIn 0.3s ease both; }
.mob-menu.open .mob-nav-item:nth-child(1)  { animation-delay: 0.05s; }
.mob-menu.open .mob-nav-item:nth-child(2)  { animation-delay: 0.10s; }
.mob-menu.open .mob-nav-item:nth-child(3)  { animation-delay: 0.14s; }
.mob-menu.open .mob-nav-item:nth-child(4)  { animation-delay: 0.18s; }
.mob-menu.open .mob-nav-item:nth-child(5)  { animation-delay: 0.22s; }
.mob-menu.open .mob-nav-item:nth-child(6)  { animation-delay: 0.26s; }
.mob-menu.open .mob-nav-item:nth-child(7)  { animation-delay: 0.30s; }
.mob-menu.open .mob-nav-item:nth-child(8)  { animation-delay: 0.34s; }
.mob-menu.open .mob-nav-item:nth-child(9)  { animation-delay: 0.38s; }
.mob-menu.open .mob-nav-item:nth-child(10) { animation-delay: 0.42s; }
@keyframes mobNavIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
.mob-social {
  padding: 14px 18px 18px;
  border-top: 1px solid #EDE0DA;
  background: #FFF8F5; flex-shrink: 0;
}
.mob-social-label { font-size: 11px; color: #888; font-weight: 600; margin-bottom: 10px; }
.mob-social-row { display: flex; gap: 8px; }
.mob-soc-btn {
  width: 40px; height: 40px; border-radius: 12px;
  background: #fff; border: 1px solid #EDE0DA;
  display: flex; align-items: center; justify-content: center;
  color: #555; text-decoration: none; transition: all 0.22s;
}
.mob-soc-btn:hover { background: #5BB8B8; color: #fff; border-color: #5BB8B8; transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════
   HAMBURGER ANIMATION
   ═══════════════════════════════════════════════════════ */
.hamburger { cursor: pointer; }
.hamburger span { transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (min-width: 993px) {
  .mob-overlay, .mob-menu { display: none !important; }
}

/* ═══════════════════════════════════════════════════════
   LIVE SEARCH MODAL
   ═══════════════════════════════════════════════════════ */

/* Overlay */
.mc-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10,10,10,0.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 20px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mc-search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Modal card */
.mc-search-modal {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 22px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 12px 40px rgba(0,0,0,0.18),
    0 40px 80px rgba(0,0,0,0.12),
    0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
  transform: translateY(-20px) scale(0.975);
  transition: transform 0.3s cubic-bezier(0.34,1.46,0.64,1);
  max-height: calc(100dvh - 100px);
  display: flex;
  flex-direction: column;
}
.mc-search-overlay.open .mc-search-modal {
  transform: translateY(0) scale(1);
}

/* ── Head ── */
.mc-search-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #EDE0DA;
  flex-shrink: 0;
  background: #fff;
}
.mc-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F7F4F1;
  border-radius: 50px;
  padding: 0 14px;
  border: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.mc-search-field:focus-within {
  background: #fff;
  border-color: #5BB8B8;
  box-shadow: 0 0 0 4px rgba(91,184,184,0.12);
}
.mc-sf-icon { color: #A0A0A0; flex-shrink: 0; display: flex; line-height: 0; }
.mc-sf-icon svg { transition: color 0.2s; }
.mc-search-field:focus-within .mc-sf-icon { color: #5BB8B8; }
.mc-sf-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-ar);
  font-size: 16px;
  font-weight: 500;
  color: #1A1A1A;
  direction: rtl;
  padding: 14px 0;
}
.mc-sf-input::placeholder { color: #B5B5B5; font-weight: 400; }

/* Spinner */
.mc-sf-loader {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(91,184,184,0.2);
  border-top-color: #5BB8B8;
  border-radius: 50%;
  animation: mcSpin 0.7s linear infinite;
}
.mc-sf-loader:not([hidden]) { display: block; }
@keyframes mcSpin { to { transform: rotate(360deg); } }

/* Clear button */
.mc-sf-clear {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E8E0DA;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B6B6B;
  transition: all 0.18s;
}
.mc-sf-clear:not([hidden]) { display: flex; }
.mc-sf-clear:hover { background: #E8829A; color: #fff; transform: scale(1.1); }

/* Close button */
.mc-search-close-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #F5F0EB;
  border: none;
  cursor: pointer;
  color: #6B6B6B;
  transition: all 0.18s;
}
.mc-search-close-btn:hover { background: #E8829A; color: #fff; }
.mc-search-close-btn kbd {
  font-family: var(--font-ar);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.1);
  line-height: 1.6;
}
.mc-search-close-btn:hover kbd { background: rgba(255,255,255,0.2); border-color: transparent; }

/* ── Body ── */
.mc-search-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #EDE0DA transparent;
}
.mc-search-body::-webkit-scrollbar { width: 4px; }
.mc-search-body::-webkit-scrollbar-thumb { background: #EDE0DA; border-radius: 2px; }

/* Hint */
.mc-search-hint { padding: 22px 22px 18px; }
.mc-sh-label {
  font-size: 11px;
  font-weight: 700;
  color: #A0A0A0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.mc-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mc-chip {
  padding: 8px 16px;
  border-radius: 50px;
  background: #F5F0EB;
  border: 1.5px solid #EDE0DA;
  font-family: var(--font-ar);
  font-size: 13px;
  color: #3D3D3D;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.mc-chip:hover {
  background: linear-gradient(135deg, #5BB8B8, #3D9A9A);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91,184,184,0.3);
}

/* Results */
.mc-search-results:not([hidden]) { display: block; }
.mc-sr-group-label {
  font-size: 10px;
  font-weight: 700;
  color: #A0A0A0;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  padding: 14px 20px 6px;
}
.mc-sr-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  position: relative;
}
.mc-sr-item::after {
  content: '';
  position: absolute;
  right: 20px; left: 20px; bottom: 0;
  height: 1px;
  background: #F5F0EB;
}
.mc-sr-item:last-child::after { display: none; }
.mc-sr-item:hover,
.mc-sr-item.focused {
  background: linear-gradient(90deg, rgba(91,184,184,0.06) 0%, rgba(91,184,184,0.02) 100%);
}
.mc-sr-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #F5F0EB, #EDE0DA);
}
.mc-sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mc-sr-thumb-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.mc-sr-info { flex: 1; min-width: 0; }
.mc-sr-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.mc-sr-type {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #5BB8B8, #3D9A9A);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.mc-sr-cat { font-size: 11px; color: #A0A0A0; }
.mc-sr-title {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  line-height: 1.4;
}
.mc-sr-title mark {
  background: rgba(91,184,184,0.18);
  color: #3D9A9A;
  border-radius: 3px;
  padding: 0 2px;
  font-style: normal;
}
.mc-sr-excerpt {
  font-size: 12px;
  color: #9B9B9B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.mc-sr-arrow {
  color: #D8D0C8;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
  line-height: 0;
}
.mc-sr-item:hover .mc-sr-arrow,
.mc-sr-item.focused .mc-sr-arrow { color: #5BB8B8; transform: translateX(-4px); }

/* Empty */
.mc-search-empty:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 36px;
  text-align: center;
}
.mc-search-empty p {
  font-size: 16px;
  font-weight: 700;
  color: #2D2D2D;
  margin: 18px 0 6px;
}
.mc-search-empty strong { color: #3D9A9A; }
.mc-search-empty span { font-size: 13px; color: #A0A0A0; }

/* Footer */
.mc-search-footer:not([hidden]) { display: block; }
.mc-search-footer {
  padding: 13px 20px;
  border-top: 1px solid #EDE0DA;
  background: #FFF8F5;
  flex-shrink: 0;
}
.mc-search-all-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #3D9A9A;
  text-decoration: none;
  transition: gap 0.2s;
}
.mc-search-all-link:hover { gap: 12px; color: #2D8484; }
.mc-search-all-link strong { color: #1A1A1A; font-weight: 700; }
.mc-search-all-link svg:last-child { margin-right: auto; }

/* Responsive */
@media (max-width: 640px) {
  .mc-search-overlay { padding: 0; align-items: flex-end; }
  .mc-search-modal {
    border-radius: 22px 22px 0 0;
    max-height: 88dvh;
    transform: translateY(30px) scale(1);
  }
  .mc-search-overlay.open .mc-search-modal { transform: translateY(0) scale(1); }
  .topbar-search-btn span { display: none; }
  .topbar-search-btn kbd  { display: none; }
}

/* ════════════════════════════════════════════
   SINGLE POST PAGE
════════════════════════════════════════════ */

/* ─── Reading Progress ─── */
.reading-progress { position:fixed; top:0; left:0; right:0; height:3px; background:rgba(91,184,184,0.15); z-index:9999; }
.reading-progress-bar { height:100%; width:0%; background:linear-gradient(90deg,#5BB8B8,#E8829A); transition:width 0.1s linear; }

/* ─── Breadcrumb ─── */
.breadcrumb-bar { background:#FFF8F5; border-bottom:1px solid #EDE0DA; padding:12px 0; }
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:13px; color:#6B6B6B; flex-wrap:wrap; }
.breadcrumb a { color:#3D9A9A; text-decoration:none; transition:color 0.2s; display:inline-flex; align-items:center; gap:4px; }
.breadcrumb a:hover { color:#5BB8B8; }
.breadcrumb .sep { color:#C5B8B0; font-size:12px; }
.breadcrumb .current { color:#2D2D2D; font-weight:600; }

/* ─── Layout ─── */
.article-wrap { display:flex; align-items:flex-start; gap:40px; padding:40px 0 60px; }
.article-wrap > main { flex:1; min-width:0; }
.article-wrap > .sidebar { width:300px; flex-shrink:0; }

/* ─── Featured Image ─── */
.article-featured-img { width:100%; height:480px; border-radius:20px; overflow:hidden; position:relative; margin-bottom:32px; box-shadow:0 8px 40px rgba(61,154,154,0.15); }
.article-featured-img img { width:100%; height:100%; object-fit:cover; display:block; }
.article-featured-img .img-caption { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(to top,rgba(0,0,0,0.55) 0%,transparent 100%); color:rgba(255,255,255,0.88); font-size:12px; padding:24px 20px 16px; text-align:center; }

/* ─── Category + Title ─── */
.article-cat-line { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.article-cat-link { display:inline-flex; align-items:center; gap:6px; background:linear-gradient(135deg,#5BB8B8,#3D9A9A); color:#fff; font-size:13px; font-weight:700; padding:5px 14px; border-radius:50px; text-decoration:none; }
.article-cat-link:hover { opacity:0.88; }
.article-main-title { font-size:clamp(24px,4vw,36px); font-weight:900; color:#1A1A1A; line-height:1.45; margin-bottom:18px; }
.article-excerpt { font-size:17px; color:#555; line-height:1.8; border-right:4px solid #5BB8B8; padding-right:18px; margin-bottom:24px; font-weight:500; }

/* ─── Meta Bar ─── */
.article-meta-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:18px 20px; background:#FFF8F5; border-radius:14px; border:1px solid #EDE0DA; margin-bottom:32px; }
.meta-author { display:flex; align-items:center; gap:12px; }
.meta-author-avatar { width:46px; height:46px; border-radius:50%; overflow:hidden; border:2px solid #5BB8B8; flex-shrink:0; }
.meta-author-avatar img { width:100%; height:100%; object-fit:cover; }
.meta-author-info .name { font-size:14px; font-weight:800; color:#2D2D2D; }
.meta-author-info .role { font-size:12px; color:#3D9A9A; font-weight:600; }
.meta-stats { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.meta-stat { display:flex; align-items:center; gap:5px; font-size:13px; color:#6B6B6B; }
.meta-stat svg { opacity:0.65; }

/* ─── Share Bar ─── */
.share-bar { display:flex; align-items:center; gap:10px; margin-bottom:36px; flex-wrap:wrap; }
.share-label { font-size:13px; font-weight:700; color:#2D2D2D; margin-left:4px; }
.share-btn { display:inline-flex; align-items:center; gap:7px; padding:8px 16px; border-radius:50px; font-size:13px; font-weight:700; text-decoration:none; cursor:pointer; border:none; transition:all 0.25s; font-family:inherit; }
.share-btn.whatsapp { background:#25D366; color:#fff; }
.share-btn.facebook { background:#1877F2; color:#fff; }
.share-btn.twitter  { background:#000; color:#fff; }
.share-btn.copy     { background:#F5F5F5; color:#2D2D2D; border:1px solid #E0D8D4; }
.share-btn:hover    { opacity:0.88; transform:translateY(-1px); }
.share-save { margin-right:auto; display:inline-flex; align-items:center; gap:7px; padding:8px 18px; border-radius:50px; font-size:13px; font-weight:700; cursor:pointer; border:2px solid #E8829A; color:#E8829A; background:transparent; transition:all 0.25s; font-family:inherit; }
.share-save:hover { background:#E8829A; color:#fff; }

/* ─── Article Content ─── */
.article-content { font-size:16.5px; line-height:1.95; color:#2D2D2D; }
.article-content p { margin-bottom:22px; }
.article-content h2 { font-size:22px; font-weight:900; color:#1A1A1A; margin:40px 0 16px; padding-right:16px; border-right:4px solid #5BB8B8; }
.article-content h3 { font-size:18px; font-weight:800; color:#2D2D2D; margin:28px 0 12px; }
.article-content ul, .article-content ol { padding-right:28px; margin-bottom:22px; }
.article-content li { margin-bottom:10px; }
.article-content ul li::marker { color:#5BB8B8; font-size:18px; }
.article-content ol li::marker { color:#5BB8B8; font-weight:800; }
.article-content strong { color:#1A1A1A; font-weight:800; }
.article-content a { color:#3D9A9A; text-decoration:underline; text-underline-offset:3px; }
.article-content blockquote { margin:32px 0; padding:24px 28px; background:linear-gradient(135deg,rgba(91,184,184,0.08),rgba(91,184,184,0.04)); border-right:5px solid #5BB8B8; border-radius:0 16px 16px 0; position:relative; }
.article-content blockquote::before { content:'"'; position:absolute; top:-10px; right:20px; font-size:80px; color:#5BB8B8; opacity:0.25; font-family:serif; line-height:1; }
.article-content blockquote p { font-size:18px; font-style:italic; font-weight:600; color:#2D2D2D; margin:0; line-height:1.75; }
.article-content blockquote cite { display:block; margin-top:12px; font-size:13px; font-style:normal; color:#3D9A9A; font-weight:700; }

/* Tip Box */
.tip-box { margin:32px 0; padding:20px 24px; border-radius:14px; display:flex; gap:16px; align-items:flex-start; }
.tip-box.tip-teal { background:linear-gradient(135deg,rgba(91,184,184,0.12),rgba(61,154,154,0.06)); border:1px solid rgba(91,184,184,0.3); }
.tip-box.tip-rose { background:linear-gradient(135deg,rgba(232,130,154,0.10),rgba(197,96,122,0.05)); border:1px solid rgba(232,130,154,0.25); }
.tip-box.tip-gold { background:linear-gradient(135deg,rgba(201,169,110,0.12),rgba(168,128,64,0.06)); border:1px solid rgba(201,169,110,0.3); }
.tip-icon { font-size:28px; line-height:1; flex-shrink:0; margin-top:2px; }
.tip-content strong { display:block; font-size:15px; font-weight:800; margin-bottom:6px; color:#1A1A1A; }
.tip-content p { font-size:14.5px; color:#444; margin:0; line-height:1.7; }

/* Inline Image */
.article-inline-img { margin:32px 0; border-radius:16px; overflow:hidden; box-shadow:0 4px 24px rgba(0,0,0,0.10); }
.article-inline-img img { width:100%; height:300px; object-fit:cover; display:block; }
.article-inline-img figcaption { text-align:center; font-size:12px; color:#6B6B6B; padding:10px 16px; background:#FAFAFA; border-top:1px solid #EDE0DA; }

/* Numbered Points */
.numbered-points { counter-reset:points; list-style:none; padding:0; margin-bottom:22px; }
.numbered-points li { counter-increment:points; display:flex; gap:16px; align-items:flex-start; margin-bottom:18px; padding:16px 18px; background:#FFF8F5; border-radius:12px; border:1px solid #EDE0DA; }
.numbered-points li::before { content:counter(points); display:flex; align-items:center; justify-content:center; min-width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg,#5BB8B8,#3D9A9A); color:#fff; font-size:15px; font-weight:900; flex-shrink:0; }
.numbered-points li .point-content strong { display:block; font-size:15px; margin-bottom:4px; }
.numbered-points li .point-content span { font-size:13.5px; color:#555; line-height:1.65; }

/* ─── Tags ─── */
.article-tags { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:40px 0 32px; padding-top:28px; border-top:1px solid #EDE0DA; }
.article-tags .tags-label { font-size:13px; font-weight:700; color:#6B6B6B; }
.article-tag { padding:5px 14px; background:#F5F5F5; border-radius:50px; font-size:13px; color:#2D2D2D; text-decoration:none; transition:all 0.25s; border:1px solid #EDE0DA; }
.article-tag:hover { background:#5BB8B8; color:#fff; border-color:#5BB8B8; }

/* ─── Author Card ─── */
.author-card { display:flex; gap:20px; align-items:flex-start; padding:28px; background:linear-gradient(135deg,#FFF8F5,#fff); border-radius:20px; border:1px solid #EDE0DA; margin-bottom:40px; box-shadow:0 4px 20px rgba(91,184,184,0.08); }
.author-avatar-lg { width:90px; height:90px; border-radius:50%; overflow:hidden; border:3px solid #5BB8B8; flex-shrink:0; }
.author-avatar-lg img { width:100%; height:100%; object-fit:cover; }
.author-card-info .author-name { font-size:18px; font-weight:900; color:#1A1A1A; margin-bottom:4px; }
.author-card-info .author-title { font-size:13px; color:#3D9A9A; font-weight:700; margin-bottom:12px; display:flex; align-items:center; gap:6px; }
.author-card-info .author-bio { font-size:14px; color:#555; line-height:1.75; margin-bottom:16px; }
.author-card-socials { display:flex; gap:8px; }
.author-social-btn { width:34px; height:34px; border-radius:50%; background:#F5F5F5; border:1px solid #EDE0DA; display:flex; align-items:center; justify-content:center; cursor:pointer; text-decoration:none; color:#555; transition:all 0.25s; }
.author-social-btn:hover { background:#5BB8B8; color:#fff; border-color:#5BB8B8; }

/* ─── Related ─── */
.related-section { margin-bottom:48px; }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:24px; }
.related-card { border-radius:16px; overflow:hidden; background:#fff; border:1px solid #EDE0DA; box-shadow:0 4px 16px rgba(91,184,184,0.08); transition:all 0.3s; text-decoration:none; display:block; }
.related-card:hover { transform:translateY(-4px); box-shadow:0 8px 30px rgba(91,184,184,0.18); }
.related-thumb { height:170px; overflow:hidden; }
.related-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.4s; }
.related-card:hover .related-thumb img { transform:scale(1.05); }
.related-body { padding:16px; }
.related-cat { font-size:11px; font-weight:700; color:#3D9A9A; margin-bottom:8px; }
.related-body h5 { font-size:14px; font-weight:800; color:#1A1A1A; line-height:1.5; margin-bottom:10px; }
.related-meta { font-size:12px; color:#6B6B6B; }

/* ─── Sidebar ─── */
.sidebar { display:flex; flex-direction:column; gap:24px; }
.sidebar-widget { background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 4px 24px rgba(91,184,184,0.10); border:1px solid #EDE0DA; }
.widget-header { background:linear-gradient(135deg,#5BB8B8,#3D9A9A); color:#fff; padding:14px 20px; font-size:15px; font-weight:800; display:flex; align-items:center; gap:8px; }
.widget-body { padding:16px; }
.widget-cats a { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-radius:8px; font-size:14px; color:#2D2D2D; margin-bottom:4px; text-decoration:none; transition:all 0.3s; }
.widget-cats a:hover { background:rgba(91,184,184,0.1); color:#3D9A9A; }
.widget-cats a .count { background:#F5F5F5; color:#6B6B6B; font-size:11px; padding:2px 8px; border-radius:20px; }
.widget-posts { display:flex; flex-direction:column; gap:12px; }
.widget-post { display:flex; gap:10px; text-decoration:none; }
.widget-post:hover .widget-post-info h5 { color:#3D9A9A; }
.widget-post-thumb { width:64px; height:64px; border-radius:8px; overflow:hidden; flex-shrink:0; }
.widget-post-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.widget-post-info h5 { font-size:13px; font-weight:700; line-height:1.4; margin-bottom:4px; color:#1A1A1A; transition:color 0.25s; }
.widget-post-info span { font-size:11px; color:#6B6B6B; }
.widget-tags { display:flex; flex-wrap:wrap; gap:8px; }
.widget-tag { padding:6px 14px; background:#F5F5F5; border-radius:50px; font-size:13px; color:#2D2D2D; transition:all 0.3s; border:1px solid #EDE0DA; text-decoration:none; display:inline-block; }
.widget-tag:hover { background:#5BB8B8; color:#fff; border-color:#5BB8B8; }

/* ─── Back to Top ─── */
.back-to-top { position:fixed; bottom:30px; left:30px; width:46px; height:46px; border-radius:50%; background:linear-gradient(135deg,#5BB8B8,#3D9A9A); color:#fff; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 16px rgba(61,154,154,0.4); opacity:0; transform:translateY(20px); transition:all 0.3s; z-index:900; }
.back-to-top.visible { opacity:1; transform:translateY(0); }
.back-to-top:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(61,154,154,0.45); }

/* ─── Responsive ─── */
@media (max-width:992px) {
  .article-wrap { flex-direction:column; }
  .article-wrap > main { width:100%; }
  .article-wrap > .sidebar { display:none; }
  .related-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:600px) {
  .article-featured-img { height:260px; }
  .related-grid { grid-template-columns:1fr; }
  .share-bar { gap:6px; }
  .share-btn { padding:7px 12px; font-size:12px; }
}

/* ════════════════════════════════════════════
   COMMENTS
════════════════════════════════════════════ */
.comments-section { margin-bottom: 48px; }

.comments-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }

.comment-item {
  display: flex; gap: 14px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #EDE0DA;
}
.comment-item.reply { margin-right: 48px; background: #FFF8F5; }

.comment-avatar {
  width: 46px; height: 46px;
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #5BB8B8, #3D9A9A);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.comment-body { flex: 1; min-width: 0; }

.comment-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 8px;
}
.comment-name { font-size: 14px; font-weight: 800; color: #1A1A1A; display: flex; align-items: center; gap: 6px; }
.comment-name.is-author { color: #3D9A9A; }
.author-badge {
  background: #E8F8F8; color: #3D9A9A;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
}
.comment-time { font-size: 12px; color: #6B6B6B; }

.comment-text { font-size: 14px; color: #444; line-height: 1.75; margin-bottom: 10px; }

.comment-reply-btn, .comment-reply-btn a {
  font-size: 13px; color: #3D9A9A; font-weight: 700;
  background: none; border: none; padding: 0;
  cursor: pointer; font-family: inherit; text-decoration: none;
  transition: color 0.2s;
}
.comment-reply-btn:hover, .comment-reply-btn a:hover { color: #5BB8B8; }

/* Comment Form */
.comment-form-wrap {
  margin-top: 32px; padding: 28px;
  background: linear-gradient(135deg, #FFF8F5, #fff);
  border-radius: 20px; border: 1px solid #EDE0DA;
}
.comment-form-wrap h4 { font-size: 18px; font-weight: 900; margin-bottom: 20px; color: #1A1A1A; }

.mc-cf .form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 14px;
}
.mc-cf .form-field { display: flex; flex-direction: column; gap: 6px; }
.mc-cf .form-field.full,
.mc-cf .form-field:only-child { grid-column: 1 / -1; }
.mc-cf label { font-size: 13px; font-weight: 700; color: #2D2D2D; }
.mc-cf label span { color: #E8829A; }
.mc-cf input[type="text"],
.mc-cf input[type="email"],
.mc-cf textarea {
  padding: 12px 14px;
  border: 1.5px solid #EDE0DA;
  border-radius: 10px;
  font-size: 14px; font-family: inherit; color: #2D2D2D;
  background: #fff; transition: border-color 0.25s; resize: vertical;
  width: 100%;
}
.mc-cf input:focus, .mc-cf textarea:focus {
  outline: none; border-color: #5BB8B8;
  box-shadow: 0 0 0 3px rgba(91,184,184,0.12);
}
.mc-cf-submit { margin-top: 16px; }
.mc-cancel-reply { display: block; margin-top: 8px; font-size: 13px; }
.mc-cancel-reply a { color: #E8829A; text-decoration: none; font-weight: 700; }

.mc-comments-closed { font-size: 14px; color: #6B6B6B; margin-top: 24px; }
.mc-comments-closed a { color: #3D9A9A; font-weight: 700; }

.comments-nav { margin-top: 24px; display: flex; gap: 8px; }

@media (max-width: 600px) {
  .mc-cf .form-row { grid-template-columns: 1fr; }
  .comment-item.reply { margin-right: 24px; }
}

/* ════════════════════════════════════════════════════════
   ARCHIVE / CATEGORY PAGE
   ════════════════════════════════════════════════════════ */

/* ── Category Banner ── */
.cat-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1A5F5F 0%, #3D9A9A 45%, #5BB8B8 100%);
  padding: 56px 0 0;
}
.cat-banner-bg {
  position: absolute; inset: 0; opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 50%, #fff 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, #fff 0%, transparent 40%);
}
.cat-banner-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 28px 28px; opacity: 0.5;
}
.cat-banner-inner {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; gap: 32px;
}
.cat-icon-wrap {
  width: 100px; height: 100px;
  border-radius: 28px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  margin-bottom: 28px;
}
.cat-banner-text { padding-bottom: 32px; flex: 1; }
.cat-banner-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.92);
  font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 50px;
  margin-bottom: 14px; letter-spacing: 0.5px;
}
.cat-banner-title {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900; color: #fff;
  margin-bottom: 10px; line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.cat-banner-desc {
  font-size: 16px; color: rgba(255,255,255,0.82);
  line-height: 1.7; max-width: 520px; margin-bottom: 20px;
}
.cat-banner-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.cat-stat {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.88); font-size: 14px; font-weight: 600;
}
.cat-stat-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.15); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.cat-stat strong { color: #fff; font-size: 18px; font-weight: 900; }
.cat-banner-wave { display: block; width: 100%; margin-bottom: -2px; }

/* Sub-category chips */
.cat-sub-bar {
  background: rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px); padding: 12px 0;
}
.cat-sub-chips {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
}
.cat-sub-chips::-webkit-scrollbar { display: none; }
.cat-sub-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  white-space: nowrap; text-decoration: none;
  transition: all 0.22s; cursor: pointer;
}
.cat-sub-chip:hover,
.cat-sub-chip.active {
  background: rgba(255,255,255,0.92);
  color: #3D9A9A; border-color: transparent; font-weight: 700;
}
.cat-sub-chip .chip-count {
  background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.9);
  font-size: 11px; padding: 1px 7px; border-radius: 20px;
}
.cat-sub-chip.active .chip-count,
.cat-sub-chip:hover .chip-count {
  background: rgba(61,154,154,0.15); color: #3D9A9A;
}

/* ── Archive Layout ── */
.archive-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 36px 0 60px;
}

/* ── Filter / Sort Bar ── */
.filter-bar {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  background: #fff; border-radius: 14px;
  border: 1px solid #EDE0DA;
  box-shadow: 0 2px 12px rgba(91,184,184,0.07);
  margin-bottom: 28px; flex-wrap: wrap;
}
.filter-bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-bar-left  { display: flex; align-items: center; gap: 10px; }
.filter-label { font-size: 13px; font-weight: 700; color: #6B6B6B; }
.sort-tabs {
  display: flex; gap: 4px;
  background: #F5F5F5; border-radius: 10px; padding: 3px;
}
.sort-tab {
  padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: #6B6B6B;
  cursor: pointer; border: none; background: transparent;
  font-family: inherit; transition: all 0.22s; white-space: nowrap;
}
.sort-tab.active {
  background: #fff; color: #3D9A9A; font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sort-tab:hover:not(.active) { color: #2D2D2D; }
.results-count { font-size: 13px; color: #6B6B6B; }
.results-count strong { color: #3D9A9A; font-weight: 800; }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px; height: 36px; border-radius: 9px;
  background: #F5F5F5; border: 1px solid #EDE0DA;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #888; transition: all 0.22s;
}
.view-btn.active, .view-btn:hover {
  background: #5BB8B8; color: #fff; border-color: #5BB8B8;
}

/* ── Archive Grid ── */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.archive-card {
  background: #fff; border-radius: 18px;
  overflow: hidden; border: 1px solid #EDE0DA;
  box-shadow: 0 4px 18px rgba(91,184,184,0.08);
  transition: all 0.3s;
  display: flex; flex-direction: column;
}
.archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(91,184,184,0.18);
}
.archive-card-thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10; flex-shrink: 0;
}
.archive-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.archive-card:hover .archive-card-thumb img { transform: scale(1.06); }
.archive-card-badge {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, #5BB8B8, #3D9A9A);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 50px;
}
.archive-card-body {
  padding: 18px; display: flex; flex-direction: column; flex: 1;
}
.archive-card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.archive-card-author {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #6B6B6B;
}
.author-mini-av {
  width: 22px; height: 22px; border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #5BB8B8, #3D9A9A);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-mini-av img { width: 100%; height: 100%; object-fit: cover; }
.archive-card-date { font-size: 12px; color: #A0A0A0; }
.archive-card-title {
  font-size: 16px; font-weight: 800; color: #1A1A1A;
  line-height: 1.5; margin-bottom: 8px; transition: color 0.22s;
}
.archive-card-title a { color: inherit; text-decoration: none; }
.archive-card:hover .archive-card-title { color: #3D9A9A; }
.archive-card-excerpt {
  font-size: 13.5px; color: #666; line-height: 1.7;
  margin-bottom: 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.archive-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid #F0E8E4;
}
.archive-card-stats { display: flex; gap: 12px; }
.arc-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #A0A0A0;
}
.archive-card-read {
  font-size: 13px; font-weight: 700; color: #3D9A9A;
  text-decoration: none; display: flex; align-items: center; gap: 4px;
  transition: gap 0.22s;
}
.archive-card-read:hover { gap: 8px; }

/* Featured card (first – spans both columns) */
.archive-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.archive-card.featured .archive-card-thumb {
  width: 46%; aspect-ratio: unset; flex-shrink: 0;
}
.archive-card.featured .archive-card-body { padding: 28px; justify-content: center; }
.archive-card.featured .archive-card-title { font-size: 22px; margin-bottom: 12px; }
.archive-card.featured .archive-card-excerpt {
  -webkit-line-clamp: 3; font-size: 15px; margin-bottom: 20px;
}

/* ── Archive List View ── */
.archive-list { display: flex; flex-direction: column; gap: 20px; }
.archive-list-item {
  display: flex; gap: 20px;
  background: #fff; border-radius: 16px;
  overflow: hidden; border: 1px solid #EDE0DA;
  box-shadow: 0 3px 14px rgba(91,184,184,0.07);
  transition: all 0.3s;
}
.archive-list-item:hover {
  transform: translateX(-4px);
  box-shadow: 0 8px 28px rgba(91,184,184,0.16);
}
.archive-list-thumb {
  width: 220px; flex-shrink: 0;
  overflow: hidden; position: relative;
}
.archive-list-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.archive-list-item:hover .archive-list-thumb img { transform: scale(1.05); }
.archive-list-badge {
  position: absolute; top: 10px; right: 10px;
  background: linear-gradient(135deg, #5BB8B8, #3D9A9A);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
}
.archive-list-body {
  padding: 20px 20px 20px 0;
  display: flex; flex-direction: column; justify-content: center; flex: 1;
}
.archive-list-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.archive-list-title {
  font-size: 18px; font-weight: 800; color: #1A1A1A;
  line-height: 1.45; margin-bottom: 10px; transition: color 0.22s;
}
.archive-list-title a { color: inherit; text-decoration: none; }
.archive-list-item:hover .archive-list-title { color: #3D9A9A; }
.archive-list-excerpt {
  font-size: 14px; color: #666; line-height: 1.75;
  margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.archive-list-footer {
  display: flex; align-items: center; justify-content: space-between;
}

/* ── Pagination ── */
.pagination-wrap { margin-top: 48px; }
.pagination-wrap ul { display: flex; align-items: center; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.pagination-wrap .page-numbers {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; text-decoration: none;
  border: 1.5px solid #EDE0DA; background: #fff; color: #2D2D2D;
  transition: all 0.22s; font-family: inherit;
}
.pagination-wrap .page-numbers:hover { border-color: #5BB8B8; color: #3D9A9A; }
.pagination-wrap .page-numbers.current {
  background: linear-gradient(135deg, #5BB8B8, #3D9A9A);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(91,184,184,0.4);
}
.pagination-wrap .page-numbers.dots {
  border-color: transparent; background: transparent;
  cursor: default; color: #A0A0A0;
}
.pagination-wrap .page-numbers.prev,
.pagination-wrap .page-numbers.next {
  width: auto; padding: 0 18px; gap: 6px;
  display: inline-flex; align-items: center;
}

/* ── Active category link ── */
.widget-cats a.active-cat {
  background: rgba(91,184,184,0.1); color: #3D9A9A; font-weight: 800;
}

/* ── Empty state ── */
.arc-empty {
  text-align: center; padding: 80px 24px;
  background: #fff; border-radius: 18px;
  border: 1px solid #EDE0DA;
}
.arc-empty h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: #1A1A1A; }
.arc-empty p  { font-size: 14px; color: #6B6B6B; }

/* ── Archive Responsive ── */
@media (max-width: 1024px) {
  .archive-wrap { grid-template-columns: 1fr; }
  .archive-wrap .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
  .cat-banner-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cat-icon-wrap { width: 72px; height: 72px; font-size: 36px; margin-bottom: 0; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card.featured { flex-direction: column; }
  .archive-card.featured .archive-card-thumb { width: 100%; aspect-ratio: 16/9; }
  .archive-list-thumb { width: 140px; }
  .archive-wrap .sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .sort-tabs { flex-wrap: wrap; }
  .archive-list-item { flex-direction: column; }
  .archive-list-thumb { width: 100%; height: 180px; }
  .archive-list-body { padding: 16px; }
}

/* ════════════════════════════════════════════════════════
   WOOCOMMERCE — SINGLE PRODUCT PAGE
   ════════════════════════════════════════════════════════ */

.mc-product-page {
  padding: 0 0 80px;
  background: #FAFAF8;
  min-height: 60vh;
}

/* ── Breadcrumb ── */
.mc-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: #888; padding: 18px 0;
}
.mc-breadcrumb a { color: #3D9A9A; text-decoration: none; font-weight: 600; transition: color 0.2s; }
.mc-breadcrumb a:hover { color: #1A5F5F; }
.bc-sep { color: #C8C0BA; font-size: 11px; }
.bc-current { color: #444; font-weight: 700; }

/* ── Product category label ── */
.mc-product-cat-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(91,184,184,0.12);
  color: #3D9A9A; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 14px;
  text-decoration: none;
}
.mc-product-cat-label a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════
   NORMAL PRODUCT — two-column layout
   ══════════════════════════════════════ */
.mc-product-wrap {
  display: flex; gap: 60px; align-items: flex-start;
  padding: 40px 0 48px;
}

/* ── 3D Book (Visual Column) ── */
.mc-product-visual {
  flex-shrink: 0; width: 300px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}

.mc-product-book3d {
  perspective: 800px;
  width: 220px; height: 300px;
  position: relative;
}
.mc-product-book-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(4deg);
  transition: transform 0.5s ease;
}
.mc-product-book3d:hover .mc-product-book-inner {
  transform: rotateY(-8deg) rotateX(2deg);
}

.mc-product-book-front,
.mc-product-book-spine,
.mc-product-book-back {
  position: absolute; border-radius: 3px;
}
.mc-product-book-front {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  background-color: #3D9A9A;
  backface-visibility: hidden;
  box-shadow: 6px 6px 30px rgba(0,0,0,0.3);
  transform: translateZ(10px);
  border-radius: 4px 12px 12px 4px;
}
.mc-product-book-spine {
  width: 20px; height: 100%;
  background: linear-gradient(180deg, #2D7A7A, #1A5F5F);
  right: calc(100% - 1px); top: 0;
  transform-origin: right;
  transform: rotateY(90deg) translateZ(10px);
}
.mc-product-book-back {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #3D9A9A, #1A5F5F);
  transform: translateZ(-10px);
  border-radius: 4px;
}
.mc-product-book-shadow {
  position: absolute; bottom: -30px; left: 50%;
  transform: translateX(-50%);
  width: 180px; height: 30px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, transparent 70%);
  filter: blur(8px);
}

.mc-product-zoom-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #888; text-decoration: none;
  transition: color 0.2s;
}
.mc-product-zoom-link:hover { color: #3D9A9A; }

.mc-product-gallery {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.mc-product-gallery-thumb {
  width: 60px; height: 60px; border-radius: 10px;
  overflow: hidden; border: 2px solid #EDE0DA; cursor: pointer;
  transition: border-color 0.2s;
}
.mc-product-gallery-thumb:hover { border-color: #5BB8B8; }
.mc-product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mc-product-no-cover {
  width: 220px; height: 300px; border-radius: 4px 12px 12px 4px;
  background: linear-gradient(135deg, #3D9A9A, #1A5F5F);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  box-shadow: 6px 6px 30px rgba(0,0,0,0.25);
}

/* ── Info Column ── */
.mc-product-info { flex: 1; min-width: 0; }

.mc-product-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900; color: #1A1A1A;
  line-height: 1.3; margin-bottom: 14px;
}

/* Stars */
.mc-product-rating {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.mc-stars { display: flex; gap: 2px; }
.star-filled { color: #F5A623; font-size: 18px; }
.star-empty  { color: #DDD;    font-size: 18px; }
.mc-rating-count { font-size: 13px; color: #888; }

.mc-product-short-desc {
  font-size: 15.5px; color: #555; line-height: 1.85;
  margin-bottom: 28px;
}
.mc-product-short-desc p { margin: 0 0 10px; }

/* Price + Cart */
.mc-product-purchase {
  background: linear-gradient(135deg, #F0FBFB, #fff);
  border: 1.5px solid #B9E4E4;
  border-radius: 18px; padding: 24px 28px;
  margin-bottom: 22px;
}
.mc-product-price {
  margin-bottom: 16px;
}
.mc-product-price .woocommerce-Price-amount {
  font-size: 32px; font-weight: 900; color: #1A5F5F;
}
.mc-product-price del .woocommerce-Price-amount {
  font-size: 18px; color: #A0A0A0; font-weight: 600;
}
.mc-product-price ins { text-decoration: none; }

/* WooCommerce add-to-cart button override */
.mc-product-purchase .single_add_to_cart_button,
.mc-product-purchase button[type="submit"] {
  background: linear-gradient(135deg, #5BB8B8, #3D9A9A) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 36px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  display: inline-flex !important; align-items: center !important; gap: 8px !important;
  box-shadow: 0 6px 24px rgba(61,154,154,0.4) !important;
  width: 100% !important; justify-content: center !important;
}
.mc-product-purchase .single_add_to_cart_button:hover,
.mc-product-purchase button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 32px rgba(61,154,154,0.5) !important;
}

/* Quantity */
.mc-product-purchase .quantity { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mc-product-purchase .quantity input {
  width: 70px; text-align: center;
  border: 1.5px solid #B9E4E4; border-radius: 10px;
  padding: 8px; font-size: 16px; font-family: inherit;
}

/* Trust Badges */
.mc-trust-badges {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px;
}
.mc-trust-item {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #EDE0DA;
  border-radius: 10px; padding: 8px 14px;
  font-size: 12.5px; color: #555; font-weight: 600;
}
.mc-trust-icon { font-size: 16px; }

/* Share */
.mc-product-share {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #888;
}
.mc-share-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all 0.22s;
}
.mc-share-wa { background: #25D366; color: #fff; }
.mc-share-wa:hover { background: #128C7E; transform: scale(1.1); }

/* ── Full Description Section ── */
.mc-product-desc-section {
  background: #fff; border-radius: 22px;
  border: 1px solid #EDE0DA;
  padding: 36px 40px; margin-top: 8px; margin-bottom: 32px;
}
.mc-product-desc-body {
  font-size: 15.5px; color: #444; line-height: 2;
  margin-top: 20px;
}
.mc-product-desc-body h2,
.mc-product-desc-body h3 { color: #1A1A1A; font-weight: 800; margin: 28px 0 12px; }
.mc-product-desc-body ul,
.mc-product-desc-body ol { padding-right: 24px; margin: 14px 0; }
.mc-product-desc-body li { margin-bottom: 8px; }

/* ── Reviews ── */
.mc-product-reviews-section { margin-top: 8px; }

/* ══════════════════════════════════════
   COMING SOON PRODUCT LAYOUT
   ══════════════════════════════════════ */
.mc-product-cs {
  display: flex; gap: 64px; align-items: center;
  padding: 48px 0 64px; min-height: 520px;
}

/* 3D Book — CS Version */
.mc-cs-visual {
  flex-shrink: 0; width: 280px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  position: relative;
}

.mc-cs-book3d {
  perspective: 800px;
  width: 210px; height: 290px;
  position: relative;
}
.mc-cs-book-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(5deg);
  animation: mcBookFloat 4s ease-in-out infinite;
}
@keyframes mcBookFloat {
  0%, 100% { transform: rotateY(-22deg) rotateX(5deg) translateY(0); }
  50%       { transform: rotateY(-22deg) rotateX(5deg) translateY(-12px); }
}
.mc-cs-book-front {
  position: absolute; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  background-color: #3D9A9A;
  transform: translateZ(10px);
  border-radius: 4px 12px 12px 4px;
  box-shadow: 6px 6px 40px rgba(0,0,0,0.35);
  filter: brightness(0.88) saturate(0.9);
}
.mc-cs-book-spine {
  position: absolute; width: 20px; height: 100%;
  background: linear-gradient(180deg, #2D7A7A, #1A5F5F);
  right: calc(100% - 1px); top: 0;
  transform-origin: right;
  transform: rotateY(90deg) translateZ(10px);
}
.mc-cs-book-back {
  position: absolute; width: 100%; height: 100%;
  background: linear-gradient(135deg, #3D9A9A, #1A5F5F);
  transform: translateZ(-10px); border-radius: 4px;
}
.mc-cs-book-shadow {
  position: absolute; bottom: -32px; left: 50%;
  transform: translateX(-50%);
  width: 160px; height: 30px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.32) 0%, transparent 70%);
  filter: blur(8px);
  animation: mcShadowFloat 4s ease-in-out infinite;
}
@keyframes mcShadowFloat {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scaleX(1); }
  50%       { opacity: 0.45; transform: translateX(-50%) scaleX(0.82); }
}
.mc-cs-no-cover {
  width: 210px; height: 290px; border-radius: 4px 12px 12px 4px;
  background: linear-gradient(135deg, #3D9A9A, #1A5F5F);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  box-shadow: 6px 6px 30px rgba(0,0,0,0.25);
}

/* "قريباً" badge */
.mc-cs-badge {
  background: linear-gradient(135deg, #E8829A, #C8607A);
  color: #fff; font-size: 15px; font-weight: 900;
  padding: 7px 24px; border-radius: 50px;
  box-shadow: 0 6px 20px rgba(232,130,154,0.45);
  letter-spacing: 1px;
}

/* CS Info Column */
.mc-cs-info { flex: 1; min-width: 0; }

.mc-cs-title {
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 900; color: #1A1A1A;
  line-height: 1.3; margin-bottom: 16px;
}

.mc-cs-desc {
  font-size: 15.5px; color: #555; line-height: 1.85;
  margin-bottom: 28px; max-width: 520px;
}

/* Perks */
.mc-cs-perks { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.mc-cs-perk {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1px solid #EDE0DA;
  border-radius: 14px; padding: 14px 18px;
}
.mc-cs-perk-icon { font-size: 26px; flex-shrink: 0; margin-top: 2px; }
.mc-cs-perk strong { display: block; font-size: 14px; font-weight: 800; color: #1A1A1A; margin-bottom: 4px; }
.mc-cs-perk span { font-size: 13px; color: #777; }

/* Notify Box */
.mc-cs-notify-box {
  background: linear-gradient(135deg, #F0FBFB, #fff);
  border: 1.5px solid #B9E4E4;
  border-radius: 20px; padding: 26px 28px;
  margin-bottom: 24px;
}
.mc-cs-notify-label {
  font-size: 15px; font-weight: 800; color: #1A1A1A;
  margin-bottom: 14px;
}
.mc-cs-notify-form {
  display: flex; gap: 10px; margin-bottom: 10px;
}
.mc-cs-notify-form input[type="email"] {
  flex: 1; padding: 12px 16px;
  border: 1.5px solid #B9E4E4; border-radius: 12px;
  font-size: 14px; font-family: inherit; color: #2D2D2D;
  background: #fff; transition: border-color 0.25s;
}
.mc-cs-notify-form input[type="email"]:focus {
  outline: none; border-color: #3D9A9A;
  box-shadow: 0 0 0 3px rgba(91,184,184,0.15);
}
.mc-cs-notify-form .btn-primary {
  white-space: nowrap; padding: 12px 24px; font-size: 14px;
}
.mc-cs-notify-note { font-size: 12px; color: #A0A0A0; }
.mc-cs-success {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: #3D9A9A;
  margin-top: 8px;
}
.mc-cs-success[hidden] { display: none !important; }
.mc-cs-success-icon { font-size: 20px; }

/* CS Share row */
.mc-cs-share {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #888;
}

/* ── Product page responsive ── */
@media (max-width: 960px) {
  .mc-product-wrap {
    flex-direction: column; align-items: center; gap: 32px; padding: 28px 0;
  }
  .mc-product-visual { width: 100%; }
  .mc-product-cs {
    flex-direction: column; align-items: center; text-align: center; gap: 32px; padding: 32px 0;
  }
  .mc-cs-perks { max-width: 480px; }
  .mc-cs-notify-box { max-width: 480px; }
  .mc-cs-notify-form { flex-direction: column; }
  .mc-cs-share { justify-content: center; }
  .mc-product-share { justify-content: center; }
  .mc-trust-badges { justify-content: center; }
}
@media (max-width: 600px) {
  .mc-product-book3d { width: 180px; height: 245px; }
  .mc-cs-book3d     { width: 180px; height: 245px; }
  .mc-product-desc-section { padding: 24px 20px; }
  .mc-product-purchase { padding: 18px 20px; }
}

/* ============================================================
   WooCommerce - Single Product Redesign Override
   ============================================================ */

.mc-product-page {
  padding: 0 0 96px;
  background:
    radial-gradient(circle at top right, rgba(232,130,154,0.10), transparent 28%),
    radial-gradient(circle at top left, rgba(91,184,184,0.14), transparent 32%),
    linear-gradient(180deg, #fffdfb 0%, #fff7f3 100%);
}

.mc-product-page .container {
  max-width: 1240px;
}

.mc-breadcrumb {
  padding: 22px 0 18px;
}

.mc-product-hero {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 32px;
}

.mc-product-media-card,
.mc-product-summary,
.mc-product-content-section {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(237,224,218,0.95);
  box-shadow: 0 20px 55px rgba(91,184,184,0.10);
  backdrop-filter: blur(10px);
}

.mc-product-media-card {
  border-radius: 28px;
  padding: 22px;
  position: sticky;
  top: 110px;
}

.mc-product-media-shell {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fdf3ef);
  border: 1px solid rgba(232,130,154,0.14);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mc-product-media-shell::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(91,184,184,0.18);
  pointer-events: none;
}

.mc-product-media-shell-soon {
  min-height: 440px;
}

.mc-product-main-link {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}

.mc-product-main-image {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  margin: 0 auto;
}

.mc-product-main-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal), var(--rose));
  color: #fff;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0;
}

.mc-floating-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(232,130,154,0.28);
}

.mc-product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mc-product-thumb {
  padding: 0;
  border: 1px solid rgba(237,224,218,0.95);
  background: #fff;
  border-radius: 16px;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mc-product-thumb:hover,
.mc-product-thumb.is-active {
  border-color: rgba(91,184,184,0.52);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(91,184,184,0.14);
}

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

.mc-product-media-note {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5e716d;
  font-size: 13px;
  font-weight: 600;
}

.mc-note-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--rose));
  flex-shrink: 0;
}

.mc-product-summary {
  border-radius: 30px;
  padding: 34px;
}

.mc-product-summary-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.mc-product-stock,
.mc-product-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
}

.mc-product-stock::before,
.mc-product-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}

.mc-product-stock.is-in-stock {
  background: rgba(91,184,184,0.14);
  color: #247a7a;
}

.mc-product-stock.is-out-of-stock {
  background: rgba(232,130,154,0.14);
  color: #b44c67;
}

.mc-product-pill-rose {
  background: rgba(232,130,154,0.14);
  color: #b44c67;
}

.mc-product-taxonomy,
.mc-product-taxonomy a {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mc-product-taxonomy a,
.mc-meta-card-tags a {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark);
  background: rgba(91,184,184,0.10);
  padding: 6px 12px;
  border-radius: 999px;
}

.mc-product-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  margin-bottom: 14px;
}

.mc-product-rating {
  margin-bottom: 18px;
}

.mc-rating-count {
  color: #6f7b78;
  font-size: 13px;
}

.mc-product-lead {
  font-size: 16px;
  line-height: 1.95;
  color: #4f5553;
  margin-bottom: 22px;
}

.mc-product-lead p:last-child {
  margin-bottom: 0;
}

.mc-product-highlights,
.mc-product-soon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.mc-highlight-item,
.mc-product-feature-card {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,248,245,0.9), rgba(255,255,255,0.96));
  border: 1px solid rgba(237,224,218,0.9);
}

.mc-highlight-item strong,
.mc-product-feature-card strong {
  display: block;
  margin-bottom: 6px;
  color: #1c3131;
  font-size: 12px;
  font-weight: 800;
}

.mc-highlight-item span,
.mc-product-feature-card p {
  display: block;
  color: #66706d;
  font-size: 11px;
  line-height: 1.7;
}

.mc-product-purchase-panel {
  border-radius: 26px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(91,184,184,0.10), rgba(255,255,255,0.95));
  border: 1px solid rgba(91,184,184,0.22);
  margin-bottom: 22px;
}

.mc-product-price-block {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mc-price-label {
  color: #60706d;
  font-size: 13px;
  font-weight: 700;
}

.mc-product-price {
  margin-bottom: 0;
}

.mc-product-price .price,
.mc-product-price .woocommerce-Price-amount {
  color: #164f4f;
}

.mc-product-price .woocommerce-Price-amount {
  font-size: 34px;
  font-weight: 900;
}

.mc-product-price del .woocommerce-Price-amount {
  font-size: 18px;
  color: #a4a2a2;
  font-weight: 600;
}

.mc-product-action-block form.cart,
.mc-product-action-block .cart {
  margin: 0;
}

.mc-product-action-block .cart.mc-cart-form-ready {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.mc-product-action-block .variations {
  width: 100%;
}

.mc-product-action-block .cart.mc-cart-form-ready .quantity {
  margin: 0;
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: stretch;
  border: 1px solid rgba(91,184,184,0.28);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}

.mc-product-action-block .cart.mc-cart-form-ready .quantity input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0 10px;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  font-weight: 800;
  color: #1f3837;
}

.mc-product-action-block .cart.mc-cart-form-ready .quantity input:focus {
  outline: none;
}

.mc-qty-btn {
  border: 0;
  background: rgba(91,184,184,0.08);
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.mc-qty-btn:hover {
  background: rgba(91,184,184,0.18);
}

.mc-qty-btn:active {
  background: rgba(91,184,184,0.24);
}

.mc-product-action-block .cart.mc-cart-form-ready .single_add_to_cart_button,
.mc-product-action-block .cart.mc-cart-form-ready button[type="submit"] {
  margin: 0 !important;
}

.mc-product-action-block .single_add_to_cart_button,
.mc-product-action-block button[type="submit"] {
  width: 100% !important;
  min-height: 54px;
  padding: 14px 28px !important;
  border: none !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark)) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 20px rgba(91,184,184,0.35) !important;
  font-family: var(--font-ar) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  justify-content: center !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease !important;
}

.mc-product-action-block .single_add_to_cart_button:hover,
.mc-product-action-block button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(91,184,184,0.45) !important;
}

.mc-product-action-block .single_add_to_cart_button:focus-visible,
.mc-product-action-block button[type="submit"]:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(91,184,184,0.18),
    0 8px 30px rgba(91,184,184,0.32) !important;
}

.mc-product-action-block .single_add_to_cart_button.loading,
.mc-product-action-block button[type="submit"].loading {
  opacity: 0.72;
  pointer-events: none;
}

.mc-product-action-block .single_add_to_cart_button.loading::after,
.mc-product-action-block button[type="submit"].loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: mcSpin 0.8s linear infinite;
}

@keyframes mcSpin {
  to {
    transform: rotate(360deg);
  }
}

.mc-product-cart-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(91,184,184,0.14), rgba(255,255,255,0.95));
  border: 1px solid rgba(91,184,184,0.28);
}

.mc-product-cart-feedback[hidden] {
  display: none !important;
}

.mc-product-cart-feedback-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mc-product-cart-feedback-copy strong {
  color: #184e4e;
  font-size: 14px;
  font-weight: 800;
}

.mc-product-cart-feedback-copy span {
  color: #65716f;
  font-size: 13px;
  line-height: 1.7;
}

.mc-product-cart-feedback-link {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(61,154,154,0.22);
}

.mc-product-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 16px;
}

.mc-trust-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #66706d;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.mc-trust-item::after {
  content: "،";
  margin: 0 6px;
  color: #8b9491;
}

.mc-trust-item:last-child::after {
  content: "";
  margin: 0;
}

.mc-trust-icon {
  font-size: 12px;
  font-weight: 900;
  color: var(--teal-dark);
  margin-left: 4px;
}

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

.mc-meta-card {
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(237,224,218,0.95);
}

.mc-meta-card span {
  display: block;
  color: #7a7f7d;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}

.mc-meta-card strong {
  display: block;
  color: #233635;
  font-size: 15px;
  font-weight: 800;
  word-break: break-word;
}

.mc-meta-card-tags {
  grid-column: 1 / -1;
}

.mc-product-share {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6f7b78;
}

.mc-share-btn {
  width: 40px;
  height: 40px;
}

.mc-share-large {
  width: auto;
  height: auto;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.mc-product-content-section {
  border-radius: 30px;
  padding: 34px;
  margin-top: 24px;
}

.mc-related-products-band {
  margin-top: 24px;
  padding: 40px 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #1e2d33 0%, #162126 100%);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 55px rgba(18,30,36,0.22);
  overflow: hidden;
}

.mc-related-products-band .section-header {
  margin-bottom: 28px;
}

.mc-related-products-band .section-header h2 {
  color: #fff;
}

.mc-related-products-band .section-header p {
  color: rgba(255,255,255,0.62);
}

.mc-related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.mc-related-card {
  height: 100%;
}

.mc-related-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  color: inherit;
}

.mc-related-card-link h4,
.mc-related-card-link p {
  width: 100%;
}

.mc-related-btn {
  margin-top: auto;
}

.section-header-left {
  text-align: right;
  margin-bottom: 24px;
}

.section-header-left .section-divider {
  margin: 16px 0 0;
}

.mc-product-desc-body {
  margin-top: 0;
  font-size: 15.5px;
  line-height: 2;
}

.mc-product-desc-body p + h2,
.mc-product-desc-body p + h3 {
  margin-top: 28px;
}

.mc-product-hero-soon .mc-product-summary {
  display: flex;
  flex-direction: column;
}

.mc-product-soon-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.mc-cs-notify-box {
  margin-bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(240,251,251,0.95));
  width: 100%;
}

.mc-cs-notify-form {
  align-items: stretch;
}

.mc-cs-notify-form .btn {
  justify-content: center;
}

.mc-product-soon-cta .mc-share-large {
  justify-self: start;
}

@media (max-width: 1080px) {
  .mc-product-hero {
    grid-template-columns: 1fr;
  }

  .mc-product-media-card {
    position: static;
  }

  .mc-product-highlights,
  .mc-product-soon-grid,
  .mc-product-trust-row {
    grid-template-columns: 1fr;
  }

  .mc-product-soon-cta {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767px) {
  .mc-product-page {
    padding-bottom: 72px;
  }

  .mc-product-summary,
  .mc-product-media-card,
  .mc-product-content-section,
  .mc-related-products-band {
    border-radius: 22px;
    padding: 20px;
  }

  .mc-product-media-shell,
  .mc-product-media-shell-soon {
    min-height: 320px;
  }

  .mc-product-main-image {
    max-height: 300px;
  }

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

  .mc-product-price-block {
    flex-direction: column;
    align-items: start;
  }

  .mc-product-action-block .cart.mc-cart-form-ready {
    grid-template-columns: 1fr;
  }

  .mc-product-title {
    font-size: 30px;
  }
}

@media (max-width: 540px) {
  .mc-product-gallery-grid,
  .mc-product-meta-grid,
  .mc-product-highlights,
  .mc-product-soon-grid,
  .mc-related-products-grid {
    grid-template-columns: 1fr;
  }

  .mc-cs-notify-form {
    flex-direction: column;
  }

  .mc-product-cart-feedback {
    flex-direction: column;
    align-items: stretch;
  }

  .mc-product-share {
    flex-wrap: wrap;
  }
}

/* ══════════════════════════════════════════════════════════
   WooCommerce Cart / Checkout / Thank You
   ══════════════════════════════════════════════════════════ */

body.woocommerce-cart .site-main.section-pad,
body.woocommerce-checkout .site-main.section-pad,
body.woocommerce-order-received .site-main.section-pad,
body.woocommerce-view-order .site-main.section-pad {
  padding-top: 0;
  padding-bottom: 72px;
  background: #F6F8F9;
}

/* ── Checkout / Cart — full-width hero header ── */
body.woocommerce-checkout .entry-header,
body.woocommerce-cart .entry-header {
  background: linear-gradient(135deg, #1A5F5F 0%, #3D9A9A 60%, #5BB8B8 100%);
  padding: 36px 0 32px;
  margin-bottom: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}
body.woocommerce-checkout .entry-header::before,
body.woocommerce-cart .entry-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

body.woocommerce-checkout .entry-title,
body.woocommerce-cart .entry-title {
  font-size: clamp(22px, 3.5vw, 32px) !important;
  color: #fff !important;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
body.woocommerce-checkout .entry-title::before { content: '🛒'; font-size: 0.85em; }
body.woocommerce-cart    .entry-title::before { content: '🛍️'; font-size: 0.85em; }

/* Content area spacing */
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content {
  padding-top: 32px;
  padding-bottom: 48px;
}

/* Remove article padding/bg inherited from generic styles */
body.woocommerce-checkout article.page,
body.woocommerce-cart article.page {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

body.woocommerce-order-received .entry-header,
body.woocommerce-view-order .entry-header {
  margin-bottom: 24px;
}

body.woocommerce-order-received .entry-title,
body.woocommerce-view-order .entry-title {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  color: #213434;
  font-weight: 900;
}

body.woocommerce-cart .entry-content > .wp-block-woocommerce-cart,
body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

body.woocommerce-cart .entry-content > .wp-block-woocommerce-cart {
  display: block;
}

body.woocommerce-cart .wp-block-woocommerce-filled-cart-block,
body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.92fr) !important;
  gap: 32px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* WooCommerce Blocks 8+ — inner sidebar-layout wrapper */
body.woocommerce-checkout .wc-block-checkout__inner,
body.woocommerce-checkout .wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.92fr) !important;
  gap: 32px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  flex-direction: unset !important;
}

/* ── Force fields/totals columns to fill their grid cell ── */
body.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block,
body.woocommerce-checkout .wc-block-components-main {
  min-width: 0 !important;
  width: 100% !important;
  background: #fff !important;
  border-radius: 22px !important;
  border: 1px solid rgba(237,224,218,0.9) !important;
  box-shadow: 0 4px 24px rgba(34,52,58,0.06) !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
body.woocommerce-checkout .wc-block-components-sidebar {
  min-width: 0 !important;
  width: 100% !important;
  position: sticky !important;
  top: 100px !important;
  background: linear-gradient(160deg, #F0FBFB, #fff) !important;
  border-radius: 22px !important;
  border: 1.5px solid rgba(91,184,184,0.25) !important;
  box-shadow: 0 8px 32px rgba(61,154,154,0.10) !important;
}

/* ── Remove duplicate card styling on checkout fields/totals ── */
body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout > .wp-block-woocommerce-checkout-fields-block,
body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout > .wp-block-woocommerce-checkout-totals-block {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.woocommerce-cart .wp-block-woocommerce-filled-cart-block > *,
body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout > *,
body.woocommerce-order-received .entry-content > [class*="wp-block-woocommerce-order-confirmation"],
body.woocommerce-view-order .entry-content > *,
.woocommerce-order,
.woocommerce-order-details,
.woocommerce-customer-details {
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,248,245,0.96));
  border: 1px solid rgba(237,224,218,0.95);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(34,52,58,0.08);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.woocommerce-cart .wp-block-woocommerce-filled-cart-block > *,
body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout > * {
  padding: 24px;
}

body.woocommerce-cart .wp-block-woocommerce-cart-items-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block {
  overflow: hidden;
}

body.woocommerce-cart .wp-block-woocommerce-cart-items-block,
body.woocommerce-cart .wp-block-woocommerce-cart-totals-block,
body.woocommerce-cart .wp-block-woocommerce-cart-line-items-block,
body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart-items__row,
body.woocommerce-cart .wc-block-cart-item,
body.woocommerce-cart .wc-block-cart-item__product,
body.woocommerce-cart .wc-block-cart-item__wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.woocommerce-cart .wc-block-cart-items__row,
body.woocommerce-cart .wc-block-cart-item {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
}

body.woocommerce-cart .wc-block-cart-item__product {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

body.woocommerce-cart .wc-block-cart-item__image {
  width: 72px;
}

body.woocommerce-cart .wc-block-cart-item__image img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

body.woocommerce-cart .wc-block-cart-item__wrap,
body.woocommerce-cart .wc-block-components-product-metadata {
  overflow: hidden;
}

body.woocommerce-cart .wc-block-components-product-name {
  display: block;
  margin-bottom: 6px;
  line-height: 1.7;
}

body.woocommerce-cart table.wc-block-cart-items {
  width: 100% !important;
  border-collapse: collapse;
  table-layout: fixed;
}

body.woocommerce-cart table.wc-block-cart-items th,
body.woocommerce-cart table.wc-block-cart-items td {
  padding: 18px 12px !important;
  vertical-align: top;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header th {
  color: #5f6a68;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-product {
  visibility: visible !important;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-image {
  width: 88px;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-total {
  width: 140px;
  text-align: left;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
  width: 88px;
  padding-left: 12px !important;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
  padding-right: 0 !important;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices .price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
  max-width: none !important;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.8;
  word-break: normal;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__remove-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #7d4c59;
  background: rgba(232,130,154,0.1);
  text-decoration: none;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
  width: 140px;
  text-align: left !important;
  white-space: nowrap;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-formatted-money-amount,
body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .woocommerce-Price-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--teal-dark);
}

body.woocommerce-cart .wp-block-woocommerce-cart-totals-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block {
  position: sticky;
  top: 120px;
}

body.woocommerce-cart .wp-block-woocommerce-cart-line-items-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-totals-block {
  background: transparent;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block[hidden],
body.woocommerce-checkout [hidden] {
  display: none !important;
}

body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main {
  margin: 0;
}

body.woocommerce-cart .wc-block-cart-items__header,
body.woocommerce-cart .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-components-checkout-step,
body.woocommerce-checkout .wc-block-components-totals-wrapper {
  border-color: rgba(237,224,218,0.95) !important;
}

body.woocommerce-cart .wc-block-cart-item,
body.woocommerce-checkout .wc-block-components-order-summary-item {
  padding-top: 18px;
  padding-bottom: 18px;
  border-color: rgba(237,224,218,0.92) !important;
}

body.woocommerce-cart .wc-block-cart-item__image img,
body.woocommerce-checkout .wc-block-components-order-summary-item__image img {
  border-radius: 16px;
  background: #fff;
}

body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-product-name,
body.woocommerce-cart .wc-block-components-order-summary-item__description .wc-block-components-product-name {
  color: #243837;
  font-weight: 800;
}

body.woocommerce-cart .wc-block-components-product-price__value,
body.woocommerce-checkout .wc-block-components-product-price__value,
body.woocommerce-cart .wc-block-formatted-money-amount,
body.woocommerce-checkout .wc-block-formatted-money-amount,
body.woocommerce-order-received .amount,
body.woocommerce-view-order .amount {
  color: var(--teal-dark);
  font-weight: 800;
}

body.woocommerce-cart .wc-block-components-quantity-selector,
body.woocommerce-cart .wc-block-components-quantity-selector input,
body.woocommerce-checkout .wc-block-components-quantity-selector,
body.woocommerce-checkout .wc-block-components-quantity-selector input {
  border-radius: 16px !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector,
body.woocommerce-checkout .wc-block-components-quantity-selector {
  border: 1px solid rgba(91,184,184,0.25) !important;
  background: #fff;
  min-height: 52px;
}

body.woocommerce-cart input[type="text"],
body.woocommerce-cart input[type="email"],
body.woocommerce-cart input[type="tel"],
body.woocommerce-cart input[type="number"],
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout input[type="number"],
body.woocommerce-checkout input[type="password"],
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox-control .components-combobox-control__input,
body.woocommerce-cart .wc-block-components-text-input input,
body.woocommerce-cart .wc-block-components-combobox-control .components-combobox-control__input {
  min-height: 54px;
  border-radius: 16px !important;
  border: 1px solid rgba(91,184,184,0.22) !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: var(--transition);
}

body.woocommerce-checkout textarea {
  min-height: 120px;
  padding-top: 14px;
}

body.woocommerce-cart input:focus,
body.woocommerce-cart select:focus,
body.woocommerce-cart textarea:focus,
body.woocommerce-checkout input:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout textarea:focus,
body.woocommerce-cart .wc-block-components-text-input.is-active input,
body.woocommerce-checkout .wc-block-components-text-input.is-active input {
  border-color: rgba(91,184,184,0.7) !important;
  box-shadow: 0 0 0 4px rgba(91,184,184,0.12) !important;
  outline: none;
}

body.woocommerce-cart .wc-block-components-checkout-step__heading,
body.woocommerce-checkout .wc-block-components-checkout-step__heading,
body.woocommerce-cart .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-order-received h2,
body.woocommerce-view-order h2 {
  color: #213434;
  font-weight: 800;
}

body.woocommerce-cart .wc-block-components-button,
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-components-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-button,
body.woocommerce-order-received .button,
body.woocommerce-view-order .button,
body.woocommerce-cart .woocommerce-message .button,
body.woocommerce-checkout .woocommerce-message .button {
  min-height: 54px;
  padding: 12px 26px;
  border: none !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark)) !important;
  color: #fff !important;
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(91,184,184,0.28);
}

body.woocommerce-cart .wc-block-components-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-checkout .wc-block-components-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-order-received .button:hover,
body.woocommerce-view-order .button:hover,
body.woocommerce-cart .woocommerce-message .button:hover,
body.woocommerce-checkout .woocommerce-message .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(91,184,184,0.34);
}

body.woocommerce-cart .wc-block-components-button.is-secondary,
body.woocommerce-checkout .wc-block-components-button.is-secondary,
body.woocommerce-cart .wc-block-components-totals-coupon-link,
body.woocommerce-checkout .wc-block-components-totals-coupon-link {
  background: rgba(91,184,184,0.08) !important;
  color: var(--teal-dark) !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-order-received .woocommerce-message,
body.woocommerce-order-received .woocommerce-info {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(91,184,184,0.2);
  background: rgba(232,249,247,0.92);
  color: #23403e;
}

body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-cart .wc-block-components-notice-banner.is-error,
body.woocommerce-checkout .wc-block-components-notice-banner.is-error {
  border-color: rgba(232,130,154,0.28);
  background: rgba(255,240,244,0.95);
  color: #8b3851;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block,
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block {
  border-radius: 24px;
}

body.woocommerce-cart .wc-block-grid,
body.woocommerce-cart .wc-block-grid__products {
  margin-top: 0;
}

body.woocommerce-cart .wc-block-grid__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.woocommerce-cart .wc-block-grid__product {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(237,224,218,0.95);
  background: rgba(255,255,255,0.96);
}

body.woocommerce-cart .wc-block-grid__product-image img {
  border-radius: 16px;
}

body.woocommerce-cart .wc-block-grid__product-title {
  color: #243837;
  font-weight: 800;
  font-size: 15px;
}

body.woocommerce-cart .wc-block-grid__product-price {
  color: var(--teal-dark);
  font-weight: 800;
}

body.woocommerce-order-received .entry-content,
body.woocommerce-view-order .entry-content {
  display: grid;
  gap: 20px;
}

body.woocommerce-order-received .entry-content > [class*="wp-block-woocommerce-order-confirmation"],
body.woocommerce-view-order .entry-content > *:not(.entry-header):not(.entry-title),
.woocommerce-order,
.woocommerce-order-details,
.woocommerce-customer-details {
  padding: 24px;
}

body.woocommerce-order-received .wp-block-woocommerce-order-confirmation-status,
.woocommerce-order .woocommerce-notice {
  background: linear-gradient(135deg, rgba(91,184,184,0.12), rgba(255,255,255,0.98));
  border: 1px solid rgba(91,184,184,0.22);
  color: #214240;
  font-size: 16px;
  font-weight: 700;
}

body.woocommerce-order-received .wc-block-order-confirmation-summary-list,
.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.woocommerce-order-received .wc-block-order-confirmation-summary-list-item,
.woocommerce-order-overview li {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(247,251,250,0.92);
  border: 1px solid rgba(237,224,218,0.95);
  color: #5f6a68;
  font-size: 13px;
  font-weight: 700;
}

body.woocommerce-order-received .wc-block-order-confirmation-summary-list-item strong,
.woocommerce-order-overview li strong {
  display: block;
  margin-top: 6px;
  color: #223736;
  font-size: 15px;
  font-weight: 800;
}

body.woocommerce-order-received table,
body.woocommerce-view-order table,
.woocommerce-table,
.shop_table {
  width: 100%;
  border-collapse: collapse;
}

body.woocommerce-order-received th,
body.woocommerce-order-received td,
body.woocommerce-view-order th,
body.woocommerce-view-order td,
.woocommerce-table th,
.woocommerce-table td,
.shop_table th,
.shop_table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(237,224,218,0.95);
  text-align: right;
}

body.woocommerce-order-received th,
body.woocommerce-view-order th,
.woocommerce-table th,
.shop_table th {
  color: #5f6a68;
  font-size: 13px;
  font-weight: 800;
}

body.woocommerce-order-received address,
body.woocommerce-view-order address {
  margin-top: 10px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(247,251,250,0.92);
  font-style: normal;
  line-height: 2;
}

@media (max-width: 1080px) {
  body.woocommerce-cart .wp-block-woocommerce-filled-cart-block,
  body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout,
  body.woocommerce-checkout .wc-block-checkout__inner,
  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart-totals-block,
  body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
  body.woocommerce-checkout .wc-block-components-sidebar {
    position: static;
  }

  body.woocommerce-order-received .wc-block-order-confirmation-summary-list,
  .woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.woocommerce-cart .wp-block-woocommerce-filled-cart-block > *,
  body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout > *,
  body.woocommerce-order-received .entry-content > [class*="wp-block-woocommerce-order-confirmation"],
  body.woocommerce-view-order .entry-content > *,
  .woocommerce-order,
  .woocommerce-order-details,
  .woocommerce-customer-details {
    padding: 18px;
    border-radius: 20px;
  }

  body.woocommerce-cart .wc-block-grid__products {
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0 !important;
  }

  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
    grid-column: 1;
    grid-row: 1;
    padding: 0 !important;
  }

  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
    grid-column: 2;
    grid-row: 1;
    padding: 0 !important;
  }

  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    text-align: right !important;
    padding: 0 !important;
  }

  body.woocommerce-order-received .wc-block-order-confirmation-summary-list,
  .woocommerce-order-overview {
    grid-template-columns: 1fr;
  }
}


.wc-block-components-product-badge.wc-block-components-sale-badge{
  display: none !important
}