/**
 * ==============================================================================
 * Home Spark | هوم سبارك - Official E-Commerce Stylesheet
 * ==============================================================================
 * Domain: homesparkstore.com
 * Market: Egypt COD (Cash on Delivery)
 * Speciality: Home & Kitchen Gadgets
 * Direction: RTL-First
 * Typography: Cairo (Google Fonts)
 * Version: 1.0.0 Production Ready
 * ==============================================================================
 */

/* ==============================================================================
   1. FONTS & CSS CUSTOM PROPERTIES (:root)
   ============================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand Primary Colors (Vibrant Red-Orange Spark & Energy) */
  --primary: #E63946;
  --primary-hover: #D62828;
  --primary-dark: #B71C1C;
  --primary-light: #FFF0F2;
  --primary-subtle: rgba(230, 57, 70, 0.08);
  --primary-glow: rgba(230, 57, 70, 0.35);

  /* Brand Secondary Colors (Deep Trust Navy) */
  --secondary: #1D3557;
  --secondary-hover: #14243B;
  --secondary-light: #457B9D;
  --secondary-subtle: rgba(29, 53, 87, 0.06);

  /* Brand Accent Colors (Warm Amber / Gold Spark) */
  --accent: #F4A261;
  --accent-hover: #E76F51;
  --accent-light: #FFF7ED;
  --accent-gold: #E59866;
  --accent-border: #F8B27A;

  /* Status & Trust Colors */
  --success: #2A9D8F;
  --success-dark: #21867A;
  --success-light: #E8F8F5;
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5D;
  --warning: #E9C46A;
  --danger: #E63946;
  --star-gold: #FFB703;

  /* Neutral Backgrounds & Cards */
  --bg-main: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-subtle: #F4F6F8;
  --bg-alt: #F1F5F9;

  /* Typography Colors */
  --text-primary: #1A1A2E;
  --text-secondary: #6C757D;
  --text-muted: #8E9AAF;
  --text-white: #FFFFFF;
  --text-light: #F8F9FA;

  /* Borders & Dividers */
  --border-color: #E2E8F0;
  --border-light: #EDF2F7;
  --border-dark: #CBD5E1;
  --border-focus: #E63946;

  /* Shadows (Multi-layered, modern aesthetic) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(29, 53, 87, 0.08);
  --shadow-lg: 0 10px 25px rgba(29, 53, 87, 0.10);
  --shadow-xl: 0 20px 40px rgba(29, 53, 87, 0.14);
  --shadow-primary: 0 8px 24px rgba(230, 57, 70, 0.30);
  --shadow-whatsapp: 0 8px 24px rgba(37, 211, 102, 0.32);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 14px 30px rgba(230, 57, 70, 0.12);

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography Specs */
  --font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* Spacing Scale */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-8: 3rem;     /* 48px */
  --space-10: 4rem;    /* 64px */

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Hierarchy */
  --z-back: -1;
  --z-base: 1;
  --z-badge: 10;
  --z-sticky-bar: 90;
  --z-header: 100;
  --z-overlay: 900;
  --z-mobile-menu: 1000;
  --z-modal: 1100;
  --z-topbar: 1200;
}

/* ==============================================================================
   2. CSS RESET & NORMALIZE (RTL FIRST)
   ============================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  direction: rtl;
  text-align: right;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F1F1;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selection Color */
::selection {
  background: var(--primary);
  color: var(--text-white);
}

/* ==============================================================================
   3. LAYOUT & GRID UTILITIES
   ============================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container-narrow {
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container-fluid {
  width: 100%;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* CSS Grid Helpers */
.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

/* ==============================================================================
   4. TYPOGRAPHY & SECTION HEADINGS
   ============================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; font-weight: var(--font-weight-bold); }
h5 { font-size: 1.1rem; font-weight: var(--font-weight-bold); }
h6 { font-size: 0.95rem; font-weight: var(--font-weight-semibold); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  font-size: 0.975rem;
}

.text-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Section Title with Decorative Spark Line */
.section-title {
  text-align: center;
  position: relative;
  margin-bottom: var(--space-8);
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: var(--font-weight-black);
  color: var(--secondary);
  margin-bottom: var(--space-2);
}

.section-title .section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 50%, var(--accent) 100%);
  border-radius: var(--radius-full);
  margin: var(--space-3) auto 0 auto;
}

.section-title.text-right {
  text-align: right;
}

.section-title.text-right::after {
  margin-right: 0;
  margin-left: auto;
}

/* ==============================================================================
   5. BUTTONS & CTA STYLES
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-normal);
  user-select: none;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

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

/* Primary Button (Vibrant Red Spark Gradient) */
.btn-primary {
  background: linear-gradient(135deg, #E63946 0%, #D62828 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
  border-color: #E63946;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF4D5E 0%, #C92020 100%);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(230, 57, 70, 0.42);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
}

.btn-primary:hover::after {
  left: 140%;
}

/* Secondary Button (Deep Navy Outlined) */
.btn-secondary {
  background-color: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* WhatsApp Button */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1EBE5D 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-whatsapp);
  border-color: #25D366;
  font-weight: var(--font-weight-bold);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2EE06E 0%, #1AA851 100%);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp svg,
.btn-whatsapp i {
  font-size: 1.35rem;
  line-height: 1;
}

/* Button Sizes */
.btn-lg {
  padding: 0.95rem 2.25rem;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-pulse {
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* ==============================================================================
   6. BADGES, LABELS & CHIPS
   ============================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.65rem;
  font-size: 0.775rem;
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-full);
  line-height: 1.2;
}

.badge-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #E63946 0%, #D62828 100%);
  color: var(--text-white);
  padding: 0.35rem 0.85rem;
  font-size: 0.825rem;
  font-weight: var(--font-weight-black);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
  transform: rotate(3deg);
  z-index: var(--z-badge);
}

.badge-bestseller {
  background: linear-gradient(135deg, #F4A261 0%, #E76F51 100%);
  color: var(--text-white);
  padding: 0.35rem 0.85rem;
  font-size: 0.825rem;
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(244, 162, 97, 0.35);
}

.badge-success {
  background-color: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(42, 157, 143, 0.25);
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(230, 57, 70, 0.09);
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
}

.badge-live .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

/* ==============================================================================
   7. TOP ANNOUNCEMENT BAR (TICKER)
   ============================================================================== */
.top-bar {
  background: linear-gradient(90deg, #D62828 0%, #E63946 50%, #C92A37 100%);
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  padding: 0.45rem 0;
  position: relative;
  overflow: hidden;
  z-index: var(--z-topbar);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  white-space: nowrap;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  display: flex;
}

.ticker-move {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
  gap: 3rem;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--font-weight-semibold);
  font-size: 0.875rem;
}

.ticker-item span.highlight {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-black);
}

.top-bar:hover .ticker-move {
  animation-play-state: paused;
}

/* ==============================================================================
   8. STICKY HEADER & NAVBAR
   ============================================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: var(--z-header);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-4);
}

/* Brand Logo (Official Vector Logo Support) */
.header__logo,
.header-logo,
.mega-header__logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__logo img,
.header-logo img,
.mega-header__logo-wrap img {
  height: 46px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.header__logo:hover img,
.header-logo:hover img,
.mega-header__logo-wrap:hover img {
  transform: scale(1.03);
}

.header-logo .spark-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
}

.header-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header-logo .brand-en {
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  color: var(--secondary);
  font-weight: var(--font-weight-black);
}

.header-logo .brand-ar {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: var(--font-weight-bold);
}

/* Navigation Links (Desktop) */
.nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-5);
  }

  .nav-link {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    padding: 0.5rem 0.25rem;
    position: relative;
    transition: color var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--primary);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
}

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

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  color: var(--secondary);
  transition: all var(--transition-fast);
}

.cart-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
}

.cart-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background-color: var(--primary);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: var(--font-weight-black);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  animation: bounce 0.3s ease;
}

/* Mobile Menu Toggle Button */
.mobile-toggle-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.mobile-toggle-btn:hover {
  background-color: var(--primary-light);
}

.mobile-toggle-btn span {
  width: 22px;
  height: 2.5px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

@media (min-width: 992px) {
  .mobile-toggle-btn {
    display: none;
  }
}

/* ==============================================================================
   9. MOBILE MENU & OVERLAY (SLIDE FROM RIGHT RTL)
   ============================================================================== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--bg-card);
  z-index: var(--z-mobile-menu);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  transition: right var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-4);
}

.mobile-close-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-close-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--space-3);
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ==============================================================================
   10. HERO SECTION
   ============================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1D3557 0%, #152740 60%, #0F1C2E 100%);
  color: var(--text-white);
  padding: var(--space-8) 0 var(--space-10) 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.25) 0%, rgba(230, 57, 70, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.18) 0%, rgba(244, 162, 97, 0) 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  position: relative;
  z-index: var(--z-base);
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-8);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
}

.hero-title {
  color: var(--text-white);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: var(--font-weight-black);
  line-height: 1.25;
  margin-bottom: var(--space-4);
}

.hero-title .highlight-spark {
  background: linear-gradient(135deg, #FF6B6B 0%, #F4A261 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero-trust-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-trust-bullet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
}

.hero-trust-bullet svg {
  color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-media-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
}

.hero-image-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: var(--z-badge);
  animation: float 4s ease-in-out infinite;
}

.hero-floating-card.top-right {
  top: 20px;
  right: -15px;
}

.hero-floating-card.bottom-left {
  bottom: 25px;
  left: -15px;
  animation-delay: -2s;
}

.floating-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.floating-icon.gold {
  background: var(--accent-light);
  color: var(--accent-hover);
}

.floating-icon.green {
  background: var(--success-light);
  color: var(--success);
}

.floating-text .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.floating-text .value {
  font-size: 0.95rem;
  font-weight: var(--font-weight-black);
  color: var(--text-primary);
}

/* ==============================================================================
   11. PRODUCT CARD & PRODUCT GRID
   ============================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }
}

/* Product Card Component */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(230, 57, 70, 0.3);
}

.product-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-img-wrap img {
  transform: scale(1.06);
}

.product-card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-tag {
  font-size: 0.775rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.product-card-title {
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  transition: color var(--transition-fast);
}

.product-card:hover .product-card-title {
  color: var(--primary);
}

/* Rating Stars */
.rating-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: var(--space-2);
}

.rating-stars svg,
.rating-stars .star-icon {
  width: 15px;
  height: 15px;
  color: var(--star-gold);
  fill: currentColor;
}

.rating-stars .rating-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 4px;
}

/* Price Display Component */
.product-price-box {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: auto;
  margin-bottom: var(--space-3);
}

.price-current {
  font-size: 1.35rem;
  font-weight: var(--font-weight-black);
  color: var(--primary);
  line-height: 1;
}

.price-current .currency {
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  margin-right: 2px;
}

.price-old {
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, #E63946 0%, #D62828 100%);
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

.product-card-btn:hover {
  background: linear-gradient(135deg, #FF4D5E 0%, #C92020 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.4);
}

/* Stock Urgency Bar inside Card */
.stock-bar-wrap {
  margin-bottom: var(--space-2);
}

.stock-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stock-bar-track {
  width: 100%;
  height: 6px;
  background-color: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: var(--radius-full);
  width: 75%;
}

/* ==============================================================================
   12. TRUST BADGES SECTION
   ============================================================================== */
.trust-badges-section {
  padding: var(--space-6) 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-badges,
.trust-badges-wrap {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}

.trust-badges::-webkit-scrollbar,
.trust-badges-wrap::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .trust-badges,
  .trust-badges-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    padding-bottom: 0;
  }
}

.trust-badge-item {
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

@media (min-width: 768px) {
  .trust-badge-item {
    flex: unset;
  }
}

.trust-badge-item:hover {
  background-color: var(--primary-light);
  border-color: rgba(230, 57, 70, 0.25);
  transform: translateY(-2px);
}

.trust-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light) 0%, #FFE0E3 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.trust-badge-text h4 {
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.trust-badge-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ==============================================================================
   13. FEATURES SECTION (ICON BOXES)
   ============================================================================== */
.features-section {
  padding: var(--space-8) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

.feature-card {
  background: var(--bg-card);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 57, 70, 0.25);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4) auto;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary-light) 0%, #FFE5E8 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 16px rgba(230, 57, 70, 0.12);
  transition: transform var(--transition-bounce);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==============================================================================
   14. TESTIMONIALS SECTION (SOCIAL PROOF CARDS)
   ============================================================================== */
.testimonials-section {
  padding: var(--space-8) 0;
  background-color: var(--bg-subtle);
}

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

@media (min-width: 768px) {
  .testimonials,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .testimonials,
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

.testimonial-card {
  background: var(--bg-card);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-black);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-author-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-author-name {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.verified-badge {
  color: var(--success);
  font-size: 0.775rem;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: var(--font-weight-semibold);
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  flex-grow: 1;
}

.testimonial-product-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  color: var(--secondary);
  background-color: var(--bg-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

/* ==============================================================================
   15. COUNTDOWN TIMER & URGENCY BOX
   ============================================================================== */
.countdown-timer-wrap {
  background: linear-gradient(135deg, #1D3557 0%, #152740 100%);
  color: var(--text-white);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-5);
}

@media (min-width: 576px) {
  .countdown-timer-wrap {
    flex-direction: row;
    justify-content: space-between;
  }
}

.countdown-timer-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--accent);
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  direction: ltr; /* Keeps numbers in 00:00 order */
}

.timer-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.65rem;
  min-width: 50px;
  text-align: center;
}

.timer-num {
  font-size: 1.25rem;
  font-weight: var(--font-weight-black);
  color: var(--text-white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.timer-label {
  font-size: 0.675rem;
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.timer-separator {
  font-size: 1.25rem;
  font-weight: var(--font-weight-black);
  color: var(--accent);
}

/* ==============================================================================
   16. BREADCRUMBS
   ============================================================================== */
.breadcrumb-wrap {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-3) 0;
  margin-bottom: var(--space-5);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb-item a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--primary);
  font-weight: var(--font-weight-bold);
}

.breadcrumb-separator {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ==============================================================================
   17. PRODUCT DETAIL PAGE (PDP) COMPONENTS
   ============================================================================== */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 992px) {
  .pdp-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
  }
}

/* Gallery Component */
.product-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 992px) {
  .product-gallery {
    position: sticky;
    top: 90px;
  }
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-main:hover img {
  transform: scale(1.08);
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumb-item {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  background-color: var(--bg-card);
}

.gallery-thumb-item:hover,
.gallery-thumb-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  transform: translateY(-2px);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info Section */
.product-info,
.product-info-wrap {
  display: flex;
  flex-direction: column;
}

.product-info-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: var(--font-weight-black);
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: var(--space-3);
}

.product-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

.product-pdp-price {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pdp-price-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.pdp-price-current {
  font-size: 2.2rem;
  font-weight: var(--font-weight-black);
  color: var(--primary);
  line-height: 1;
}

.pdp-price-current .currency {
  font-size: 1.1rem;
}

.pdp-price-old {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pdp-save-badge {
  background-color: #FFE5E8;
  color: var(--primary);
  font-weight: var(--font-weight-black);
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

/* Pricing Tiers / Quantity Bundles (COD Maximizer) */
.pricing-tiers,
.pricing-tiers-section {
  margin-bottom: var(--space-5);
}

.pricing-tiers-title {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--secondary);
  margin-bottom: var(--space-3);
}

.pricing-tiers-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-tier-card {
  position: relative;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pricing-tier-card:hover {
  border-color: var(--accent-border);
  background-color: var(--accent-light);
}

.pricing-tier-card.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.15);
}

.tier-radio-side {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tier-radio-custom {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.pricing-tier-card.selected .tier-radio-custom {
  border-color: var(--primary);
  background-color: var(--primary);
}

.pricing-tier-card.selected .tier-radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--text-white);
  border-radius: 50%;
}

.tier-info h4 {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 2px;
  color: var(--text-primary);
}

.tier-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.tier-price-side {
  text-align: left;
}

.tier-price {
  font-size: 1.25rem;
  font-weight: var(--font-weight-black);
  color: var(--primary);
}

.tier-shipping-badge {
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--success);
}

.pricing-tier-highlight-tag {
  position: absolute;
  top: -10px;
  left: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--text-white);
  font-size: 0.725rem;
  font-weight: var(--font-weight-black);
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(244, 162, 97, 0.4);
}

/* Quantity Selector Component */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 48px;
  min-width: 140px;
}

.qty-btn {
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: var(--font-weight-black);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.qty-input {
  width: 52px;
  height: 100%;
  text-align: center;
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  border: none;
  background: transparent;
}

/* Product Tabs */
.product-tabs,
.product-tabs-section {
  margin-top: var(--space-8);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  overflow-x: auto;
}

.tab-btn {
  padding: var(--space-4) var(--space-5);
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  background-color: var(--bg-card);
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
  padding: var(--space-6);
  line-height: 1.8;
}

.tab-pane.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.specs-table {
  width: 100%;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-light);
}

.specs-table th,
.specs-table td {
  padding: var(--space-3) var(--space-4);
  font-size: 0.95rem;
}

.specs-table th {
  width: 35%;
  font-weight: var(--font-weight-bold);
  color: var(--secondary);
  background-color: var(--bg-subtle);
}

.specs-table td {
  color: var(--text-primary);
}

/* ==============================================================================
   18. CHECKOUT & ORDER FORM (COD ENGINE)
   ============================================================================== */
.checkout-section {
  padding: var(--space-6) 0 var(--space-10) 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: var(--space-6);
  }
}

/* White Form Card */
.checkout-form,
.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .checkout-form,
  .checkout-card {
    padding: var(--space-6);
  }
}

.checkout-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--border-light);
}

.checkout-card-header .header-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.checkout-card-header h3 {
  font-size: 1.3rem;
  font-weight: var(--font-weight-black);
  margin-bottom: 0;
  color: var(--secondary);
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--primary);
  margin-right: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-subtle);
  background-color: #FFFFFF;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger);
  background-color: #FFF8F8;
}

.invalid-feedback {
  display: none;
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  color: var(--danger);
  margin-top: 4px;
}

.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Select Dropdown with Custom Arrow */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%235C677D' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Phone Input with Egypt Flag/Prefix */
.phone-input-wrap {
  position: relative;
  display: flex;
}

.phone-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-secondary);
  direction: ltr;
  pointer-events: none;
}

.phone-prefix .eg-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.phone-input-wrap .form-input {
  padding-left: 80px;
  letter-spacing: 0.5px;
}

/* Order Bump Component (COD AOV Booster) */
.order-bump {
  border: 2px dashed var(--accent-border);
  background: linear-gradient(135deg, #FFFBF5 0%, #FFF8EE 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: var(--space-5) 0;
  position: relative;
  transition: all var(--transition-fast);
}

.order-bump:hover {
  border-color: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(244, 162, 97, 0.2);
}

.order-bump-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: var(--font-weight-black);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(244, 162, 97, 0.4);
}

.order-bump-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.bump-checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.bump-content h4 {
  font-size: 1.05rem;
  font-weight: var(--font-weight-black);
  color: var(--secondary);
  margin-bottom: 4px;
}

.bump-content h4 .bump-price {
  color: var(--primary);
  font-weight: var(--font-weight-black);
  margin-right: 4px;
}

.bump-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Order Summary Card (Sidebar) */
.order-summary,
.order-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}

.summary-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-black);
  color: var(--secondary);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.summary-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  background-color: var(--bg-subtle);
  flex-shrink: 0;
}

.summary-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-item-details {
  flex-grow: 1;
}

.summary-item-title {
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.summary-item-qty {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.summary-item-price {
  font-size: 1.05rem;
  font-weight: var(--font-weight-black);
  color: var(--primary);
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.summary-row.total-row {
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 2px dashed var(--border-color);
  font-size: 1.35rem;
  font-weight: var(--font-weight-black);
  color: var(--secondary);
}

.total-row .total-amount {
  color: var(--primary);
  font-size: 1.5rem;
}

.free-shipping-tag {
  background-color: var(--success-light);
  color: var(--success);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
}

.cod-badge-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.cod-badge-icon {
  font-size: 1.5rem;
  color: var(--success);
}

.cod-badge-text h5 {
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 2px;
}

.cod-badge-text p {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==============================================================================
   19. THANK YOU / ORDER SUCCESS PAGE
   ============================================================================== */
.thank-you-section {
  padding: var(--space-8) 0 var(--space-10) 0;
  display: flex;
  justify-content: center;
}

.thank-you-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .thank-you-card {
    padding: var(--space-8);
  }
}

/* Animated Checkmark */
.checkmark-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success-light) 0%, #D4F4EE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4) auto;
  box-shadow: 0 10px 24px rgba(42, 157, 143, 0.25);
  animation: checkmark 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.checkmark-circle svg {
  width: 48px;
  height: 48px;
  color: var(--success);
}

.thank-you-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: var(--font-weight-black);
  color: var(--secondary);
  margin-bottom: var(--space-2);
}

.thank-you-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

/* Order Code Box */
.order-code-box {
  background: var(--bg-subtle);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}

.order-code-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.order-code-number {
  font-size: 1.4rem;
  font-weight: var(--font-weight-black);
  color: var(--primary);
  letter-spacing: 1px;
}

/* Step Progression on Thank You */
.order-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  text-align: right;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

@media (min-width: 576px) {
  .order-steps {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }
}

.order-step-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 576px) {
  .order-step-item {
    flex-direction: column;
    text-align: center;
  }
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-step-item.active .step-num {
  background-color: var(--success);
}

.step-text h5 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.step-text p {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.whatsapp-confirm-btn {
  background: linear-gradient(135deg, #25D366 0%, #1EBE5D 100%);
  color: var(--text-white);
  font-size: 1.15rem;
  font-weight: var(--font-weight-black);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-whatsapp);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: var(--space-4);
  transition: all var(--transition-fast);
}

.whatsapp-confirm-btn:hover {
  background: linear-gradient(135deg, #2EE06E 0%, #1AA851 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  color: var(--text-white);
}

.whatsapp-confirm-btn svg {
  width: 26px;
  height: 26px;
}

/* ==============================================================================
   20. MOBILE STICKY BOTTOM COD BAR
   ============================================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1rem;
  z-index: var(--z-sticky-bar);
}

.mobile-sticky-bar.visible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.12);
}

@media (max-width: 767px) {
  .mobile-sticky-bar.visible {
    border-radius: 0;
    max-width: 100%;
    gap: var(--space-3);
  }
}

.sticky-bar-price {
  display: flex;
  flex-direction: column;
}

.sticky-bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sticky-bar-amount {
  font-size: 1.25rem;
  font-weight: var(--font-weight-black);
  color: var(--primary);
  line-height: 1.1;
}

.sticky-bar-amount .currency {
  font-size: 0.8rem;
}

.sticky-bar-btn {
  flex-grow: 1;
  max-width: 200px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

/* ==============================================================================
   21. FOOTER (DARK NAVY THEME)
   ============================================================================== */
.footer {
  background: linear-gradient(180deg, #1D3557 0%, #14243B 100%);
  color: rgba(255, 255, 255, 0.85);
  padding-top: var(--space-8);
  margin-top: auto;
  border-top: 3px solid var(--primary);
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: var(--space-2);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.925rem;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.925rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links li a:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item svg {
  color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.4);
}

/* Footer Bottom Bar */
.footer-bottom {
  background: #0E1A2B;
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}

.copyright-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

.payment-trust-badges {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

.payment-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==============================================================================
   22. UTILITY CLASSES
   ============================================================================== */
/* Text Alignments */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

/* Margins (Top, Bottom, All) */
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }

.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }

.my-1 { margin-top: var(--space-1) !important; margin-bottom: var(--space-1) !important; }
.my-2 { margin-top: var(--space-2) !important; margin-bottom: var(--space-2) !important; }
.my-3 { margin-top: var(--space-3) !important; margin-bottom: var(--space-3) !important; }
.my-4 { margin-top: var(--space-4) !important; margin-bottom: var(--space-4) !important; }
.my-5 { margin-top: var(--space-5) !important; margin-bottom: var(--space-5) !important; }

/* Paddings */
.py-1 { padding-top: var(--space-1) !important; padding-bottom: var(--space-1) !important; }
.py-2 { padding-top: var(--space-2) !important; padding-bottom: var(--space-2) !important; }
.py-3 { padding-top: var(--space-3) !important; padding-bottom: var(--space-3) !important; }
.py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }
.py-5 { padding-top: var(--space-5) !important; padding-bottom: var(--space-5) !important; }

.px-1 { padding-left: var(--space-1) !important; padding-right: var(--space-1) !important; }
.px-2 { padding-left: var(--space-2) !important; padding-right: var(--space-2) !important; }
.px-3 { padding-left: var(--space-3) !important; padding-right: var(--space-3) !important; }
.px-4 { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
.px-5 { padding-left: var(--space-5) !important; padding-right: var(--space-5) !important; }

/* Display & Flex Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.flex-grow { flex-grow: 1 !important; }

.gap-1 { gap: var(--space-1) !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-3 { gap: var(--space-3) !important; }
.gap-4 { gap: var(--space-4) !important; }

/* Colors & Backgrounds */
.text-primary-color { color: var(--primary) !important; }
.text-secondary-color { color: var(--secondary) !important; }
.text-accent-color { color: var(--accent) !important; }
.text-success-color { color: var(--success) !important; }
.text-muted-color { color: var(--text-muted) !important; }

.bg-white { background-color: #FFFFFF !important; }
.bg-subtle { background-color: var(--bg-subtle) !important; }
.bg-light { background-color: var(--bg-main) !important; }

/* Rounded Helpers */
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* ==============================================================================
   23. KEYFRAME ANIMATIONS
   ============================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.55);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(230, 57, 70, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
  }
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(230, 57, 70, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Skeleton Loading Effect */
.skeleton {
  background: linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ==============================================================================
   24. RESPONSIVE MEDIA QUERIES & ACCESSIBILITY
   ============================================================================== */
@media (max-width: 575px) {
  :root {
    --space-4: 0.875rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
  }

  .btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-floating-card {
    display: none; /* Hide floating cards on small mobile for clean view */
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    padding: var(--space-6) 0 var(--space-8) 0;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Stylesheet */
@media print {
  .top-bar,
  .header,
  .mobile-menu,
  .mobile-overlay,
  .mobile-sticky-bar,
  .footer,
  .btn,
  .countdown-timer-wrap {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
  }

  .container,
  .checkout-card,
  .thank-you-card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
}

/* ==============================================================================
 * HOME SPARK 3D INTERACTIVE VISUAL ENGINE (60 FPS PURE CSS3 & VANILLA JS)
 * ============================================================================== */

/* 1. بطاقات المنتجات ثلاثية الأبعاد (3D Perspective Product Cards) */
.product-card {
  perspective: 1200px !important;
  transform-style: preserve-3d !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease !important;
  will-change: transform;
}

.product-card:hover {
  box-shadow: 0 30px 50px -15px rgba(15, 23, 42, 0.2), 0 12px 25px -5px rgba(217, 4, 41, 0.15) !important;
}

/* طبقة الإضاءة والبريق ثلاثي الأبعاد (3D Shimmer Glare) */
.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -160%;
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 10;
}

.product-card:hover::after {
  left: 160%;
}

/* بروز صورة المنتج في الفضاء ثلاثي الأبعاد (Pop-Out 3D Layer) */
.product-card-media {
  transform-style: preserve-3d !important;
}

.product-card-thumb,
.product-card img {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease !important;
  transform: translateZ(10px);
}

.product-card:hover .product-card-thumb,
.product-card:hover img {
  transform: scale(1.08) translateZ(35px) !important;
  filter: contrast(1.03) saturate(1.05);
}

/* الشارات الطافية ثلاثية الأبعاد */
.product-badge,
.discount-badge,
.product-card .badge {
  transform: translateZ(45px) !important;
  box-shadow: 0 8px 16px rgba(217, 4, 41, 0.35) !important;
  animation: badgeLevitate 3.5s ease-in-out infinite alternate;
}

@keyframes badgeLevitate {
  0% { transform: translateZ(45px) translateY(0); }
  100% { transform: translateZ(55px) translateY(-4px); }
}

/* 2. الحركة ثلاثية الأبعاد لصورة البانر والمنتج المميز (Hero 3D Floating) */
.hero-3d-floating,
.hero-product-img,
.hero-visual img,
.hero-main-card img {
  animation: hero3DFloat 6s ease-in-out infinite alternate !important;
  transform-style: preserve-3d !important;
  will-change: transform, filter !important;
}

@keyframes hero3DFloat {
  0% {
    transform: perspective(1000px) translateY(0px) rotateX(0deg) rotateY(0deg) scale(1);
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.15));
  }
  50% {
    transform: perspective(1000px) translateY(-14px) rotateX(5deg) rotateY(-6deg) scale(1.03);
    filter: drop-shadow(0 35px 35px rgba(0, 0, 0, 0.22));
  }
  100% {
    transform: perspective(1000px) translateY(-5px) rotateX(-3deg) rotateY(4deg) scale(1.01);
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.18));
  }
}

/* 3. الأزرار المجسمة ثلاثية الأبعاد ذات الإحساس اللمسي (3D Tactile Push Buttons) */
.btn-primary,
.btn--primary,
#buy-now-btn,
.product-card-actions .btn {
  position: relative !important;
  transform-style: preserve-3d !important;
  box-shadow: 0 6px 0 #9E021D, 0 12px 22px rgba(217, 4, 41, 0.35) !important;
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.12s ease !important;
}

.btn-primary:hover,
.btn--primary:hover,
#buy-now-btn:hover,
.product-card-actions .btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 0 #9E021D, 0 16px 28px rgba(217, 4, 41, 0.45) !important;
}

.btn-primary:active,
.btn--primary:active,
#buy-now-btn:active,
.product-card-actions .btn:active {
  transform: translateY(4px) !important;
  box-shadow: 0 2px 0 #9E021D, 0 6px 10px rgba(217, 4, 41, 0.25) !important;
}

/* 4. الختم الملكي الدوار ثلاثي الأبعاد (3D Rotating Royal Guarantee Coin) */
.royal-seal-3d,
.badge-guarantee-img,
img[src*="badge-guarantee"],
img[src*="badge_royal_guarantee"] {
  animation: royalCoin3D 9s ease-in-out infinite !important;
  transform-style: preserve-3d !important;
}

@keyframes royalCoin3D {
  0%, 100% { transform: perspective(800px) rotateY(0deg) scale(1); }
  25% { transform: perspective(800px) rotateY(22deg) scale(1.05); }
  75% { transform: perspective(800px) rotateY(-22deg) scale(1.05); }
}

/* 5. شريط الثقة التفاعلي ذو البروز ثلاثي الأبعاد */
.mega-trust-item {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
  perspective: 600px !important;
}

.mega-trust-item:hover {
  transform: translateY(-6px) translateZ(20px) !important;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08) !important;
}

.mega-trust-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.mega-trust-item:hover .mega-trust-icon {
  transform: scale(1.25) rotate(8deg) !important;
}

/* 6. تأثير المجسم العائم على صور صفحة المنتج */
.gallery-main-img-wrap img {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.gallery-main-img-wrap:hover img {
  transform: scale(1.06) rotateZ(1deg);
}
