/*
Theme Name: O Bazar do Lipe v4
Theme URI: https://benditosite.com.br
Author: Juliano Goulart
Description: Tema Customizado e Corrigido para WooCommerce.
Version: 4.0.0
Text Domain: obazardolipe
*/
body { background-color: #f9fafb; -webkit-font-smoothing: antialiased; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
@keyframes marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }
.animate-marquee { display: inline-block; white-space: nowrap; animation: marquee 20s linear infinite; }

.woocommerce form .form-row { margin-bottom: 1rem; }
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%; border: 1px solid #e5e7eb !important; border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important; font-size: 0.875rem !important; background-color: #ffffff !important;
    color: #1f2937; outline: none; transition: all 0.2s;
}
.woocommerce form .form-row input.input-text:focus { border-color: #8e2deb !important; box-shadow: 0 0 0 2px #e6cff5 !important; }
.woocommerce form .form-row label { display: block; font-size: 0.8125rem !important; font-weight: 600 !important; color: #374151 !important; margin-bottom: 0.375rem !important; }
.woocommerce-info, .woocommerce-message, .woocommerce-error {
    background-color: #f4eafa; border-left: 4px solid #8e2deb; padding: 1rem 1.5rem;
    border-radius: 0.5rem; margin-bottom: 1.5rem; color: #48167a; font-weight: 500; font-size: 0.875rem; list-style: none;
}
.woocommerce-info a.button, .woocommerce-message a.button { float: right; font-weight: bold; color: #ffffff; background: #8e2deb; padding: 0.25rem 0.75rem; border-radius: 0.25rem; font-size: 0.75rem; text-decoration: none; }
.cart_totals h2 { display: none; }
.cart_totals table { width: 100%; font-size: 0.875rem; color: #4b5563; }
.cart_totals table th { text-align: left; font-weight: normal; padding: 0.75rem 0; border-bottom: 1px solid #f3f4f6;}
.cart_totals table td { text-align: right; font-weight: 500; color: #111827; padding: 0.75rem 0; border-bottom: 1px solid #f3f4f6;}
.cart_totals table tr.order-total th, .cart_totals table tr.order-total td { font-size: 1.125rem; font-weight: 900; color: #4b5563; border-bottom: none; }
.cart_totals table tr.order-total td { color: #8a5de6; }
.wc-proceed-to-checkout { margin-top: 1.5rem; }
.wc-proceed-to-checkout .checkout-button { 
    display: flex; justify-content: center; align-items: center; gap: 0.5rem;
    width: 100%; background-color: #8a5de6; color: white; font-weight: bold; padding: 1rem; border-radius: 0.75rem; 
    transition: all 0.2s; box-shadow: 0 4px 14px 0 rgba(136,42,230,0.39); text-decoration: none;
}
.wc-proceed-to-checkout .checkout-button:hover { background-color: #4338ca; box-shadow: 0 6px 20px rgba(136,42,230,0.23); transform: translateY(-2px); }
.quantity input.qty { width: 3rem; text-align: center; border: 1px solid #e5e7eb; border-radius: 0.375rem; height: 2.25rem; font-weight: bold; outline: none; }
.woocommerce-checkout-review-order-table { width: 100%; text-align: left; font-size: 0.875rem; color: #4b5563;}
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 1rem 0; border-bottom: 1px solid #f3f4f6; }
.woocommerce-checkout-review-order-table .product-name { font-weight: 600; color: #111827; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: 1.25rem; font-weight: 900; border-bottom: none; color: #111827; }
#payment { background: #f9fafb; border: 2px dashed #e5e7eb; border-radius: 0.75rem; padding: 1.5rem; margin-top: 1.5rem; }
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
#payment ul.payment_methods li { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-weight: 600; font-size: 0.875rem;}
#payment .payment_box { background: #ffffff; padding: 1rem; border-radius: 0.5rem; border: 1px solid #e5e7eb; font-size: 0.8125rem; font-weight: 400; color: #6b7280; }
#payment .place-order button { 
    width: 100%; background-color: #8a5de6; color: white; font-weight: bold; padding: 1rem; border-radius: 0.75rem; cursor: pointer; border: none; transition: background 0.2s;
}
.select2-container .select2-selection--single { height: 44px !important; border: 1px solid #e5e7eb !important; border-radius: 0.5rem !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px !important; font-size: 0.875rem; color: #1f2937 !important;}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px !important; }
.single_add_to_cart_button { 
    width: 100%; max-width: 280px; background-color: #8a5de6; color: white; font-weight: bold; font-size: 1.125rem; 
    padding: 1rem 2rem; border-radius: 0.75rem; cursor: pointer; border: none; box-shadow: 0 4px 14px 0 rgba(136,42,230,0.39); margin-top: 1rem;
}

/* =========================================================
   ESTILO DO BOTÃO DE FINALIZAR COMPRA (Checkout)
   ========================================================= */
#payment .place-order button { 
    width: 100%; 
    background-color: #8a5de6; 
    color: white; 
    font-weight: bold; 
    font-size: 1.125rem;
    padding: 1rem 2rem; 
    border-radius: 0.75rem; 
    cursor: pointer; 
    border: none; 
    box-shadow: 0 4px 14px 0 rgba(136,42,230,0.39); 
    transition: all 0.3s ease; 
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#payment .place-order button:hover { 
    background-color: #4338ca; 
    box-shadow: 0 6px 20px rgba(136,42,230,0.23); 
    transform: translateY(-2px); 
}

/* =========================================================
   ESTILO DA GALERIA DE PRODUTO (CARROSSEL COM SETAS REAIS)
   ========================================================= */

/* Centraliza e transforma a galeria no ponto de referência absoluto */
.woo-custom-gallery-container .woocommerce-product-gallery {
    max-width: 400px !important;
    margin: 0 auto !important;
    position: relative !important;
}

/* Container da Imagem principal arredondada */
.woo-custom-gallery-container .woocommerce-product-gallery__wrapper {
    border-radius: 0.75rem !important;
    border: 1px solid #f3f4f6 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important; 
}

.woo-custom-gallery-container .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Remove a lupa padrão do WooCommerce */
.woo-custom-gallery-container .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* =========================================================
   ESTILIZAÇÃO DAS SETAS (SOBREPONDO A IMAGEM)
   ========================================================= */
.woo-custom-gallery-container .woocommerce-product-gallery .flex-direction-nav {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    width: 100% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    justify-content: space-between !important;
    pointer-events: none !important; /* Permite arrastar/clicar no meio da foto sem bater na div invisível */
    z-index: 10 !important;
}

/* O fundo branco redondinho do botão */
.woo-custom-gallery-container .woocommerce-product-gallery .flex-direction-nav a {
    pointer-events: auto !important; /* Reativa o clique apenas nos botões */
    display: block !important;
    width: 44px !important;
    height: 44px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    text-indent: -9999px !important; /* EXPULSA o texto Previous e Next da tela */
    white-space: nowrap !important;
    overflow: hidden !important; /* Garante que o texto suma de vez */
    position: relative !important;
    transition: all 0.2s ease !important;
    opacity: 0.9 !important;
}

/* Posiciona os botões com respiro para dentro ou fora da imagem */
.woo-custom-gallery-container .woocommerce-product-gallery .flex-direction-nav a.flex-prev {
    margin-left: 10px !important;
}
.woo-custom-gallery-container .woocommerce-product-gallery .flex-direction-nav a.flex-next {
    margin-right: 10px !important;
}

/* Efeito de Hover moderno */
.woo-custom-gallery-container .woocommerce-product-gallery .flex-direction-nav a:hover {
    opacity: 1 !important;
    background-color: #8a5de6 !important; /* Fundo primário */
    transform: scale(1.1) !important;
}

/* =========================================================
   AS SETINHAS (FEITAS EM PURO CSS - À PROVA DE FALHAS)
   ========================================================= */
.woo-custom-gallery-container .woocommerce-product-gallery .flex-direction-nav a::after {
    content: "" !important;
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    border-top: 3px solid #8a5de6 !important;
    border-right: 3px solid #8a5de6 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transition: border-color 0.2s ease !important;
}

/* Seta branca no hover */
.woo-custom-gallery-container .woocommerce-product-gallery .flex-direction-nav a:hover::after {
    border-color: #ffffff !important;
}

/* Roda o quadradinho de CSS para virar uma seta apontando para a esquerda */
.woo-custom-gallery-container .woocommerce-product-gallery .flex-direction-nav a.flex-prev::after {
    transform: translate(-30%, -50%) rotate(-135deg) !important;
}

/* Roda o quadradinho de CSS para virar uma seta apontando para a direita */
.woo-custom-gallery-container .woocommerce-product-gallery .flex-direction-nav a.flex-next::after {
    transform: translate(-70%, -50%) rotate(45deg) !important;
}