/* ============================================================
   Product Add to Cart Widget — Beps PuroOmega Widgets
   ============================================================ */

/* ── 1. CONTENEDOR GENERAL ──────────────────────────────────── */
.beps-atc-form { margin: 0; }

.beps-atc-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── 2. CANTIDAD ─────────────────────────────────────────────── */
.beps-atc-qty-wrap {
    display: flex;
    align-items: center;
    width: 126px;
    min-width: 126px;
    max-width: 126px;
    height: 51px;
    border: 1px solid #E8E8E8;
    border-radius: 50px;
    overflow: hidden;
    background-color: #ffffff;
    box-sizing: border-box;
    flex-shrink: 0;
}

.beps-atc-qty-btn {
    flex: 0 0 36px;
    height: 100%;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #141436;
    padding: 0;
    /* Sin transición — hover gestionado desde Elementor */
}

/* Reset del hover del tema: anula el color morado/violeta heredado */
.beps-atc-qty-btn:hover,
.beps-atc-qty-btn:focus {
    background: none !important;
    color: #141436 !important;
    box-shadow: none !important;
    outline: none !important;
}

.beps-atc-qty-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #141436;
    background: transparent;
    -moz-appearance: textfield;
    padding: 0;
    border-radius: 0 !important;
}

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

/* ── 3. BOTÓN COMPARTIR ─────────────────────────────────────── */
.beps-atc-share {
    width: 51px;
    height: 51px;
    min-width: 51px;
    border: none !important;
    border-radius: 50% !important;
    background-color: #ffffff;
    color: inherit !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    flex-shrink: 0;
    box-sizing: border-box;
    font-size: inherit !important;
    transition: none !important;
    text-align: initial !important;
    white-space: normal !important;
}

.beps-atc-share svg,
.beps-atc-share i {
    display: block;
    pointer-events: none;
}

/* ── 4. BOTÓN AÑADIR AL CARRITO ─────────────────────────────── */
.beps-atc-btn {
    flex: 1 1 auto;
    max-width: 462px;
    height: 51px;
    background-color: #F6C927;
    color: #141436;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400!important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    padding: 0 28px;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.beps-atc-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.beps-atc-btn-icon svg {
    display: block;
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.beps-atc-btn-icon i {
    display: block;
    pointer-events: none;
    line-height: 1;
}

.beps-atc-btn-label {
    display: block;
    line-height: 1;
}

/* ── 5. LOADING STATE (WooCommerce AJAX) ─────────────────────── */
.beps-atc-btn.loading { opacity: 0.6; pointer-events: none; }
.beps-atc-btn.added   { opacity: 0.8; }
