:root {
  --bg: #1a1a1a;
  --brand: #FFD000;
  --text: #e0e0e0;
  --muted: #a0a0a0;
  --card: #2a2a2a;
  --success: #22c55e;
  --danger: #ef4444;
}
body {
  font-family: "Cairo", system-ui;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
}
.container {
  max-width: 1140px;
  margin: auto;
  padding: 12px;
}
.btn {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}
.btn:hover {
  transform: scale(1.05);
}
.btn-brand {
  background: var(--brand);
  color: #111;
}
.btn-brand:hover {
  background: #ffc000;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
}
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeIn 0.5s ease-in;
}
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}
.product-card {
  max-width: 600px;
  margin: auto;
}
.price {
  font-weight: 800;
  color: var(--brand);
}
.sticky-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid #444;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
}
.badge {
  background: var(--brand);
  color: #111;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .85rem;
}
.grid {
  display: grid;
  gap: 16px;
  animation: fadeIn 0.5s ease-in;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-1 {
  grid-template-columns: 1fr;
}
#addons.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#addons label, #combo-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  flex-wrap: nowrap;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
  margin: 0;
}
input, textarea, select {
  background: #333;
  color: var(--text);
  border: 1px solid #555;
  border-radius: 8px;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
  font-family: "Cairo", system-ui;
  transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 5px rgba(255, 208, 0, 0.5);
  outline: none;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
.reviews-slider {
  padding: 20px 0;
}
.review-card {
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}
.review-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}
.review-img {
  max-width: 100%;
  max-height: 300px; /* تحديد أقصى ارتفاع للصور */
  width: auto;
  height: auto;
  object-fit: contain; /* ضمان ظهور الصورة كاملة */
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #444; /* إطار خفيف لتحسين الرؤية في الدارك موود */
}
.review-caption {
  font-size: 0.9rem;
  color: var(--muted);
}
.swiper-button-next, .swiper-button-prev {
  color: var(--brand);
}
.swiper-pagination-bullet {
  background: var(--muted);
}
.swiper-pagination-bullet-active {
  background: var(--brand);
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .review-img { max-height: 250px; } /* تصغير الصور على الشاشات المتوسطة */
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  #addons.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #logo-img { width: 60px; }
  #addons label, #combo-label {
    gap: 8px;
  }
  .review-img { max-height: 200px; } /* تصغير الصور على الموبايل */
}
.hero {
  position: relative;
  text-align: center;
  padding: 50px 0;
  background: var(--card);
}
.banner-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.banner-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.banner-slider img.active {
  opacity: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  padding: 16px;
  border-radius: 10px;
}
.hero h1 {
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.floating-whatsapp {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 100;
}
.floating-whatsapp img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ml {
  flex: 1;
  margin-right: 12px;
}
.muted {
  color: var(--muted);
  font-size: 0.85rem;
}
.fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--muted);
  transition: color 0.3s, transform 0.2s;
}
.fav-btn:hover {
  color: var(--danger);
  transform: scale(1.1);
}
.fav-btn.favorited {
  color: var(--danger);
}
.add-cart-btn {
  background: var(--brand);
  color: #111;
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.add-cart-btn:hover {
  transform: scale(1.05);
}
.navbar {
  background: var(--card);
  padding: 8px 0;
  border-bottom: 1px solid #444;
}
.navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
}
.navbar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.navbar a.active {
  color: var(--brand);
}
.navbar a:hover {
  color: var(--brand);
}
.footer {
  background: var(--card);
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid #444;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  text-align: right;
}
.footer-column h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-column ul li {
  margin-bottom: 6px;
}
.footer-column a {
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
  font-size: 0.85rem;
}
.footer-column a:hover {
  color: var(--brand);
}
.footer-column p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}
.filters .btn {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}
.filters .btn:hover {
  background: var(--brand);
  color: #111;
}
.filters .btn.active {
  background: var(--brand);
  color: #111;
  border-color: var(--brand);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.tit {
  font-size: 38px;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  text-shadow: 
    0 0 5px rgba(255, 255, 255, 0.2),
    0 0 12px rgba(255, 215, 0, 0.3),
    0 0 25px rgba(218, 165, 32, 0.4);
  letter-spacing: 1.5px;
  margin: 20px 0;
  animation: heavyGlow 2.5s ease-in-out infinite alternate;
}
@keyframes heavyGlow {
  from {
    text-shadow: 
      0 0 4px rgba(255, 255, 255, 0.2),
      0 0 10px rgba(255, 215, 0, 0.3),
      0 0 20px rgba(218, 165, 32, 0.4);
  }
  to {
    text-shadow: 
      0 0 6px rgba(255, 255, 255, 0.3),
      0 0 16px rgba(255, 215, 0, 0.4),
      0 0 35px rgba(218, 165, 32, 0.5);
  }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* أضف هذه الأنماط لملف style.css */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.quantity-control label {
  font-weight: 600;
  color: var(--text);
}

.qty-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background-color: var(--card);
  border-radius: 12px;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.qty-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.qty-btn.plus {
  background: var(--brand);
  color: #111;
}

.qty-btn.plus:hover {
  background: #ffc000;
  box-shadow: 0 0 15px rgba(255, 208, 0, 0.5);
}

.qty-btn.minus {
  background: var(--danger);
  color: white;
}

.qty-btn.minus:hover {
  background: #dc2626;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.qty-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.qty-display {
  width: 70px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #555;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
  background-color: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.qty-display:hover {
  border-color: var(--brand);
  box-shadow: 0 0 10px rgba(255, 208, 0, 0.3);
}

.qty-display:active {
  background-color: var(--card);
}

/* For mobile responsiveness */
@media (max-width: 560px) {
  .quantity-control {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .qty-buttons {
    width: 100%;
    justify-content: space-between;
  }
  
  .qty-btn {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
  
  .qty-display {
    width: 80px;
    height: 50px;
    font-size: 22px;
  }
}
