/* Products page — layout & spacing */
.products-page-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (min-width: 640px) {
  .products-page-section {
    padding-top: 55px;
    padding-bottom: 55px;
  }
}

@media (min-width: 1024px) {
  .products-page-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.products-section-heading {
  margin-bottom: 28px;
}

.products-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 640px) {
  .products-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .products-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.products-small-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 640px) {
  .products-small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .products-small-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.products-water-wrap {
  display: flex;
  justify-content: center;
}

.products-water-slot {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .products-water-slot {
    max-width: calc(50% - 13px);
  }
}

@media (min-width: 1024px) {
  .products-water-slot {
    max-width: calc(25% - 20px);
  }
}

/* Product cards */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card .product-image-wrapper {
  height: 260px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.product-card .product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.product-card .product-img-anaar {
  transform: scale(0.78);
}

.product-size-badges {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.product-size-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 768px) {
  .product-card .product-image-wrapper {
    height: 220px;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .products-page-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .product-card .product-image-wrapper {
    height: 210px;
    padding: 12px;
  }
}
