/* Product-specific styles extracted from pages to avoid inline CSS */
:root {
  --transition-speed: 0.35s;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  text-align: center;
}
.product-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.product-img-container {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f8f8f8;
}
.product-img-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity var(--transition-speed) ease,
    transform var(--transition-speed) ease;
}
.img-primary {
  opacity: 1;
}
.img-secondary {
  opacity: 0;
  transform: scale(1.05);
}
.product-card:hover .img-primary {
  opacity: 0;
  transform: scale(0.95);
}
.product-card:hover .img-secondary {
  opacity: 1;
  transform: scale(1);
}

.variation-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  transform: translateY(100%);
  transition: transform 0.35s;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.product-card:hover .variation-sheet {
  transform: translateY(0);
}
.size-chip {
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 6px;
  margin: 4px;
  font-size: 0.8rem;
}
.size-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: 10px;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton-img {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
}
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  margin-top: 10px;
}

.product-skeleton {
  transition: opacity 0.3s ease;
}

.product-skeleton .product-card {
  pointer-events: none;
}

.product-title {
  font-weight: 700;
}
.product-price {
  font-weight: 700;
}

.topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.sort-select {
  min-width: 180px;
}

/* Special Deal Card with Countdown */
.special-deal-card {
  border: 2px solid var(--vegas-natural);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.special-deal-card .deal-tag {
  background: var(--vegas-natural);
  color: white;
  padding: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.special-deal-card .img-container {
  position: relative;
  aspect-ratio: 1;
}

.special-deal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.countdown-timer-box {
  background: #f8f9fa;
  padding: 15px 10px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.countdown-display {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 900;
  color: #333;
  font-size: 1.1rem;
  letter-spacing: 1px;
  direction: ltr;
}

.hero-section {
  margin-top: 20px;
}

.main-hero-swiper {
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}

.main-hero-swiper .swiper-slide img {
  width: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .main-hero-swiper .swiper-slide img {
    height: 300px;
  }
  .hero-section .row > div {
    margin-bottom: 20px;
  }
}

/* ── Filters Modal ─────────────────────────── */
.filters-modal {
  /* display: none; */
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  align-items: flex-end;
  justify-content: center;
  transition: all 0.25s ease;  transform: translateY(100%);
  transition-delay: 0.25s;
    transform: translateY(-100%);

}

.filters-modal.active {
  display: flex;
  transform: translateY(0%);
}

.filters-modal-content {
  background: #fff;
  width: 100%;
  max-width: 540px;
  border-radius: 20px 20px 0 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;

}

.filters-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.filters-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.filters-modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #555;
}

.filters-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.filter-group-simple {
  margin-bottom: 24px;
}

.filter-group-title-simple {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--main-color-one);
}

.filters-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 12px;
}

.btn-reset-filters {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
}

.btn-apply-filters {
  flex: 2;
  padding: 12px;
  background: var(--main-color-one);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
}

/* Price range inputs inside modal */
.price-input-container {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.price-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-field label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.price-field input {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}

.slider-badge-container {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.slider-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
}
