.lcf-product-page{display:grid;gap:44px;margin:28px 0}
.lcf-product-section{min-width:0}
.lcf-product-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.lcf-product-section-head h2{margin:0;font-size:clamp(1.35rem,2vw,1.8rem);line-height:1.2}
.lcf-product-carousel-controls{display:flex;gap:8px;flex:0 0 auto}
.lcf-product-carousel-controls button{width:38px;height:38px;border:1px solid #d1d5db;border-radius:50%;background:#fff;color:#111827;font-size:23px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(15,23,42,.07)}
.lcf-product-carousel-controls button:hover,.lcf-product-carousel-controls button:focus-visible{background:#f3f4f6}
.lcf-product-carousel{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(215px,23.5%);gap:16px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline mandatory;scrollbar-width:none;padding:2px 2px 12px}
.lcf-product-carousel::-webkit-scrollbar{display:none}
.lcf-product-item{scroll-snap-align:start;min-width:0;border:1px solid #e5e7eb;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(15,23,42,.055);transition:transform .18s ease,box-shadow .18s ease}
.lcf-product-item:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(15,23,42,.09)}
.lcf-product-image{display:block;aspect-ratio:1/1;background:#f8fafc;overflow:hidden}
.lcf-product-image img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .22s ease}
.lcf-product-item:hover .lcf-product-image img{transform:scale(1.025)}
.lcf-product-info{padding:13px 14px 15px;display:grid;gap:8px}
.lcf-product-info h3{margin:0;font-size:.98rem;line-height:1.35}
.lcf-product-info h3 a{color:inherit;text-decoration:none}
.lcf-product-price{font-weight:800;color:#111827}
.lcf-product-price del{opacity:.55;font-weight:500;margin-right:5px}
.lcf-product-more-wrap{text-align:center;margin-top:18px}
.lcf-product-more{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 18px;border-radius:10px;background:#111827;color:#fff!important;text-decoration:none!important;font-weight:700;box-shadow:0 3px 0 #000}
.lcf-product-more:hover,.lcf-product-more:focus-visible{background:#000;color:#fff!important;transform:translateY(1px);box-shadow:0 2px 0 #000}
@media(max-width:1100px){.lcf-product-carousel{grid-auto-columns:minmax(205px,31.5%)}}
@media(max-width:700px){.lcf-product-page{gap:34px}.lcf-product-carousel{grid-auto-columns:minmax(175px,48%);gap:12px}.lcf-product-carousel-controls button{width:36px;height:36px}.lcf-product-info{padding:12px 12px 14px}}
@media(max-width:430px){.lcf-product-carousel{grid-auto-columns:82%}}
@media(prefers-reduced-motion:reduce){.lcf-product-carousel{scroll-behavior:auto}.lcf-product-item,.lcf-product-image img,.lcf-product-more{transition:none}}

.lcf-product-buy{display:grid;grid-template-columns:1fr;gap:8px;align-items:center;margin-top:5px}
.lcf-qty{display:grid;grid-template-columns:1fr 50px 1fr;align-items:stretch;width:100%;border:1px solid #d1d5db;border-radius:10px;overflow:hidden;background:#fff}
.lcf-qty button{border:0;background:#f8fafc;color:#111827;font:700 18px/1 Arial,sans-serif;cursor:pointer;min-height:38px;padding:0}
.lcf-qty button:hover,.lcf-qty button:focus-visible{background:#e5e7eb}
.lcf-qty-input{width:50px;min-width:0;border:0!important;border-left:1px solid #e5e7eb!important;border-right:1px solid #e5e7eb!important;border-radius:0!important;padding:0!important;text-align:center;font:700 14px/1 Arial,sans-serif;appearance:textfield;-moz-appearance:textfield;background:#fff}
.lcf-qty-input::-webkit-inner-spin-button,.lcf-qty-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.lcf-buy-button,.lcf-choose-options{width:100%;box-sizing:border-box;min-height:42px;border:0;border-radius:10px;background:#2563eb;color:#fff!important;text-decoration:none!important;font-weight:800;font-size:.88rem;padding:9px 12px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 3px 0 #1e40af;transition:transform .12s ease,background .12s ease,box-shadow .12s ease}
.lcf-buy-button:hover,.lcf-buy-button:focus-visible,.lcf-choose-options:hover,.lcf-choose-options:focus-visible{background:#1d4ed8;color:#fff!important}
.lcf-buy-button:active{transform:translateY(2px);box-shadow:0 1px 0 #1e40af}
.lcf-product-buy.is-adding .lcf-buy-button{opacity:.72;cursor:progress}
.lcf-product-buy.is-added .lcf-buy-button{background:#16a34a;box-shadow:0 3px 0 #166534}
.lcf-buy-feedback{min-height:1em;font-size:.76rem;color:#166534}
.lcf-out-of-stock{display:inline-flex;align-items:center;min-height:38px;color:#6b7280;font-size:.85rem;font-weight:700}
@media(max-width:700px){
  .lcf-product-buy{grid-template-columns:1fr}
  .lcf-qty{grid-template-columns:1fr 52px 1fr;width:100%}
  .lcf-qty-input{width:52px}
  .lcf-buy-button,.lcf-choose-options{width:100%;box-sizing:border-box}
}

/* Barra da sacola após adicionar produto */
.lcf-cart-notice[hidden]{display:none!important}
.lcf-cart-notice{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:1000001;
    padding:0 16px 16px;
    pointer-events:none;
    transform:translateY(120%);
    opacity:0;
    transition:transform .22s ease,opacity .22s ease;
}
.lcf-cart-notice.is-visible{
    transform:translateY(0);
    opacity:1;
}
.lcf-cart-notice-inner{
    width:min(760px,100%);
    min-height:72px;
    margin:0 auto;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:14px 16px 14px 20px;
    border:1px solid #dbeafe;
    border-radius:16px;
    background:#fff;
    box-shadow:0 18px 50px rgba(15,23,42,.22);
    pointer-events:auto;
}
.lcf-cart-notice-message{
    min-width:0;
    color:#111827;
    font-size:1rem;
    font-weight:800;
    line-height:1.35;
}
.lcf-cart-notice-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex:0 0 auto;
}
.lcf-cart-notice-button{
    min-height:42px;
    box-sizing:border-box;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 17px;
    border-radius:10px;
    background:#2563eb;
    color:#fff!important;
    text-decoration:none!important;
    font-weight:800;
    box-shadow:0 3px 0 #1e40af;
}
.lcf-cart-notice-button:hover,
.lcf-cart-notice-button:focus-visible{
    background:#1d4ed8;
    color:#fff!important;
}
.lcf-cart-notice-close{
    width:38px;
    height:38px;
    flex:0 0 38px;
    border:0;
    border-radius:50%;
    background:#f3f4f6;
    color:#374151;
    font-size:23px;
    line-height:1;
    cursor:pointer;
}
.lcf-cart-notice-close:hover,
.lcf-cart-notice-close:focus-visible{
    background:#e5e7eb;
}
@media(max-width:600px){
    .lcf-cart-notice{padding:0 10px 10px}
    .lcf-cart-notice-inner{
        align-items:stretch;
        flex-direction:column;
        gap:10px;
        padding:14px;
        border-radius:14px;
    }
    .lcf-cart-notice-message{
        padding-right:36px;
        font-size:.95rem;
    }
    .lcf-cart-notice-actions{
        width:100%;
    }
    .lcf-cart-notice-button{
        flex:1 1 auto;
        width:100%;
    }
    .lcf-cart-notice-close{
        position:absolute;
        right:20px;
        top:12px;
    }
}
@media(prefers-reduced-motion:reduce){
    .lcf-cart-notice{transition:none}
}

/* v0.15.1 — Carrossel compacto estilo app/delivery */
.lcf-product-page{
    gap:28px;
}
.lcf-product-section-head{
    margin-bottom:10px;
}
.lcf-product-section-head h2{
    font-size:1.2rem;
}
.lcf-product-carousel{
    grid-auto-columns:clamp(142px,16.5vw,180px)!important;
    gap:10px!important;
    padding:2px 18px 10px 2px!important;
    scroll-padding-inline:2px;
}
.lcf-product-item{
    border-radius:12px!important;
    box-shadow:0 2px 8px rgba(15,23,42,.06)!important;
}
.lcf-product-image{
    aspect-ratio:1/1!important;
}
.lcf-product-info{
    padding:8px 9px 10px!important;
    gap:5px!important;
}
.lcf-product-info h3{
    font-size:.82rem!important;
    line-height:1.2!important;
    min-height:2.4em;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.lcf-product-price{
    font-size:.9rem!important;
    line-height:1.15;
}
.lcf-product-buy{
    gap:5px!important;
    margin-top:1px!important;
}
.lcf-qty{
    grid-template-columns:30px 38px 30px!important;
    width:auto!important;
    justify-self:start;
    border-radius:8px!important;
}
.lcf-qty button{
    min-height:30px!important;
    font-size:15px!important;
}
.lcf-qty-input{
    width:38px!important;
    font-size:12px!important;
}
.lcf-buy-button,
.lcf-choose-options{
    min-height:32px!important;
    padding:6px 8px!important;
    border-radius:8px!important;
    font-size:.76rem!important;
    box-shadow:0 2px 0 #1e40af!important;
}
.lcf-buy-feedback{
    min-height:0!important;
    font-size:.68rem!important;
    line-height:1.1;
}
.lcf-product-more-wrap{
    margin-top:12px!important;
}
.lcf-product-more{
    min-height:36px!important;
    padding:7px 13px!important;
    font-size:.82rem!important;
}
.lcf-product-carousel-controls button{
    width:32px!important;
    height:32px!important;
    font-size:20px!important;
}

/* Tablet: cerca de 5 cards */
@media(max-width:900px){
    .lcf-product-carousel{
        grid-auto-columns:calc((100% - 38px) / 4.35)!important;
        gap:9px!important;
        padding-right:22px!important;
    }
}

/* Celular: ~4 cards completos + metade do quinto */
@media(max-width:600px){
    .lcf-product-page{
        gap:24px;
        margin:20px 0;
    }
    .lcf-product-section-head{
        margin-bottom:8px;
    }
    .lcf-product-section-head h2{
        font-size:1.05rem!important;
    }
    .lcf-product-carousel{
        grid-auto-columns:calc((100% - 30px) / 4.45)!important;
        gap:7px!important;
        padding:2px 28px 8px 2px!important;
        scroll-snap-type:x proximity!important;
    }
    .lcf-product-item{
        border-radius:10px!important;
    }
    .lcf-product-info{
        padding:6px 6px 8px!important;
        gap:4px!important;
    }
    .lcf-product-info h3{
        font-size:.68rem!important;
        line-height:1.15!important;
        min-height:2.3em;
    }
    .lcf-product-price{
        font-size:.72rem!important;
    }
    .lcf-product-price del{
        display:none;
    }
    .lcf-qty{
        grid-template-columns:24px 30px 24px!important;
        width:auto!important;
        border-radius:7px!important;
    }
    .lcf-qty button{
        min-height:27px!important;
        font-size:13px!important;
    }
    .lcf-qty-input{
        width:30px!important;
        font-size:11px!important;
    }
    .lcf-buy-button,
    .lcf-choose-options{
        min-height:29px!important;
        padding:5px 4px!important;
        border-radius:7px!important;
        font-size:.64rem!important;
        white-space:nowrap;
    }
    .lcf-buy-feedback{
        display:none;
    }
    .lcf-product-carousel-controls{
        display:none!important;
    }
    .lcf-product-more{
        min-height:34px!important;
        padding:6px 11px!important;
        font-size:.75rem!important;
    }
}

/* Telas muito estreitas: ainda mantém 3,5+ cards para reforçar o carrossel */
@media(max-width:380px){
    .lcf-product-carousel{
        grid-auto-columns:calc((100% - 24px) / 3.75)!important;
        gap:6px!important;
        padding-right:25px!important;
    }
}


/* =========================================================
   v0.15.4 — Compatibilidade da página de produto WooCommerce
   ========================================================= */

/*
 * Modo WooCommerce padrão (WPC Price by Quantity desativado).
 * O objetivo é neutralizar layouts agressivos do tema e manter quantidade
 * e botão alinhados/responsivos.
 */
body.lcf-buy-layout-native.single-product form.cart{
    display:flex!important;
    align-items:stretch!important;
    gap:10px!important;
    flex-wrap:wrap!important;
    width:100%!important;
    max-width:100%!important;
}

body.lcf-buy-layout-native.single-product form.cart .quantity{
    display:grid!important;
    grid-template-columns:38px minmax(54px,72px) 38px!important;
    align-items:stretch!important;
    width:auto!important;
    max-width:148px!important;
    min-width:0!important;
    flex:0 0 auto!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #d1d5db!important;
    border-radius:10px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:none!important;
}

/* Compatibilidade com temas/plugins que criam botões +/- dentro de .quantity */
body.lcf-buy-layout-native.single-product form.cart .quantity > button,
body.lcf-buy-layout-native.single-product form.cart .quantity .minus,
body.lcf-buy-layout-native.single-product form.cart .quantity .plus{
    position:static!important;
    inset:auto!important;
    width:38px!important;
    min-width:38px!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#f8fafc!important;
    color:#111827!important;
    font-size:17px!important;
    line-height:1!important;
    box-shadow:none!important;
    transform:none!important;
}

body.lcf-buy-layout-native.single-product form.cart .quantity input.qty{
    position:static!important;
    width:100%!important;
    min-width:54px!important;
    max-width:72px!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0 4px!important;
    border:0!important;
    border-left:1px solid #e5e7eb!important;
    border-right:1px solid #e5e7eb!important;
    border-radius:0!important;
    background:#fff!important;
    color:#111827!important;
    text-align:center!important;
    font-size:15px!important;
    font-weight:700!important;
    line-height:42px!important;
    box-shadow:none!important;
    appearance:textfield!important;
    -moz-appearance:textfield!important;
}

body.lcf-buy-layout-native.single-product form.cart .quantity input.qty::-webkit-outer-spin-button,
body.lcf-buy-layout-native.single-product form.cart .quantity input.qty::-webkit-inner-spin-button{
    -webkit-appearance:none!important;
    margin:0!important;
}

body.lcf-buy-layout-native.single-product form.cart .single_add_to_cart_button{
    position:static!important;
    inset:auto!important;
    flex:1 1 180px!important;
    width:auto!important;
    max-width:100%!important;
    min-width:150px!important;
    min-height:42px!important;
    height:auto!important;
    margin:0!important;
    padding:9px 16px!important;
    border-radius:10px!important;
    white-space:normal!important;
    line-height:1.2!important;
    text-align:center!important;
    transform:none!important;
}

/*
 * Modo WPC: não interfere na lógica do plugin de quantidade/preços.
 * Apenas impede overflow horizontal e mantém o bloco dentro da tela.
 */
body.lcf-buy-layout-wpc.single-product form.cart,
body.lcf-buy-layout-wpc.single-product .wpcpq-wrap,
body.lcf-buy-layout-wpc.single-product [class*="wpcpq"]{
    max-width:100%!important;
    box-sizing:border-box!important;
}

body.lcf-buy-layout-wpc.single-product .wpcpq-wrap,
body.lcf-buy-layout-wpc.single-product [class*="wpcpq-table"]{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
}

/* Mobile: layout nativo vira uma composição de app, sem botão espremido. */
@media(max-width:600px){
    body.lcf-buy-layout-native.single-product form.cart{
        display:grid!important;
        grid-template-columns:minmax(0,1fr)!important;
        gap:9px!important;
    }

    body.lcf-buy-layout-native.single-product form.cart .quantity{
        grid-template-columns:42px minmax(0,1fr) 42px!important;
        width:100%!important;
        max-width:none!important;
    }

    body.lcf-buy-layout-native.single-product form.cart .quantity > button,
    body.lcf-buy-layout-native.single-product form.cart .quantity .minus,
    body.lcf-buy-layout-native.single-product form.cart .quantity .plus{
        width:42px!important;
        min-width:42px!important;
        height:42px!important;
        min-height:42px!important;
    }

    body.lcf-buy-layout-native.single-product form.cart .quantity input.qty{
        width:100%!important;
        max-width:none!important;
        min-width:0!important;
    }

    body.lcf-buy-layout-native.single-product form.cart .single_add_to_cart_button{
        width:100%!important;
        min-width:0!important;
        min-height:44px!important;
        padding:10px 14px!important;
        font-size:.95rem!important;
    }
}
