/* Shop Product Quantity Controls */
.shop-quantity-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    justify-content: center;
    width: 100%;
    order: 3; /* Place it last in the flex container */
}

.shop-quantity-controls .shop-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-quantity-controls .shop-qty-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.shop-quantity-controls .shop-qty-btn:active {
    transform: scale(0.95);
}

.shop-quantity-controls .shop-qty-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    background: #f9f9f9;
    padding: 0;
    line-height: 36px;
    -moz-appearance: textfield;
}

/* Remove spinner arrows from number input */
.shop-quantity-controls .shop-qty-input::-webkit-outer-spin-button,
.shop-quantity-controls .shop-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shop-quantity-controls .shop-qty-input:focus {
    outline: none;
    border-color: #999;
}

/* Ensure product actions container - 2 rows layout */
.product-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* First row: eye icon and add to cart button side by side */
.product-actions .quick-view-btn,
.product-actions .product-quick-view-link {
    order: 1;
    flex: 0 0 auto;
}

.product-actions .button,
.product-actions .add_to_cart_button,
.product-actions .product_type_variable {
    order: 2;
    flex: 0 0 auto;
}

/* Second row: quantity controls - full width on new row */
.shop-quantity-controls {
    order: 3;
    flex-basis: 100%;
}

/* Hide checkmark and arrow, keep only cart icon */
.add_to_cart_button.added .add-to-cart-icon {
    display: inline-block !important;
}

.add_to_cart_button.added .base-check-svg {
    display: none !important;
}

.add_to_cart_button.added .cart-text {
    display: inline !important;
}

.add_to_cart_button .base-arrow-right-alt-svg {
    display: none !important;
}
