.products-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
}

/* Container */
.empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2.5rem;   /* py-10 */
  padding-bottom: 2.5rem;
}

/* Spinner */
.empty-spinner {
  width: 3rem;           /* w-12 */
  height: 3rem;          /* h-12 */
  border-width: 4px;
  border-style: solid;
  border-color: #ef4444;         /* red-500 */
  border-top-color: transparent;
  border-radius: 9999px;
  animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem; /* gap-6 */
}

/* sm ≥ 640px */
@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* md ≥ 768px */
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* lg ≥ 1024px */
@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 2px rgba(23, 1, 1, 0.05);
  transition: box-shadow 0.3s ease;
}

/* hover:shadow-lg */
.product-card:hover {
  box-shadow: 0 10px 15px rgba(0,0,0,0.1),0 4px 6px rgba(0,0,0,0.05);
}

.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 9.25rem;
}

.product-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-tag {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
}

.product-tag-category {
  background-color: #dbeafe;
  color: #1e40af;
}

.product-tag-brand {
  background-color: #f3f4f6;
  color: #374151;
}

.product-info-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  min-height: 40px;
  display: -webkit-box;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
}

.price-normal {
  color: #111827;
}

.price-old {
  color: #9ca3af;
  text-decoration: line-through;
}

.product-price-discount {
  font-size: 1rem;
  font-weight: 700;
  color: #dc2626;
}

.product-badge-discount {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.product-card-image-wrapper {
  position: relative;
  height: 18rem;        /* h-72 = 72 * 0.25rem */
  overflow: hidden;
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transform: scale(0.95);
  transition: transform 0.5s ease;
  border-radius: 0.5rem;
}

.product-card:hover .product-card-image {
  transform: scale(1.05);
}

.wishlist-card-wrapper {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 30;
}

.wishlist-btn {
  height: 2.25rem;         /* h-9 */
  border-radius: 9999px;   /* rounded-full */
  background-color: rgba(255, 255, 255, 0.9); /* bg-white/90 */
  backdrop-filter: blur(8px);                 /* backdrop-blur */
  display: flex;           /* flex */
  align-items: center;     /* items-center */
  justify-content: center; /* justify-center */
  box-shadow: 0 1px 3px rgba(0,0,0,0.15); /* shadow */
  transition: background-color 0.2s ease; /* transition */
}

.wishlist-btn:hover {
  background-color: #e5e7eb; /* hover:bg-gray-200 */
}


.wishlist-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #1f2937; /* gray-800 */
  transition: color 0.2s ease;
}

.wishlist-dropdown {
  position: absolute;
  right: 0;
  margin-top: 0.75rem;
  width: 14rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 40;
}

.wishlist-item {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.wishlist-item:hover {
  background-color: #f9fafb;
}

.wishlist-empty {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  text-align: center;
  color: #6b7280;
}

.wishlist-link:hover {
  text-decoration: underline;
}

.product-sizes-wrapper {
  position: absolute;        /* absolute */
  left: 1rem;                /* inset-x-4 */
  right: 1rem;
  bottom: 1rem;              /* bottom-4 */
  z-index: 20;               /* z-20 */
  opacity: 0;                /* opacity-0 */
  transform: translateY(1rem); /* translate-y-4 */
  transition: all 0.3s ease; /* transition-all duration-300 */
}

/* group-hover */
.product-card:hover .product-sizes-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.sizes {
  display: grid;                           /* grid */
  grid-template-columns: repeat(4, 1fr);   /* grid-cols-4 */
  gap: 0.5rem;                             /* gap-2 */
  background-color: rgba(255, 255, 255, 0.95); /* bg-white/95 */
  backdrop-filter: blur(8px);              /* backdrop-blur */
  padding: 0.75rem;                        /* p-3 */
  border-radius: 0.75rem;                  /* rounded-xl */
  box-shadow: 0 10px 15px rgba(0,0,0,0.12); /* shadow-lg */
}

.product-size-btn {
  width: 100%;             /* w-full */
  height: 2rem;            /* h-8 */
  font-size: 0.75rem;      /* text-xs */
  font-weight: 600;        /* font-semibold */
  border-radius: 0.375rem; /* rounded-md */
  border: 1px solid #e5e7eb; /* border-gray-200 */
  background-color: #ffffff; /* bg-white */
  color: #111827;            /* text-gray-900 */
  cursor: pointer;
  transition: all 0.2s ease; /* transition */
}

.product-size-btn:hover {
  background-color: #000000; /* hover:bg-black */
  color: #ffffff;            /* hover:text-white */
}

@media (max-width: 640px) {
  .product-sizes-wrapper {
    display: none;
  }
}




