/* ============================================================
   LOJA MODELO — QUICK SHOP / ESCOLHA DE TAMANHO
   VERSÃO FINAL DEFINITIVA
   Desktop + Mobile
   ============================================================ */


/* ============================================================
   1. LIMPEZA DO QUICK SHOP
   ============================================================ */

.quick-shop-form.text-center.wd-scroll-content > div,
.quick-shop-form .woocommerce-variation-availability,
.quick-shop-form .woocommerce-variation-price,
.quick-shop-form .wd-reset-var,
.quick-shop-form .reset_variations,
.quick-shop-form .wrapp-swatches > div {
    display: none !important;
}


/* ============================================================
   2. CTA DO CARD — ESCOLHER TAMANHO
   ============================================================ */

.product-grid-item
a.button.product_type_variable.add_to_cart_button.add-to-cart-loop {

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 128px !important;
    max-width: 76% !important;

    /* ALTURA INTERMEDIÁRIA */
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;

    margin: 8px auto 3px !important;

    padding: 0 14px !important;

    box-sizing: border-box !important;

    border: 0 !important;
    border-radius: 6px !important;

    background: #D92936 !important;
    color: #fff !important;

    font-size: 9.5px !important;
    font-weight: 700 !important;

    line-height: 1 !important;

    letter-spacing: 0 !important;

    text-align: center !important;
    white-space: nowrap !important;

    box-shadow: none !important;

    cursor: pointer !important;

    vertical-align: middle !important;

    transition:
        background .12s ease,
        opacity .12s ease,
        transform .12s ease !important;
}


.product-grid-item
a.button.product_type_variable.add_to_cart_button.add-to-cart-loop:hover {

    background: #C92330 !important;
    color: #fff !important;

}


.product-grid-item
a.button.product_type_variable.add_to_cart_button.add-to-cart-loop:active {

    transform: scale(.98);

}


/* Centraliza o botão */

.product-grid-item .wd-add-btn {

    text-align: center !important;

}


/* ============================================================
   3. TABELA DE VARIAÇÕES
   ============================================================ */

.quick-shop-form table.variations {

    display: block !important;

    width: 100% !important;

    margin: 7px auto 9px !important;
    padding: 0 5px !important;

    box-sizing: border-box !important;

    border: 0 !important;

}


.quick-shop-form table.variations tbody,
.quick-shop-form table.variations tr {

    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    text-align: center !important;

}


/* Esconde label padrão */

.quick-shop-form table.variations th.label,
.quick-shop-form table.variations td.label {

    display: none !important;

}


/* ============================================================
   4. TÍTULO — ESCOLHA SEU TAMANHO
   ============================================================ */

.quick-shop-form table.variations::before {

    content: "ESCOLHA SEU TAMANHO";

    display: block;

    width: 100%;

    margin: 0 auto 8px !important;

    color: #111827;

    font-size: 10px;
    font-weight: 800;

    line-height: 1.2;

    letter-spacing: .1px;

    text-align: center;

}


/* ============================================================
   5. ÁREA DAS VARIAÇÕES
   ============================================================ */

.quick-shop-form table.variations td.value,
.quick-shop-form table.variations td.value.cell.with-swatches {

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    text-align: center !important;

}


/* Esconde select nativo */

.quick-shop-form table.variations select {

    display: none !important;

}


/* ============================================================
   6. CONTAINER P / M / G / GG
   ============================================================ */

.quick-shop-form .wd-swatches-product {

    display: flex !important;

    flex-wrap: wrap !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 7px !important;

    width: 100% !important;

    margin: 0 auto !important;
    padding: 0 !important;

}


/* ============================================================
   7. BOTÕES DOS TAMANHOS
   ============================================================ */

.quick-shop-form .wd-swatch.wd-text {

    position: relative !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 40px !important;
    min-width: 40px !important;

    height: 40px !important;
    min-height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    border: 1px solid #E2E5E9 !important;

    border-radius: 8px !important;

    background: #fff !important;

    box-shadow:
        0 2px 6px rgba(0,0,0,.06) !important;

    cursor: pointer !important;

    -webkit-tap-highlight-color: transparent;

    transition:
        border-color .12s ease,
        background .12s ease,
        box-shadow .12s ease,
        transform .12s ease !important;

}


.quick-shop-form .wd-swatch-text {

    color: #1F2937 !important;

    font-size: 11px !important;
    font-weight: 800 !important;

    line-height: 1 !important;

}


/* Hover */

.quick-shop-form .wd-swatch.wd-text:hover {

    border-color: #D92936 !important;

    box-shadow:
        0 3px 8px rgba(0,0,0,.08) !important;

}


/* ============================================================
   8. TAMANHO SELECIONADO
   ============================================================ */

.quick-shop-form .wd-swatch.wd-text.wd-active,
.quick-shop-form .wd-swatch.wd-text.wd-selected,
.quick-shop-form .wd-swatch.wd-text[aria-checked="true"] {

    border: 2px solid #D92936 !important;

    background: #FFF5F5 !important;

    box-shadow:
        0 0 0 2px rgba(217,41,54,.08) !important;

    transform: scale(1.03);

}


.quick-shop-form .wd-swatch.wd-text.wd-active .wd-swatch-text,
.quick-shop-form .wd-swatch.wd-text.wd-selected .wd-swatch-text,
.quick-shop-form .wd-swatch.wd-text[aria-checked="true"] .wd-swatch-text {

    color: #D92936 !important;

}


/* ============================================================
   9. TAMANHOS INDISPONÍVEIS
   ============================================================ */

.quick-shop-form .wd-swatch.wd-disabled,
.quick-shop-form .wd-swatch.disabled {

    opacity: .30 !important;

    background: #F5F5F5 !important;

    border-color: #E8E8E8 !important;

    box-shadow: none !important;

    cursor: not-allowed !important;

    transform: none !important;

}


.quick-shop-form .wd-swatch.wd-disabled .wd-swatch-text,
.quick-shop-form .wd-swatch.disabled .wd-swatch-text {

    color: #9CA3AF !important;

}


/* ============================================================
   10. TEXTO AUXILIAR
   ============================================================ */

.quick-shop-form table.variations::after {

    content: "Selecione uma opção disponível para continuar";

    display: block;

    width: 100%;

    margin: 6px auto 0 !important;

    color: #8A8A8A;

    font-size: 8.5px;
    font-weight: 400;

    line-height: 1.25;

    text-align: center;

}


/* ============================================================
   11. QUANTIDADE
   ============================================================ */

.quick-shop-form .quantity input.qty {

    padding: 0 !important;

}


/* ============================================================
   12. CTA FINAL — ADICIONAR AO CARRINHO
   ============================================================ */

.quick-shop-form .single_add_to_cart_button {

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;

    height: 42px !important;
    min-height: 42px !important;

    margin: 8px 0 0 !important;

    padding: 0 8px !important;

    box-sizing: border-box !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: #D92936 !important;

    color: #fff !important;

    font-size: 11px !important;
    font-weight: 800 !important;

    line-height: 1.15 !important;

    letter-spacing: 0 !important;

    text-align: center !important;

    text-indent: 0 !important;

    white-space: normal !important;

    overflow: hidden !important;

    box-shadow: none !important;

}


/* Remove ícones extras */

.quick-shop-form .single_add_to_cart_button::before,
.quick-shop-form .single_add_to_cart_button::after,
.quick-shop-form .single_add_to_cart_button i,
.quick-shop-form .single_add_to_cart_button svg {

    display: none !important;

    content: none !important;

}


/* ============================================================
   13. BOTÃO FINAL DESABILITADO
   ============================================================ */

.quick-shop-form .single_add_to_cart_button.disabled,
.quick-shop-form .single_add_to_cart_button:disabled {

    background: #EFA0A6 !important;

    color: #fff !important;

    opacity: 1 !important;

    cursor: not-allowed !important;

}


/* ============================================================
   14. BOTÃO FINAL ATIVO
   ============================================================ */

.quick-shop-form
.single_add_to_cart_button:not(.disabled):not(:disabled) {

    background: #D92936 !important;

    color: #fff !important;

    cursor: pointer !important;

}


/* ============================================================
   15. PREÇO ATACADO
   ============================================================ */

.rkz-atacado-wrap {

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 3px;

    margin-top: 6px;

}


.rkz-atacado-preco {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 5px 9px;

    border: 1px solid #bbf7d0;

    border-radius: 999px;

    background: #ecfdf5;

    line-height: 1;

    text-align: center;

}


.rkz-atacado-preco .rkz-label {

    color: #15803d;

    font-size: 9px;
    font-weight: 800;

    line-height: 1;

    text-transform: uppercase;

    letter-spacing: .3px;

}


.rkz-atacado-preco strong {

    color: #166534;

    font-size: 14px;
    font-weight: 800;

    line-height: 1;

}


.rkz-atacado-economia {

    color: #16a34a;

    font-size: 9px;
    font-weight: 600;

    line-height: 1.1;

    text-align: center;

}


/* ============================================================
   16. MOBILE
   ============================================================ */

@media (max-width: 767px) {

    /* ESCOLHER TAMANHO */

    .product-grid-item
    a.button.product_type_variable.add_to_cart_button.add-to-cart-loop {

        width: auto !important;

        min-width: 116px !important;
        max-width: 86% !important;

        height: 33px !important;
        min-height: 33px !important;
        max-height: 33px !important;

        margin: 7px auto 3px !important;

        padding: 0 11px !important;

        border-radius: 6px !important;

        font-size: 8.5px !important;
        font-weight: 700 !important;

        line-height: 1 !important;

    }


    /* Quick Shop */

    .quick-shop-form table.variations {

        margin: 6px auto 8px !important;

        padding: 0 3px !important;

    }


    .quick-shop-form table.variations::before {

        margin-bottom: 7px !important;

        font-size: 10px;

    }


    /* Tamanhos */

    .quick-shop-form .wd-swatches-product {

        gap: 6px !important;

    }


    .quick-shop-form .wd-swatch.wd-text {

        width: 39px !important;
        min-width: 39px !important;

        height: 39px !important;
        min-height: 39px !important;

        border-radius: 8px !important;

    }


    .quick-shop-form .wd-swatch-text {

        font-size: 10.5px !important;

    }


    /* Texto auxiliar */

    .quick-shop-form table.variations::after {

        margin-top: 5px !important;

        font-size: 8px;

    }


    /* Adicionar ao carrinho */

    .quick-shop-form .single_add_to_cart_button {

        height: 40px !important;
        min-height: 40px !important;

        margin-top: 7px !important;

        padding: 0 6px !important;

        font-size: 10px !important;

    }

}


/* ============================================================
   17. CELULARES PEQUENOS
   ============================================================ */

@media (max-width: 380px) {

    .product-grid-item
    a.button.product_type_variable.add_to_cart_button.add-to-cart-loop {

        min-width: 110px !important;

        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;

        padding: 0 9px !important;

        font-size: 8px !important;

    }


    .quick-shop-form .wd-swatches-product {

        gap: 5px !important;

    }


    .quick-shop-form .wd-swatch.wd-text {

        width: 37px !important;
        min-width: 37px !important;

        height: 37px !important;
        min-height: 37px !important;

    }

}


/* ============================================================
   18. DESKTOP
   ============================================================ */

@media (min-width: 768px) {

    .product-grid-item
    a.button.product_type_variable.add_to_cart_button.add-to-cart-loop {

        min-width: 128px !important;
        max-width: 76% !important;

        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;

        padding: 0 14px !important;

        font-size: 9.5px !important;

        line-height: 1 !important;

    }


    .quick-shop-form .wd-swatches-product {

        gap: 8px !important;

    }


    .quick-shop-form .wd-swatch.wd-text {

        width: 41px !important;
        min-width: 41px !important;

        height: 41px !important;
        min-height: 41px !important;

    }


    .quick-shop-form .wd-swatch-text {

        font-size: 11px !important;

    }

}


/* ============================================================
   19. GARANTIA FINAL CONTRA REGRAS DO WOODMART
   ============================================================ */

.product-grid-item
a.button.product_type_variable.add_to_cart_button.add-to-cart-loop {

    padding-top: 0 !important;
    padding-bottom: 0 !important;

}


/* DESKTOP */

@media (min-width: 768px) {

    .product-grid-item
    a.button.product_type_variable.add_to_cart_button.add-to-cart-loop {

        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;

    }

}


/* MOBILE */

@media (max-width: 767px) {

    .product-grid-item
    a.button.product_type_variable.add_to_cart_button.add-to-cart-loop {

        height: 33px !important;
        min-height: 33px !important;
        max-height: 33px !important;

    }

}


/* MOBILE PEQUENO */

@media (max-width: 380px) {

    .product-grid-item
    a.button.product_type_variable.add_to_cart_button.add-to-cart-loop {

        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;

    }

}
