@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Naghmat Finjan Brand Palette */
  --primary-green: #5A7352;
  --primary-dark: #23341F;
  --primary-deep: #1A2717;
  --primary-light: #718D68;
  --secondary-olive: #3D4F38;
  --accent-gold: #C8A86B;
  --accent-gold-light: #E0C793;
  --accent-coffee: #6C4E3D;
  --accent-red: #BA3333;
  --bg-main: #F9F7F2;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F4F1EA;
  --bg-tint: #EEF3EC;
  --border-color: #DFE5DC;
  --border-subtle: #EBEFE8;
  --text-dark: #1E2B1A;
  --text-muted: #62725E;
  --text-price-old: #9BA997;
  --text-white: #FFFFFF;
  --star-gold: #C8A86B;
  --font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(35, 52, 31, 0.05);
  --shadow-md: 0 4px 16px rgba(35, 52, 31, 0.08);
  --shadow-lg: 0 8px 24px rgba(35, 52, 31, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max-width: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  direction: rtl;
  text-align: right;
  background-color: var(--bg-main);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Base Container */
.site-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================================================
   1. TOP ANNOUNCEMENT BAR
   ========================================================= */
.announcement-bar {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(200, 168, 107, 0.2);
}

.announcement-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.announcement-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.announcement-icon-svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.announcement-quick-links {
  display: none;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
}

.announcement-quick-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.announcement-quick-links a:hover {
  color: var(--accent-gold-light);
}

/* =========================================================
   2. MAIN SITE HEADER
   ========================================================= */
.main-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(35, 52, 31, 0.04);
}

.header-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name-ar {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.15;
}

.brand-slogan-ar {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--primary-green);
  letter-spacing: -0.2px;
}

/* Header Search Bar */
.header-search-wrapper {
  flex: 1;
  max-width: 520px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-main);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  padding: 3px 6px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input-wrapper:focus-within {
  border-color: var(--primary-green);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(90, 115, 82, 0.15);
}

.search-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.search-btn svg {
  width: 16px;
  height: 16px;
  stroke: #FFFFFF;
  stroke-width: 2.5;
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  text-align: right;
  padding: 0 12px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Action Icons (Wishlist & Cart only) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-badge-btn {
  background: none;
  border: none;
  position: relative;
  cursor: pointer;
  color: var(--primary-dark);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.icon-badge-btn:hover {
  transform: translateY(-2px);
  color: var(--primary-green);
}

.icon-badge-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.badge-count {
  position: absolute;
  top: 0;
  left: -2px;
  background-color: var(--primary-green);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1.5px solid #FFFFFF;
}

.menu-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

/* Desktop Navigation Menu Bar */
.desktop-nav-bar {
  display: none;
  background: var(--primary-dark);
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.desktop-nav-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desktop-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.desktop-nav-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
}

.desktop-nav-item a:hover,
.desktop-nav-item.active a {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-gold-light);
}

.desktop-nav-item.highlight-deals a {
  color: var(--accent-gold);
  font-weight: 800;
}

.desktop-support-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--accent-gold-light);
  font-weight: 700;
}

/* =========================================================
   3. HERO BANNER SECTION
   ========================================================= */
.hero-section {
  padding: 20px 0;
}

.hero-banner-card {
  position: relative;
  background: radial-gradient(circle at 75% 50%, #374A33 0%, #1A2717 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 250px;
  border: 1px solid rgba(200, 168, 107, 0.25);
}

.hero-content {
  flex: 1;
  padding: 32px 36px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.hero-badge-tag {
  background: var(--accent-gold);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-title {
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14.5px;
  margin-bottom: 20px;
  max-width: 490px;
  line-height: 1.6;
}

.hero-cta-btn {
  background: var(--primary-green);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(90, 115, 82, 0.4);
  transition: var(--transition);
}

.hero-cta-btn:hover {
  background: #6B8762;
  transform: translateY(-2px);
}

.hero-img-wrap {
  width: 45%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--accent-gold);
  width: 20px;
  border-radius: var(--radius-full);
}

/* =========================================================
   4. FEATURES VALUE BAR
   ========================================================= */
.value-bar-section {
  padding: 6px 0 24px 0;
}

.value-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.value-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.value-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-icon-box svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.value-text h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.value-text p {
  font-size: 11px;
  color: var(--text-muted);
}

/* =========================================================
   5. CATEGORIES SECTION (الأقسام)
   ========================================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
}

.section-icon-svg {
  width: 20px;
  height: 20px;
  color: var(--primary-green);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.view-all-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.view-all-link:hover {
  color: var(--primary-green);
}

.categories-section {
  padding-bottom: 28px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.category-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(35, 52, 31, 0.08);
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.category-card:hover .category-img {
  transform: scale(1.1);
}

.category-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
}

/* =========================================================
   6. FLASH DEALS SECTION (عروض وتخفيضات الكبرى - بدون وقت)
   ========================================================= */
.flash-deals-section {
  padding-bottom: 30px;
}

.flash-deals-card {
  background: #2D3E28;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(200, 168, 107, 0.2);
}

.flash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.flash-title {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
}

.flash-slider-wrapper {
  position: relative;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.slider-nav-btn:hover {
  background: var(--accent-gold);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
}

.slider-nav-prev {
  left: -12px;
}

.slider-nav-next {
  right: -12px;
}

.flash-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Flash Product Item Card */
.flash-prod-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  cursor: pointer;
}

.flash-prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.discount-tag {
  background: var(--accent-red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.wishlist-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.wishlist-btn svg {
  width: 18px;
  height: 18px;
  stroke: #7B8A77;
  stroke-width: 2;
  fill: none;
  transition: var(--transition);
}

.wishlist-btn.active svg {
  stroke: var(--accent-red);
  fill: var(--accent-red);
}

.flash-img-wrap {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.flash-prod-img {
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.flash-prod-card:hover .flash-prod-img {
  transform: scale(1.05);
}

.prod-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 6px;
  text-align: center;
}

.prod-pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 10px;
}

.price-old {
  font-size: 11px;
  color: var(--text-price-old);
  text-decoration: line-through;
  font-weight: 500;
}

.price-current {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary-green);
}

.btn-add-cart {
  width: 100%;
  background: var(--primary-green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--primary-dark);
}

.btn-add-cart svg {
  width: 14px;
  height: 14px;
  stroke: #FFFFFF;
  stroke-width: 2.2;
}

/* =========================================================
   7. BRANDS SECTION (تسوق حسب الماركة)
   ========================================================= */
.brands-section {
  padding-bottom: 30px;
}

.brands-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.brand-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.brand-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.brand-img {
  max-width: 100%;
  max-height: 38px;
  object-fit: contain;
}

/* =========================================================
   8. BEST SELLERS & NEW ARRIVALS
   ========================================================= */
.two-col-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 36px;
}

.products-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.horizontal-prod-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.horizontal-prod-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.h-card-img-wrap {
  width: 78px;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.h-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.h-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
}

.star-icon {
  color: var(--accent-gold);
  font-size: 11px;
}

.h-prod-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.h-prod-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 6px;
}

.tag-new {
  background: var(--primary-green);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  letter-spacing: 0.5px;
}

/* =========================================================
   9. EXTENDED CATALOG SECTION
   ========================================================= */
.catalog-section {
  padding-bottom: 44px;
}

.catalog-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catalog-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--primary-green);
  color: #FFFFFF;
  border-color: var(--primary-green);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.catalog-prod-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.catalog-prod-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.catalog-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent-gold);
  color: var(--primary-deep);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.catalog-img-wrap {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.catalog-prod-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.catalog-prod-card:hover .catalog-prod-img {
  transform: scale(1.05);
}

.catalog-prod-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 4px;
}

.catalog-prod-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 8px;
}

.catalog-prod-specs {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.catalog-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.catalog-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary-green);
}

/* =========================================================
   10. FOOTER (خدمة العملاء: فقط الأسئلة الشائعة، وبدون دفع)
   ========================================================= */
.app-footer {
  background-color: var(--primary-deep);
  color: #E2ECE0;
  padding: 44px 0 24px 0;
  margin-top: auto;
  border-top: 3px solid var(--accent-gold);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 24px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-desc {
  font-size: 12.5px;
  color: rgba(226, 236, 224, 0.82);
  line-height: 1.7;
  margin: 12px 0 16px 0;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: rgba(226, 236, 224, 0.85);
  text-decoration: none;
  font-size: 12.5px;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--accent-gold-light);
  padding-right: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(226, 236, 224, 0.85);
  margin-bottom: 10px;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.social-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: var(--transition);
}

.social-circle-btn:hover {
  background: var(--accent-gold);
  color: var(--primary-deep);
  transform: translateY(-2px);
}

.social-circle-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(226, 236, 224, 0.7);
}

/* =========================================================
   11. DRAWERS (CART & WISHLIST & MENU)
   ========================================================= */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer, .wishlist-drawer, .side-drawer {
  position: fixed;
  top: 0;
  left: -420px;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: #FAF9F5;
  z-index: 999;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.side-drawer {
  left: auto;
  right: -320px;
  max-width: 300px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open, .wishlist-drawer.open {
  left: 0;
}

.side-drawer.open {
  right: 0;
}

.cart-drawer-header, .drawer-header {
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
}

.cart-close-btn, .drawer-close-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.free-shipping-bar {
  background: var(--bg-tint);
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-dark);
}

.shipping-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(35, 52, 31, 0.12);
  border-radius: var(--radius-full);
  margin-top: 6px;
  overflow: hidden;
}

.shipping-progress-fill {
  height: 100%;
  background: var(--primary-green);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.cart-items-list, .wishlist-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-green);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.cart-drawer-footer {
  background: #FFFFFF;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.free-delivery-badge {
  color: var(--primary-green);
  font-weight: 800;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 900;
  color: var(--primary-dark);
  padding-top: 8px;
  margin-bottom: 14px;
  border-top: 1px dashed var(--border-color);
}

.btn-checkout {
  width: 100%;
  background: var(--primary-green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-checkout:hover {
  background: var(--primary-dark);
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-deep);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
  border: 1px solid var(--accent-gold);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* =========================================================
   12. RESPONSIVE BREAKPOINTS
   ========================================================= */

@media (min-width: 993px) {
  .menu-toggle-btn {
    display: none;
  }
  .desktop-nav-bar {
    display: block;
  }
  .announcement-quick-links {
    display: flex;
  }
  .hero-banner-card {
    min-height: 290px;
  }
  .hero-title {
    font-size: 38px;
  }
}

@media (max-width: 992px) {
  .desktop-nav-bar {
    display: none;
  }
  .value-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .announcement-bar {
    font-size: 11px;
    padding: 6px 10px;
  }
  .header-search-wrapper {
    display: none;
  }
  .mobile-search-bar {
    display: block !important;
    padding: 8px 0 14px 0;
  }
  .hero-section {
    padding: 10px 0 16px 0;
  }
  .hero-banner-card {
    min-height: 145px;
    height: 145px;
  }
  .hero-content {
    padding: 12px 14px;
  }
  .hero-title {
    font-size: 19px;
    margin-bottom: 6px;
  }
  .hero-desc {
    display: none;
  }
  .hero-badge-tag {
    font-size: 10.5px;
    padding: 2px 10px;
    margin-bottom: 8px;
  }
  .hero-cta-btn {
    font-size: 11px;
    padding: 5px 14px;
  }
  .value-bar-section {
    display: none;
  }
  .categories-grid {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
  }
  .categories-grid::-webkit-scrollbar {
    display: none;
  }
  .category-card {
    flex: 1;
    min-width: 58px;
    max-width: 68px;
    padding: 4px;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .category-circle {
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
  }
  .category-name {
    font-size: 11px;
    white-space: nowrap;
  }
  .flash-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .flash-products-grid::-webkit-scrollbar {
    display: none;
  }
  .flash-prod-card {
    padding: 8px 6px;
  }
  .flash-img-wrap {
    height: 80px;
  }
  .prod-title {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .price-current {
    font-size: 11px;
  }
  .price-old {
    font-size: 9px;
  }
  .btn-add-cart {
    padding: 5px 6px;
    font-size: 10px;
  }
  .brands-container {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
  }
  .brands-container::-webkit-scrollbar {
    display: none;
  }
  .brand-card {
    min-width: 58px;
    height: 38px;
    padding: 4px 6px;
    flex: 1;
  }
  .brand-img {
    max-height: 22px;
  }
  .two-col-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 20px;
  }
  .products-grid-2col {
    gap: 8px;
  }
  .horizontal-prod-card {
    padding: 8px;
    gap: 6px;
  }
  .h-card-img-wrap {
    width: 54px;
    height: 68px;
  }
  .h-prod-title {
    font-size: 10px;
  }
  .h-prod-price {
    font-size: 10.5px;
  }
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .catalog-img-wrap {
    height: 120px;
  }
  .catalog-prod-card {
    padding: 10px;
  }
  .catalog-prod-title {
    font-size: 12px;
  }
  .catalog-prod-specs {
    display: none;
  }
  .catalog-price {
    font-size: 12.5px;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-bottom-bar {
    flex-direction: column-reverse;
    gap: 12px;
    text-align: center;
  }
}


/* =========================================================
   15. PRODUCT DETAILS PAGE STYLES (صفحة تفاصيل المنتج)
   ========================================================= */

/* Breadcrumbs Navigation */
.breadcrumbs-nav {
  padding: 16px 0 10px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumbs-list a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.breadcrumbs-list a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #B4C2B0;
  font-size: 11px;
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 700;
}

/* Product Showcase Grid (Gallery + Details) */
.product-showcase-section {
  padding-bottom: 36px;
}

.product-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* Gallery Column (Right in RTL) */
.product-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-gallery-view {
  position: relative;
  width: 100%;
  height: 420px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.main-gallery-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.main-gallery-view:hover .main-gallery-img {
  transform: scale(1.06);
}

.gallery-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent-red);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.gallery-thumbs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}

.gallery-thumbs-row::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  width: 82px;
  height: 82px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  background: var(--bg-main);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.gallery-thumb:hover, .gallery-thumb.active {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(90, 115, 82, 0.2);
}

.gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Product Info Column (Left in RTL) */
.product-info-col {
  display: flex;
  flex-direction: column;
}

.category-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.product-cat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.cat-pill {
  background: var(--bg-tint);
  color: var(--primary-green);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.cat-pill-sub {
  background: #F2EFE8;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.brand-info-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.brand-badge-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
}

.brand-badge-text {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--primary-dark);
}

.detail-product-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 10px;
}

.detail-rating-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  font-size: 12px;
}

.star-rating-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-gold);
  font-weight: 800;
}

.sku-code {
  color: var(--text-muted);
}

/* Pricing Card */
.detail-pricing-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.price-values-group {
  display: flex;
  flex-direction: column;
}

.detail-old-price {
  font-size: 13px;
  color: var(--text-price-old);
  text-decoration: line-through;
  font-weight: 600;
}

.detail-current-price {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary-green);
  line-height: 1.1;
}

.saving-badge-pill {
  background: rgba(186, 51, 51, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(186, 51, 51, 0.25);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Stock & Trust Pills */
.status-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.status-pill-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.status-pill-item svg {
  width: 15px;
  height: 15px;
  color: var(--primary-green);
  flex-shrink: 0;
}

/* Actions Row: Qty + Add to Cart + WhatsApp + Compare */
.detail-actions-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.main-actions-flex {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qty-counter-box {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  overflow: hidden;
  height: 46px;
}

.qty-btn-large {
  width: 40px;
  height: 100%;
  border: none;
  background: var(--bg-main);
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn-large:hover {
  background: var(--border-color);
}

.qty-input-large {
  width: 44px;
  height: 100%;
  border: none;
  text-align: center;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
  outline: none;
}

.btn-add-cart-detail {
  flex: 1;
  min-width: 170px;
  height: 46px;
  background: var(--primary-green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(90, 115, 82, 0.3);
  transition: var(--transition);
}

.btn-add-cart-detail:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-add-cart-detail svg {
  width: 18px;
  height: 18px;
  stroke: #FFFFFF;
  stroke-width: 2.2;
}

/* Compare and WhatsApp Action Row */
.secondary-actions-flex {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-whatsapp-direct {
  flex: 1;
  min-width: 180px;
  height: 42px;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
  transition: var(--transition);
}

.btn-whatsapp-direct:hover {
  background: #1EBE5D;
}

.btn-whatsapp-direct svg {
  width: 18px;
  height: 18px;
  fill: #FFFFFF;
}

.btn-compare-action {
  height: 42px;
  padding: 0 16px;
  background: #FFFFFF;
  color: var(--primary-dark);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-compare-action:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: var(--bg-tint);
}

.btn-compare-action.active {
  border-color: var(--primary-green);
  color: #FFFFFF;
  background: var(--primary-green);
}

.btn-compare-action svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.btn-wishlist-detail {
  width: 42px;
  height: 42px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.btn-wishlist-detail:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.btn-wishlist-detail.active {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: rgba(186, 51, 51, 0.08);
}

.btn-wishlist-detail svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.btn-wishlist-detail.active svg {
  fill: var(--accent-red);
}

/* Short highlights bullet box */
.product-highlights-box {
  background: var(--bg-tint);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 12.5px;
}

.highlights-title {
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.highlights-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dark);
}

.highlights-list li::before {
  content: "•";
  color: var(--primary-green);
  font-size: 16px;
}

/* =========================================================
   16. PRODUCT TABS (DESCRIPTION, SPECS, VIDEO)
   ========================================================= */
.product-tabs-section,
.product-description-section {
  padding-bottom: 40px;
}

.tabs-card-wrapper,
.description-card-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tabs-navigation-header {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--border-subtle);
  background: var(--bg-main);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-navigation-header::-webkit-scrollbar {
  display: none;
}

.tab-nav-item {
  padding: 16px 24px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.tab-nav-item:hover {
  color: var(--primary-dark);
}

.tab-nav-item.active {
  color: var(--primary-green);
  background: #FFFFFF;
}

.tab-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--primary-green);
}

.tab-panel-body {
  padding: 28px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Description Prose */
.desc-prose h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 18px 0 10px 0;
}

.desc-prose h3:first-child {
  margin-top: 0;
}

.desc-prose p {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 16px;
}

.desc-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.feature-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.feature-box h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-box p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Video Banner at End of Description */
.product-video-banner {
  margin-top: 32px;
  padding: 24px;
  background: radial-gradient(circle at 50% 50%, #2D3E28 0%, #1A2717 100%);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(200, 168, 107, 0.3);
}

.video-banner-text h4 {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #FFFFFF;
}

.video-banner-text p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.btn-watch-video {
  background: var(--accent-gold);
  color: var(--primary-deep);
  border: none;
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 800;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(200, 168, 107, 0.35);
  transition: var(--transition);
}

.btn-watch-video:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
}

.btn-watch-video svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table tr:nth-child(even) {
  background: var(--bg-main);
}

.specs-label {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  width: 35%;
}

.specs-val {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-dark);
}

/* =========================================================
   17. RELATED PRODUCTS ("قد يعجبك")
   ========================================================= */
.related-products-section {
  padding-bottom: 44px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.related-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.related-img-wrap {
  width: 100%;
  height: 150px;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.related-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: var(--transition);
}

.related-card:hover .related-img {
  transform: scale(1.06);
}

.related-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 4px;
}

.related-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-pricing {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.related-price {
  font-size: 14px;
  font-weight: 900;
  color: var(--primary-green);
}

.btn-add-related {
  background: var(--primary-green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-add-related:hover {
  background: var(--primary-dark);
}

.btn-add-related svg {
  width: 14px;
  height: 14px;
  stroke: #FFFFFF;
  stroke-width: 2.2;
}

/* =========================================================
   18. VIDEO & COMPARE MODALS
   ========================================================= */
.media-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1060;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: opacity 0.3s ease;
}

.media-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.media-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.media-modal-header {
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.media-modal-body {
  padding: 20px;
}

.video-container-frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}

.video-container-frame iframe,
.video-container-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Compare Matrix Table */
.compare-matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.compare-matrix-table th,
.compare-matrix-table td {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  font-size: 12.5px;
  text-align: right;
}

.compare-matrix-table th {
  background: var(--bg-tint);
  color: var(--primary-dark);
  font-weight: 800;
}

.compare-highlight-col {
  background: #F4F8F3;
  font-weight: 700;
  border-right: 2px solid var(--primary-green) !important;
  border-left: 2px solid var(--primary-green) !important;
}

/* Responsive for Product Details */
@media (max-width: 992px) {
  .product-showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
  .main-gallery-view {
    height: 340px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .product-showcase-grid {
    padding: 14px;
  }
  .main-gallery-view {
    height: 250px;
  }
  .gallery-thumb {
    width: 64px;
    height: 64px;
  }
  .detail-product-title {
    font-size: 19px;
  }
  .detail-current-price {
    font-size: 22px;
  }
  .desc-features-grid {
    grid-template-columns: 1fr;
  }
  .product-video-banner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
