/* Product Page Responsive Styles */

/* Mobile-first responsive design */
@media (max-width: 640px) {
  .product-image-container {
    min-height: 250px !important;
    max-height: 350px !important;
  }

  .thumbnail-container {
    height: 60px !important;
    min-height: 60px !important;
  }

  .size-option {
    padding: 8px 4px;
    font-size: 14px;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .product-image-container {
    min-height: 300px !important;
    max-height: 400px !important;
  }

  .thumbnail-container {
    height: 70px !important;
    min-height: 70px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .product-image-container {
    min-height: 350px !important;
    max-height: 450px !important;
  }
}

/* Line clamp utility for text truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smooth transitions for all interactive elements */
.size-option {
  transition: all 0.2s ease-in-out;
}

.size-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.size-option.selected {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Enhanced thumbnail hover effects */
.thumbnail-container:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Improved quantity button styling */
#decrease-qty:hover,
#increase-qty:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add to cart button enhanced styling */
.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

/* Related products grid adjustments */
@media (max-width: 640px) {
  .related-products .product-image-container {
    min-height: 180px !important;
    max-height: 200px !important;
  }
}

/* Focus states for accessibility */
.size-option:focus,
#decrease-qty:focus,
#increase-qty:focus,
.add-to-cart-btn:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* Loading states */
.add-to-cart-btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.add-to-cart-btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}
