/* WC Variation Buttons — v2.1.1 */

/* ── Botones de variación ── */
.wvbtn-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.wvbtn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 13px !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
    line-height: 1.4;
    box-sizing: border-box;
}

.wvbtn:hover  { border-color: #333 !important; background: #f5f5f5 !important; }
.wvbtn.selected { border-color: #333 !important; background: #333 !important; color: #fff !important; }
.wvbtn.disabled { opacity: 0.35; cursor: not-allowed !important; pointer-events: none; }

/* Ocultar selects nativos + sticky Themify */
.variations select { display: none !important; }
#tf_sticky_buy     { display: none !important; }

/* Layout variaciones: label encima, opciones debajo */
.variations tr         { display: flex !important; flex-direction: column !important; }
.variations th.label,
.variations td.value   { display: block !important; width: 100% !important; padding-right: 0 !important; text-align: left !important; }
.variations th.label   { padding-bottom: 6px !important; }

/* ── Sticky ── */
#wvbtn-sticky {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,.1);
    transform: translateY(100%);
    transition: transform .28s ease;
}

#wvbtn-sticky.is-visible { transform: translateY(0); }

.wvbtn-sticky__inner {
    max-width: min(1160px, 100%);
    margin: 0 auto;
    padding: 7px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Fila 1: imagen + título */
.wvbtn-sticky__row1 {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.wvbtn-sticky__row1 img {
    width: 32px; height: 32px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.wvbtn-sticky__title {
    font-size: 12px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fila 2: precio + select + botón */
.wvbtn-sticky__row2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wvbtn-sticky__price {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    flex-shrink: 0;
}

.wvbtn-sticky__price * { font-size: inherit !important; font-weight: inherit !important; color: inherit !important; }

.wvbtn-sticky-select {
    display: block !important;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 6px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.wvbtn-sticky__btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    background: #333 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: filter .15s;
}

.wvbtn-sticky__btn:hover                        { filter: brightness(.85); }
.wvbtn-sticky__btn:disabled,
.wvbtn-sticky__btn[disabled]                    { opacity: 0.45; cursor: not-allowed !important; }
.wvbtn-sticky__btn.added                        { background: #4a9c5d !important; }
