.product-section {
  min-height: 100vh;
  padding: 8rem 2rem 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--neutral-dark);
  position: relative;
  text-align: center;
}

.product-section h1 {
  font-weight: var(--fw-extra-bold);
  color: #8b5cf6;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 0 0.25rem 0.5rem rgba(139, 92, 246, 0.3);
  margin-bottom: 2rem;
}

.product-wrapper {
  max-width: 75rem;
  width: 100%;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  color: var(--primary);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
}

.tag-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(0.9375rem);
  backdrop-filter: blur(0.9375rem);
  border-radius: 1.5rem;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.3);
  border: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.tag {
  padding: 0.8rem 1.8rem;
  background: var(--neutral-light);
  border: 0.125rem solid rgba(139, 92, 246, 0.3);
  border-radius: 3rem;
  cursor: pointer;
  font-weight: var(--fw-semibold);
  color: var(--neutral-dark);
  font-size: var(--fs-base);
  font-family: var(--font-body);
  box-shadow: 0 0.375rem 0.9375rem rgba(0, 0, 0, 0.3);
}

/* Make product count numbers visible on all tags - no background, just purple text */
.tag span {
  color: #8b5cf6 !important;
  font-weight: var(--fw-bold) !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.tag.active {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: var(--neutral-light);
  border-color: #6d28d9;
  transform: translateY(-0.125rem);
  box-shadow: 0 0.75rem 2.1875rem rgba(139, 92, 246, 0.4);
}

.tag.active span {
  color: var(--neutral-dark) !important;
  background: none !important;
}

.products-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  padding: 0 0.5rem;
}

.products-container > * {
  flex: 1 1 21rem;
}

.product {
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 249, 250, 0.95) 100%
  );
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0.9375rem 2.5rem rgba(58, 1, 92, 0.15),
    0 0.5rem 1.5rem rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  position: relative;
  max-width: 50rem;
  margin: 0 auto;
}

.product:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.25rem;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product:hover:before {
  transform: scaleX(1);
}

.product:hover {
  transform: translateY(-0.375rem) scale(1.01);
  box-shadow: 0 1.5rem 3rem rgba(58, 1, 92, 0.25),
    0 0.75rem 2rem rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(139, 92, 246, 0.4);
}

.product-image,
.product-image-container {
  position: relative;
  width: 100%;
  height: clamp(250px, 20vw, 350px);
  overflow: hidden;
  background: linear-gradient(45deg, #ffffff, rgba(139, 92, 246, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img,
.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product:hover .product-image img,
.product:hover .product-image-container img {
  transform: scale(1.1);
}

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

.product-title {
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
  color: #8b5cf6;
  margin-bottom: 0.25rem;
  line-height: var(--lh-h5);
  letter-spacing: var(--ls-h5);
}

.product-price {
  font-size: var(--fs-h4);
  font-weight: var(--fw-black);
  color: #8b5cf6;
  margin-bottom: 0.75rem;
  line-height: var(--lh-h4);
  position: relative;
}

/* Sale Badge Styling */
.sale-badge {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #ffffff;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: var(--fw-bold);
  padding: 0.25rem 0.75rem;
  border-radius: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  box-shadow: 0 0.125rem 0.5rem rgba(220, 38, 38, 0.3);
  animation: pulse-sale 2s infinite;
}

@keyframes pulse-sale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Sale Pricing Container */
.sale-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Sale Price (Current/Discounted Price) */
.sale-price {
  font-size: var(--fs-h4);
  font-weight: var(--fw-black);
  color: #dc2626;
  line-height: var(--lh-h4);
}

/* Original Price (Crossed Out) */
.original-price {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: var(--fw-medium);
  color: #6b7280;
  text-decoration: line-through;
  opacity: 0.7;
  line-height: 1.2;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .sale-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.4rem;
  }

  .sale-pricing {
    gap: 0.2rem;
  }

  .original-price {
    font-size: 0.9rem;
  }
}

/* Large Screen Adjustments */
@media (min-width: 1200px) {
  .sale-badge {
    font-size: 0.875rem;
    padding: 0.3rem 0.8rem;
  }
}

.product-description {
  font-size: var(--fs-base);
  color: var(--neutral-dark);
  line-height: var(--lh-base);
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.product-vendor {
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: var(--neutral-dark);
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

/* Product Variant Dropdown */
.product-variants {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--neutral-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #8b5cf6;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: 400px;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0.25rem 0.75rem rgba(139, 92, 246, 0.2);
}

.product-variants:hover,
.product-variants:focus {
  border-color: #7c3aed;
  box-shadow: 0 0.5rem 1.5rem rgba(139, 92, 246, 0.3);
  outline: none;
  transform: translateY(-0.0625rem);
}

.product-variants option {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--neutral-dark);
  background: rgba(255, 255, 255, 0.95);
}

.product-variants option:disabled {
  color: #999;
  font-style: italic;
  background: rgba(240, 240, 240, 0.95);
}

.add-to-cart-btn {
  width: 100%;
  padding: 1rem 0;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #000000;
  border: none;
  border-radius: 1rem;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  font-family: var(--font-body);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn:hover:before {
  left: 0;
}

.add-to-cart-btn:hover:not(:disabled) {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.75rem 2.1875rem rgba(139, 92, 246, 0.4);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3125rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 0.0625rem solid rgba(139, 92, 246, 0.2);
}

.product-tags .tag {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: rgba(139, 92, 246, 0.9);
  color: var(--neutral-light);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 2rem;
  font-weight: var(--fw-medium);
  cursor: default;
  box-shadow: 0 0.125rem 0.5rem rgba(139, 92, 246, 0.2);
}

.product-tags .tag:before {
  display: none;
}

.loading,
.error-message,
.no-products {
  text-align: center;
  padding: 3rem;
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
  color: #8b5cf6;
}

.error-message {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
  border-radius: 1.5rem;
  margin: 1.5rem 0;
  border: 0.0625rem solid rgba(220, 53, 69, 0.15);
  font-family: var(--font-body);
}

.collection-not-ready {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--neutral-light);
  background: rgba(139, 92, 246, 0.1);
  border-radius: 1.5rem;
  margin: 2rem 0;
  border: 0.125rem solid rgba(139, 92, 246, 0.2);
  font-family: var(--font-body);
  max-width: 40rem;
  margin: 2rem auto;
  backdrop-filter: blur(1rem);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.collection-not-ready h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--fw-bold);
  color: #8b5cf6;
  margin-bottom: 1.5rem;
  text-shadow: 0 0.125rem 0.25rem rgba(139, 92, 246, 0.3);
}

.collection-not-ready p {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.collection-not-ready a {
  color: #8b5cf6;
  text-decoration: underline;
  font-weight: var(--fw-semibold);
  transition: color 0.3s ease;
}

.collection-not-ready a:hover {
  color: #a855f7;
  text-decoration: none;
}

.loading::after {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  border: 0.25rem solid #8b5cf6;
  border-top: 0.25rem solid transparent;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin-left: 1rem;
}

.follow-store-btn {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  letter-spacing: 0.03rem;
  line-height: 1.2;
  margin-top: 2rem;
  color: #000000;
  background: #8b5cf6;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  text-transform: uppercase;
  opacity: 0.9;
}

.follow-store-btn:hover {
  background: var(--primary);
  color: var(--primary-2);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(58, 1, 92, 0.4);
}

.follow-store-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 3px 10px rgba(58, 1, 92, 0.2);
}

.follow-store-btn:disabled {
  background: var(--neutral-light);
  color: var(--neutral-dark);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

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

/* Responsive adjustments for larger screens */
@media (min-width: 1024px) {
  .product-image,
  .product-image-container {
    height: clamp(300px, 22vw, 400px);
  }
}

@media (min-width: 1440px) {
  .product-image,
  .product-image-container {
    height: clamp(350px, 25vw, 450px);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .product-image,
  .product-image-container {
    height: clamp(200px, 25vw, 280px);
  }
}
