/*
 Theme Name:   Astra Child
 Theme URI:    #
 Description:  Astra Child Theme
 Author:       Rafi
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* ============================================================
   WooCommerce — Qty + Agregar button row (by Rafi)
   ============================================================ */

/* Flex row holding qty controls and button */
.rafi-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    margin-top: 10px;
}

/* Qty group: border box with - input + */
.rafi-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    height: 40px;
    flex-shrink: 0;
}

/* - and + buttons */
.rafi-minus,
.rafi-plus {
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    width: 32px;
    min-width: 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 0;
    user-select: none;
    transition: background 0.15s;
}

.rafi-minus:hover,
.rafi-plus:hover {
    background: #f0f0f0;
}

/* Number input */
.rafi-input {
    width: 40px;
    min-width: 40px;
    height: 100%;
    border: none;
    border-left: 1.5px solid #ccc;
    border-right: 1.5px solid #ccc;
    text-align: center;
    font-size: 14px;
    color: #333;
    -moz-appearance: textfield;
    padding: 0;
    background: #fff;
    outline: none;
}

.rafi-input::-webkit-inner-spin-button,
.rafi-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Agregar button */
.rafi-btn.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 40px !important;
    padding: 0 14px !important;
    line-height: 1 !important;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Cart icon inside button */
.rafi-btn.button svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: currentColor;
    display: inline-block;
    vertical-align: middle;
}
