/* Custom quantity wrapper styling */
.custom-quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #41525A;
    border-radius: 1rem;
    background-color: transparent;
    padding: 0.8rem;
    width: fit-content;
    gap: 0.25rem;
}

/* Styling the buttons */
.custom-quantity-wrapper .btn-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: transparent;
    border: none;
    font-family: "Futura", Sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: #41525A;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

/* Hover effect for buttons */
.custom-quantity-wrapper .btn-quantity:hover {
    background-color: #41525A;
    color: #FAF7F5;
}

/* Bounce + Ripple effect on click */
.custom-quantity-wrapper .btn-quantity:active {
    transform: scale(0.92);
}

/* Focus state - same as hover */
.custom-quantity-wrapper .btn-quantity:focus {
    outline: none;
    background-color: #41525A;
    color: #FAF7F5;
}

/* Ripple animation using ::after */
.custom-quantity-wrapper .btn-quantity::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.custom-quantity-wrapper .btn-quantity:active::after {
    transform: scale(1);
    opacity: 1;
    transition: transform 0s, opacity 0s;
}

/* Styling the input field */
.custom-quantity-wrapper input[type="number"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    text-align: center;
    border: none;
    font-family: "Futura", Sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #41525A;
    outline: none;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 1;
}

/* Remove default input buttons */
.custom-quantity-wrapper input[type="number"]::-webkit-inner-spin-button,
.custom-quantity-wrapper input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.custom-quantity-wrapper input[type="number"] {
    -moz-appearance: textfield;
}