/* =========================================================================
   Kalmedia Store — Premium Visual Identity & Stylesheet
   Inspired by Reference: Dark Forest Green / Slate / Off-white / Crimson Accent
   ========================================================================= */

:root {
  --store-primary: #04432C;          /* Forest green */
  --store-primary-hover: #033221;
  --store-primary-light: #E9F0EC;
  --store-accent: #D97706;           /* Amber/Gold for stars */
  --store-danger: #DC2626;           /* Crimson for discounts */
  --store-text: #0F172A;             /* Slate 900 */
  --store-muted: #64748B;            /* Slate 500 */
  --store-bg: #FCFDFD;               /* Off-white */
  --store-card-bg: #F1F5F3;          /* Very light green-gray tint for image placeholders */
  --store-border: #E2E8F0;
  --store-white: #FFFFFF;
  
  --store-font: 'Plus Jakarta Sans', 'Outfit', 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  
  --store-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --store-shadow-md: 0 10px 25px -5px rgba(4, 67, 44, 0.05), 0 8px 16px -6px rgba(0, 0, 0, 0.03);
  --store-shadow-lg: 0 20px 40px -10px rgba(4, 67, 44, 0.12), 0 12px 20px -8px rgba(0, 0, 0, 0.04);
  
  --store-radius-sm: 8px;
  --store-radius-md: 16px;
  --store-radius-lg: 24px;
  --store-radius-pill: 9999px;
  
  --store-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets & Fonts */
body.store-page {
  background-color: var(--store-bg);
  color: var(--store-text);
  font-family: var(--store-font);
  line-height: 1.6;
}

/* =========================================================================
   1. PROMO BAR (Top-most bar)
   إعادة تصميم: نفس نظام اللون الأخضر الغامق للـHero (بلمسة شفافية) بدل
   الخلفية السوداء، مع حواف سفلية دائرية خفيفة وظل ناعم لتبدو امتدادًا
   طبيعيًا للـHero بالأسفل بدل عنصر منفصل بصريًا. الحركة (marquee) بطيئة
   وسلسة وتتوقف عند مرور الفأرة — نفس فلسفة .tech-marquee-track (اتجاه
   فيزيائي ثابت direction: ltr مستقل عن RTL الصفحة، مجموعتان متطابقتان
   لضمان لفّة سلسة بدون قفزة أو فجوة).
   ========================================================================= */
.promo-bar {
  background: linear-gradient(135deg, rgba(4, 67, 44, 0.94) 0%, rgba(6, 95, 62, 0.88) 100%);
  color: var(--store-white);
  padding: 0.75rem 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 20px -8px rgba(4, 67, 44, 0.45);
  position: relative;
  z-index: 100;
  overflow: hidden;
}
.promo-bar-viewport {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  /* تلاشي ناعم عند الحواف بدل قصّ فجائي للنص أثناء التمرير */
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.promo-bar-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  direction: ltr; /* اتجاه تمرير فيزيائي ثابت، بمعزل عن rtl/ltr الصفحة */
  animation: promo-bar-scroll 32s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.promo-bar:hover .promo-bar-track,
.promo-bar-track:focus-within {
  animation-play-state: paused;
}
@keyframes promo-bar-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.promo-bar-set {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  flex-shrink: 0;
  direction: rtl; /* ترتيب نص/أيقونة عربي طبيعي داخل كل مجموعة */
}
.promo-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--store-white);
  opacity: 0.97;
}
.promo-bar-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.92;
}
@media (max-width: 640px) {
  .promo-bar-track,
  .promo-bar-set { gap: 2.25rem; }
  .promo-bar-item { font-size: 0.78rem; }
}
/* تفضيل تقليل الحركة: يبقى الشريط ثابتًا (المجموعة الأولى) بدل التمرير */
@media (prefers-reduced-motion: reduce) {
  .promo-bar-track {
    animation: none;
  }
}



/* =========================================================================
   2. CUSTOM STORE HEADER — Premium Redesign (v2)
   Sticky glassmorphism bar: Logo | Search | Account/Wishlist/Cart/Lang
   ========================================================================= */

/* ── Wrapper ── */
.store-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--store-border);
  transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              background 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.store-header.scrolled {
  box-shadow: 0 4px 24px -8px rgba(4, 67, 44, 0.12), 0 2px 8px -4px rgba(0,0,0,0.06);
  background: rgba(255, 255, 255, 0.99);
}

/* ── Main row ── */
.store-header-main {
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}
.store-header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

/* ── Left: Hamburger + Logo ── */
.store-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
}
.hamburger:hover {
  background: var(--store-primary-light);
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--store-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Logo */
.store-header-left .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--store-primary);
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.store-header-left .logo:hover {
  color: var(--store-primary-hover);
}
.store-header-left .logo .dot-mark {
  width: 9px;
  height: 9px;
  background: var(--store-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--store-primary-light), 0 0 8px rgba(217, 119, 6, 0.4);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px var(--store-primary-light), 0 0 8px rgba(217,119,6,0.4); }
  50%       { box-shadow: 0 0 0 5px var(--store-primary-light), 0 0 14px rgba(217,119,6,0.55); }
}

/* ── Center: Search ── */
.store-header-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.header-search-box {
  width: 100%;
  max-width: 540px;
  position: relative;
  display: flex;
  align-items: center;
}
.header-search-input {
  width: 100%;
  padding: 0.72rem 1.2rem;
  padding-inline-end: 3.2rem;
  border: 1.5px solid var(--store-border);
  border-radius: var(--store-radius-pill);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--store-text);
  background: #f8fafc;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.header-search-input::placeholder {
  color: var(--store-muted);
  opacity: 0.75;
}
.header-search-input:focus {
  outline: none;
  border-color: var(--store-primary);
  background: var(--store-white);
  box-shadow: 0 0 0 3px rgba(4, 67, 44, 0.08);
}
.header-search-btn {
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--store-primary);
  color: var(--store-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.header-search-btn:hover {
  background: var(--store-primary-hover);
  transform: translateY(-50%) scale(1.05);
}
.header-search-btn svg {
  width: 17px;
  height: 17px;
  stroke: var(--store-white);
  fill: none;
  pointer-events: none;
}
.header-search-clear {
  position: absolute;
  inset-inline-end: 48px;
  background: none;
  border: none;
  color: var(--store-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.8rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
.header-search-clear:hover {
  background: #f1f5f9;
  color: var(--store-text);
}

/* ── Right: Action Icons + Lang ── */
.store-header-right {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* Action items (Account, Wishlist, Cart) */
.header-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  color: var(--store-text);
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: transparent;
  font-family: inherit;
}
.header-action-item:hover {
  color: var(--store-primary);
  background: var(--store-primary-light);
}
.action-icon-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.action-icon-box svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}
.action-label {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.8;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Badges */
.header-action-item .badge-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -6px;
  background: var(--store-danger);
  color: var(--store-white);
  font-size: 0.6rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--store-white);
  padding: 0 3px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.header-action-item:hover .badge-count {
  transform: scale(1.1);
}

/* Divider between action groups */
.header-divider {
  width: 1px;
  height: 28px;
  background: var(--store-border);
  margin: 0 0.3rem;
  flex-shrink: 0;
}

/* ── Language Switcher ── */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--store-radius-pill);
  border: 1.5px solid var(--store-border);
  font-weight: 700;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--store-text);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.lang-btn:hover,
.lang-switch.open .lang-btn {
  border-color: var(--store-primary);
  color: var(--store-primary);
  background: var(--store-primary-light);
}
.lang-code {
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  background: var(--store-white);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-md);
  box-shadow: 0 16px 40px -10px rgba(4, 67, 44, 0.15), 0 4px 12px -4px rgba(0,0,0,0.06);
  min-width: 160px;
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 200;
}
.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--store-text);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: start;
}
.lang-menu button:hover {
  background: var(--store-primary-light);
  color: var(--store-primary);
}
.lang-menu button.active {
  color: var(--store-primary);
  font-weight: 700;
}

/* =========================================================================
   3. STORE NAVIGATION BAR (Desktop only)
   ========================================================================= */
.store-header-nav {
  background: var(--store-white);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.store-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
}
.store-nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.store-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--store-muted);
  position: relative;
  transition: color 0.25s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.store-nav-link:hover {
  color: var(--store-primary);
}
.store-nav-link.active {
  color: var(--store-primary);
}
/* Animated underline */
.store-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0.75rem;
  inset-inline-end: 0.75rem;
  height: 2.5px;
  background: var(--store-primary);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.store-nav-link:hover::after,
.store-nav-link.active::after {
  transform: scaleX(1);
}

/* ── Responsive Breakpoints ── */

/* Tablet (600px – 899px) */
@media (max-width: 899px) {
  .store-header-nav {
    display: none !important;
  }
  .store-header-container {
    padding: 0.7rem 1rem;
    gap: 0.75rem;
  }
  .store-header-center {
    max-width: unset;
  }
  .action-label {
    display: none !important;
  }
  .store-header-right {
    gap: 0.1rem;
  }
  .header-divider {
    margin: 0 0.1rem;
  }
  .lang-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Mobile (<600px) */
@media (max-width: 599px) {
  .store-header-container {
    padding: 0.65rem 0.75rem;
    grid-template-columns: auto auto;
    gap: 0.5rem;
  }
  /* Hide search in header on small phones — accessible via sidebar */
  .store-header-center {
    display: none !important;
  }
  .store-header-left .logo {
    font-size: 1.35rem;
  }
  .store-header-right {
    gap: 0.05rem;
  }
  .lang-btn .lang-code {
    display: none;
  }
  .lang-btn {
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
  }
  .header-action-item {
    padding: 0.4rem 0.4rem;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .store-header-left .logo {
    font-size: 1.2rem;
  }
  .store-header-right {
    gap: 0;
  }
}

/* =========================================================================
   4. STORE HERO BANNER (Premium Redesign)
   ========================================================================= */
.store-hero {
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
}
.store-hero-card {
  background: linear-gradient(135deg, #04432C 0%, #065F3E 100%);
  border-radius: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  box-shadow: none;
  position: relative;
  min-height: 480px;
  width: 100%;
}
.store-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../../assets/PHOTOS/pattern-bg.png') center/cover;
  opacity: 0.05;
  pointer-events: none;
}
@media (max-width: 900px) {
  .store-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 2.5rem;
    min-height: auto;
  }
}
.store-hero-content {
  padding: 4.5rem clamp(1.5rem, 6vw, 5.5rem);
  color: var(--store-white);
  z-index: 2;
  position: relative;
}
@media (max-width: 640px) {
  .store-hero-content {
    padding: 3rem 1.5rem 1.5rem;
  }
}
.store-hero-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: var(--store-accent);
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(217, 119, 6, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}
.store-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--store-white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.store-hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 480px;
}
@media (max-width: 900px) {
  .store-hero-desc { margin: 0 auto 2rem; }
}
.store-hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .store-hero-cta-group { justify-content: center; }
}
.store-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--store-radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s ease;
  text-decoration: none;
}
.store-hero-btn:hover {
  transform: translateY(-3px);
}
.store-hero-btn-primary {
  background-color: var(--store-accent);
  color: var(--store-white);
  box-shadow: 0 10px 20px -5px rgba(217, 119, 6, 0.4);
}
.store-hero-btn-primary:hover {
  box-shadow: 0 15px 25px -5px rgba(217, 119, 6, 0.5);
  color: var(--store-white);
}
.store-hero-btn-primary svg {
  transition: transform 0.3s ease;
}
.store-hero-btn-primary:hover svg {
  transform: translateX(-4px);
}
html[dir="ltr"] .store-hero-btn-primary:hover svg {
  transform: translateX(4px);
}
.store-hero-btn-outline {
  background-color: transparent;
  color: var(--store-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.store-hero-btn-outline:hover {
  border-color: var(--store-white);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--store-white);
}
.store-hero-image-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 2rem;
  padding-inline-end: clamp(1rem, 4vw, 3rem);
}
.store-hero-img {
  width: 90%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
  display: block;
  z-index: 2;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
  transition: transform 0.5s ease;
}
.store-hero-card:hover .store-hero-img {
  transform: scale(1.03) translateY(-10px);
}

/* =========================================================================
   5. STORE HOME SECTIONS & LISTING
   ========================================================================= */

.store-home-section {
  padding: 2rem 0;
}
.store-home-section.section-alt {
  background-color: #f8fafc;
}
.store-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--store-border);
}
.store-home-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--store-primary);
  margin: 0;
  position: relative;
}
.store-home-section-head h2::after {
  content: '';
  position: absolute;
  bottom: -1.15rem;
  inset-inline-start: 0;
  width: 60px;
  height: 4px;
  background-color: var(--store-accent);
  border-radius: 2px;
}

/* =========================================================================
   5.1 PROMO / DISCOUNT BANNER (below products, above the final CTA band)
   نفس تدرّج أخضر الهوية البصرية للمتجر (--store-primary)، نصوص بيضاء،
   ميدالية الخصم "-30%" هي أكبر عنصر بصري وأكثر شيء يلفت الانتباه، وزر
   واتساب أبيض واضح. تخطيط أفقي أنيق على الكمبيوتر (نص + زر على جهة،
   ميدالية الخصم على الجهة الأخرى)، ويتحول لتصميم مضغوط عمودي متمركز على
   الموبايل — بدون إدخال أي لون خارج هوية المتجر.
   ========================================================================= */
.promo-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #075C3C 0%, #04432C 65%, #033120 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--store-radius-lg);
  box-shadow: var(--store-shadow-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: start;
}
.promo-banner-pattern {
  position: absolute;
  inset: 0;
  background: url('../../assets/PHOTOS/pattern-bg.png') center/cover;
  opacity: 0.06;
  pointer-events: none;
}
.promo-banner-percent {
  position: absolute;
  top: 50%;
  inset-inline-start: clamp(-1rem, -2vw, -0.5rem);
  transform: translateY(-50%);
  font-size: clamp(7rem, 16vw, 13rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}
.promo-banner-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 420px;
}
.promo-banner-eyebrow {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  color: var(--store-white);
  letter-spacing: -0.01em;
}
.promo-banner-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.02rem);
  color: rgba(255, 255, 255, 0.78);
  margin-top: -0.4rem;
}
.promo-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--store-white);
  color: var(--store-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--store-radius-pill);
  text-decoration: none;
  box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.3);
  transition: var(--store-transition);
}
.promo-banner-cta svg {
  color: #25D366;
  flex-shrink: 0;
}
.promo-banner-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.35);
  color: var(--store-primary);
}
.promo-banner-medallion {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: clamp(140px, 16vw, 196px);
  height: clamp(140px, 16vw, 196px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-banner-medallion::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  animation: promo-medallion-spin 26s linear infinite;
}
@keyframes promo-medallion-spin {
  to { transform: rotate(360deg); }
}
.promo-banner-medallion-ring {
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background: linear-gradient(150deg, #0A7A4F 0%, #04432C 100%);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
}
.promo-banner-discount-label {
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.promo-banner-discount-num {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--store-white);
  letter-spacing: -0.02em;
}
@media (max-width: 860px) {
  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: clamp(1.75rem, 5vw, 2.25rem) clamp(1.5rem, 6vw, 2rem);
  }
  .promo-banner-info {
    align-items: center;
    max-width: 100%;
  }
  .promo-banner-desc {
    margin-top: -0.2rem;
  }
}
@media (max-width: 680px) {
  .promo-banner {
    padding: 1.5rem 1.25rem;
    border-radius: var(--store-radius-md);
    gap: 1.1rem;
  }
  .promo-banner-eyebrow {
    font-size: 1.05rem;
  }
  .promo-banner-desc {
    font-size: 0.85rem;
  }
  .promo-banner-medallion {
    width: 108px;
    height: 108px;
  }
  .promo-banner-discount-num {
    font-size: 1.5rem;
  }
  .promo-banner-cta {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}
.view-all-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--store-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}
.view-all-link:hover {
  color: var(--store-primary);
}

.store-listing-main {
  padding: 3rem 0 5rem;
}

/* =========================================================================
   5. HIGHLIGHTS BAR (Features icons)
   إعادة تصميم: خلفية بيضاء خفيفة بدل التدرّج الأخضر الغامق، مع أيقونات
   بلون أخضر الهوية البصرية (--store-primary) داخل دائرة بتينت أخضر فاتح
   (--store-primary-light)، ونصوص داكنة لوضوح أكبر. ارتفاع/تباعد مضغوط
   جداً ليبقى القسم خفيفاً ومتناسقاً مع الـHero، وفي الموبايل شبكة 2×2
   مرتبة بدل قائمة عمودية طويلة.
   ========================================================================= */
.store-highlights {
  background: var(--store-white);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--store-border);
  position: relative;
}
.store-highlights-container {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.highlight-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 200px;
}
.highlight-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--store-primary-light);
  color: var(--store-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.highlight-icon-box svg {
  width: 16px;
  height: 16px;
}
.highlight-info h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--store-text);
  margin-bottom: 0.1rem;
}
.highlight-info p {
  font-size: 0.7rem;
  color: #475569;
}
@media (max-width: 680px) {
  .store-highlights { padding: 0.65rem 0; }
  .store-highlights-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.6rem;
    padding-inline: 1rem;
  }
  .highlight-card {
    flex: unset;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.3rem;
  }
  .highlight-icon-box { width: 30px; height: 30px; }
  .highlight-icon-box svg { width: 14px; height: 14px; }
  .highlight-info h3 { font-size: 0.7rem; }
  .highlight-info p { font-size: 0.61rem; line-height: 1.3; }
}

/* =========================================================================
   6. POPULAR CATEGORIES (Circle/Scroll menu)
   ========================================================================= */
.popular-cats-section {
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}
.popular-cats-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.popular-cats-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
}
.popular-cats-head a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--store-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.popular-cats-list {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.popular-cats-list::-webkit-scrollbar {
  display: none;
}
.popular-cat-item {
  flex: 0 0 auto;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}
.popular-cat-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: var(--store-white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 12px -4px rgba(4, 67, 44, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--store-text);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.popular-cat-icon-wrap svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease, color 0.3s ease;
}
.popular-cat-item:hover .popular-cat-icon-wrap {
  border-color: var(--store-primary);
  transform: translateY(-5px);
  box-shadow: 0 12px 24px -8px rgba(4, 67, 44, 0.2);
  color: var(--store-primary);
}
.popular-cat-item:hover .popular-cat-icon-wrap svg {
  transform: scale(1.1);
}
.popular-cat-item.active .popular-cat-icon-wrap {
  background: var(--store-primary);
  border-color: var(--store-primary);
  color: var(--store-white);
  box-shadow: 0 8px 20px -6px rgba(4, 67, 44, 0.4);
  transform: translateY(-2px);
}
.popular-cat-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--store-text);
  transition: color 0.2s ease;
}
.popular-cat-item:hover .popular-cat-title,
.popular-cat-item.active .popular-cat-title {
  color: var(--store-primary);
}
/* الاستعلام المتجاوب يأتي عمدًا بعد كل القواعد الأساسية أعلاه (لا قبلها)
   لضمان أنه يتغلّب عليها فعليًا عند تطابق نفس درجة التحديد (specificity)
   — ترتيب المصدر هو الفيصل بين قاعدتين متساويتي التحديد، بصرف النظر عن
   التغليف داخل @media. */
@media (max-width: 680px) {
  .popular-cats-section { padding-top: 0.9rem; padding-bottom: 0.75rem; }
  .popular-cats-head { margin-bottom: 0.85rem; }
  .popular-cats-head h2 { font-size: 1.2rem; }
  .popular-cats-list { gap: 1rem; padding-bottom: 1rem; }
  .popular-cat-icon-wrap { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 0.6rem; }
  .popular-cat-icon-wrap svg { width: 26px; height: 26px; }
  .popular-cat-title { font-size: 0.76rem; }
}

/* =========================================================================
   6.5 STORE TOOLBAR & PAGINATION (Task 7)
   ========================================================================= */
.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--store-white);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-md);
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  flex-wrap: wrap;
  gap: 1rem;
}
.store-toolbar-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--store-muted);
}
.store-toolbar-count span:first-child {
  color: var(--store-text);
  font-weight: 800;
}
.store-toolbar-sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.store-toolbar-sort label {
  font-size: 0.85rem;
  color: var(--store-muted);
  font-weight: 600;
  white-space: nowrap;
}
.sort-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.sort-select-wrapper svg {
  position: absolute;
  inset-inline-end: 12px;
  pointer-events: none;
  color: var(--store-muted);
}
.store-select {
  appearance: none;
  background: var(--store-card-bg);
  border: 1px solid var(--store-border);
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border-radius: var(--store-radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--store-text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.store-select:focus {
  outline: none;
  border-color: var(--store-primary);
  box-shadow: 0 0 0 3px rgba(4,67,44,0.1);
}

.store-load-more {
  text-align: center;
  margin-top: 3rem;
}
.store-load-more .btn {
  min-width: 200px;
  background: transparent;
  color: var(--store-primary);
  border: 2px solid var(--store-primary);
  border-radius: 50px;
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease;
}
.store-load-more .btn:hover {
  background: var(--store-primary);
  color: var(--store-white);
}

/* ── States (Loading, Empty, Error) ─────────────────────── */
.store-skeleton {
  background: var(--store-white);
  border: 1px solid var(--store-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.skeleton-img {
  aspect-ratio: 3 / 4;
  background: #e5e7eb;
  animation: st-pulse 1.5s infinite ease-in-out;
}
.skeleton-text {
  height: 16px;
  background: #e5e7eb;
  border-radius: 4px;
  margin: 1.2rem 1.2rem 0;
  animation: st-pulse 1.5s infinite ease-in-out;
}
.skeleton-text.short {
  width: 50%;
  margin-bottom: 1.2rem;
}

.store-empty-state, .store-error-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  background: var(--store-white);
  border: 1px dashed var(--store-border);
  border-radius: var(--store-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.empty-icon {
  width: 64px;
  height: 64px;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}
.store-empty-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--store-text);
  margin: 0;
}
.store-empty-desc {
  color: var(--store-muted);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0;
}

@media (max-width: 640px) {
  .store-toolbar { flex-direction: column; align-items: stretch; gap: 1.2rem; }
  .store-toolbar-sort { justify-content: space-between; }
  .store-select { width: 100%; }
}

/* =========================================================================
   7. PRODUCT CARDS & GRID — PREMIUM REDESIGN
   ========================================================================= */
.store-listing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--store-border);
  padding-bottom: 1rem;
}
.store-listing-info h2 {
  font-size: 1.6rem;
  font-weight: 800;
}
.store-listing-info p {
  font-size: 0.88rem;
  color: var(--store-muted);
  margin-top: 0.2rem;
}

/* ── Card Shell ─────────────────────────────────────────── */
.product-card {
  background: var(--store-white);
  border: 1px solid var(--store-border);
  border-radius: 16px;
  box-shadow: 0 2px 8px -2px rgba(4, 67, 44, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.35s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(4, 67, 44, 0.18);
  border-color: rgba(4, 67, 44, 0.15);
}

/* ── Image Wrapper ──────────────────────────────────────── */
.product-card-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #f8f9fa;
  overflow: hidden;
  flex-shrink: 0;
}
.product-card-img-link {
  display: block;
  width: 100%;
  height: 100%;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block;
}
.product-card:hover .product-card-img {
  transform: scale(1.07);
}

/* ── Badges (top-start) ─────────────────────────────────── */
.product-card-badges {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 4;
}
.product-card-badge-discount,
.product-card-badge-new,
.product-card-badge-sale,
.product-card-badge-featured,
.product-card-badge-outofstock {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.5;
}
.product-card-badge-discount  { background: #ef4444; }
.product-card-badge-new       { background: var(--store-primary); }
.product-card-badge-sale      { background: var(--store-accent); }
.product-card-badge-featured  { background: #8b5cf6; }
.product-card-badge-outofstock{ background: var(--store-muted); }

/* ── Wishlist button (top-end) ──────────────────────────── */
.card-wishlist-btn {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.5);
  color: #9ca3af;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.card-wishlist-btn:hover {
  color: #ef4444;
  background: rgba(255,255,255,1);
  transform: scale(1.12);
}
.card-wishlist-btn.is-active {
  color: #ef4444;
}
.card-wishlist-btn svg {
  width: 17px;
  height: 17px;
  transition: fill 0.2s ease;
}

/* ── Overlay CTA (appears on hover at bottom of image) ──── */
.product-card-overlay-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}
.product-card:hover .product-card-overlay-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Body ───────────────────────────────────────────────── */
.product-card-body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

/* Meta row: category + swatches */
.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.product-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--store-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

/* Color Swatches */
.product-card-swatches {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.product-card-swatch {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.85);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.product-card-swatch:hover {
  transform: scale(1.25);
}

/* Title */
.product-card-title-link {
  text-decoration: none;
}
.product-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--store-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  transition: color 0.2s ease;
}
.product-card-title-link:hover .product-card-title {
  color: var(--store-primary);
}

/* Star Rating */
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
}
.stars-row {
  display: flex;
  gap: 1px;
}
.star {
  font-size: 0.8rem;
  line-height: 1;
}
.star-full  { color: #f59e0b; }
.star-half  { color: #f59e0b; opacity: 0.65; }
.star-empty { color: #d1d5db; }
.rating-score {
  font-weight: 700;
  color: var(--store-text);
  font-size: 0.8rem;
}
.rating-count {
  color: var(--store-muted);
  font-size: 0.75rem;
}

/* ── Footer: price + CTA ────────────────────────────────── */
.product-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.product-card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--store-primary);
  letter-spacing: -0.01em;
}
.product-card-old-price {
  font-size: 0.8rem;
  color: var(--store-muted);
  text-decoration: line-through;
}
.product-card-discount-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #ef4444;
  background: #fef2f2;
  border-radius: 50px;
  padding: 0.15rem 0.5rem;
}

/* ── CTA Button ─────────────────────────────────────────── */
.product-card-cta-wrap {
  width: 100%;
}
.product-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.62rem 1rem;
  background: var(--store-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.product-card-cta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: #fff;
  fill: none;
}
.product-card-cta:hover {
  background: var(--store-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(4, 67, 44, 0.35);
}

/* Overlay CTA variant (white on dark gradient) */
.product-card-overlay-cta .product-card-cta {
  background: rgba(255,255,255,0.95);
  color: var(--store-primary);
  border-radius: 50px;
  padding: 0.55rem 1.4rem;
  width: auto;
  font-size: 0.8rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.product-card-overlay-cta .product-card-cta svg {
  stroke: var(--store-primary);
}
.product-card-overlay-cta .product-card-cta:hover {
  background: #fff;
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.product-card-cta.is-disabled {
  background: var(--store-border);
  color: var(--store-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.product-card-cta.is-disabled svg {
  stroke: var(--store-muted);
}
.product-card-overlay-cta .product-card-cta.is-disabled {
  background: rgba(200,200,200,0.85);
  color: #666;
}


/* =========================================================================
   8. PRODUCT DETAIL PAGE (product.html) PREMIUM OVERRIDES
   ========================================================================= */
.product-page-wrapper {
  padding-block: 3rem;
}
.product-page-grid {
  grid-template-columns: 1.1fr 0.9fr !important;
  gap: 4rem !important;
}
@media (max-width: 900px) {
  .product-page-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

.product-gallery-main {
  background: var(--store-card-bg) !important;
  border-radius: var(--store-radius-lg) !important;
  border: 1px solid var(--store-border);
  aspect-ratio: 1/1 !important;
  overflow: hidden;
  box-shadow: none !important;
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

.product-gallery-thumbs img {
  width: 72px !important;
  height: 72px !important;
  background: var(--store-card-bg);
  border-radius: var(--store-radius-md) !important;
  border: 1px solid var(--store-border) !important;
  padding: 5px;
  object-fit: contain !important;
  transition: var(--store-transition);
}
.product-gallery-thumbs img.active {
  border-color: var(--store-primary) !important;
  box-shadow: 0 0 0 3px var(--store-primary-light);
}

.product-page-category {
  background-color: var(--store-primary-light) !important;
  color: var(--store-primary) !important;
  font-weight: 700 !important;
  border-radius: var(--store-radius-sm) !important;
  padding: 0.3rem 0.8rem !important;
}

.product-page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
  font-weight: 800 !important;
  color: var(--store-text) !important;
  line-height: 1.25;
}

.product-page-price {
  color: var(--store-primary) !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  margin-bottom: 1.5rem !important;
}

.product-option-chip {
  border-radius: var(--store-radius-md) !important;
  border: 1.5px solid var(--store-border) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 0.6rem 1.2rem !important;
  transition: var(--store-transition) !important;
}
.product-option-chip.active,
.product-option-chip:hover {
  border-color: var(--store-primary) !important;
  background: var(--store-primary-light) !important;
  color: var(--store-primary) !important;
}

.product-qty-control {
  border-radius: var(--store-radius-pill) !important;
  border-color: var(--store-border) !important;
}
.product-qty-control button {
  background: var(--store-white) !important;
  transition: var(--store-transition);
}
.product-qty-control button:hover {
  background: var(--store-primary-light) !important;
  color: var(--store-primary);
}

/* Detail CTAs */
.detail-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--store-radius-pill);
  transition: var(--store-transition);
  flex: 1;
}
.detail-cta-order {
  background-color: var(--store-primary);
  color: var(--store-white);
}
.detail-cta-order:hover {
  background-color: var(--store-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--store-shadow-md);
}
.detail-cta-whatsapp {
  border: 1.5px solid #25D366;
  color: #128C7E;
  background: transparent;
}
.detail-cta-whatsapp:hover {
  background-color: #25D366;
  color: var(--store-white);
  transform: translateY(-2px);
}

/* =========================================================================
   9. MODALS & OTHER ELEMENTS
   ========================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 15, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: var(--store-white);
  border-radius: var(--store-radius-lg);
  width: 90%;
  max-width: 520px;
  padding: 2.2rem;
  box-shadow: var(--store-shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.modal-overlay.show .modal-card {
  transform: translateY(0);
}
.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  inset-inline-end: 1.5rem;
  color: var(--store-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--store-transition);
}
.modal-close-btn:hover {
  background-color: var(--store-primary-light);
  color: var(--store-primary);
}

/* Form Styles */
.store-form-group {
  margin-bottom: 1.2rem;
}
.store-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.store-form-input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 1.5px solid var(--store-border);
  border-radius: var(--store-radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--store-transition);
}
.store-form-input:focus {
  outline: none;
  border-color: var(--store-primary);
  box-shadow: 0 0 0 3px rgba(4, 67, 44, 0.08);
}

/* =========================================================================
   PRODUCT DETAIL PAGE (PDP) — PREMIUM REDESIGN (Task 8)
   ========================================================================= */

/* Breadcrumb */
.pdp-breadcrumb {
  background: var(--store-white);
  border-bottom: 1px solid var(--store-border);
  padding: calc(var(--header-h, 80px) + 1.2rem) 0 1rem;
}
.pdp-breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--store-muted);
  flex-wrap: wrap;
}
.pdp-breadcrumb-nav a {
  color: var(--store-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.pdp-breadcrumb-nav a:hover { color: var(--store-primary); }
.pdp-breadcrumb-sep { color: var(--store-border); font-size: 1rem; }
.pdp-breadcrumb-nav span:last-child { color: var(--store-text); font-weight: 700; }

/* Main section */
.pdp-section {
  padding: 3rem 0 5rem;
  background: var(--store-bg);
}

/* Two-column grid */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Gallery ───────────────────────────────────────────────────────────── */
.pdp-gallery { position: sticky; top: calc(var(--header-h, 80px) + 1.5rem); }

.pdp-gallery-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--store-white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  aspect-ratio: 1 / 1;
}
.pdp-main-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.pdp-gallery-main:hover .pdp-main-img { transform: scale(1.04); }

/* Badges overlay */
.pdp-gallery-badges {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

/* Wishlist button */
.pdp-wishlist-btn {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--store-muted);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
}
.pdp-wishlist-btn svg { width: 22px; height: 22px; }
.pdp-wishlist-btn:hover { color: #e11d48; transform: scale(1.1); }
.pdp-wishlist-btn.is-active { color: #e11d48; fill: currentColor; }
.pdp-wishlist-btn.is-active svg { fill: currentColor; }

/* Thumbnails */
.pdp-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.pdp-thumbs img {
  width: 72px; height: 72px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.pdp-thumbs img:hover { transform: translateY(-2px); }
.pdp-thumbs img.active { border-color: var(--store-primary); }

/* ── Info Panel ────────────────────────────────────────────────────────── */
.pdp-info { display: flex; flex-direction: column; gap: 0; }

.pdp-info-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.pdp-category-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--store-primary);
  background: var(--store-primary-light);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
}
.pdp-stock-badge {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.pdp-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--store-text);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

/* Rating row */
.pdp-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.pdp-stars { display: flex; gap: 2px; }
.pdp-stars svg { width: 16px; height: 16px; }
.pdp-rating-value { font-weight: 700; font-size: 0.9rem; color: var(--store-text); }
.pdp-rating-count { font-size: 0.85rem; color: var(--store-muted); }

/* Price row */
.pdp-price-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.pdp-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--store-primary);
  line-height: 1;
}
.pdp-price-old {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--store-muted);
  text-decoration: line-through;
}
.pdp-price-discount {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: #ef4444;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}

.pdp-short-desc {
  font-size: 0.98rem;
  color: var(--store-muted);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

/* Features list */
.pdp-features {
  list-style: none;
  padding: 0; margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pdp-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--store-text);
}
.pdp-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--store-primary);
}

/* Divider */
.pdp-divider {
  height: 1px;
  background: var(--store-border);
  margin: 1.4rem 0;
}

/* Options */
.pdp-option-group { margin-bottom: 1.25rem; }
.pdp-option-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--store-text);
  margin-bottom: 0.65rem;
}
.pdp-option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
/* chip = product-option-chip (JS uses this class name) */
.pdp-option-chips .product-option-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--store-border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--store-white);
  color: var(--store-text);
  transition: all 0.2s ease;
}
.pdp-option-chips .product-option-chip:hover {
  border-color: var(--store-primary);
  color: var(--store-primary);
}
.pdp-option-chips .product-option-chip.active {
  background: var(--store-primary);
  border-color: var(--store-primary);
  color: var(--store-white);
  box-shadow: 0 4px 12px rgba(4,67,44,0.25);
}

/* Qty control */
.pdp-qty-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.pdp-qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--store-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--store-white);
}
.pdp-qty-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--store-text);
  transition: background 0.2s;
}
.pdp-qty-btn:hover { background: var(--store-bg); }
.pdp-qty-input {
  width: 52px; height: 42px;
  text-align: center;
  border: none;
  border-inline: 1.5px solid var(--store-border);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--store-text);
  background: var(--store-white);
}

/* Action buttons */
.pdp-actions {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.pdp-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.pdp-btn-order {
  background: var(--store-primary);
  color: var(--store-white);
  box-shadow: 0 8px 20px -6px rgba(4,67,44,0.45);
}
.pdp-btn-order:hover {
  background: #033822;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(4,67,44,0.5);
}
.pdp-btn-order:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.pdp-btn-whatsapp {
  background: #25D366;
  color: var(--store-white);
  box-shadow: 0 8px 20px -6px rgba(37,211,102,0.4);
}
.pdp-btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(37,211,102,0.45);
}

/* Trust row */
.pdp-trust {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--store-card-bg);
  border: 1px solid var(--store-border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.pdp-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--store-muted);
  flex: 1 1 0;
}
.pdp-trust-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--store-primary);
}

/* Full description */
.pdp-full-desc-wrap { }
.pdp-desc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--store-text);
  margin-bottom: 0.75rem;
}
.pdp-full-desc {
  font-size: 0.95rem;
  color: var(--store-muted);
  line-height: 1.8;
  white-space: pre-wrap;
}

/* Related products section */
.pdp-related {
  background: var(--store-card-bg);
  padding: 4rem 0;
  border-top: 1px solid var(--store-border);
}
.pdp-related-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.pdp-related-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--store-text);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pdp-gallery { position: static; }
  .pdp-section { padding: 2rem 0 4rem; }
  .pdp-breadcrumb { padding-top: calc(var(--header-h, 80px) + 0.75rem); }
}
@media (max-width: 640px) {
  .pdp-title { font-size: 1.5rem; }
  .pdp-price { font-size: 1.6rem; }
  .pdp-actions { flex-direction: column; }
  .pdp-btn { width: 100%; justify-content: center; }
  .pdp-trust { gap: 0.75rem; flex-direction: column; }
  .pdp-thumbs img { width: 60px; height: 60px; }
}

/* =========================================================================
   LTR Direction Overrides for Store Pages
   ========================================================================= */

html[dir="ltr"] .product-card,
html[dir="ltr"] .product-card-body,
html[dir="ltr"] .product-card-meta,
html[dir="ltr"] .store-hero-content,
html[dir="ltr"] .store-feature,
html[dir="ltr"] .cart-item,
html[dir="ltr"] .checkout-form {
  text-align: left;
  direction: ltr;
}
