* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #D4AF37;
  --dark: #1a1a1a;
  --light: #fff;
  --gray: #f5f5f5;
  --gray-dark: #e0e0e0;
  --text: #333;
  --text-light: #666;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--light);
  border-bottom: 3px solid var(--primary);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 3px;
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--primary);
}

.navbar-search {
  flex: 1;
  max-width: 350px;
  display: flex;
  align-items: center;
  background: var(--gray);
  border-radius: 30px;
  padding: 8px 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.navbar-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.search-btn:hover {
  color: var(--primary);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding-bottom: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-btn {
  background: none;
  border: 2px solid var(--primary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}

.cart-btn:hover {
  background: var(--primary);
  color: var(--dark);
}
/* ===== تحسينات وتنسيق أزرار التحكم في السلة ===== */

/* أزرار زيادة ونقصان الكمية */
.qty-btn {
  background-color: var(--light);
  border: 1px solid var(--gray-dark);
  color: var(--dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}

.qty-btn:hover {
  background-color: var(--dark);
  color: var(--primary);
  border-color: var(--dark);
}

/* حقل عرض الرقم بين الأزرار */
.cart-item-qty span {
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
}

/* زر حذف المنتج بالكامل */
.cart-item-remove button {
  background-color: transparent;
  border: 1px solid #ff4d4d;
  color: #ff4d4d;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-item-remove button:hover {
  background-color: #ff4d4d;
  color: var(--light);
}


/* ===== إصلاح التداخل والـ Sticky في العمود الجانبي ===== */

/* ===== تنسيق الجانب الأيمن للسلة (Cart Sidebar) ===== */
.cart-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* ملخص الطلب */
.order-summary {
  background: var(--gray);
  border: 1px solid var(--gray-dark);
  border-radius: 8px;
  padding: 25px;
}

.order-summary h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gray-dark);
  padding-bottom: 10px;
}

/* عناصر الحسابات */
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-light);
}

/* الإجمالي النهائي */
.summary-total {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--gray-dark);
  color: var(--dark);
  font-weight: bold;
}

.summary-total span:first-child {
  font-size: 16px;
}

.summary-total .summary-value {
  font-size: 22px;
  color: var(--dark);
}

/* زر إتمام الشراء */
.checkout-btn {
  width: 100%;
  background: var(--dark);
  color: var(--light);
  border: 2px solid var(--dark);
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.checkout-btn:hover {
  background: var(--primary); /* اللون الذهبي الخاص بالمتجر */
  border-color: var(--primary);
  color: var(--dark);
}

/* ===== قسم الكوبون ===== */
.coupon-section {
  background: var(--light);
  border: 1px solid var(--gray-dark);
  border-radius: 8px;
  padding: 20px;
}

.coupon-section h4 {
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 600;
}

/* مجموعة الإدخال والزر الخاص بالكوبون */
.coupon-input-group {
  display: flex;
  gap: 8px;
}

.coupon-input-group input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--gray-dark);
  border-radius: 5px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.coupon-input-group input:focus {
  border-color: var(--primary); /* يضيء بالذهبي عند الكتابة */
}

/* زر تطبيق الكوبون */
#apply-coupon-btn {
  background: var(--gray-dark);
  color: var(--dark);
  border: none;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#apply-coupon-btn:hover {
  background: var(--dark);
  color: var(--light);
}

/* ===== شاشات الموبايل المتجاوبة ===== */
@media (max-width: 768px) {
  .order-summary {
    padding: 20px;
  }
  
  .summary-total .summary-value {
    font-size: 20px;
  }
  
  .checkout-btn {
    padding: 12px;
    font-size: 15px;
  }
}
/* ===== تنسيق زر حذف المنتج من السلة ===== */
.remove-item-btn {
  background: transparent;
  color: #e74c3c; /* لون أحمر هادئ للحذف */
  border: 1px solid #e74c3c;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
}

/* تأثير التمرير (Hover) فوق زر الحذف */
.remove-item-btn:hover {
  background: #e74c3c;
  color: var(--light); /* يتحول الخلفية للأحمر والكتابة للأبيض */
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* في حال كان الزر عبارة عن أيقونة فقط (مثل علامة X أو سلة المهملات) */
.remove-item-btn.icon-only {
  border: none;
  background: none;
  font-size: 18px;
  color: var(--text-light);
  padding: 5px;
}

.remove-item-btn.icon-only:hover {
  color: #e74c3c;
  background: transparent;
  box-shadow: none;
  transform: scale(1.1); /* تكبير بسيط عند التمرير */
}
.cart-count {
  background: #e74c3c;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  position: absolute;
  top: -8px;
  right: -8px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  border-bottom: 3px solid var(--primary);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--dark);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.hero-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  animation: slideInRight 0.8s ease;
  border-radius: 15px;
  box-shadow: 0 15px 50px rgba(212, 175, 55, 0.2);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark);
}

.btn-primary:hover {
  background: #c9a227;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--dark);
}

.promo-banner .btn-secondary {
  background: var(--light);
  color: var(--dark);
  border-color: var(--light);
}

.promo-banner .btn-secondary:hover {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ===== SECTIONS ===== */
section {
  padding: 70px 0;
}

.section-title {
  font-size: 42px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 50px;
  color: var(--dark);
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
}

/* ===== CATEGORIES ===== */
.categories {
  background: var(--gray);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.category-card {
  background: var(--light);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.category-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.category-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  transition: all 0.4s ease;
}

.category-card:hover .category-placeholder {
  transform: scale(1.1);
}

.men-placeholder {
  background: linear-gradient(135deg, #e8d4f1 0%, #d4c5f9 100%);
}

.women-placeholder {
  background: linear-gradient(135deg, #f5d9e8 0%, #f9c5d9 100%);
}

.shoes-placeholder {
  background: linear-gradient(135deg, #d9e8f5 0%, #c5e5f9 100%);
}

.accessories-placeholder {
  background: linear-gradient(135deg, #f9f5c5 0%, #f5f0d9 100%);
}

.category-card h3 {
  padding: 20px;
  font-size: 18px;
  text-align: center;
  font-weight: 700;
  border-top: 3px solid var(--primary);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.product-card {
  position: relative;
  background: var(--light);
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--gray-dark);
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  transition: transform 0.4s ease;
  overflow: hidden;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff4757; /* لون أحمر جذاب للخصم */
  color: var(--light);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-info {
  padding: 18px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.product-price {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
}

.price-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.price-old {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.product-actions button {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--primary);
  background: var(--light);
  color: var(--primary);
  cursor: pointer;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 13px;
}

.product-actions button:last-child {
  background: var(--primary);
  color: var(--dark);
}

.product-actions button:hover {
  background: var(--primary);
  color: var(--dark);
}

/* ===== SECTIONS WITH BG ===== */
.best-sellers {
  background: var(--gray);
}

.new-arrivals {
  background: var(--light);
}

.featured {
  background: var(--gray);
}

/* ===== PROMO BANNER ===== */
.promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #c9a227 100%);
  color: var(--dark);
  text-align: center;
  padding: 60px 0;
}

.promo-content h2 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 15px;
}

.promo-content p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* ===== BENEFITS ===== */
.benefits {
  background: var(--light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: var(--gray);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border-top: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.benefit-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.benefit-card p {
  color: var(--text-light);
  font-size: 15px;
}

/* ===== REVIEWS ===== */
.reviews {
  background: var(--gray);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.review-card {
  background: var(--light);
  padding: 25px;
  border-radius: 10px;
  border: 2px solid var(--gray-dark);
  text-align: center;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stars {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.review-card p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-style: italic;
  font-size: 15px;
  line-height: 1.8;
}

.review-card strong {
  color: var(--dark);
  font-weight: 700;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
  color: var(--light);
  text-align: center;
}

.newsletter h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 15px;
}

.newsletter p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 13px 16px;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 15px;
}

.newsletter-form button {
  padding: 13px 30px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: #ccc;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 8px;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--gray);
  padding: 15px 0;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.3s ease;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== SHOP PAGE ===== */
.shop {
  padding: 50px 0;
  min-height: 80vh;
}

.shop-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.filters {
  background: var(--gray);
  padding: 25px;
  border-radius: 10px;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.filters h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--dark);
  font-weight: 700;
}

.filter-group {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-dark);
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group h4 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--dark);
  font-weight: 700;
  text-transform: uppercase;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

#price-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-dark);
  outline: none;
  -webkit-appearance: none;
  accent-color: var(--primary);
}

#price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

#price-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}

.price-display {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-light);
}

#reset-filters {
  width: 100%;
  margin-top: 20px;
}

.filter-toggle {
  display: none;
  margin-bottom: 20px;
}

.products-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sort-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.sort-bar select {
  padding: 10px 15px;
  border: 2px solid var(--gray-dark);
  border-radius: 5px;
  background: var(--light);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.sort-bar select:hover,
.sort-bar select:focus {
  border-color: var(--primary);
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--light);
  border-radius: 10px;
  padding: 30px;
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideInUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light);
  transition: 0.3s ease;
}

.modal-close:hover {
  color: var(--dark);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.modal-image {
  background: var(--gray);
  border-radius: 8px;
  overflow: hidden;
}

.modal-info h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.modal-price {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
}

.modal-info p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.modal-info button {
  width: 100%;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .navbar .container {
    gap: 20px;
  }
  
  .navbar-menu {
    gap: 25px;
  }
  
  .hero .container {
    gap: 40px;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .hero-image {
    min-height: 350px;
  }
  
  .hero-image img {
    max-height: 380px;
  }
  
  .filters {
    position: static;
  }
}

@media (max-width: 900px) {
  .shop-wrapper {
    grid-template-columns: 1fr;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .filters {
    display: none;
    position: static;
    width: 100%;
  }

  .filters.active {
    display: block;
  }
}

@media (max-width: 768px) {
  section {
    padding: 50px 0;
  }
  
  .navbar .container {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .navbar-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .menu-toggle {
    display: flex;
  }
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--light);
    padding: 20px;
    border-bottom: 3px solid var(--primary);
    gap: 15px;
    z-index: 999;
  }
  
  .navbar-menu.active {
    display: flex;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .filters {
    display: none;
    position: static;
    width: 100%;
  }

  .filters.active {
    display: block;
  }
  
  .hero .container {
    flex-direction: column-reverse;
    gap: 25px;
    padding: 0 15px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 25px;
  }
  
  .hero-image {
    min-height: 280px;
    width: 100%;
  }
  
  .hero-image img {
    max-height: 300px;
    max-width: 90%;
  }
  
  .btn {
    padding: 11px 28px;
    font-size: 14px;
  }
  
  .section-title {
    font-size: 32px;
    margin-bottom: 35px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 12px;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
  
  .cart-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .navbar-search {
    order: 2;
    max-width: 100%;
  }
  
  .navbar-brand {
    flex: 1 1 auto;
  }
  
  .search-input {
    font-size: 13px;
  }
  
  section {
    padding: 40px 0;
  }
  
  .hero .container {
    flex-direction: column-reverse;
    gap: 20px;
    padding: 0;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-title {
    font-size: 26px;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .hero-image {
    min-height: 220px;
    width: 100%;
  }
  
  .hero-image img {
    max-height: 240px;
    max-width: 85%;
  }
  
  .btn {
    padding: 10px 24px;
    font-size: 13px;
    letter-spacing: 0.5px;
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
  }
  
  .section-title {
    font-size: 22px;
    margin-bottom: 30px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .product-card {
    border-radius: 8px;
  }
  
  .product-image {
    height: 200px;
    font-size: 48px;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .category-placeholder {
    height: 150px;
    font-size: 48px;
  }
  
  .category-card h3 {
    font-size: 15px;
    padding: 15px;
  }
  
  .benefit-card {
    padding: 20px;
  }
  
  .benefit-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }
  
  .benefit-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .benefit-card p {
    font-size: 13px;
  }
  
  .review-card {
    padding: 20px;
  }
  
  .review-card p {
    font-size: 13px;
  }
  
  .newsletter h2 {
    font-size: 26px;
    margin-bottom: 12px;
  }
  
  .newsletter p {
    font-size: 15px;
    margin-bottom: 20px;
  }
  
  .newsletter-form input {
    padding: 10px;
    font-size: 13px;
  }
  
  .newsletter-form button {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .breadcrumb {
    font-size: 12px;
    padding: 12px 0;
  }
  
  .footer-section h4 {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .footer-section p {
    font-size: 12px;
    line-height: 1.6;
  }
  
  .footer-section a {
    font-size: 12px;
  }
  
  .footer-bottom {
    font-size: 12px;
    padding-top: 15px;
  }
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery {
  gap: 14px;
}

.product-main-image {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gray-dark);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #f5f5f5, #e5e5e5);
}

.product-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-slider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.thumb-nav {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gray-dark);
  border-radius: 50%;
  background: var(--light);
  color: var(--dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.thumb-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.product-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
}

.product-thumbs::-webkit-scrollbar {
  height: 6px;
}

.product-thumbs::-webkit-scrollbar-thumb {
  background: var(--gray-dark);
  border-radius: 999px;
}

.thumb-img {
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: var(--light);
}

.thumb-img:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.thumb-img.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15), 0 8px 18px rgba(0, 0, 0, 0.12);
}

.thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== CART PAGE ===== */
.cart-section {
  padding: 50px 0;
  min-height: 80vh;
  background: var(--light);
}

.cart-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
}

.cart-items-wrapper {
  display: flex;
  flex-direction: column;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr 100px 100px 60px;
  gap: 20px;
  align-items: center;
  background: var(--light);
  border: 2px solid var(--gray-dark);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cart-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
  width: 100%;
  height: 100px;
  background: var(--gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
}

.cart-item-details h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.cart-item-details p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.cart-item-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.cart-quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-dark);
  border-radius: 5px;
  padding: 5px;
}

.cart-quantity-control button {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  color: var(--primary);
  transition: all 0.3s ease;
  border-radius: 3px;
}

.cart-quantity-control button:hover {
  background: var(--gray);
  color: var(--dark);
}

.cart-quantity-control input {
  width: 40px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 600;
  font-family: inherit;
}

.cart-item-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.cart-item-remove {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
}

.cart-item-remove:hover {
  transform: scale(1.2);
}

.cart-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
  align-self: start;
}

.order-summary {
  background: var(--gray);
  border-radius: 10px;
  padding: 25px;
  border: 2px solid var(--gray-dark);
  transition: all 0.3s ease;
  height: fit-content;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  z-index: 1;
}

.order-summary:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

.order-summary h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gray-dark);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
}

.summary-label {
  color: var(--text-light);
  font-weight: 500;
}

.summary-value {
  font-weight: 600;
  color: var(--dark);
}

.summary-divider {
  height: 1px;
  background: var(--gray-dark);
  margin: 15px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 2px solid var(--gray-dark);
  font-size: 16px;
  font-weight: 700;
}

.summary-total .summary-value {
  font-size: 20px;
  color: var(--primary);
}

.promo-box {
  background: var(--light);
  border: 2px solid var(--gray-dark);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
}

.promo-box:hover {
  border-color: var(--primary);
}

.promo-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--dark);
}

/* ===== CART RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cart-wrapper {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    position: sticky;
  }

  .order-summary {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }

  .cart-item {
    grid-template-columns: 100px 1fr 80px 80px 50px;
    gap: 15px;
    padding: 15px;
  }

  .cart-item-image {
    height: 80px;
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
    padding: 12px;
  }

  .cart-item-price,
  .cart-quantity-control,
  .cart-item-total {
    display: none;
  }

  .cart-item-details {
    display: flex;
    flex-direction: column;
  }

  .cart-item-details h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .cart-item-details p {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .cart-item-image {
    height: 80px;
    font-size: 36px;
  }

  .cart-item-remove {
    grid-column: 1 / -1;
    width: 100%;
    padding: 8px;
    text-align: left;
    border-top: 1px solid var(--gray-dark);
  }
}

@media (max-width: 480px) {
  .cart-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .cart-item-image {
    height: 100px;
    font-size: 40px;
    margin-bottom: 10px;
  }

  .cart-item-remove {
    margin-top: 10px;
    padding: 8px;
    border-top: 1px solid var(--gray-dark);
  }

  .order-summary {
    padding: 15px;
  }

  .order-summary h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .summary-item {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .summary-total {
    font-size: 14px;
  }

  .summary-total .summary-value {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* ... الكود الحالي الخاص بك ... */

  .cart-item-remove {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 10px;
    padding: 10px !important; /* لتوحيد المساحة الداخلية ومنعه من التضخم */
    text-align: center;
    background-color: #ff4d4d; /* لون خلفية واضح ومناسب للحذف */
    color: white;
    border-radius: 5px;
    border: none;
    transition: background 0.3s ease, transform 0.2s ease;
  }

  /* هذا الجزء هو المسؤول عن إلغاء التكبير العشوائي (Scale) وضبط الـ Hover */
  .cart-item-remove:hover {
    transform: none !important; /* يمنع الزر من التكبير والخروج من الكارت */
    background-color: #e60000; /* يكتفي فقط بتغميق اللون عند الـ Hover لمنح إيحاء بالضغط */
    cursor: pointer;
  }
}
