:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2234;
  --bg-card-hover: #22304a;
  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-gold: #fbbf24;
  --accent-gold-light: #fcd34d;
  --accent-gradient: linear-gradient(135deg, #fbbf24, #f59e0b);
  --border-light: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --font-family: "Cairo", sans-serif;
}

/* BASE – منع التمرير الأفقي + إخفاء شريط التمرير العمودي*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

/* 
FULL-WIDTH CONTAINER
 */
.app-wrapper {
  max-width: 100%;
  padding: 0 clamp(4px, 2vw, 16px);
  margin: 0 auto;
  /* overflow-x: hidden; */
}

/* HEADER*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: clamp(6px, 1.2vw, 14px) 0;
  transition: box-shadow 0.3s ease;
  will-change: transform;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(4px, 1vw, 16px);
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 12px);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: clamp(28px, 4vw, 48px);
  height: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, 1.8vw, 22px);
  color: #0a0e17;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.25);
  transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
  transform: rotate(-8deg) scale(1.05);
}

.brand-text h1 {
  font-size: clamp(14px, 2.2vw, 28px);
  font-weight: 900;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text .sub {
  display: block;
  font-size: clamp(8px, 0.7vw, 12px);
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.3px;
  -webkit-text-fill-color: var(--text-secondary);
}

.header-search {
  flex: 1;
  max-width: clamp(100px, 25vw, 300px);
  margin: 0 clamp(2px, 0.5vw, 8px);
  min-width: 60px;
}

.header-search .search-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  padding: 0 clamp(6px, 1vw, 14px);
  display: flex;
  align-items: center;
  width: 100%;
  transition: all var(--transition-fast);
}

.header-search .search-box:focus-within {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.header-search .search-box i {
  color: var(--text-muted);
  font-size: clamp(10px, 1vw, 14px);
  margin-left: clamp(4px, 0.6vw, 8px);
}

.header-search .search-box input {
  background: transparent;
  border: none;
  padding: clamp(4px, 0.6vw, 10px) 0;
  color: var(--text-primary);
  outline: none;
  flex: 1;
  font-size: clamp(10px, 1vw, 14px);
  font-family: var(--font-family);
  min-width: 30px;
}

.header-search .search-box input::placeholder {
  color: var(--text-muted);
}

.header-search .search-box .clear-btn {
  color: var(--text-muted);
  cursor: pointer;
  font-size: clamp(12px, 1.2vw, 18px);
  padding: 2px;
  transition: all var(--transition-fast);
  display: none;
  background: none;
  border: none;
}

.header-search .search-box .clear-btn.visible {
  display: block;
}

.header-search .search-box .clear-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.6vw, 10px);
  flex-shrink: 0;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(2px, 0.4vw, 8px);
  padding: clamp(2px, 0.5vw, 10px) clamp(6px, 1vw, 18px);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(10px, 0.9vw, 14px);
  position: relative;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.header-btn .badge-dot {
  position: absolute;
  top: clamp(-4px, -0.4vw, -6px);
  right: clamp(-4px, -0.4vw, -6px);
  background: var(--accent-gold);
  color: #0a0e17;
  font-size: clamp(7px, 0.6vw, 10px);
  font-weight: 900;
  min-width: clamp(14px, 1.5vw, 20px);
  height: clamp(14px, 1.5vw, 20px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(2px, 0.3vw, 5px);
  border: 2px solid var(--bg-primary);
}

.header-btn .badge-dot.heart {
  background: #ef4444;
  color: #fff;
}

@media (min-width: 992px) {
  .header-search {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .header-search {
    display: block !important;
  }

  .brand-text .sub {
    display: none;
  }
}

/* HERO – إعلانات متحركة (يظهر على جميع الشاشات) */
.hero-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(10px, 1.5vw, 18px);
  margin: clamp(7px, 1vw, 10px) 0 clamp(10px, 2vw, 20px);
}

/* على الشاشات ≤ 1100px: عمود واحد، إخفاء الجوانب، الكاروسيل يملأ */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin: 8px 0 16px !important;
  }

  .hero-grid .hero-sidebar,
  .hero-grid .hero-side {
    display: none !important;
  }

  .hero-grid .hero-main {
    grid-column: span 1 !important;
    width: 100% !important;
    border-radius: var(--radius-sm) !important;
  }
}

/* على الهواتف الصغيرة: تحسين الارتفاع */
@media (max-width: 700px) {
  .hero-grid {
    margin: 4px 0 12px !important;
  }

  .hero-main {
    min-height: 100px !important;
  }

  .hero-slide {
    height: clamp(100px, 20vh, 140px) !important;
    min-height: 100px !important;
    background-position: left center !important;
  }
}

.hero-sidebar {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.hero-sidebar .sidebar-title {
  background: var(--accent-gradient);
  color: #0a0e17;
  font-weight: 800;
  font-size: clamp(12px, 1.1vw, 15px);
  padding: clamp(10px, 1vw, 16px) clamp(14px, 1.2vw, 20px);
  text-align: center;
  letter-spacing: 0.3px;
}

.hero-sidebar .sidebar-link {
  display: block;
  /* padding: clamp(10px, 1vw, 14px) clamp(14px, 1.2vw, 20px); */
  padding: clamp(6px, 0.5vw, 8px) clamp(6px, 0.5vw, 10px);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(11px, 0.9vw, 14px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.hero-sidebar .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  padding-right: clamp(20px, 1.8vw, 28px);
}

.hero-sidebar .sidebar-link.active {
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.08);
}

.hero-sidebar .sidebar-link.active::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--accent-gold);
  border-radius: 0 4px 4px 0;
}

.hero-slide {
  height: clamp(180px, 30vh, 280px);
  min-height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #1a2234;
  /* احتياطي */
}

.hero-slide .slide-content {
  position: absolute;
  top: 50%;
  right: clamp(13%, 8vw, 15%);
  transform: translateY(-50%);
  z-index: 2;
  max-width: clamp(200px, 60vw, 500px);
  width: 100%;
  padding-left: 10px;
}

.hero-slide .slide-tag {
  display: inline-block;
  padding: clamp(2px, 0.3vw, 6px) clamp(6px, 0.8vw, 14px);
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 999px;
  color: var(--accent-gold);
  font-weight: 800;
  font-size: clamp(8px, 0.8vw, 12px);
  margin-bottom: clamp(4px, 0.8vw, 12px);
  letter-spacing: 0.5px;
}

.hero-slide .slide-title {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: clamp(6px, 0.8vw, 10px);
  color: var(--text-primary);
}

.hero-slide .slide-desc {
  /* color: var(--text-secondary); */
  color: #68f4d9;
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1.5;
  margin-bottom: clamp(8px, 1vw, 12px);
  max-width: clamp(120px, 45vw, 450px);
}

@media (max-width: 480px) {
  .hero-slide .slide-desc {
    display: none;
  }
}

.hero-slide .btn-grad {
  padding: clamp(6px, 0.8vw, 10px) clamp(14px, 1.8vw, 22px);
  font-size: clamp(10px, 0.9vw, 13px);
}

.slide-bg-1 {
  background-image:
    linear-gradient(to left, rgba(10, 14, 23, 0.92) 40%, rgba(10, 14, 23, 0.1)),
    url("https://images.unsplash.com/photo-1516035069371-29a1b244cc32?w=1200&h=400&fit=crop");
}

.slide-bg-2 {
  background-image:
    linear-gradient(to left, rgba(10, 14, 23, 0.92) 40%, rgba(10, 14, 23, 0.1)),
    url("https://images.unsplash.com/photo-1502920917128-1aa500764cbd?w=1200&h=400&fit=crop");
}

.slide-bg-3 {
  background-image:
    linear-gradient(to left, rgba(10, 14, 23, 0.92) 40%, rgba(10, 14, 23, 0.1)),
    url("https://images.unsplash.com/photo-1516035069371-29a1b244cc32?w=1200&h=400&fit=crop");
}

/* اللافتات الجانبية */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 12px);
  height: 100%;
  min-height: 0;
}

.hero-side .side-banner {
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-md);
  padding: clamp(14px, 1.2vw, 22px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-secondary);
  overflow: hidden;
  position: relative;
  /* الصورة الخلفية */
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 65%;
}

.hero-side .side-banner:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(251, 191, 36, 0.25);
}

.hero-side .side-banner h3 {
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 6px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

.hero-side .side-banner .link-gold {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: clamp(11px, 0.85vw, 13px);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  z-index: 2;
}

.hero-side .side-banner .link-gold:hover {
  color: var(--accent-gold-light);
  text-decoration: underline;
}

.side-banner-1 {
  background-image:
    linear-gradient(
      to left,
      rgba(15, 23, 42, 0.97) 42%,
      rgba(15, 23, 42, 0.6) 65%,
      rgba(15, 23, 42, 0.15) 100%
    ),
    url(../img/stock/defaults.png);
  background-size: auto 100%;
  background-position: left center;
}

.side-banner-2 {
  background-image:
    linear-gradient(
      to left,
      rgba(15, 23, 42, 0.97) 42%,
      rgba(15, 23, 42, 0.6) 65%,
      rgba(15, 23, 42, 0.15) 100%
    ),
    url(../img/stock/defaults.png);
  background-size: auto 100%;
  background-position: left center;
}

.hero-side .side-banner:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-md);
  border-color: rgba(251, 191, 36, 0.2);
}

.hero-side .side-banner h3 {
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.hero-side .side-banner .link-gold {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: clamp(11px, 0.9vw, 14px);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hero-side .side-banner .link-gold:hover {
  color: var(--accent-gold-light);
  text-decoration: underline;
}

.side-banner-1 {
  background-image:
    linear-gradient(
      to left,
      rgba(26, 34, 52, 0.95) 40%,
      rgba(26, 34, 52, 0.35) 70%,
      rgba(26, 34, 52, 0.1)
    ),
    url(../img/stock/defaults.png);
  background-size: cover;
  background-position: center right;
}

.side-banner-2 {
  background-image:
    linear-gradient(
      to left,
      rgba(26, 34, 52, 0.95) 40%,
      rgba(26, 34, 52, 0.35) 70%,
      rgba(26, 34, 52, 0.1)
    ),
    url(../img/stock/defaults.png);
  background-size: cover;
  background-position: center right;
}

/* 
SECTION HEADERS
 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: clamp(8px, 1vw, 10px) 0 clamp(4px, 0.5vw, 5px);
}

.section-header h2 {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 900;
  margin: 0;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.6vw, 10px);
}

.section-header h2 i {
  color: var(--accent-gold);
}

/* 
TOOLBAR – فلترة
 */
.filter-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(4px, 0.8vw, 12px);
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(10px, 1.5vw, 20px);
  padding: clamp(4px, 0.6vw, 14px) clamp(6px, 0.8vw, 18px);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
}

.filter-toolbar::-webkit-scrollbar {
  display: none;
}

.filter-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(2px, 0.4vw, 6px);
  flex-shrink: 0;
}

.filter-tabs .filter-btn {
  padding: clamp(4px, 0.5vw, 8px) clamp(8px, 1vw, 16px);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: clamp(12px, 1.2vw, 14px);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  white-space: nowrap;
}

.filter-tabs .filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.filter-tabs .filter-btn.active {
  background: var(--accent-gradient);
  color: #0a0e17;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.25);
}

.toolbar-search {
  flex-shrink: 0;
}

.toolbar-search .search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  padding: 0 clamp(8px, 0.8vw, 14px);
  transition: all var(--transition-fast);
  min-width: clamp(100px, 15vw, 200px);
}

.toolbar-search .search-box:focus-within {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.toolbar-search .search-box i {
  color: var(--text-muted);
  font-size: clamp(11px, 0.8vw, 14px);
  margin-left: clamp(4px, 0.5vw, 8px);
}

.toolbar-search .search-box input {
  background: transparent;
  border: none;
  padding: clamp(4px, 0.6vw, 10px) 0;
  color: var(--text-primary);
  outline: none;
  flex: 1;
  font-size: clamp(11px, 0.8vw, 14px);
  font-family: var(--font-family);
  min-width: 40px;
}

.toolbar-search .search-box input::placeholder {
  color: var(--text-muted);
}

.toolbar-search .search-box .clear-btn {
  color: var(--text-muted);
  cursor: pointer;
  font-size: clamp(14px, 1vw, 18px);
  padding: 2px;
  transition: all var(--transition-fast);
  display: none;
  background: none;
  border: none;
}

.toolbar-search .search-box .clear-btn.visible {
  display: block;
}

.toolbar-search .search-box .clear-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

@media (max-width: 991px) {
  .toolbar-search {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .header-search {
    display: none !important;
  }
}

/* 
PRODUCT GRID
 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.2vw, 18px);
  margin-bottom: clamp(10px, 1.5vw, 20px);
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(6px, 1vw, 14px);
  }
}

@media (max-width: 850px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(4px, 0.8vw, 12px);
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(3px, 0.5vw, 8px);
  }
}

/* PRODUCT CARD */
.product-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: clamp(160px, 30vh, 340px);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.product-card .card-details {
  padding: clamp(6px, 0.8vw, 14px);
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.5vw, 10px);
  flex: 1;
}

.product-card:hover {
  border-color: rgba(251, 191, 36, 0.15);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.product-card .card-img {
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* padding: clamp(6px, 1vw, 16px); */
  display: block;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
  -webkit-user-drag: none;
}

.product-card .card-badges {
  position: absolute;
  top: clamp(6px, 0.8vw, 12px);
  left: clamp(6px, 0.8vw, 12px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.product-card .badge {
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 800;
  padding: clamp(3px, 0.4vw, 6px) clamp(8px, 0.8vw, 14px);
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #fff;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.product-card .badge.new {
  background: linear-gradient(135deg, var(--accent-gold), #d4a017);
  color: #0a0e17;
}

.product-card .badge.discount {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.product-card .badge.preorder {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.product-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.product-card .card-top .reviews {
  color: var(--text-secondary);
  font-size: clamp(11px, 0.8vw, 14px);
  font-weight: 800;
}

.product-card .card-top .price {
  font-weight: 900;
  color: var(--accent-gold);
  font-size: clamp(16px, 1.4vw, 22px);
  letter-spacing: 0.5px;
}

.product-card .card-title {
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
  color: var(--text-primary);
}

/* ====== تحسين وصف المنتج: ارتفاع ثابت بسطرين + إخفاء الزائد ====== */
.product-card .card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  max-height: 2.8em;
  /* min-height: 2.8em; */
  color: var(--text-secondary);
  font-size: clamp(12px, 0.9vw, 15px);
  margin: 0;
  flex-grow: 0;
  /* حتى لا يتمدد */
}

.product-card .card-actions {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.5vw, 10px);
  margin-top: clamp(2px, 0.3vw, 6px);
  padding-top: clamp(4px, 0.5vw, 10px);
  border-top: 1px solid var(--border-light);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-card .card-actions::-webkit-scrollbar {
  display: none;
}

.product-card .card-actions .stepper {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.3vw, 6px);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  height: clamp(28px, 3.5vw, 36px);
  padding: 0 clamp(4px, 0.5vw, 8px);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.product-card .card-actions .stepper button {
  width: clamp(18px, 1.8vw, 26px);
  height: clamp(18px, 1.8vw, 26px);
  border-radius: 4px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 900;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: clamp(12px, 1vw, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .card-actions .stepper button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.product-card .card-actions .stepper span {
  min-width: clamp(12px, 1vw, 18px);
  text-align: center;
  font-weight: 700;
  font-size: clamp(12px, 1vw, 16px);
}

.product-card .card-actions .btn-wish {
  width: clamp(28px, 3.5vw, 36px);
  height: clamp(28px, 3.5vw, 36px);
  border-radius: 6px;
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 1.2vw, 18px);
  flex-shrink: 0;
}

.product-card .card-actions .btn-wish:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.product-card .card-actions .btn-wish.active {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.product-card .card-actions .btn-cart {
  flex: 1 0 auto;
  height: clamp(28px, 3.5vw, 36px);
  padding: 0 clamp(8px, 1vw, 14px);
  border-radius: 6px;
  border: none;
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-gold);
  font-weight: 800;
  font-size: clamp(12px, 0.9vw, 15px);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  border: 1px solid rgba(251, 191, 36, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.product-card .card-actions .btn-cart:hover {
  background: var(--accent-gradient);
  color: #0a0e17;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}

/* هواتف: تحسين الحجم وإظهار الوصف (مع الحفاظ على سطرين) */
@media (max-width: 600px) {
  .product-card {
    padding: clamp(4px, 0.5vw, 8px);
    min-height: clamp(140px, 25vh, 200px);
    gap: clamp(2px, 0.3vw, 6px);
  }

  .product-card .card-title {
    font-size: clamp(13px, 1vw, 16px);
  }

  .product-card .card-desc {
    font-size: clamp(10px, 0.7vw, 12px);
    line-height: 1.3;
    max-height: 2.6em;
    /* min-height: 2.6em; */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card .card-actions .stepper {
    display: none !important;
  }

  .product-card .card-actions .btn-cart {
    font-size: clamp(8px, 0.6vw, 10px);
    padding: clamp(2px, 0.3vw, 6px) clamp(4px, 0.4vw, 10px);
  }

  .product-card .card-actions .btn-wish {
    width: clamp(20px, 2vw, 28px);
    height: clamp(20px, 2vw, 28px);
    font-size: clamp(10px, 0.8vw, 13px);
  }

  .product-card .card-top .reviews {
    font-size: clamp(8px, 0.5vw, 11px);
  }

  .product-card .card-top .price {
    font-size: clamp(10px, 0.8vw, 14px);
  }

  .product-card .badge-new {
    font-size: clamp(6px, 0.4vw, 8px);
    padding: clamp(1px, 0.1vw, 3px) clamp(4px, 0.4vw, 8px);
  }

  .product-card .card-actions {
    padding-top: clamp(2px, 0.3vw, 6px);
    gap: clamp(2px, 0.3vw, 6px);
  }
}

@media (max-width: 400px) {
  .product-card {
    min-height: clamp(120px, 20vh, 160px);
    padding: clamp(2px, 0.3vw, 6px);
    border-radius: 4px;
  }

  .product-card .card-title {
    font-size: clamp(11px, 0.8vw, 14px);
  }

  .product-card .card-desc {
    /* display: none; */
    font-size: clamp(9px, 0.5vw, 11px);
    max-height: 2.4em;
    /* min-height: 2.4em; */
  }

  .product-card .card-top .reviews {
    font-size: clamp(7px, 0.4vw, 9px);
  }

  .product-card .card-top .price {
    font-size: clamp(9px, 0.6vw, 12px);
  }

  .product-card .card-actions .btn-cart {
    font-size: clamp(7px, 0.4vw, 9px);
    padding: clamp(1px, 0.2vw, 4px) clamp(3px, 0.3vw, 8px);
  }

  .product-card .card-actions .btn-wish {
    width: clamp(18px, 1.8vw, 24px);
    height: clamp(18px, 1.8vw, 24px);
    font-size: clamp(9px, 0.6vw, 11px);
  }
}

/* 
EMPTY STATE
 */
.empty-state {
  text-align: center;
  padding: clamp(20px, 3vh, 60px) clamp(10px, 2vw, 20px);
  color: var(--text-secondary);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  display: none;
}

.empty-state i {
  font-size: clamp(28px, 4vw, 48px);
  opacity: 0.2;
  margin-bottom: clamp(6px, 1vh, 16px);
}

.empty-state .empty-title {
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* 
BOTTOM SHEET
 */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 85vh;
  min-height: 75vh;

  overflow-y: auto;
  padding: 0 clamp(12px, 2vw, 28px) clamp(16px, 2vw, 28px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.bottom-sheet::-webkit-scrollbar {
  width: 4px;
}

.bottom-sheet::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.sheet-handle {
  width: clamp(60px, 5vw, 86px);
  height: 12px;
  background: var(--text-muted);
  border-radius: 10px;
  margin: clamp(4px, 0.5vw, 10px) auto clamp(4px, 0.5vw, 10px);
  opacity: 0.7;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.sheet-handle:hover {
  opacity: 0.8;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 0 calc(-1 * clamp(6px, 1vw, 20px)) clamp(5px, 0.5vw, 10px);
  padding: clamp(3px, 0.5vw, 7px) clamp(6px, 1vw, 10px);
  border-bottom: 1px solid var(--border-light);
}

.sheet-title-header {
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 15px;
}

.sheet-close {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-radius: var(--radius-sm);
  padding: clamp(3px, 0.5vw, 6px) clamp(6px, 0.6vw, 7px);
  font-weight: 800;
  font-size: clamp(12px, 1vw, 14px);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sheet-close:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(10px, 1.5vw, 20px);
  align-items: start;
  clear: both;
  padding-top: 4px;
}

@media (max-width: 820px) {
  .sheet-grid {
    grid-template-columns: 1fr;
    gap: clamp(12px, 1.5vw, 20px);
  }
}

.sheet-left .sheet-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-left .sheet-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* padding: clamp(10px, 1.5vw, 24px); */
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
}

.sheet-right {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.8vw, 10px);
}

.sheet-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.sheet-meta .sheet-reviews {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: clamp(12px, 0.9vw, 15px);
}

.sheet-meta .sheet-price {
  font-weight: 900;
  color: var(--accent-gold);
  font-size: clamp(20px, 2.2vw, 28px);
}

.sheet-title {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 900;
  margin: 0;
  line-height: 1.3;
  color: var(--text-primary);
}

.sheet-tabs {
  display: flex;
  gap: clamp(4px, 0.5vw, 8px);
  flex-wrap: wrap;
  margin-top: 4px;
}

.sheet-tabs .tab-btn {
  padding: clamp(4px, 0.5vw, 8px) clamp(10px, 1vw, 16px);
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: clamp(11px, 0.8vw, 14px);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}

.sheet-tabs .tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.sheet-tabs .tab-btn.active {
  background: var(--accent-gradient);
  color: #0a0e17;
  border-color: transparent;
}

.sheet-content {
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: clamp(8px, 1vw, 12px) clamp(10px, 1.2vw, 16px);
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: clamp(12px, 0.9vw, 14px);
  min-height: clamp(50px, 6vh, 70px);
}

.sheet-add {
  display: flex;
  gap: clamp(8px, 0.8vw, 14px);
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.sheet-add .stepper {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.5vw, 8px);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: clamp(2px, 0.3vw, 6px) clamp(6px, 0.6vw, 10px);
  background: rgba(255, 255, 255, 0.02);
}

.sheet-add .stepper button {
  width: clamp(22px, 2vw, 28px);
  height: clamp(22px, 2vw, 28px);
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 900;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: clamp(13px, 1vw, 16px);
}

.sheet-add .stepper button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sheet-add .stepper span {
  min-width: clamp(16px, 1.2vw, 20px);
  text-align: center;
  font-weight: 700;
  font-size: clamp(13px, 1vw, 16px);
}

.sheet-add .btn-add-cart {
  padding: clamp(6px, 0.6vw, 10px) clamp(16px, 1.8vw, 28px);
  border-radius: 8px;
  border: none;
  background: var(--accent-gold);
  color: #0a0e17;
  font-weight: 800;
  font-size: clamp(12px, 1vw, 16px);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  flex: 1;
}

.sheet-add .btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.25);
}

.sheet-add .btn-wish {
  width: clamp(38px, 4vw, 44px);
  height: clamp(38px, 4vw, 44px);
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 1.5vw, 20px);
  flex-shrink: 0;
}

.sheet-add .btn-wish:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.sheet-add .btn-wish.active {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* 
LIST ITEMS
 */
.sheet-list .list-item {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.8vw, 14px);
  padding: clamp(8px, 0.8vw, 14px) clamp(10px, 1vw, 16px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: clamp(6px, 0.6vw, 10px);
}

.sheet-list .list-item .item-img {
  width: clamp(40px, 4vw, 56px);
  height: clamp(40px, 4vw, 56px);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-list .list-item .item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sheet-list .list-item .item-info {
  flex: 1;
}

.sheet-list .list-item .item-info .item-name {
  font-weight: 800;
  font-size: clamp(12px, 0.9vw, 14px);
  color: var(--text-primary);
}

.sheet-list .list-item .item-info .item-sub {
  font-size: clamp(12px, 1vw, 14px);
  color: var(--text-secondary);
}

.sheet-list .list-item .btn-remove {
  padding: clamp(3px, 0.3vw, 6px) clamp(8px, 0.8vw, 14px);
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.06);
  color: #ef4444;
  font-weight: 700;
  font-size: clamp(10px, 0.7vw, 12px);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}

.sheet-list .list-item .btn-remove:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.sheet-list .list-empty {
  text-align: center;
  padding: clamp(20px, 3vh, 40px) 16px;
  color: var(--text-secondary);
}

.sheet-list .list-empty i {
  font-size: clamp(28px, 3vw, 36px);
  opacity: 0.2;
  margin-bottom: 8px;
}

.sheet-total {
  text-align: left;
  font-weight: 900;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--accent-gold);
  margin-top: clamp(8px, 0.8vw, 12px);
  padding-top: clamp(8px, 0.8vw, 12px);
  border-top: 1px solid var(--border-light);
}

/* 
SCROLL TOP BUTTON
 */
.scroll-top-btn {
  position: fixed;
  bottom: clamp(16px, 3vh, 30px);
  right: clamp(10px, 2vw, 24px);
  z-index: 999;
  background: var(--accent-gradient);
  color: #0a0e17;
  border: none;
  border-radius: 50%;
  width: clamp(40px, 4vw, 50px);
  height: clamp(40px, 4vw, 50px);
  font-size: clamp(18px, 1.8vw, 24px);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
  transition: all var(--transition-smooth);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

/* 
SLIDER
 */
.slider-wrapper {
  position: relative;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: clamp(28px, 2.8vw, 40px);
  height: clamp(28px, 2.8vw, 40px);
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  opacity: 0.9;
  visibility: visible;
  font-size: clamp(12px, 1vw, 16px);
}

.slider-arrow:hover {
  background: var(--accent-gradient);
  color: #0a0e17;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}

.slider-arrow.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.slider-arrow-right {
  right: clamp(-4px, -0.5vw, -8px);
}

.slider-arrow-left {
  left: clamp(-4px, -0.5vw, -8px);
}

.btn-grad {
  background: var(--accent-gradient);
  color: #0a0e17;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  font-family: var(--font-family);
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 0.5vw, 8px);
}

.btn-grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.25);
  color: #0a0e17;
}

.slider-item {
  flex: 0 0 auto;
  width: clamp(160px, 22vw, 280px);
}

@media (max-width: 600px) {
  .slider-item {
    width: clamp(130px, 40vw, 180px);
  }
}

@media (max-width: 400px) {
  .slider-item {
    width: clamp(110px, 42vw, 150px);
  }
}

.draggable-slider-container {
  position: relative;
  margin: 0 clamp(-4px, -0.5vw, -10px);
  padding: 0 20px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 30px,
    black calc(100% - 30px),
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 30px,
    black calc(100% - 30px),
    transparent
  );
}

.draggable-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: clamp(8px, 1vw, 16px);
  padding: clamp(4px, 0.6vw, 10px) clamp(4px, 0.6vw, 10px)
    clamp(10px, 1.2vw, 18px);
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.draggable-slider::-webkit-scrollbar {
  display: none;
}

.draggable-slider.active {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* 
FOOTER
 */
.site-footer {
  margin-top: clamp(10px, 5vh, 10px);
  padding: clamp(10px, 3vh, 10px) 0 clamp(8px, 2vh, 10px);
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
  text-align: center;
}

.site-footer .footer-newsletter {
  max-width: clamp(280px, 60vw, 500px);
  margin: 0 auto clamp(16px, 2vh, 32px);
}

.site-footer .footer-newsletter h3 {
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 900;
  margin-bottom: clamp(4px, 0.5vw, 10px);
}

.site-footer .footer-newsletter p {
  color: var(--text-secondary);
  font-size: clamp(11px, 0.8vw, 14px);
  margin-bottom: clamp(10px, 1.2vw, 18px);
}

.site-footer .footer-newsletter .news-form {
  display: flex;
  gap: clamp(4px, 0.5vw, 10px);
  justify-content: center;
}

.site-footer .footer-newsletter .news-form input {
  flex: 1;
  max-width: clamp(160px, 25vw, 280px);
  padding: clamp(6px, 0.5vw, 10px) clamp(10px, 1vw, 18px);
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-family);
  font-size: clamp(11px, 0.7vw, 14px);
}

.site-footer .footer-newsletter .news-form input:focus {
  border-color: rgba(251, 191, 36, 0.3);
}

.site-footer .footer-newsletter .news-form .btn-sub {
  padding: clamp(6px, 0.5vw, 10px) clamp(14px, 1.5vw, 24px);
  border-radius: 999px;
  border: none;
  background: var(--accent-gradient);
  color: #0a0e17;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  font-size: clamp(11px, 0.7vw, 14px);
}

.site-footer .footer-newsletter .news-form .btn-sub:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.5vw, 15px);
  flex-wrap: wrap;
  margin-bottom: clamp(4px, 1vh, 10px);
}

.site-footer .footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(11px, 0.8vw, 14px);
  padding: clamp(6px, 0.8vw, 10px) clamp(16px, 1.5vw, 24px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  transition: all var(--transition-fast);
}

.site-footer .footer-links a:hover {
  color: #0a0e17;
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.25);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 18px);
}

.site-footer a {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.5vw, 22px);
  transition: all var(--transition-fast);
}

/* ====== تطوير قسم تفاصيل المنتج (Media Slider) ====== */
.product-details-container {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
}

.media-slider-container {
  width: 100%;
  overflow: hidden;
  margin: 0 calc(-1 * clamp(12px, 2vw, 28px));
  width: calc(100% + clamp(24px, 4vw, 56px));
}

.media-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 clamp(12px, 2vw, 28px);
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.media-slider::-webkit-scrollbar {
  display: none;
}

.media-slider.active {
  cursor: grabbing;
}

.media-item {
  flex: 0 0 clamp(200px, 70vw, 300px);
  aspect-ratio: 16/10;
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
}

.media-item img {
  cursor: zoom-in;
  pointer-events: auto;
}

.video-item {
  cursor: pointer;
}

.video-item video {
  pointer-events: auto;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(40px, 10vw, 60px);
  height: clamp(40px, 10vw, 60px);
  background: rgba(10, 14, 23, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 4vw, 24px);
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.product-info-container {
  padding-bottom: clamp(10px, 2vw, 20px);
}

.sheet-related-container {
  margin-top: clamp(10px, 2vw, 20px);
  padding-top: clamp(16px, 3vw, 24px);
  border-top: 1px solid var(--border-medium);
}

/* ====== صندوق تكبير الصور (Lightbox) ====== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10000;
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: #ef4444;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
}

/* ====== السلة / المفضلة فارغة ====== */
.list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(30px, 8vw, 60px) 20px;
  text-align: center;
  color: var(--text-muted);
  gap: 15px;
}

.list-empty i {
  font-size: clamp(40px, 10vw, 64px);
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.05);
  width: clamp(80px, 20vw, 120px);
  height: clamp(80px, 20vw, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow:
    inset 0 4px 15px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  margin-bottom: 10px;
}

.list-empty div {
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--text-secondary);
}

/* ==== Custom UI Enhancements ==== */

/* Make filter toolbar scrollable on small screens */
.filter-toolbar {
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) transparent;
}
.filter-toolbar::-webkit-scrollbar {
  height: 6px;
}
.filter-toolbar::-webkit-scrollbar-thumb {
  background-color: var(--accent-gold);
  border-radius: 3px;
}

/* Brand filter buttons - horizontal scroll */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}
.filter-btn {
  white-space: nowrap;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn.active {
  background: var(--accent-gold);
  color: #0a0e17;
  border-color: var(--accent-gold);
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Product grid using CSS Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(12px, 1.5vw, 24px);
  margin-top: clamp(12px, 2vw, 24px);
}

/* Product card – glassmorphism style */
.product-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.08);
}
.card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--transition-fast);
}
.product-card:hover .card-img img {
  transform: scale(1.05);
}
.card-details {
  padding: clamp(8px, 1vw, 16px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.card-top .price {
  font-weight: 700;
  color: var(--accent-gold);
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 6px;
}
.card-actions .stepper button {
  background: var(--accent-gold);
  color: #0a0e17;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.card-actions .stepper button:hover {
  background: var(--accent-gold-light);
}
.card-actions .stepper span {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
}
.card-actions .btn-wish,
.card-actions .btn-cart {
  flex: 1;
  padding: 6px 0;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.card-actions .btn-wish {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}
.card-actions .btn-wish.active {
  background: var(--accent-gold);
  color: #0a0e17;
}
.card-actions .btn-cart {
  background: var(--primary-color);
  color: #fff;
}
.card-actions .btn-wish:hover,
.card-actions .btn-cart:hover {
  opacity: 0.9;
}

/* Badge animations */
.badge.new,
.badge.discount {
  animation: badgePop 0.6s ease-out;
}
@keyframes badgePop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Ensure footer stays at bottom */
.site-footer {
  margin-top: auto;
}
