:root {
  --bg-primary: #121212;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --gold: #C5A059;
  --gold-hover: #e0b462;
  --text-main: #ffffff;
  --text-muted: #a3a3a3;
  --border-color: #333333;
  --font-main: 'Cairo', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utilities */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--gold);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.w-100 { width: 100%; }
.mt-2 { margin-top: 1rem; }

/* Top Bar */
.top-bar {
  background-color: #000000;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
}

/* Header */
.header {
  background-color: var(--bg-primary);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  max-height: 75px; /* Increased size to make it more visible */
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px; /* Premium smooth rounded corners */
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.2); /* Elegant, soft gold glow */
  border: 1px solid rgba(197, 160, 89, 0.25); /* Subtle gold border to define the image boundary */
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05); /* Interactive scale up on hover */
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.45); /* Enhanced gold glow on hover */
  border-color: var(--gold); /* Highlight border with main gold color */
}

.nav-links {
  display: flex;
  gap: 25px;
}
@media (max-width: 850px) {
    .nav-links { display: none; }
}
.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  padding-bottom: 5px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
}
.nav-links a.active {
  border-bottom: 2px solid var(--gold);
}

.nav-icons {
  display: flex;
  gap: 15px;
}
.icon-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.icon-btn:hover { color: var(--gold); }
.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 85vh;
  position: relative;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #121212 5%, rgba(18,18,18,0.7) 40%, rgba(18,18,18,0.1) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
}
.hero-content {
  max-width: 600px;
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.crea-prime-title {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-size: 6rem;
  letter-spacing: 1px;
}
.hero-subtitle-en {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-title span {
  color: var(--gold);
}
.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 35px;
  color: #f5f5f5;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}
.hero-features {
  display: flex;
  gap: 25px;
  font-size: 0.85rem;
}
.hero-features .feat {
  font-weight: 600;
  line-height: 1.4;
}
.hero-features .feat span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

/* Categories */
.categories-section {
  padding: 40px 0;
  background-color: #0c0c0c;
  border-bottom: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}
.categories-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}
.category {
  text-align: center;
  padding: 15px 25px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  flex: 1;
  min-width: 140px;
  transition: var(--transition);
  cursor: pointer;
}
.category:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  background-color: var(--bg-tertiary);
}
.category span {
  font-weight: 700;
  font-size: 1rem;
}
.category small {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* Best Sellers */
.best-sellers {
  padding: 60px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.section-header h2 {
  font-size: 2rem;
  text-align: center;
  flex: 1;
}
.view-all {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.view-all:hover {
  color: var(--gold);
}

.products-carousel {
  display: flex;
  align-items: center;
  gap: 15px;
}
.carousel-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.carousel-btn:hover {
  background-color: var(--gold);
  color: #000;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
}

/* Product Card */
.product-card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.product-image {
  background-color: #141414;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  height: 220px;
}
.product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.product-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 5px 0;
  color: var(--text-main);
  min-height: 48px;
}
.product-category {
  font-size: 0.8rem;
  color: var(--gold);
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  margin-bottom: 15px;
}
.product-rating {
  font-size: 0.85rem;
}
.product-price {
  font-weight: 800;
  font-size: 1.1rem;
}
.add-to-cart-btn {
  width: 100%;
  font-size: 0.9rem;
  padding: 8px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid .product-card:nth-child(5) { display: none; } /* hide 5th to fit grid nicely */
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid .product-card:nth-child(4) { display: none; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .hero::before {
    background: linear-gradient(180deg, rgba(18,18,18,0.7) 10%, rgba(18,18,18,0.9) 100%);
  }
  .hero-buttons { flex-direction: column; }
  .hero-features { flex-direction: column; gap: 10px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid .product-card:nth-child(4) { display: flex; } /* bring back */
  .products-grid .product-card:nth-child(3) { display: none; }
  .carousel-btn { display: none; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-grid .product-card:nth-child(3) { display: flex; }
}

/* Stats */
.stats-section {
  background-color: var(--bg-secondary);
  padding: 30px 0;
  border-radius: 12px;
  max-width: 1160px;
  margin: 0 auto 40px auto;
  border: 1px solid var(--border-color);
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 20px;
}
.stat {
  font-size: 1.2rem;
  font-weight: 800;
  min-width: 120px;
}
.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 5px;
  display: block;
}
.stat small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Footer */
.main-footer {
  text-align: center;
  padding: 25px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  background-color: #0a0a0a;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background-color: var(--bg-secondary);
  width: 90%;
  max-width: 450px;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--border-color);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}
.modal-header h2 {
  font-size: 1.4rem;
}
.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}
.close-btn:hover {
  color: var(--text-main);
  transform: scale(1.1);
}

/* Cart Specific */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 5px;
}
.cart-items-list::-webkit-scrollbar {
  width: 6px;
}
.cart-items-list::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 4px;
}
.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}
.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background-color: var(--bg-tertiary);
  border-radius: 6px;
}
.cart-item-details { flex: 1; }
.cart-item-details h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
}
.cart-item-details p {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.remove-btn {
  background: none;
  border: none;
  color: #ff4c4c;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
}
.remove-btn:hover { text-decoration: underline; }
.empty-cart { text-align: center; padding: 30px 0; color: var(--text-muted); }

/* Checkout Specific */
.checkout-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-group input {
  width: 100%;
  padding: 12px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition);
}
.form-group input:focus {
  border-color: var(--gold);
}

/* Contact Us Specific */
.contact-section {
  text-align: center;
  padding: 40px 0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}
.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
}
.contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.1rem;
  background-color: var(--bg-tertiary);
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.contact-links a:hover {
  background-color: var(--gold);
  color: #000;
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Reviews */
.reviews-section {
  padding: 40px 0;
  background-color: var(--bg-primary);
}
.reviews-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}
.reviews-scroll-container::-webkit-scrollbar {
  height: 6px;
}
.reviews-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--gold);
  border-radius: 4px;
}
.review-img {
  max-width: 320px;
  max-height: 500px;
  object-fit: contain;
  border-radius: 12px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  transition: transform 0.3s ease;
}
.review-img:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}
@media (max-width: 768px) {
  .review-img { max-width: 260px; max-height: 400px; }
}

/* --- Category Interactive States & Cover Banners --- */
.category.active {
  border-color: var(--gold);
  background-color: var(--bg-tertiary);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.25);
  transform: translateY(-5px);
}

/* Creatine cover image inside the category box (الصندوق الصغير) */
#cat-creatine {
  background-image: linear-gradient(rgba(12, 12, 12, 0.82), rgba(12, 12, 12, 0.82)), url('./assets/products/creatine/ChatGPT Image May 17, 2026, 03_12_55 PM.png');
  background-size: cover;
  background-position: center;
}

#cat-creatine:hover {
  background-image: linear-gradient(rgba(12, 12, 12, 0.65), rgba(12, 12, 12, 0.65)), url('./assets/products/creatine/ChatGPT Image May 17, 2026, 03_12_55 PM.png');
  border-color: var(--gold);
  transform: translateY(-4px);
}

#cat-creatine.active {
  background-image: linear-gradient(rgba(197, 160, 89, 0.25), rgba(12, 12, 12, 0.75)), url('./assets/products/creatine/ChatGPT Image May 17, 2026, 03_12_55 PM.png');
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.35);
  border-color: var(--gold);
  transform: translateY(-5px);
}

.category-banner {
  width: 100%;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  margin-bottom: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 50px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: bannerFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    rgba(18,18,18,0.95) 0%, 
    rgba(18,18,18,0.7) 40%, 
    rgba(18,18,18,0.2) 100%
  );
  z-index: 1;
}

.category-banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: right; /* RTL alignment */
}

.category-banner-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
  text-shadow: 0 3px 6px rgba(0,0,0,0.9);
  line-height: 1.2;
}

.category-banner-title span {
  color: var(--gold);
  position: relative;
}

.category-banner-title span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 100%;
  height: 3px;
  background-color: var(--gold);
  border-radius: 2px;
}

.category-banner-desc {
  font-size: 1.15rem;
  color: #f5f5f5;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  line-height: 1.7;
}

/* Category product list empty state */
.no-products {
  grid-column: span 5;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 600;
  animation: bannerFadeIn 0.5s ease;
}

@keyframes bannerFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .category-banner {
    min-height: 220px;
    padding: 30px;
    margin-bottom: 30px;
  }
  .category-banner-title {
    font-size: 2rem;
  }
  .category-banner-desc {
    font-size: 1rem;
    line-height: 1.5;
  }
  .no-products {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .no-products {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .category-banner {
    min-height: 180px;
    padding: 20px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
  }
  .category-banner-title {
    font-size: 1.6rem;
  }
  .category-banner-desc {
    font-size: 0.9rem;
  }
  .no-products {
    grid-column: span 1;
  }
}

/* --- Product Details Modal Styling --- */
.product-details-modal {
  max-width: 820px;
  width: 95%;
  max-height: 90vh;
  padding: 30px;
  overflow: hidden;
}

.product-details-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  overflow-y: auto;
  padding-right: 5px;
  padding-bottom: 10px;
}

.product-details-body::-webkit-scrollbar {
  width: 6px;
}

.product-details-body::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 4px;
}

.product-details-image-area {
  background-color: #141414;
  border-radius: 12px;
  padding: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 360px;
  border: 1px solid var(--border-color);
}

.product-details-image-area img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.product-details-image-area:hover img {
  transform: scale(1.03);
}

.discount-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #ff4c4c;
  color: white;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 76, 76, 0.4);
  direction: ltr; /* To display percentage properly like -11% */
}

.modal-brand-title {
  font-size: 1.1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-detail-name {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--text-main);
}

.product-detail-prices {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 25px;
}

.product-detail-prices .current-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
}

.product-detail-prices .old-price {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-detail-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.product-detail-actions .btn {
  flex: 1;
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 8px;
}

/* Tabs */
.product-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
  gap: 10px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  font-family: var(--font-main);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--gold);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: bannerFadeIn 0.4s ease;
}

/* Features list */
.features-list, .target-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li, .target-list li {
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.6;
  color: #f5f5f5;
}

.features-list li::before {
  content: '✔';
  color: #22c55e; /* Green check */
  font-weight: 900;
  background-color: rgba(34, 197, 94, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.target-list li::before {
  content: '🔹';
  flex-shrink: 0;
}

/* Info Box */
.info-box {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 8px;
}

.info-box p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5e5e5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box strong {
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 768px) {
  .product-details-modal {
    padding: 20px;
    max-height: 95vh;
  }
  .product-details-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-details-image-area {
    height: 260px;
    padding: 15px;
  }
  .product-detail-name {
    font-size: 1.4rem;
  }
  .product-detail-prices .current-price {
    font-size: 1.5rem;
  }
  .product-detail-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
  }
  .product-detail-actions .btn {
    padding: 12px 18px;
    width: 100%;
  }
}

/* Sort and Filter Controls Bar */
.controls-bar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px 25px;
  margin: 0 auto 30px auto;
  max-width: 100%;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: bannerFadeIn 0.5s ease;
}

.controls-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 15px;
  direction: rtl; /* Align RTL for Arabic layout */
}

.control-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-group label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
}

.control-group select {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  min-width: 220px;
}

.control-group select:focus, .control-group select:hover {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.15);
}

.products-count-badge {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  direction: rtl;
}

@media (max-width: 600px) {
  .controls-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .control-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .control-group select {
    width: 100%;
  }
  .products-count-badge {
    text-align: center;
  }
}

/* Coming Soon Badge for empty categories */
.coming-soon-tag {
  font-size: 0.7rem;
  background: linear-gradient(135deg, var(--gold), #8a6d33);
  color: #000;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Search Modal Styling */
.search-modal {
  max-width: 700px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.search-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 5px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 1.1rem;
  outline: none;
  transition: var(--transition);
  text-align: right; /* RTL friendly typing */
}

.search-input-wrapper input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.25);
}

.search-icon-inside {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-results-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 5px;
  margin-top: 10px;
}

.search-results-grid::-webkit-scrollbar {
  width: 6px;
}

.search-results-grid::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  transition: var(--transition);
  direction: rtl; /* RTL item display */
}

.search-result-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  background-color: rgba(197, 160, 89, 0.06);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.search-result-item img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  background-color: #141414;
  border-radius: 6px;
  padding: 4px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  text-align: right;
}

.search-result-brand {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
}

.search-result-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1px 0 3px 0;
  line-height: 1.4;
}

.search-result-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold);
}

.no-search-results {
  text-align: center;
  padding: 35px 20px;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.6;
}



