/* Style quantity input in cart */
.woocommerce-cart-form .quantity .qty {
    width: 6rem !important;
    padding: 0.75rem 1rem !important;
    text-align: center !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
    font-size: 1rem !important;
}

/* Remove spinner buttons */
.woocommerce-cart-form .quantity .qty::-webkit-outer-spin-button,
.woocommerce-cart-form .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Focus state */
.woocommerce-cart-form .quantity .qty:focus {
    outline: none !important;
    border-color: #dc2626 !important;
    ring: 2px !important;
    ring-color: rgba(220, 38, 38, 0.2) !important;
}

/* Container styling */
.woocommerce-cart-form .quantity {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

/* Cart icon in header */
.desktop-cart-count,
.mobile-cart-count {
    min-width: 1.5rem !important;
    min-height: 1.5rem !important;
    padding: 0.25rem !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Adjust cart icon position for larger badge */
.desktop-cart-count {
    top: -0.75rem !important;
    right: -0.75rem !important;
}

/* Make sure cart icon container can handle larger numbers */
.cart-count-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Gallery thumbnail button styling - ENHANCED */
.thumbnail-button {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
    transition: all 0.2s ease-in-out !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    display: block !important;
    background: none !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 5rem !important;
    height: 5rem !important;
    flex-shrink: 0 !important;
}

.thumbnail-button:hover {
    transform: scale(1.05) !important;
    border-color: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15) !important;
}

.thumbnail-button:active {
    transform: scale(0.98) !important;
}

.thumbnail-button:focus {
    outline: 2px solid #dc2626 !important;
    outline-offset: 2px !important;
}

.thumbnail-button.border-red-600 {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2) !important;
}

/* Ensure thumbnails are clickable */
.flex-control-thumbs {
    pointer-events: auto !important;
    z-index: 10 !important;
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    margin-top: 1rem !important;
}

.flex-control-thumbs button {
    pointer-events: auto !important;
    cursor: pointer !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure images inside thumbnails are properly sized */
.thumbnail-button img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    pointer-events: none !important;
}

/* Force clickability */
.woocommerce-product-gallery {
    pointer-events: auto !important;
}

.woocommerce-product-gallery__wrapper {
    pointer-events: auto !important;
}

/* Main product image styling */
#main-product-image {
    transition: opacity 0.3s ease-in-out !important;
    will-change: opacity !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
}

#main-product-image.updating {
    opacity: 0.5 !important;
}

/* Gallery wrapper styling */
.woocommerce-product-gallery__wrapper {
    position: relative !important;
    overflow: hidden !important;
}

.woocommerce-product-gallery__wrapper img {
    transition: opacity 0.3s ease-in-out !important;
    will-change: opacity !important;
}

/* Force image updates */
.woocommerce-product-gallery__wrapper img[src*="IMG-"] {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}

/* Ensure proper image display */
.wp-post-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Debug styles - remove in production */
.thumbnail-button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(220, 38, 38, 0.1) !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    pointer-events: none !important;
}

.thumbnail-button:hover::before {
    opacity: 1 !important;
} 


.woocommerce-notices-wrapper {
  max-width: 80rem; /* Tailwind: max-w-7xl */
  margin-left: auto; /* Tailwind: mx-auto */
  margin-right: auto;
  padding-left: 1rem; /* Tailwind: px-4 */
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .woocommerce-notices-wrapper {
    padding-left: 1.5rem; /* sm:px-6 */
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .woocommerce-notices-wrapper {
    padding-left: 2rem; /* lg:px-8 */
    padding-right: 2rem;
  }
}

.woocommerce-message {
  background-color: #d1fae5;   /* Tailwind: bg-green-100 */
  color: #065f46;              /* Tailwind: text-green-800 */
  border: 1px solid #34d399;   /* Tailwind: border-green-400 */
  padding: 0.75rem 1rem;       /* Tailwind: py-3 px-4 */
  border-radius: 0.375rem;     /* Tailwind: rounded-md */
  font-size: 0.875rem;         /* Tailwind: text-sm */
  margin-bottom: 0;         
}

.woocommerce-message .button.wc-forward {
  background-color: #065f46;
  color: white;
  padding: 0.5rem 1rem;
  margin-left: 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.woocommerce-message .button.wc-forward:hover {
  background-color: #047857;
}


.woocommerce-message::before {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  margin-right: 0.5rem;
  font-size: 1rem;
  vertical-align: middle;
  display: inline-block;
}

.archive .yith-wcwl-add-to-wishlist-button__label,
.woocommerce-shop .yith-wcwl-add-to-wishlist-button__label,
.tax-product_cat .yith-wcwl-add-to-wishlist-button__label,
.home .yith-wcwl-add-to-wishlist-button__label {
    display: none !important;
}

.archive span.yith-wcwl-add-to-wishlist-button__label, .home span.yith-wcwl-add-to-wishlist-button__label {
    display: none !important;
}


img.zoomImg {
  -webkit-transition: none;
  -moz-transition:    none;
  -o-transition:      none;
  transition:         none;
}

/* gap-2 = 0.5rem (8px) */
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}

/* gap-3 = 0.75rem (12px) — only on sm+ */
@media (min-width: 640px) {
  .sm\:gap-3 {
    gap: 0.75rem;
  }
}

/* gap-4 = 1rem (16px) — only on sm+ */
@media (min-width: 640px) {
  .sm\:gap-4 {
    gap: 1rem;
  }
}


