/* Products Section Styles - نیو کالکشن */

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 2px 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.9;
}

.section-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.filter-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 11px;
  color: #9ca3af;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.2));
}

.filter-pill.primary {
  border-color: rgba(255, 22, 93, 0.9);
  background: radial-gradient(circle at 0 0, rgba(255, 22, 93, 0.3), rgba(15, 23, 42, 0.6));
  color: #fee2e2;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 10px 0;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Product Card */
.product-card {
  position: relative;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(47, 67, 14, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #2f430e, #4a6b1a, #2f430e);
  border-radius: 16px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(47, 67, 14, 0.3);
  border-color: rgba(47, 67, 14, 0.5);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover::after {
  opacity: 0.6;
  animation: borderGlow 2s ease infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.product-card.out-of-stock {
  opacity: 0.65;
  filter: grayscale(0.3);
  pointer-events: auto;
  cursor: pointer;
}

.product-card.out-of-stock:hover {
  opacity: 0.75;
  filter: grayscale(0.2);
}

/* Out of Stock Label */
.out-of-stock-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 15;
  pointer-events: none;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.out-of-stock-label span {
  display: inline-block !important;
  padding: 7px 16px !important;
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 22px !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 
    0 4px 16px rgba(220, 38, 38, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.3) inset,
    0 2px 6px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(220, 38, 38, 0.4) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  letter-spacing: 0.5px !important;
  backdrop-filter: blur(6px) !important;
  animation: pulse-out-of-stock-strong 1.8s ease-in-out infinite !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  position: relative !important;
}

.out-of-stock-label span::before {
  content: '' !important;
  position: absolute !important;
  inset: -6px !important;
  border-radius: 26px !important;
  border: 3px solid rgba(220, 38, 38, 0.7) !important;
  animation: pulse-out-of-stock-ring 1.8s ease-in-out infinite !important;
  z-index: -1 !important;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.5) !important;
}

.out-of-stock-label span::after {
  content: '' !important;
  position: absolute !important;
  inset: -10px !important;
  border-radius: 28px !important;
  border: 2px solid rgba(220, 38, 38, 0.4) !important;
  animation: pulse-out-of-stock-ring-outer 1.8s ease-in-out infinite !important;
  z-index: -2 !important;
  opacity: 0.6 !important;
}

@keyframes pulse-out-of-stock-strong {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 4px 16px rgba(220, 38, 38, 0.6),
      0 0 0 1px rgba(0, 0, 0, 0.3) inset,
      0 2px 6px rgba(0, 0, 0, 0.4),
      0 0 20px rgba(220, 38, 38, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 
      0 6px 20px rgba(220, 38, 38, 0.8),
      0 0 0 1px rgba(0, 0, 0, 0.3) inset,
      0 3px 8px rgba(0, 0, 0, 0.5),
      0 0 30px rgba(220, 38, 38, 0.6);
    border-color: rgba(255, 255, 255, 0.7);
  }
}

@keyframes pulse-out-of-stock-ring {
  0% {
    opacity: 0.7;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7), 0 0 15px rgba(220, 38, 38, 0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0), 0 0 25px rgba(220, 38, 38, 0.7);
  }
  100% {
    opacity: 0.7;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7), 0 0 15px rgba(220, 38, 38, 0.5);
  }
}

@keyframes pulse-out-of-stock-ring-outer {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.35);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

/* Product Image */
.product-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper {
  transform: scale(1.05);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.26s ease-out, opacity 0.26s ease-out;
  opacity: 1;
  position: relative;
  z-index: 1;
}

.product-image.loaded {
  opacity: 1;
}

.product-image-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1d2e 0%, #0f172a 50%, #1a1d2e 100%);
  background-size: 200% 200%;
  animation: shimmer 2s infinite;
  z-index: 0;
  display: none;
}

.product-image:not(.loaded) ~ .product-image-placeholder {
  display: block;
}

.product-image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 22, 93, 0.1), transparent 50%);
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.product-card:hover .product-image {
  transform: scale(1.06);
}

/* Product Badge */
.product-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #fef2f2;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(248, 250, 252, 0.6);
  backdrop-filter: blur(10px);
}

.product-badge span:last-child {
  color: #fecaca;
  font-weight: 600;
}

/* Product Tag */
.product-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  font-size: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-title {
  font-size: 13px;
  font-weight: 600;
  color: #f9fafb;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-current {
  font-size: 13px;
  font-weight: 700;
  color: #ffb347;
}

.price-original {
  font-size: 11px;
  color: #9ca3af;
  text-decoration: line-through;
}

.discount-chip {
  font-size: 11px;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.14);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

/* Out of Stock Prices */
.out-of-stock-prices {
  opacity: 0.5;
  position: relative;
}

.out-of-stock-prices .price-current,
.out-of-stock-prices .price-original,
.out-of-stock-price {
  text-decoration: line-through !important;
  opacity: 0.4 !important;
  position: relative !important;
  color: #6b7280 !important;
  display: block !important;
}

.out-of-stock-prices .price-current::after,
.out-of-stock-prices .price-original::after,
.out-of-stock-price::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 50% !important;
  height: 2px !important;
  background: #ef4444 !important;
  transform: translateY(-50%) !important;
  z-index: 1 !important;
}

.out-of-stock-chip {
  font-size: 11px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5) !important;
  display: inline-block !important;
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Product Extra */
.product-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.sizes {
  display: flex;
  gap: 4px;
  font-size: 10px;
  color: #9ca3af;
}

.sizes span {
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.colors {
  display: flex;
  gap: 3px;
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.color-dot.white {
  background: #f9fafb;
}

.color-dot.black {
  background: #020617;
}

.color-dot.beige {
  background: #e5d0b4;
}

.color-dot.blue {
  background: #1d4ed8;
}

.color-dot.green {
  background: #16a34a;
}

.color-dot.red {
  background: #b91c1c;
}

.color-dot.gray {
  background: #6b7280;
}

.color-dot.brown {
  background: #8B4513;
}

/* Empty State */
.empty-state {
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  padding: 36px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  margin-top: 10px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
  backdrop-filter: blur(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal-backdrop.visible {
  display: flex;
  animation: fadeIn 0.18s ease-out;
}

.modal-container {
  width: 100%;
  max-width: 760px;
  margin: auto;
  position: relative;
}

.modal {
  width: 100%;
  background: radial-gradient(circle at 0 0, #181a30, #020617 70%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  position: relative;
  max-height: calc(100vh - 36px);
}

.modal-image {
  position: relative;
  background: radial-gradient(circle at 50% 0, #4b5563, #020617);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-image-inner {
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  background: #0b1120;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-image-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fee2e2;
  font-size: 10px;
  border: 1px solid rgba(248, 250, 252, 0.7);
}

.modal-image-label {
  position: absolute;
  bottom: 14px;
  right: 18px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.modal-content {
  padding: 16px 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 36px);
  overscroll-behavior: contain;
}

.modal-close {
  position: absolute;
  left: 16px;
  top: 13px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.18s ease-out, color 0.18s ease-out,
    border-color 0.18s ease-out, transform 0.18s ease-out;
  z-index: 2;
}

.modal-close:hover {
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.08), rgba(15, 23, 42, 0.7));
  color: #f9fafb;
  border-color: rgba(248, 250, 252, 0.8);
  transform: translateY(-1px);
}

.modal-eyebrow {
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 32px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
  color: #f7f7ff;
}

.modal-desc {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  line-height: 1.9;
}

.modal-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.3));
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.modal-price-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-price-current {
  font-size: 17px;
  font-weight: 800;
  color: #ffb347;
}

.modal-price-original {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}

.modal-discount {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.modal-discount span {
  font-weight: 700;
}

.modal-out-of-stock {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 0.9));
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 12px rgba(220, 38, 38, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.2) inset;
  margin-top: 8px;
  animation: pulse-out-of-stock-strong 1.8s ease-in-out infinite;
}

.modal-product-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.modal-pricing .strikethrough {
  text-decoration: line-through !important;
  opacity: 0.5;
  position: relative;
}

.modal-pricing .strikethrough::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}

/* Modal Details Grid */
.modal-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: #9ca3af;
}

.detail-label {
  font-size: 11px;
  color: #9ca3af;
}

.detail-value {
  font-size: 12px;
  color: #e5e7eb;
  margin-top: 2px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.detail-badge {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 11px;
  color: #9ca3af;
  background: rgba(15, 23, 42, 0.8);
}

.detail-badge.em {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(22, 163, 74, 0.16);
}

.sizes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.sizes-row span {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 11px;
  color: #9ca3af;
}

.sizes-row span.highlight {
  border-color: rgba(248, 250, 252, 0.85);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.8);
}

.colors-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.colors-row .color-dot {
  width: 11px;
  height: 11px;
}

.colors-row span {
  font-size: 11px;
  color: #9ca3af;
  margin-right: 4px;
}

/* Contact Section */
.modal-contact-section {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.contact-text {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
  text-align: center;
}

.contact-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.26s ease-out;
  border: 1px solid transparent;
}

.whatsapp-btn {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(37, 211, 102, 0.1));
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.5);
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.35), rgba(37, 211, 102, 0.2));
  border-color: rgba(37, 211, 102, 0.8);
  color: #2ef772;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.instagram-btn {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.2), rgba(225, 48, 108, 0.1));
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.5);
}

.instagram-btn:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.35), rgba(225, 48, 108, 0.2));
  border-color: rgba(225, 48, 108, 0.8);
  color: #fd1d1d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.contact-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Modal Footer */
.modal-footer-custom {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #9ca3af;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-footer-custom span strong {
  color: #e5e7eb;
}

.modal-footer-pill {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 960px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
  }

  .modal {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-card {
    padding: 8px 8px 10px;
    border-radius: 12px;
  }

  .modal-container {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .modal {
    max-height: calc(100vh - 20px);
    grid-template-columns: minmax(0, 1fr);
    display: flex;
    flex-direction: column;
  }

  .modal-content {
    max-height: calc(100vh - 180px);
    padding: 12px 14px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-image {
    padding-bottom: 8px;
    flex-shrink: 0;
    max-height: 35vh;
    overflow: hidden;
  }

  .modal-image-inner {
    max-height: 100%;
  }

  .modal-details-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-btn {
    width: 100%;
    justify-content: center;
  }

  .out-of-stock-label span {
    font-size: 10px;
    padding: 5px 12px;
  }
  
  /* حذف افکت‌های سه‌بعدی روی کارت‌ها در موبایل */
  .product-card {
    transform: none !important;
    will-change: auto;
  }

  .product-card:hover {
    transform: none !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .product-card {
    padding: 6px 6px 8px;
    border-radius: 10px;
  }

  .product-title {
    font-size: 11px;
  }

  .price-current {
    font-size: 11px;
  }

  .price-original {
    font-size: 9px;
  }

  .product-image-wrapper {
    border-radius: 10px;
    margin-bottom: 6px;
  }

  .section-header {
    flex-direction: column;
    gap: 10px;
  }

  .section-filters {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .modal-container {
    margin: 8px;
    max-width: calc(100% - 16px);
  }

  .modal {
    max-height: calc(100vh - 16px);
    border-radius: 16px;
  }

  .modal-content {
    max-height: calc(100vh - 160px);
    padding: 12px;
  }

  .modal-details-grid {
    gap: 10px;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .contact-btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .product-card {
    padding: 5px 5px 7px;
    border-radius: 8px;
  }

  .product-title {
    font-size: 10px;
  }

  .price-current {
    font-size: 10px;
  }
}
