/* PRODUCT PAGE - SELECT */
.variations th.label {
  vertical-align: middle !important;
}

/* Custom select styling */
.woocommerce-ordering select,
.variations select {
  appearance: none;
  background: white;
  border: 2px solid #ddd;
  border-radius: 4px;
  padding: 8px 40px 8px 12px;
  font-size: 1em;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.woocommerce-ordering select:hover, 
.variations select:hover {
  border-color: #999;
}

.woocommerce-ordering select:focus,
.variations select:focus {
  outline: none;
  border-color: #666;
}

/* PRODUCT PAGE - QUANTITY INPUT  */
/* Quantity input styling */
.quantity input[type="number"] {
    appearance: none;
    -moz-appearance: textfield; /* Firefox */
    background: white;
    border: 2px solid #ddd;
    padding: 6px;
    border-radius: 0;
    font-size: 1rem;
    width: 80px;
    text-align: center;
}

/* Remove spinner arrows */
.quantity input[type="number"]::-webkit-inner-spin-button,
.quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity input[type="number"]:hover {
    border-color: #999;
}

.quantity input[type="number"]:focus {
    outline: none;
    border-color: #666;
}

/* Optional: Custom +/- buttons */
.quantity {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.quantity-button {
    background: #f5f5f5;
    border: 2px solid #ddd;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.quantity-button:hover {
    background: #e5e5e5;
    border-color: #999;
}

.quantity-minus {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.quantity-plus {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

/* Make add to cart button same height */
.single_add_to_cart_button {
    border: 2px solid #333;
    background: #333;
    height: 40px; /* Match select/input height */
}

.single_add_to_cart_button:hover {
    background: #555;
    border-color: #555;
}

.single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Align quantity and button */
.woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* PRODUCT PAGE - Lightbox arrows */
.custom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 40px;
  cursor: pointer;
  padding: 15px 20px;
  transition: background 0.3s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 50px;
  line-height: 1;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}