/*
Theme Name: Al Haram Security Theme
Theme URI: https://alharamsecurity.com/
Description: ثيم مخصص محترف ومتكامل لمتجر الهرم للأمن والحلول الذكية متوافق مع WooCommerce.
Author: Al-Haram Tech Team
Author URI: https://alharamsecurity.com/
Version: 2.0.0
Text Domain: alharam-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

/* ==========================================================================
   1. DESIGN SYSTEM TOKENS & COLOR PALETTE
   ========================================================================== */
/* WordPress Admin Bar Compatibility */
body.admin-bar .top-bar {
  margin-top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .top-bar {
    margin-top: 46px;
  }
}

:root {
  /* Brand Core Colors */
  --alharam-red: #DC2626;          /* أحمر الشعار الأساسي - أزرار وحواف وتنبيهات */
  --alharam-red-hover: #B91C1C;    /* أحمر داكن للـ Hover */
  --alharam-red-light: #FEF2F2;    /* أحمر خفيف جداً للخلفيات والشارات */
  
  --alharam-navy: #0F172A;         /* كحلي داكن فاخر - الهيدر والفوتر والقوائم */
  --alharam-navy-surface: #1E293B; /* كحلي فاتح للأسطح المرتفعة */
  --alharam-navy-hover: #334155;
  
  --alharam-charcoal: #111827;     /* أسود فحمي للنصوص والعناوين الرئيسية */
  --alharam-tech-blue: #2563EB;   /* أزرق تقني للأيقونات والشارات التكنولوجية */
  --alharam-tech-blue-hover: #1D4ED8;
  
  --alharam-gold: #F59E0B;        /* ذهبي للتقييمات والنجوم والتخفيضات الممتازة */
  
  /* Neutrals & Layout */
  --bg-main: #F8FAFC;              /* خلفية المتجر الناصعة والمريحة */
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  --border-color-dark: #334155;
  
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-white: #FFFFFF;
  
  /* Typography */
  --font-primary: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Tajawal', system-ui, -apple-system, sans-serif;
  
  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
  --shadow-red: 0 6px 16px rgba(220, 38, 38, 0.25);
  
  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

ul {
  list-style: none;
}

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

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

.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   2. TOP ANNOUNCEMENT BAR & HEADER
   ========================================================================== */
.top-bar {
  background-color: var(--alharam-charcoal);
  color: #9CA3AF;
  font-size: 0.825rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-info i {
  color: var(--alharam-red);
}

.top-bar-highlight {
  color: var(--text-white);
  font-weight: 700;
  background: linear-gradient(90deg, var(--alharam-red), #F87171);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

/* MAIN HEADER */
.main-header {
  background-color: var(--alharam-navy);
  color: var(--text-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(225, 59, 63, 0.35);
  background: transparent;
  flex-shrink: 0;
}

.logo-pyramid-icon {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 500;
}

/* AJAX Search Box */
.header-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-form {
  display: flex;
  background-color: var(--alharam-navy-surface);
  border: 1.5px solid var(--border-color-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--alharam-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.search-category-select {
  background: transparent;
  color: #CBD5E1;
  border: none;
  padding: 0 14px;
  font-size: 0.85rem;
  border-left: 1px solid var(--border-color-dark);
  cursor: pointer;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: var(--text-white);
  font-size: 0.925rem;
}

.search-input::placeholder {
  color: #64748B;
}

.search-btn {
  background: var(--alharam-red);
  color: var(--text-white);
  border: none;
  padding: 0 24px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--alharam-red-hover);
}

/* Quick Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  z-index: 1100;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.search-results-dropdown.active {
  display: block;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: var(--transition);
}

.result-item:hover {
  background: #F8FAFC;
}

.result-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}

.result-info {
  flex: 1;
}

.result-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.result-price {
  font-size: 0.8rem;
  color: var(--alharam-red);
  font-weight: 800;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-white);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.action-icon-wrap {
  position: relative;
  font-size: 1.4rem;
}

.badge-count {
  position: absolute;
  top: -6px;
  left: -8px;
  background: var(--alharam-red);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--alharam-navy);
}

.action-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.action-label {
  font-size: 0.725rem;
  color: #94A3B8;
}

.action-val {
  font-size: 0.875rem;
  font-weight: 700;
}

/* NAVIGATION STRIP & CATEGORY TRIGGER */
.header-nav-strip {
  background-color: var(--alharam-navy-surface);
  border-top: 1px solid var(--border-color-dark);
}

.header-nav-strip .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.category-trigger-btn {
  background: var(--alharam-red);
  color: var(--text-white);
  padding: 13px 20px;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  min-width: 270px;
  transition: var(--transition);
}

.category-trigger-btn:hover {
  background: var(--alharam-red-hover);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #CBD5E1;
  font-weight: 700;
  font-size: 0.925rem;
  padding: 13px 0;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--alharam-red);
  border-radius: 3px 3px 0 0;
}

.nav-badge {
  background: var(--alharam-red);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
}

/* ==========================================================================
   3. HERO SECTION & STICKY CATEGORY SIDEBAR (WOODMART LAYOUT)
   ========================================================================== */
.hero-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  padding: 20px 0;
}

/* Sticky Category Menu Sidebar */
.sticky-category-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cat-menu-list {
  display: flex;
  flex-direction: column;
}

.cat-menu-item {
  border-bottom: 1px solid #F1F5F9;
  position: relative;
}

.cat-menu-item:last-child {
  border-bottom: none;
}

.cat-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.cat-menu-link:hover {
  background-color: #F8FAFC;
  color: var(--alharam-red);
  padding-right: 20px;
}

.cat-left-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--alharam-navy);
  font-size: 0.85rem;
}

.cat-menu-link:hover .cat-icon-box {
  background: var(--alharam-red-light);
  color: var(--alharam-red);
}

/* Submenu Dropdown Mega Menu */
.mega-dropdown {
  position: absolute;
  top: 0;
  right: 100%;
  width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}

.cat-menu-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--alharam-navy);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--alharam-red);
  display: inline-block;
}

.mega-links li a {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mega-links li a:hover {
  color: var(--alharam-red);
  font-weight: 700;
}

/* Hero Carousel Banner Slider */
.hero-slider-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 40px 50px;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  max-width: 680px;
  color: var(--text-white);
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-tag {
  display: inline-block;
  background: rgba(220, 38, 38, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(220, 38, 38, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 0.95rem;
  color: #94A3B8;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-primary {
  background: var(--alharam-red);
  color: var(--text-white);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-red);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--alharam-red-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--text-white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-image-wrap {
  position: absolute;
  left: 20px;
  bottom: -20px;
  width: 450px;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

/* ==========================================================================
   4. TRUST FEATURES BAR
   ========================================================================== */
.features-bar {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 10px 0 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--alharam-red-light);
  color: var(--alharam-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--alharam-navy);
}

.feature-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ==========================================================================
   5. FLASH DEALS & PRODUCT GRID (WOODMART STYLE)
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--alharam-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--alharam-navy);
}

/* Countdown Timer */
.countdown-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.timer-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--alharam-red);
}

.timer-digits {
  display: flex;
  gap: 4px;
  font-family: monospace;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--alharam-red);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E1;
  transform: translateY(-4px);
}

/* Badges */
.badge-container {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.badge-discount {
  background: var(--alharam-red);
  color: white;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(220,38,38,0.3);
}

.badge-brand {
  background: var(--alharam-navy);
  color: white;
  font-size: 0.675rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
}

/* Product Image Box */
.product-image-box {
  height: 220px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFAFA;
  position: relative;
  overflow: hidden;
}

.product-image-box img {
  max-height: 180px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

/* Card Action Hover Bar */
.card-hover-actions {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  display: flex;
  gap: 8px;
  transition: var(--transition);
}

.product-card:hover .card-hover-actions {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.quick-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--alharam-navy);
  border: none;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.quick-action-btn:hover {
  background: var(--alharam-red);
  color: white;
}

/* Product Content */
.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-tag {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--alharam-navy);
  line-height: 1.35;
  margin-bottom: 8px;
  height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--alharam-gold);
  font-size: 0.75rem;
  margin-bottom: 12px;
}

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

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 14px;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--alharam-red);
}

.price-old {
  font-size: 0.875rem;
  color: #94A3B8;
  text-decoration: line-through;
}

/* WoodMart Dual Action Buttons */
.card-dual-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-add-cart {
  background: var(--alharam-navy);
  color: white;
  border: none;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--alharam-navy-surface);
}

.btn-quick-buy {
  background: var(--alharam-red);
  color: white;
  border: none;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(220,38,38,0.25);
}

.btn-quick-buy:hover {
  background: var(--alharam-red-hover);
}

/* ==========================================================================
   6. SIDE DRAWER CART & QUICK BUY MODAL
   ========================================================================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

/* Side Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 420px;
  max-width: 90vw;
  background: var(--bg-card);
  z-index: 1300;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.cart-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px;
  background: var(--alharam-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-drawer-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
}

.drawer-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--alharam-navy);
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--alharam-red);
  font-weight: 800;
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: #FAFAFA;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--alharam-navy);
}

.total-amount {
  color: var(--alharam-red);
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: var(--alharam-red);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-red);
  transition: var(--transition);
}

.btn-checkout:hover {
  background: var(--alharam-red-hover);
}

/* Quick Order Modal */
.modal-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 540px;
  max-width: 92vw;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-box.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  background: var(--alharam-navy);
  color: white;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--alharam-navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--alharam-red);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
}

/* ==========================================================================
   7. MOBILE BOTTOM STICKY TOOLBAR
   ========================================================================== */
.mobile-toolbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--alharam-navy);
  color: white;
  border-top: 1px solid var(--border-color-dark);
  z-index: 990;
  padding: 8px 16px;
}

.mobile-toolbar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}

.toolbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #94A3B8;
  font-size: 0.7rem;
  font-weight: 600;
}

.toolbar-item i {
  font-size: 1.2rem;
}

.toolbar-item.active, .toolbar-item:hover {
  color: var(--alharam-red);
}

/* ==========================================================================
   8. FOOTER SECTION
   ========================================================================== */
.main-footer {
  background: var(--alharam-navy);
  color: #CBD5E1;
  padding: 60px 0 20px;
  border-top: 4px solid var(--alharam-red);
  margin-top: auto;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--alharam-red);
  border-radius: 2px;
}

.footer-links li a {
  display: inline-block;
  padding: 6px 0;
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-links li a:hover {
  color: white;
  padding-right: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color-dark);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .sticky-category-sidebar {
    display: none;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bundles-grid, .calculator-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .header-search, .category-trigger-btn {
    display: none;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mobile-toolbar {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .comparison-table {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   9. NEW INTERACTIVE FEATURES & EXTENSIONS
   ========================================================================== */

/* System Builder & HDD Calculator Sections */
.interactive-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
}

.builder-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 30px;
  align-items: start;
}

.builder-step-box {
  margin-bottom: 24px;
}

.builder-step-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--alharam-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.builder-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.builder-option-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #FAFAFA;
}

.builder-option-card:hover, .builder-option-card.selected {
  border-color: var(--alharam-red);
  background: var(--alharam-red-light);
  color: var(--alharam-red);
}

.builder-option-card i {
  font-size: 1.4rem;
  margin-bottom: 6px;
  display: block;
}

.builder-summary-card {
  background: var(--alharam-navy);
  color: white;
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-lg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
}

.summary-total-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: #F87171;
  text-align: center;
  margin: 16px 0;
}

/* Bundles Grid */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.bundle-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.bundle-card.featured {
  border-color: var(--alharam-red);
  box-shadow: var(--shadow-red);
}

.bundle-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--alharam-red);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.bundle-header {
  background: var(--alharam-navy);
  color: white;
  padding: 24px;
  text-align: center;
}

.bundle-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.bundle-price {
  font-size: 1.75rem;
  font-weight: 900;
  color: #F87171;
}

.bundle-features-list {
  padding: 24px;
  flex: 1;
}

.bundle-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.9rem;
}

.bundle-features-list li i {
  color: #22C55E;
}

/* Storage Calculator Box */
.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.calc-result-box {
  background: linear-gradient(135deg, var(--alharam-navy), #1E293B);
  color: white;
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}

.calc-days-big {
  font-size: 3.5rem;
  font-weight: 900;
  color: #F87171;
  line-height: 1;
  margin: 10px 0;
}

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comparison-table th, .comparison-table td {
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9rem;
}

.comparison-table th {
  background: var(--alharam-navy);
  color: white;
  font-weight: 800;
}

.comparison-table tr:nth-child(even) {
  background: #F8FAFC;
}

/* Gallery & Testimonials Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
  color: white;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Floating WhatsApp & Free Visit Trigger Widgets */
.floating-widgets-container {
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-widget-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-whatsapp-float {
  background: #25D366;
}

.btn-whatsapp-float:hover {
  transform: scale(1.1);
  background: #1DA851;
}

.btn-visit-float {
  background: var(--alharam-red);
}

.btn-visit-float:hover {
  transform: scale(1.1);
  background: var(--alharam-red-hover);
}

/* ==========================================================================
   SYSTEM BUILDER & STORAGE CALCULATOR — COMPLETE DESIGN
   ========================================================================== */

/* Interactive Section Wrapper */
.interactive-section {
  background: linear-gradient(135deg, var(--alharam-navy) 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin: 40px 0;
  border: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* System Builder Grid Layout */
.builder-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* Step Box */
.builder-step-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color 0.25s;
}

.builder-step-box:hover {
  border-color: rgba(220, 38, 38, 0.5);
}

/* Step Title */
.builder-step-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Options Grid inside each step */
.builder-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

/* Individual Option Card */
.builder-option-card {
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #CBD5E1;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.builder-option-card i {
  font-size: 1.3rem;
  color: #94A3B8;
  transition: color 0.2s;
}

.builder-option-card:hover {
  border-color: rgba(220, 38, 38, 0.6);
  background: rgba(220, 38, 38, 0.1);
  color: white;
  transform: translateY(-2px);
}

.builder-option-card.selected {
  background: linear-gradient(135deg, var(--alharam-red), #B91C1C);
  border-color: var(--alharam-red);
  color: white;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}

.builder-option-card.selected i {
  color: white;
}

/* Summary Card (Right Column) */
.builder-summary-card {
  background: linear-gradient(160deg, #0F172A 0%, #1E293B 100%);
  border: 2px solid var(--alharam-red);
  border-radius: var(--radius-md);
  padding: 24px;
  color: white;
  position: sticky;
  top: 80px;
}

/* Summary Rows */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: #CBD5E1;
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row strong {
  color: white;
  font-weight: 700;
  text-align: left;
  max-width: 55%;
  font-size: 0.85rem;
}

/* Total Price in Summary */
.summary-total-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: #F87171;
  text-align: center;
  margin: 16px 0 20px;
  line-height: 1;
  text-shadow: 0 0 20px rgba(248, 113, 113, 0.4);
}

/* Section Title (dark sections) */
.interactive-section .section-title {
  color: white;
}

/* Storage Calculator Layout */
.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: center;
}

.calculator-layout .form-label {
  color: #CBD5E1;
  font-weight: 700;
}

.calculator-layout .form-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.calculator-layout .form-control option {
  background: #1E293B;
  color: white;
}

.calculator-layout .form-control:focus {
  border-color: var(--alharam-red);
  background: rgba(255, 255, 255, 0.12);
}

/* Calculator Result Box */
.calc-result-box {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(185, 28, 28, 0.1));
  border: 2px solid rgba(220, 38, 38, 0.4);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  color: white;
}

/* Days Result Big Number */
.calc-days-big {
  font-size: 5rem;
  font-weight: 900;
  color: #F87171;
  line-height: 1;
  margin: 8px 0;
  text-shadow: 0 0 30px rgba(248, 113, 113, 0.5);
}

/* Section Header (interactive dark sections) */
.interactive-section .section-header {
  margin-bottom: 28px;
  padding-bottom: 0;
  border-bottom: none;
}

.interactive-section .section-title-icon {
  background: rgba(220, 38, 38, 0.2);
  border: 2px solid rgba(220, 38, 38, 0.4);
}

/* Responsive Builder */
@media (max-width: 900px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }

  .builder-summary-card {
    position: static;
  }

  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .builder-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .interactive-section {
    padding: 24px 16px;
  }
}

/* ==========================================================================
   SHOP PAGE HERO ANIMATED BANNER SLIDER
   ========================================================================== */
.shop-hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  min-height: 340px;
  border: 1px solid var(--border-color);
}

.shop-slider-wrapper {
  position: relative;
  width: 100%;
  min-height: 340px;
}

.shop-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 50px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
  z-index: 1;
}

.shop-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.shop-slide-content {
  max-width: 680px;
  color: white;
  z-index: 3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.shop-slide-badge {
  display: inline-block;
  background: rgba(220, 38, 38, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(220, 38, 38, 0.4);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}

.shop-slide-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 12px;
  color: white;
  transform: translateY(10px);
  transition: transform 0.5s ease 0.1s;
}

.shop-slide.active .shop-slide-title {
  transform: translateY(0);
}

.shop-slide-desc {
  font-size: 0.95rem;
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 22px;
}

.shop-slide-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-slide-img-wrap {
  width: 320px;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
  transition: transform 0.6s ease;
}

.shop-slide.active .shop-slide-img-wrap {
  transform: scale(1);
}

.shop-slide-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Controls & Arrows */
.shop-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.shop-slider-arrow:hover {
  background: var(--alharam-red);
  border-color: var(--alharam-red);
  transform: translateY(-50%) scale(1.1);
}

.shop-slider-arrow.prev {
  right: 16px;
}

.shop-slider-arrow.next {
  left: 16px;
}

/* Dots */
.shop-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.shop-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.shop-dot.active {
  width: 28px;
  border-radius: 12px;
  background: var(--alharam-red);
}

@media (max-width: 768px) {
  .shop-slide {
    flex-direction: column;
    padding: 30px 20px;
    text-align: center;
  }
  .shop-slide-img-wrap {
    display: none;
  }
  .shop-slide-title {
    font-size: 1.4rem;
  }
  .shop-slide-actions {
    justify-content: center;
  }
}

/* Brands Showcase Section */
.brands-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  align-items: center;
}

.brand-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--alharam-navy);
  font-weight: 800;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.brand-item-card i {
  font-size: 1.8rem;
  transition: transform 0.25s ease;
}

.brand-item-card:hover {
  border-color: var(--alharam-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  background: white;
}

.brand-item-card:hover i {
  transform: scale(1.15);
}

/* Index Hero Slider Controls */
.index-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.index-slider-arrow:hover {
  background: var(--alharam-red);
  border-color: var(--alharam-red);
  transform: translateY(-50%) scale(1.1);
}

.index-slider-arrow.prev {
  right: 16px;
}

.index-slider-arrow.next {
  left: 16px;
}

.index-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.index-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.index-dot.active {
  width: 28px;
  border-radius: 12px;
  background: var(--alharam-red);
}

/* WoodMart Styled Filter Sidebar */
.shop-filter-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: fit-content;
  width: 100%;
  box-sizing: border-box;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--alharam-red);
  padding-bottom: 8px;
}

.filter-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--alharam-navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-reset-filters {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-reset-filters:hover {
  color: var(--alharam-red);
}

.filter-group-box {
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 14px;
}

.filter-group-box:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-group-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--alharam-navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Price Range Slider */
.price-range-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-slider-range {
  width: 100%;
  accent-color: var(--alharam-red);
  cursor: pointer;
}

.price-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Filter Checkbox Options */
.filter-options-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.custom-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-main);
  user-select: none;
  transition: color 0.2s;
  width: 100%;
}

.custom-filter-item:hover {
  color: var(--alharam-red);
}

.custom-filter-item input {
  display: none;
}

.custom-checkbox {
  width: 16px;
  height: 16px;
  border: 2px solid #CBD5E1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-filter-item input:checked + .custom-checkbox {
  background: var(--alharam-red);
  border-color: var(--alharam-red);
}

.custom-filter-item input:checked + .custom-checkbox::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: white;
  font-size: 0.6rem;
}

.filter-item-label {
  flex-grow: 1;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.filter-count-badge {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #64748B;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  margin-right: auto;
}

/* Professional Product Detail Page Styling */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.breadcrumb-nav a:hover {
  color: var(--alharam-red);
}

.product-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-display {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.main-image-display img {
  max-height: 380px;
  width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.main-image-display:hover img {
  transform: scale(1.05);
}

.product-thumbs-list {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.product-thumb-item {
  width: 70px;
  height: 70px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  cursor: pointer;
  background: white;
  transition: all 0.2s ease;
}

.product-thumb-item.active,
.product-thumb-item:hover {
  border-color: var(--alharam-red);
  box-shadow: 0 0 0 3px rgba(225, 59, 63, 0.15);
}

.product-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Variant Options Selector */
.variant-options-group {
  margin-bottom: 20px;
}

.variant-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--alharam-navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.variant-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-chip {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.variant-chip:hover {
  border-color: var(--alharam-red);
  color: var(--alharam-red);
}

.variant-chip.active {
  background: rgba(225, 59, 63, 0.08);
  border-color: var(--alharam-red);
  color: var(--alharam-red);
}

/* Trust Badges Row */
.trust-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 24px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--alharam-navy);
}

.trust-item i {
  font-size: 1.3rem;
  color: var(--alharam-red);
  flex-shrink: 0;
}

/* Tabs Section */
.product-tabs-wrapper {
  margin-top: 48px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.product-tabs-header {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  background: #F8FAFC;
}

.product-tab-btn {
  padding: 16px 28px;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-tab-btn:hover {
  color: var(--alharam-red);
}

.product-tab-btn.active {
  color: var(--alharam-red);
  background: white;
  border-bottom-color: var(--alharam-red);
}

.product-tab-content {
  padding: 32px;
  display: none;
}

.product-tab-content.active {
  display: block;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.specs-table tr:nth-child(even) {
  background: #F8FAFC;
}

.specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.specs-table td:first-child {
  font-weight: 800;
  color: var(--alharam-navy);
  width: 30%;
}

/* Floating Product Comparison Bar & Modal */
.compare-floating-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--alharam-navy);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 999;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.compare-floating-bar.active {
  transform: translateX(-50%) translateY(0);
}

.compare-thumbs-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-thumb-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--alharam-red);
  overflow: hidden;
  background: white;
}

.compare-thumb-pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.compare-modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.compare-modal-content {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 950px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.compare-table th,
.compare-table td {
  padding: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.compare-table th {
  background: #F8FAFC;
  color: var(--alharam-navy);
  font-weight: 800;
}

.compare-table tr td:first-child {
  font-weight: 800;
  color: var(--alharam-navy);
  background: #F8FAFC;
  text-align: right;
  width: 20%;
}






/* Brand Logo Showcase Styles */
.brand-logo-img {
  max-width: 130px;
  max-height: 45px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.1);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.brand-item-card:hover .brand-logo-img {
  filter: grayscale(0);
  transform: scale(1.06);
}
