/**
 * Standardized Quantity Input Styling
 */

/* Main quantity wrapper */
.woocommerce .quantity {
    display: inline-flex; /* Align items horizontally */
    align-items: center; /* Center items vertically */
    border: 1px solid #e0e0e0; /* Light grey border */
    border-radius: 50px; /* Pill shape */
    background-color: #fff; /* White background */
    overflow: hidden; /* Clip children to rounded corners */
    vertical-align: middle; /* Align with adjacent elements like Add to Cart button */
    height: 50px; /* Define a fixed height */
    box-sizing: border-box;
}

/* +/- Buttons */
.woocommerce .quantity button.quantity-decrease,
.woocommerce .quantity button.quantity-increase {
    background-color: transparent;
    border: none;
    color: #555; /* Adjust text/icon color */
    padding: 0 15px; /* Horizontal padding */
    cursor: pointer;
    font-size: 1.4em; /* Adjust size of +/- symbols */
    line-height: 38px; /* Match height minus borders */
    height: 100%; /* Fill parent height */
    box-sizing: border-box;
    transition: background-color 0.15s ease;
}
.woocommerce .quantity button.quantity-decrease:hover,
.woocommerce .quantity button.quantity-increase:hover {
    background-color: #f5f5f5; /* Slight hover background */
}
.woocommerce .quantity button.quantity-decrease:focus,
.woocommerce .quantity button.quantity-increase:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25); /* Example focus ring */
}


/* Quantity Input Field */
.woocommerce .quantity input.qty {
    width: 45px; /* Adjust width as needed */
    text-align: center;
    border: none; /* Remove default border */
    /* border-left: 1px solid #e0e0e0; /* Separator line */
    /* border-right: 1px solid #e0e0e0; /* Separator line */
    padding: 0; /* Remove padding, rely on height/line-height */
    margin: 0;
    font-weight: 600;
    font-size: 1em;
    color: #212529;
    height: 100%; /* Fill parent height */
    line-height: 38px; /* Match height minus borders */
    box-sizing: border-box;
    background-color: transparent;
    /* Remove browser default number spinners */
    -moz-appearance: textfield;
}
.woocommerce .quantity input.qty::-webkit-outer-spin-button,
.woocommerce .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.woocommerce .quantity input.qty:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: none;
}

/* Disabled state */
.quantity-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile styles */
@media (max-width: 768px) {
    .quantity-wrapper {
        height: 36px;
    }

    .quantity-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 14px !important;
    }

    .quantity-wrapper input[type="number"] {
        font-size: 13px !important;
    }
} 