/* ==========================================================================
   ASTRA & WOOCOMMERCE - FRAMEWORK UNIVERSAL DE PRODUTO INDIVIDUAL
   Compatível com qualquer instalação WordPress + Astra Theme + WooCommerce
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET GLOBAL DE SOMBRAS / BOX-SHADOW (Zero Sombras em Imagens)
   -------------------------------------------------------------------------- */
img,
a img,
picture img,
figure img,
.wp-block-image img,
.entry-content img,
.entry-summary img,
.site-content img,
.woocommerce div.product div.images,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .flex-viewport,
.woocommerce div.product div.images ol.flex-control-thumbs li img,
.woocommerce-product-gallery,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery img,
.woocommerce-product-details__short-description img,
.woocommerce-Tabs-panel img,
#tab-description img,
#tab-additional_information img,
#tab-reviews img,
.product .entry-summary .my_image,
.ast-product-payments-trust img,
ul.products li.product img,
ul.products li.product a img,
.wc-block-grid__product-image img,
.wp-block-woocommerce-product-template img {
    box-shadow: none !important;
    filter: none !important;
    -webkit-box-shadow: none !important;
    -webkit-filter: none !important;
}

/* --------------------------------------------------------------------------
   2. BOTÕES DE COMPRA & CONTROLO DE QUANTIDADE
   -------------------------------------------------------------------------- */
.entry-summary .cart .single_add_to_cart_button,
.entry-summary .single_variation_wrap .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    font-size: 18px !important;
}

.cart .quantity input[type=number],
.woocommerce-variation-add-to-cart .quantity input[type=number] {
    height: 55px;
    border-radius: 5px;
}

/* Oculta o link secundário redundante "Ver carrinho" pós-seleção */
.single_variation_wrap .woocommerce-variation-add-to-cart .added_to_cart,
.entry-summary .cart .added_to_cart {
    display: none !important;
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFIA & DESCRIÇÃO CURTA
   -------------------------------------------------------------------------- */
.product .entry-summary .woocommerce-product-details__short-description {
    padding-top: 10px;
    font-size: 14px;
    color: #2B303C;
    margin-bottom: 0px;
    line-height: 1.7em;
}

/* --------------------------------------------------------------------------
   4. BLOCO DE CONFIANÇA, BADGES & MÉTODOS DE PAGAMENTO
   -------------------------------------------------------------------------- */
.ast-product-payments-trust {
    margin-top: 18px !important;
    margin-bottom: 12px !important;
    display: block !important;
    clear: both !important;
}

.ast-product-payments-trust img,
.ast-product-payments-trust .payments-badge-img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

.ast-trust-badges-block {
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #e2e8f0 !important;
    display: block !important;
    clear: both !important;
    font-size: 13px !important;
    color: #4a5568 !important;
    line-height: 1.6em !important;
}

.ast-trust-badges-block .trust-badge-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 7px !important;
}

.ast-trust-badges-block .trust-badge-item:last-child {
    margin-bottom: 0 !important;
}

.ast-trust-badges-block .trust-badge-item svg {
    flex-shrink: 0 !important;
    color: #1a202c !important;
}

.ast-trust-badges-block a {
    color: #0284c7 !important;
    text-decoration: none !important;
}

.ast-trust-badges-block a:hover {
    color: #ff8000 !important;
    text-decoration: underline !important;
}

/* --------------------------------------------------------------------------
   5. METADADOS DO PRODUTO & TABELA DE ATRIBUTOS
   -------------------------------------------------------------------------- */
.product .entry-summary .product_meta {
    padding-top: 17px !important;
    margin-top: 25px !important;
    font-size: 12px !important;
    color: rgba(43, 48, 60, 0.6);
}

.woocommerce-product-attributes tbody .woocommerce-product-attributes-item__label {
    background-color: #f2f2f2;
}

/* --------------------------------------------------------------------------
   6. COMPATIBILIDADE COM PLUGINS (Swatches, Labels, Wishlist, Estimativas)
   -------------------------------------------------------------------------- */
/* Advanced Woo Labels */
.product .entry-summary .advanced-woo-labels {
    padding-top: 0px;
    margin-top: -13px;
}

/* WPC Variation Swatches */
.entry-summary .variations_form .wpcvs-attributes-stacked {
    border-width: 0px;
    padding-bottom: 13px;
}

.wpcvs-attributes-stacked .wpcvs-attribute .wpcvs-attribute-label {
    padding-top: 0px;
    padding-bottom: 6px;
}

/* PI Estimated Delivery Date */
.single_variation_wrap .woocommerce-variation-add-to-cart .pi-edd-ajax-variable,
.entry-summary .cart .pi-edd-ajax-simple {
    font-size: 13px;
}

.woocommerce-variation-add-to-cart .pi-edd-ajax-variable img,
.cart .pi-edd-ajax-simple img {
    height: 20px;
}

/* Wishlist (WLFMC) */
.wlfmc-addtowishlist .wlfmc-custom-btn span,
.wlfmc-removefromwishlist .wlfmc_delete_item span {
    padding-top: 13px;
}

/* Avaliações Stellar */
.entry-title .mdp-stellar-box .mdp-stellar {
    padding-top: 10px;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVIDADE (Tablets e Ecrãs Móveis)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .entry-title .mdp-stellar-box .mdp-stellar {
        padding-top: 0px;
    }
    
    .product .entry-summary h1 {
        margin-bottom: 0px !important;
    }
}

@media (max-width: 921px) {
    .wpcvs-attributes-stacked .wpcvs-attribute .wpcvs-attribute-value {
        padding-bottom: 18px;
    }
    
    .product .entry-summary .advanced-woo-labels {
        margin-top: -35px;
    }
}