/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/

.cart-title {
    font-weight: 600;
    font-size: 14px;
    color: inherit;
    text-decoration: none;
}

.cart-title:hover {
    text-decoration: underline;
}

.remove-btn {
    padding: 0 !important;
}

.remove-btn:hover {
    background: none;
}

a.cart-title {
    color: #4D3A30 !important;
}

a.cart-title:hover {
    text-decoration: underline !important;
}

#geminiToast {
    position: fixed;
    bottom: -60px;
    right: 20px;
    background: #6A5044;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: .45s;
    z-index: 999999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

#geminiToast.show {
    bottom: 25px;
    opacity: 1;
}

/* === TOAST EVOLUÍDO === */
.gemini-toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: -120px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, .07);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
    padding: 12px 16px;
    border-radius: 12px;
    min-width: 320px;
    max-width: 90%;
    font-family: inherit;
    opacity: 0;
    z-index: 99999999;
    transition: bottom .45s cubic-bezier(.2, 1.1, .3, 1), opacity .35s;
}

/* MINI CART OVERLAY */
#geminiMiniCartOverlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    border-radius: inherit;
}

#geminiMiniCartOverlay.show {
    opacity: 1;
    pointer-events: all;
}

#geminiMiniCartOverlay img {
    width: 60px;
    animation: pulseCart 1s infinite alternate;
}

@keyframes pulseCart {
    from {
        transform: scale(0.9);
        opacity: 0.7;
    }

    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Estilo do conteúdo */
.gemini-toast.show {
    bottom: 28px;
    opacity: 1;
}

.toast-img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.toast-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 15px;
    color: #FFF;
}

.toast-link {
    font-size: 13px;
    color: #6A5044;
    font-weight: 600;
    text-decoration: none;
}

.toast-link:hover {
    text-decoration: underline;
}

.toast-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    font-weight: 700;
    padding: 0;
    margin-left: 8px;
}

.toast-close:hover {
    opacity: .6;
}

/* =========================================
   CSS EXTRAÍDO DO SHORTCODE (functions.php)
   ========================================= */

:root {
    --tema: #6A5044;
}

/* LAYOUT GERAL */
.gemini-catalog-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    /* Sidebar fixa + resto fluido */
    gap: 35px;
    margin: 20px 0;
    position: relative;
}

/*************  SIDEBAR  *************/
.gemini-catalog-sidebar {
    /* width removed, handled by grid */
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #ddd;
    box-shadow: 0 0 20px rgba(0, 0, 0, .05);
    position: sticky;
    top: 20px;
    height: max-content;
}

@media(max-width:800px) {
    .gemini-catalog-container {
        display: block;
    }

    .gemini-catalog-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        z-index: 99999;
        width: 300px;
        max-width: 92%;
        padding: 30px;
        background: #fff;
        border-radius: 0;
        transition: left .35s;
    }

    body.sidebar-open .gemini-catalog-sidebar {
        left: 0;
    }
}

/* BOTÃO MOBILE */
.gemini-sidebar-toggle {
    display: none;
}

@media(max-width:800px) {
    .gemini-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 18px;
        bottom: 18px;
        z-index: 999999;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--tema);
        color: #fff;
        font-size: 28px;
        font-weight: 700;
        box-shadow: 0 6px 14px rgba(0, 0, 0, .3);
        cursor: pointer;
        transition: .3s ease;
    }

    body.sidebar-open .gemini-sidebar-toggle {
        transform: rotate(45deg);
    }
}

/* INPUTS / CHECKBOX */
.gemini-catalog-sidebar input,
.gemini-catalog-sidebar select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    transition: .25s;
}

.checkbox-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.checkbox-wrap input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--tema);
    border-radius: 4px;
    position: relative;
}

.checkbox-wrap input:checked {
    background: var(--tema);
}

.checkbox-wrap input:checked::after {
    content: "";
    position: absolute;
    top: 2.5px;
    left: 6px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* GRID DE PRODUTOS */
.gemini-results-wrap {
    /* display: grid;  <-- REMOVIDO, agora é container genérico */
    display: block;
    position: relative;
    min-height: 200px;
}

.gemini-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    width: 100%;
    padding: 0 20px;
    /* Ensure full width */
}

.gemini-product-card {
    width: 100%;
    /* Ensure card fills cell */
    /* ... other styles ... */
}

.view-list .gemini-products-grid {
    display: block;
}

@media(max-width:900px) {
    .gemini-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:600px) {
    .gemini-products-grid {
        grid-template-columns: 1fr;
    }

    .gemini-product-card,
    .gemini-product-card.loaded {
        height: 500px !important;
        width: 100% !important;
        max-width: none !important;
    }
}

/* LOADING OVERLAY */
#geminiGridOverlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: .35s;
}

.gemini-results-wrap.loading #geminiGridOverlay {
    opacity: 1;
    pointer-events: all;
    z-index: 50;
}

#geminiGridOverlay img {
    width: 140px;
    animation: pulse1 1.3s infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 51;
}

@keyframes pulse1 {
    0% {
        opacity: .4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .4;
    }
}

/********************  CARD ********************/
.gemini-product-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: .45s;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Fill grid cell */
}

.gemini-product-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

.gemini-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .1);
}

.gemini-product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.gemini-product-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
}

/* BOTÕES */
.gemini-card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    /* Push to bottom if needed */
    padding-top: 15px;
    flex-wrap: wrap;
}

.gemini-btn {
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid var(--tema);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.gemini-btn.primary {
    background: var(--tema);
    color: #fff !important;
}

.gemini-btn.primary:hover {
    background: #4d3a30;
}

.gemini-btn.secondary:hover {
    background: #f2e9e4;
}

.gemini-btn:disabled {
    opacity: .5;
    cursor: default;
}

/* Hide "View Cart" link after adding */
.added_to_cart {
    display: none !important;
}

/**************** SKELETON *****************/
.skeleton-card {
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    animation: sFade1 1.2s infinite alternate;
}

@keyframes sFade1 {
    from {
        opacity: .35;
    }

    to {
        opacity: .95;
    }
}

.skeleton-thumb {
    width: 100%;
    height: 280px;
    background: #e7e7e7;
    border-radius: 8px;
    margin-bottom: 10px;
}

.skeleton-bar {
    height: 14px;
    border-radius: 5px;
    background: #ddd;
    margin-bottom: 8px;
}

.skeleton-bar.md {
    width: 70%;
}

.skeleton-bar.sm {
    width: 40%;
}



/*************** MINI CART ***************/
.gemini-mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 99900;
}

.gemini-mini-cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.gemini-mini-cart {
    position: fixed;
    right: -350px;
    top: 0;
    height: 100vh;
    width: 320px;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .3);
    z-index: 99999;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: .35s;
}

.gemini-mini-cart.open {
    right: 0;
}

.gemini-mini-cart-header {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gemini-mini-cart-items {
    flex: 1;
    overflow: auto;
    padding-right: 5px;
}

.cart-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cart-item img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-title {
    font-weight: 600;
    font-size: 14px;
}

.cart-qtd {
    color: var(--tema);
    font-weight: 700;
}

/* Quantidade + Remover item alinhado à direita */
.qty-box {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    justify-content: space-between;
    /* 🔥 separa botões +/– e lixeira */
    width: 160px;
}

.qty-box .remove-btn {
    margin-left: auto;
    color: #b00;
    background: none;
    border: none !important;
    font-size: 14px;
    cursor: pointer;
}

.qty-box .remove-btn:hover {
    opacity: .7;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #bbb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qty-btn:hover {
    background: #f6ebe6;
}

.remove-btn {
    border: none;
    color: #b00;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    margin-top: 4px;
}

.cart-footer {
    padding-top: 12px;
    border-top: 2px solid #eee;
    margin-top: 8px;
}

.cart-total {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.checkout-full {
    width: 100%;
    text-align: center;
}

/* REFINAMENTOS */
.gemini-mini-cart-close:hover {
    background: none !important;
    opacity: 1 !important;
    transform: none !important;
    color: black !important;
}

.icoCart {
    cursor: pointer;
    position: relative;
    display: none;
    /* Inicialmente oculto */
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #b00;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 5;
    /* Garante que fique acima */
}

/* LOAD MORE BUTTON */
.gemini-load-more {
    display: block;
    margin: 30px auto 0;
    padding: 10px 24px;
    background: var(--tema);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, background .2s;
}

.gemini-load-more:hover {
    background: #4d3a30;
    transform: translateY(2px);
    /* Sink effect */
}

/* SKELETON UPDATE */
.skeleton-card {
    padding: 15px;
    /* Match product card */
}

.skeleton-btn {
    height: 32px;
    width: 100px;
    background: #ddd;
    border-radius: 6px;
    margin-top: 15px;
}

/* ===============================
   CATEGORIES GRID — VERSÃO PREMIUM
=================================*/
.gemini-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin: 50px 0;
    padding: 10px 0;
}

.gemini-category-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 20px 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ececec;
    transition: all .35s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .04);
}

.gemini-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .09);
    border-color: var(--tema);
}

/* Foto circular com efeito de brilho */
.gemini-category-image img {
    width: 105px;
    height: 105px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid #f3f3f3;
    transition: all .3s ease;
}

.gemini-category-card:hover .gemini-category-image img {
    border-color: var(--tema);
    transform: scale(1.06);
}

/* Título + contagem */
.gemini-category-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: .2px;
}

.gemini-category-count {
    font-size: 13px;
    color: #777;
    opacity: .85;
}

/* Responsividade refinada */
@media(max-width:1024px) {
    .gemini-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:768px) {
    .gemini-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:480px) {
    .gemini-categories-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .gemini-category-card {
        padding: 25px;
    }
}


/* ===============================
   LISTA CATEGORIAS HORIZONTAL — PREMIUM
=================================*/
.gemini-lista-categorias {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 25px 0 40px;
}

.gemini-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 120px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smooth transition for magnetic return */
}

/* Magnetic effect handled by JS */

.gemini-cat-img-wrap {
    width: 85px;
    height: 85px;
    padding: 15px;
    overflow: hidden;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 1px solid #eee;
    background-color: #fff;
    transition: all 0.4s ease;
    filter: grayscale(100%);
    /* Start grayscale */
    opacity: 0.9;
}

.gemini-cat-card:hover .gemini-cat-img-wrap {
    /* border-color removed */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    filter: grayscale(0%);
    /* Color on hover */
    opacity: 1;
    transform: scale(1.05);
}

.gemini-cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.5s ease;
}

.gemini-cat-card:hover .gemini-cat-img-wrap img {
    transform: scale(1.1);
}

.gemini-cat-name {
    font-size: 14px;
    color: #333;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    top: 0;
}

.gemini-cat-card:hover .gemini-cat-name {
    color: var(--tema, #6b5245);
    transform: translateY(3px);
    /* Micro-animation: move down slightly */
    letter-spacing: 0.5px;
    /* Micro-animation: expand text */
}

.gemini-results-count {
    width: 100%;
    padding: 10px;
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Floating WhatsApp Button */
.gemini-whatsapp-float {
    position: fixed;
    width: 64px;
    height: 64px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gemini-whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* --- Language Flags --- */
.gemini-lang-flags {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gemini-flag-icon {
    width: 32px;
    height: 20px;
    border-radius: 2px;
    cursor: pointer;
    object-fit: cover;
    border: 1px solid #ccc;
    transition: transform 0.2s;
}

/* --- Sticky Header --- */
#headerM {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    width: 100%;
    height: 130px;
    /* Initial height */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

    /* Flexbox for alignment */
    display: flex;
    align-items: center;
    /* Center vertically */
}

/* Add padding to body to prevent content overlap */
/* Add padding to body to prevent content overlap */
html,
body {
    overflow-x: hidden;
}

body {
    padding-top: 130px !important;
    /* Force padding to prevent overlap */
}

/* Ajuste para quando a barra de administração do WP estiver visível */
body.admin-bar {
    padding-top: 162px !important;
}

body.admin-bar #headerM {
    top: 32px !important;
}

#headerM.scrolled {
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#logoT {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    /* Default width */
    max-height: 100%;
    object-fit: contain;
}

#headerM.scrolled #logoT {
    width: auto !important;
    height: auto !important;
    max-height: 60px !important;
    transform: scale(0.9);
    /* Subtle scale effect */
}

#headerM.scrolled #logoT img {
    max-height: 60px !important;
    width: auto !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gemini-flag-icon:hover {
    transform: scale(1.1);
}

/* Hide Google Translate Bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
}

.gemini-whatsapp-float svg {
    width: 36px;
    height: 36px;
    fill: #FFF;
}



/* ESCONDER OPÇÕES DE PAGAMENTO (Visualmente) */
#payment .wc_payment_methods {
    /* display: none !important; */
}

#payment .place-order {
    padding: 0 !important;
    background: none !important;
}

#payment {
    background: none !important;
    border: none !important;
}

/* Cache Buster: 1764468794 */

/* LAYOUT DE DUAS COLUNAS NO CHECKOUT */
@media (min-width: 769px) {
    .woocommerce-checkout #customer_details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        width: 100%;
    }

    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2 {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Coluna 1: Faturamento */
    .woocommerce-checkout .col-1 {
        grid-column: 1;
    }

    /* Coluna 2: Info Adicional + Pedido */
    .woocommerce-checkout .col-2 {
        grid-column: 2;
        display: flex;
        flex-direction: column;
    }

    /* Ajuste para o bloco de revisão do pedido */
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 100% !important;
        float: none !important;
        clear: both;
    }

    .woocommerce-checkout #order_review_heading {
        margin-top: 30px;
    }
}

/* Estilo do Botão Finalizar Pedido */
#place_order {
    width: 100% !important;
    margin: 10px !important;
    display: block;
}

/* Estilo da Mensagem de Obrigado */
.woocommerce-thankyou-order-received {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/* Esconder loop padrão do WooCommerce para evitar duplicação com o shortcode */
.woocommerce-shop ul.products,
.post-type-archive-product ul.products {
    display: none !important;
}

/* ===============================
   BANNER CAROUSEL
=================================*/
.gemini-banner-carousel {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.gemini-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.gemini-banner-item {
    min-width: 100%;
    position: relative;
}

.gemini-banner-item img {
    width: 100%;
    height: 418px;

    display: block;
    object-fit: contain;
}

/* Navigation Arrows */
.gemini-carousel-prev,
.gemini-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
    border-radius: 4px;
}

.gemini-carousel-prev:hover,
.gemini-carousel-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.gemini-carousel-prev {
    left: 20px;
}

.gemini-carousel-next {
    right: 20px;
}

/* Hide Google Translate Top Bar */
/* Hide Google Translate Top Bar */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0px !important;
}

/* Hide Google Translate Tooltips */
.goog-tooltip {
    display: none !important;
}

.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Dots */
.gemini-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.gemini-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.gemini-dot.active {
    background: #fff;
    transform: scale(1.2);
}

@media(max-width: 768px) {
    .gemini-banner-item img {
        height: 200px;
        /* Adjust for mobile */
    }

    .gemini-carousel-prev,
    .gemini-carousel-next {
        padding: 5px 10px;
        font-size: 18px;
    }
}

/* ===============================
   CHECKOUT STYLES
=================================*/

/* Fix Select2 (State/Country Dropdowns) */
.select2-container .select2-selection--single {
    height: 48px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 12px !important;
    color: #333 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    top: 1px !important;
}

/* Checkout Layout - Template Override Strategy */
@media (min-width: 769px) {
    .gemini-checkout-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        align-items: flex-start;
    }

    .gemini-checkout-left,
    .gemini-checkout-right {
        flex: 1 1 calc(50% - 15px);
        /*max-width: calc(50% - 15px);
        width: calc(50% - 15px);*/
    }

    /* Ensure Order Review sits nicely */
    .gemini-order-review-section {
        margin-top: 30px;
        width: 100%;
    }
}

/* Hide Country Field (but keep it in DOM for JS) */
.hidden,
#billing_country_field {
    display: none !important;
}

/* Hide Ship to Different Address Toggle */
#ship-to-different-address {
    display: none !important;
}

/* Read-only State Field */
.gemini-readonly-state {
    pointer-events: none;
    opacity: 0.7;
}

.gemini-readonly-state select,
.gemini-readonly-state .select2-selection {
    background-color: #f9f9f9 !important;
    cursor: not-allowed;
}

/* Initially Hidden Fields (Progressive Checkout) */
.gemini-initially-hidden {
    display: none;
}

/* Read-only State Field */
.gemini-readonly-state {
    pointer-events: none;
    opacity: 0.8;
}

.gemini-readonly-state select,
.gemini-readonly-state .select2-container {
    background-color: #f5f5f5 !important;
}

/* Conditional Order Review */
#order_review,
#order_review_heading {
    display: none;
}

#gemini-zip-message {
    display: block;
    background-color: #e0f7fa;
    color: #006064;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #b2ebf2;
}

#gemini-zip-message::before {
    content: '' !important;
}

@media (max-width: 600px) {
    .gemini-lista-categorias {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        justify-content: center;
        margin: 15px 0 20px;
    }

    .gemini-cat-card {
        width: 100%;
        margin: 0;
    }

    .gemini-cat-img-wrap {
        width: 60px;
        height: 60px;
        padding: 10px;
        margin-bottom: 5px;
    }

    .gemini-cat-name {
        font-size: 11px;
        line-height: 1.2;
    }
}

.site-main {
    padding-top: 50px;
}

@media (max-width: 768px) {

    /* Disable Sticky Header */
    #headerM {
        position: relative !important;
        height: auto !important;
        box-shadow: none !important;
    }

    /* Remove body padding since header is no longer fixed */
    body {
        padding-top: 0 !important;
    }

    /* Adjust admin bar offset if necessary */
    body.admin-bar {
        padding-top: 0 !important;
    }
}

/* Hide Shipping Address on Order Received Page */
.woocommerce-order-received .woocommerce-column--shipping-address {
    display: none !important;
}