/* ===================================================================
   HandCraft Store - Luxury Artisan Design System
   متجر المشغولات اليدوية - هوية فاخرة وحديثة
   =================================================================== */

:root {
  --font-arabic: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Cormorant Garamond', 'Tajawal', serif;
  
  /* Color Palette - Luxury Handcraft Tone */
  --primary: #C9A96E;           /* Gold Leaf */
  --primary-hover: #b89659;
  --primary-light: #F7EFE1;
  --primary-dark: #8F7038;
  
  --secondary: #3B1B26;         /* Deep Rich Burgundy */
  --secondary-light: #5A2D3C;
  
  --accent-terracotta: #C46D50; /* Terracotta Clay */
  --accent-rose: #E7C4B7;       /* Blush Rose */
  --accent-olive: #656D4A;      /* Sage / Olive */
  
  --bg-page: #FAF8F5;          /* Warm Ivory / Raw Linen */
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F3EFEA;
  
  --text-main: #1D1B1B;        /* Charcoal Noir */
  --text-muted: #6B6565;
  --text-light: #9B9494;
  --text-on-dark: #FAF8F5;
  
  --border-light: rgba(201, 169, 110, 0.22);
  --border-subtle: #E8E2D9;
  
  --shadow-sm: 0 4px 12px rgba(35, 25, 20, 0.04);
  --shadow-md: 0 10px 30px rgba(35, 25, 20, 0.08);
  --shadow-lg: 0 20px 50px rgba(35, 25, 20, 0.12);
  --shadow-glow: 0 0 35px rgba(201, 169, 110, 0.35);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1280px;
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ===================================================================
   Top Announcement Bar
   =================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, var(--secondary) 0%, #200E15 100%);
  color: #F8F3EB;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}
.announcement-bar .badge-gold {
  background: var(--primary);
  color: var(--secondary);
  font-weight: 700;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  margin-inline-end: 0.5rem;
  display: inline-block;
}

/* ===================================================================
   Header & Navbar (Glassmorphism + Sticky)
   =================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}
.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
}
.brand-text span {
  font-size: 0.72rem;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}
.nav-link {
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-dark);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.action-btn {
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.15rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.action-btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent-terracotta);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-toggle {
  display: none;
}

/* ===================================================================
   Hero Section with Motion Banner
   =================================================================== */
.hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: radial-gradient(circle at top right, rgba(201, 169, 110, 0.12), transparent 50%),
              radial-gradient(circle at bottom left, rgba(59, 27, 38, 0.05), transparent 40%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  opacity: 1 !important;
  visibility: visible !important;
}
.hero-badge i {
  color: var(--primary);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1.25;
  margin-bottom: 1.5rem;
  opacity: 1 !important;
  visibility: visible !important;
}
.hero-title .highlight {
  position: relative;
  color: var(--primary-dark);
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 0;
  width: 100%;
  height: 12px;
  background: rgba(201, 169, 110, 0.25);
  z-index: -1;
  border-radius: 4px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.2rem;
  line-height: 1.8;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 2rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.55);
}
.btn-secondary {
  background: var(--bg-surface);
  color: var(--secondary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--bg-surface-alt);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.hero-features-bar {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.feat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.feat-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}
.feat-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Hero Media Display */
.hero-media-wrapper {
  position: relative;
}
.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  background: #eee;
  aspect-ratio: 4/3;
}
.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.hero-image-card:hover img {
  transform: scale(1.04);
}

/* Floating Glass Cards around Hero */
.floating-badge-card {
  position: absolute;
  bottom: -20px;
  right: -25px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  z-index: 10;
  animation: floatSlow 4s ease-in-out infinite alternate;
}
.badge-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.badge-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--secondary);
}
.badge-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===================================================================
   Section Headers
   =================================================================== */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ===================================================================
   Categories Section
   =================================================================== */
.categories-section {
  padding: 5rem 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.category-card {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  group: true;
}
.cat-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-card:hover .cat-bg {
  transform: scale(1.08);
}
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(35, 15, 22, 0.85) 100%);
  transition: var(--transition);
}
.cat-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 2rem;
  color: #fff;
  z-index: 5;
}
.cat-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.cat-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ===================================================================
   Products Grid & Cards
   =================================================================== */
.products-section {
  padding: 5rem 0;
  background: var(--bg-surface);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}
.prod-media {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f0ede8;
}
.prod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .prod-media img {
  transform: scale(1.06);
}
.prod-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}
.badge-sale {
  background: var(--accent-terracotta);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}
.badge-artisan {
  background: var(--secondary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.prod-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.prod-cat {
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.prod-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.prod-desc-short {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.prod-price {
  display: flex;
  flex-direction: column;
}
.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
}
.old-price {
  font-size: 0.88rem;
  color: var(--text-light);
  text-decoration: line-through;
}
.btn-add-cart {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--border-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}
.btn-add-cart:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

/* ===================================================================
   Brand Story & Workshop Banner
   =================================================================== */
.story-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--secondary) 0%, #200E15 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.story-content h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #FAF8F5;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.story-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.story-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-box strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
}
.stat-box span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.story-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(201, 169, 110, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* ===================================================================
   Footer
   =================================================================== */
.main-footer {
  background: #171516;
  color: #D3CDC7;
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 2px solid var(--border-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #A39B95;
  margin-bottom: 1.5rem;
}
.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FAF8F5;
  transition: var(--transition);
}
.social-link:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
}
.footer-col h4 {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: #A39B95;
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--primary);
  padding-inline-start: 6px;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: #8C847E;
}

/* ===================================================================
   Toast Notification Live Popup
   =================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast-alert {
  background: rgba(29, 27, 27, 0.95);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  border-inline-start: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}
.toast-alert.show {
  transform: translateY(0);
  opacity: 1;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}
.whatsapp-floating:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

/* ===================================================================
   Responsive Mobile Adjustments
   =================================================================== */
@media (max-width: 992px) {
  .hero-grid, .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .nav-menu {
    display: none;
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    background: #FAF8F5;
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.show {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Prevent any horizontal scrolling/overflow on mobile */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .hero-section {
    padding: 3rem 0 2rem;
    overflow: hidden;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.35;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-features-bar {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem;
  }

  /* Safe positioning for floating badge card on mobile: NO negative right/bottom! */
  .floating-badge-card {
    position: static !important;
    margin-top: 1rem !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.85rem 1rem !important;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* 2 Clean Columns on Mobile for products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }

  .product-card {
    padding: 0.65rem;
  }

  .card-title {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .card-meta {
    font-size: 0.78rem;
  }

  .card-price {
    font-size: 1rem;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .card-footer .btn-add-cart {
    width: 100%;
    justify-content: center;
    padding: 0.45rem;
    font-size: 0.82rem;
  }

  /* Categories on Mobile */
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .whatsapp-floating {
    bottom: 1.25rem !important;
    right: 1.25rem !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.5rem !important;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  .product-card {
    padding: 0.5rem;
  }
}

/* ===================================================================
   Marquee Ticker (شريط المميزات الحركي العصري - مضمن في style.css)
   =================================================================== */
.marquee-ticker {
  background: linear-gradient(90deg, #2D141C 0%, #3B1B26 50%, #2D141C 100%);
  color: #F7EFE1;
  padding: 0.85rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(201, 169, 110, 0.3);
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
  position: relative;
  direction: ltr;
  white-space: nowrap;
  width: 100%;
  display: block;
  z-index: 20;
}

.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #FAF8F5;
  direction: rtl;
  white-space: nowrap;
}

.marquee-item i {
  color: #C9A96E;
  font-size: 1rem;
}

.marquee-item .sep {
  opacity: 0.35;
  color: #C9A96E;
  margin-inline-start: 1.5rem;
}

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

@media (max-width: 768px) {
  .marquee-track {
    animation-duration: 20s;
    gap: 1.5rem;
  }
  .marquee-item {
    font-size: 0.82rem;
  }
}

/* ===================================================================
   Product Details Responsive Grid (مضبوط الأبعاد بنسبة 100% لمنع كبر الصورة)
   =================================================================== */
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: 3.5rem;
  align-items: start;
}
.product-gallery-col {
  position: sticky;
  top: 100px;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}
.product-image-box {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  background: #fff;
  aspect-ratio: 1 / 1;
}
.product-image-box img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

@media (max-width: 850px) {
  .product-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .product-gallery-col {
    position: static !important;
    order: -1 !important;
    max-width: 360px !important;
    margin: 0 auto 1rem auto !important;
  }
  .product-image-box {
    max-width: 360px !important;
    max-height: 360px !important;
    margin: 0 auto;
  }
}

/* ===================================================================
   Cart & Checkout Responsive Design System
   =================================================================== */
.cart-layout-grid,
.checkout-layout-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.cart-items-card,
.cart-summary-card,
.checkout-form-card,
.checkout-summary-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.cart-summary-card,
.checkout-summary-card {
  position: sticky;
  top: 100px;
}

.cart-item-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-img {
  width: 85px;
  height: 85px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.cart-item-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-weight: 800;
  color: var(--secondary);
}

.cart-item-controls-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.4rem;
  background: var(--bg-page);
}

.cart-item-qty button {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition);
}

.cart-item-qty button:hover {
  color: var(--primary);
}

.cart-item-qty span {
  width: 32px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.cart-item-actions {
  text-align: left;
  min-width: 90px;
}

.cart-item-subtotal {
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.btn-remove-item {
  border: none;
  background: transparent;
  color: #EF4444;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-remove-item:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Tablet Breakpoint (Under 950px) */
@media (max-width: 950px) {
  .cart-layout-grid,
  .checkout-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .cart-summary-card,
  .checkout-summary-card {
    position: static !important;
    top: auto !important;
    margin-top: 1rem;
  }
}

/* Mobile Breakpoint (Under 650px) */
@media (max-width: 650px) {
  .cart-items-card,
  .cart-summary-card,
  .checkout-form-card,
  .checkout-summary-card {
    padding: 1.25rem !important;
  }

  .cart-item-row {
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: flex-start;
  }

  .cart-item-img {
    width: 70px !important;
    height: 70px !important;
  }

  .cart-item-info {
    width: calc(100% - 85px) !important;
  }

  .cart-item-title {
    font-size: 0.95rem !important;
  }

  .cart-item-controls-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 0.75rem !important;
    border-top: 1px dashed var(--border-subtle) !important;
    margin-top: 0.25rem !important;
  }
}


