#shopModal .shop-modal .card-product {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#shopModal .shop-modal .card-product.category-change {
  animation: productTransition 0.1s ease-out forwards;
}

@keyframes productTransition {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Cards - Larger Size */
#shopModal .shop-modal .card-product {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#shopModal .shop-modal .card-body {
  padding: 0.75rem !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Product Images - Full Size */
#shopModal .shop-modal .img_pro_box {
  height: 160px;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

#shopModal .shop-modal .img_pro_box .mb-3 {
  width: 100% !important;
  height: 160px !important;
  background-size: cover !important;
  background-position: center !important;
  margin: 0 !important;
  border-radius: 8px;
}

/* Product Title */
#shopModal .shop-modal .card-product h2 {
  height: 3em;
  overflow: hidden;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

/* Quantity Controls - Larger Size */
#shopModal .shop-modal .input-group.input-spinner {
  display: flex;
  direction: ltr;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  width: 107%;
  max-width: 160px;
  margin: 0 auto;
}

/* Larger + and - buttons */
#shopModal .shop-modal .button-plus,
#shopModal .shop-modal .button-minus {
  border: none !important;
  background: #fe0000 !important;
  color: white !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  transition: all 0.3s ease;
  font-size: 18px !important;
}

#shopModal .shop-modal .button-plus {
  order: 1;
}

#shopModal .shop-modal .button-minus {
  order: 3;
}

/* Quantity Input */
#shopModal .shop-modal .quantity-field {
  order: 2;
  width: 45px !important;
  text-align: center !important;
  border: none !important;
  background: #f8f9fa !important;
  font-weight: 600 !important;
  color: #333 !important;
  padding: 4px !important;
  margin: 0 8px !important;
  border-radius: 6px !important;
  font-size: 18px !important;
}

/* Add to Cart Button */
#shopModal .shop-modal .add-to-cart {
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
  height: 40px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #fe0000 !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 500;
}

/* Price Badge */
#shopModal .shop-modal .badge.bg-danger {
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 16px !important;
  font-weight: 500;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

/* Category Slider - Compact */
#shopModal .shop-modal .customer-logos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  gap: 1.5rem;
  padding: 0.1rem 0rem 2.5rem 0rem;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#shopModal .shop-modal .slider_img_sup {
  width: 100%;
  height: 4rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}
#shopModal .category-item {
  width: 6rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #shopModal .shop-modal .img_pro_box .mb-3 {
    height: 150px !important;
  }

  #shopModal .shop-modal .button-plus,
  #shopModal .shop-modal .button-minus {
    width: 35px !important;
    height: 35px !important;
  }

  #shopModal .shop-modal .quantity-field {
    width: 40px !important;
    font-size: 16px !important;
  }
}

.active .slider_img_sup {
  border: solid #fe0000;
}
#shopModal {
  direction: rtl;
}

/* Modal Structure */
#shopModal .modal-content {
  border-radius: 20px;
  border: none;
  background: #f8f9fa;
}

#shopModal .modal-header {
  border-bottom: 1px solid #eee;
  padding: 1rem;
  background: white;
}

/* Search Section */
#shopModal .search-container {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: white;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

#shopModal .search-input {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  background: white;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Category Section */
#shopModal .category-section {
  margin-right: 10px;
  background: white;
}

#shopModal .category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0 1rem;
  color: #333;
}

/* Slider */
#shopModal .products-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#shopModal .products-track {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-user-select: none;
  user-select: none;
  will-change: transform, scroll-position;
}

#shopModal .products-track.grabbing {
  cursor: grabbing;
  scroll-snap-type: none;
}

#shopModal .product-slide {
  flex: 0 0 160px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  user-select: none;
  -webkit-user-select: none;
}

#shopModal .products-track::-webkit-scrollbar {
  display: none;
}

/* Product Card */
#shopModal .card-product {
  border: none;
  border-radius: 16px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  height: 100%;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out forwards;
}

#shopModal .card-product:active {
  transform: scale(0.98);
}

#shopModal .card-product .card-img-top {
  height: 160px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  background-color: #f8f9fa;
}

#shopModal .card-product .card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

/* Product Title */
#shopModal .card-product h2 {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 2.8em;
}

/* Price Badge */
#shopModal .badge.bg-danger {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem !important;
  font-weight: 500;
  background: #fe0000 !important;
}

/* Cart Controls */
#shopModal .input-spinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  direction: ltr;
}

#shopModal .button-minus,
#shopModal .button-plus {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: #fe0000 !important;
  border: none !important;
  color: white !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1rem !important;
  padding: 0 !important;
  transition: opacity 0.2s ease;
}

#shopModal .button-minus:active,
#shopModal .button-plus:active {
  opacity: 0.8;
}

#shopModal .quantity-field {
  width: 40px !important;
  text-align: center !important;
  border: none !important;
  background: #f8f9fa !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 0.25rem !important;
  border-radius: 6px !important;
  margin: 0 0.25rem !important;
}

/* Add to Cart Button */
#shopModal .add-to-cart {
  width: 100%;
  height: 36px !important;
  border-radius: 8px !important;
  background: #fe0000 !important;
  border: none !important;
  color: white !important;
  font-size: 0.9rem !important;
  font-weight: 500;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease;
}

#shopModal .add-to-cart:active {
  opacity: 0.8;
}

/* Search Results */
#shopModal .search-results .row {
  padding: 1rem;
  gap: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  #shopModal .product-slide {
    width: 160px;
  }

  #shopModal .card-product .card-img-top {
    height: 160px;
  }

  #shopModal .card-product h2 {
    font-size: 0.85rem;
  }

  #shopModal .products-track {
    touch-action: pan-y pinch-zoom;
  }
}

#shopModal .products-slider {
  width: 100%;
}

#shopModal .swiper-slide {
  width: 160px;
  height: auto;
}

@media (max-width: 768px) {
  #shopModal .swiper-slide {
    width: 160px;
  }
}
/* Discount Badge - Top Left Corner */
#shopModal .discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Discount Price Section - Under Product Name */
#shopModal .discount-price-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px 0;
  justify-content: flex-start;
}

/* Original Price - Crossed Out */
#shopModal .original-price-text {
  color: #999;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #e74c3c;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
}

/* Discount Price - Highlighted */
#shopModal .discount-price-text {
  color: #e74c3c;
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(
    90deg,
    rgba(231, 76, 60, 0.1) 0%,
    rgba(231, 76, 60, 0.05) 100%
  );
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Discount Section Title */
#shopModal .discounted-products .category-title {
  color: #e74c3c;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

#shopModal .discounted-products .category-title::before {
  content: "🏷️";
  font-size: 1.2em;
}

/* Subtle card enhancement for discounted products */
#shopModal .discounted-products .card-product {
  border: 1px solid rgba(231, 76, 60, 0.1);
  transition: all 0.3s ease;
}

#shopModal .discounted-products .card-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.2);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  #shopModal .discount-badge {
    font-size: 13px;
    padding: 3px 8px;
  }

  #shopModal .discount-price-section {
    gap: 6px;
    margin: 6px 0 10px 0;
  }

  #shopModal .original-price-text {
    font-size: 13px;
  }

  #shopModal .discount-price-text {
    font-size: 20px;
    padding: 1px 4px;
  }
}
