/* El Papa's · Ajustes 16-11-2026 · Solo tienda pública.
   Capa final aislada: no modifica POS, pagos, pedidos ni formularios. */
.ecommerce-body .ecommerce-storefront .store-menu-bar{
    position:relative;z-index:30;display:flex;align-items:center;
    width:min(1200px,calc(100% - 36px))!important;margin:0 auto 31px!important;
    overflow:visible!important;
}
.ecommerce-body .ecommerce-storefront .store-category-tabs{display:none!important}
.ecommerce-body .ecommerce-storefront .store-tools{
    display:flex!important;align-items:center!important;gap:15px!important;
    flex:1 1 100%!important;width:100%!important;max-width:none!important;
    min-width:0;margin:0!important;
}
.ecommerce-body .ecommerce-storefront .store-category-picker{
    position:relative!important;display:block!important;width:clamp(240px,30%,335px)!important;
    min-width:230px!important;flex:0 1 335px!important;
}
.ecommerce-body .ecommerce-storefront .store-category-trigger{
    width:100%!important;min-height:58px!important;padding:9px 14px!important;
    display:flex!important;align-items:center!important;gap:12px!important;
    border:1px solid #e9d3b9!important;border-radius:17px!important;
    background:#fffdf9!important;color:#633019!important;
    box-shadow:0 7px 20px rgba(108,65,31,.06)!important;
    cursor:pointer;transition:border-color .2s,box-shadow .2s;
}
.ecommerce-body .ecommerce-storefront .store-category-trigger:is(:hover,:focus-visible),
.ecommerce-body .ecommerce-storefront .store-category-picker.open .store-category-trigger{
    border-color:#d7a267!important;box-shadow:0 0 0 4px rgba(244,179,76,.13)!important;
}
.ecommerce-body .ecommerce-storefront .store-category-trigger>svg:first-child{flex:0 0 19px;color:#914d26}
.ecommerce-body .ecommerce-storefront .store-category-trigger-text{display:flex;flex-direction:column;min-width:0;flex:1;text-align:left;gap:1px}
.ecommerce-body .ecommerce-storefront .store-category-label{
    font-size:.69rem!important;line-height:1.2;font-weight:700;letter-spacing:.025em;color:#997461;
}
.ecommerce-body .ecommerce-storefront #categoryCurrent{
    display:block;min-width:0;font-weight:900!important;font-size:.99rem;white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis;color:#653016;
}
.ecommerce-body .ecommerce-storefront .store-category-chevron{flex:0 0 18px;transition:transform .2s}
.ecommerce-body .ecommerce-storefront .store-category-menu{
    display:flex!important;flex-direction:column!important;gap:7px!important;position:absolute!important;
    top:calc(100% + 9px)!important;left:0!important;right:auto!important;width:min(390px,calc(100vw - 30px))!important;
    padding:11px!important;z-index:150!important;max-height:min(440px,68vh);
    background:#fff!important;border:1px solid #e9dacc!important;border-radius:17px!important;
    box-shadow:0 18px 48px rgba(71,39,20,.20)!important;
    overflow:hidden!important;visibility:hidden;opacity:0;pointer-events:none;
    transform:translateY(-6px);transition:opacity .16s,transform .16s,visibility .16s;
}
.ecommerce-body .ecommerce-storefront .store-category-picker.open .store-category-menu{
    visibility:visible!important;opacity:1!important;pointer-events:auto;transform:translateY(0)!important;
}
.ecommerce-body .ecommerce-storefront .store-category-search{
    display:flex;align-items:center;gap:8px;padding:5px 11px;min-height:44px;
    border:1px solid #e9dacc;border-radius:11px;background:#fdf9f4;color:#8d5e40;
}
.ecommerce-body .ecommerce-storefront .store-category-search input{
    width:100%;height:34px;border:0!important;outline:0!important;box-shadow:none!important;
    background:transparent!important;color:#633019;font:inherit;font-size:.89rem;
}
.ecommerce-body .ecommerce-storefront .store-category-options{
    display:flex;flex-direction:column;gap:3px;min-height:0;max-height:320px;overflow-y:auto;overscroll-behavior:contain;
    scrollbar-width:thin;padding-right:2px;
}
.ecommerce-body .ecommerce-storefront .store-category-option{
    width:100%;display:flex!important;justify-content:space-between;align-items:center;gap:10px;
    border:0!important;border-radius:10px!important;padding:11px 13px!important;
    font-size:.9rem!important;font-weight:750!important;line-height:1.35!important;cursor:pointer;
    background:transparent!important;color:#61321c!important;
}
.ecommerce-body .ecommerce-storefront .store-category-option:is(:hover,:focus-visible){background:#fff3e2!important;outline:none}
.ecommerce-body .ecommerce-storefront .store-category-option.active{background:#f8e1bd!important;color:#5f2c10!important}
.ecommerce-body .ecommerce-storefront .store-category-empty{padding:13px!important;color:#846a58;text-align:center;font-size:.88rem}
.ecommerce-body .ecommerce-storefront .store-search{
    min-width:0;flex:1 1 auto;max-width:none;width:auto!important;min-height:58px!important;
    padding-inline:17px!important;border-radius:17px!important;
}
.ecommerce-body .ecommerce-storefront .store-search input{font-size:.93rem!important}

/* Tarjetas uniformes: precio a la izquierda y CTA a la derecha. */
.ecommerce-body .ecommerce-storefront .product-card{
    padding:12px!important;border-radius:23px!important;
    box-shadow:0 10px 25px rgba(98,56,23,.09)!important;
}
.ecommerce-body .ecommerce-storefront .product-img{
    height:245px!important;min-height:245px!important;max-height:245px!important;border-radius:17px!important;
    background:#fff8ef!important;
}
.ecommerce-body .ecommerce-storefront .product-img img{
    padding:4px!important;object-fit:contain!important;object-position:center center!important;
}
.ecommerce-body .ecommerce-storefront .product-info{width:100%!important;min-width:0!important;box-sizing:border-box;align-self:stretch!important;padding:16px 8px 5px!important;gap:8px!important}
.ecommerce-body .ecommerce-storefront .product-info h3{font-size:1.22rem!important}
.ecommerce-body .ecommerce-storefront .product-price-row{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    align-self:stretch!important;width:100%!important;box-sizing:border-box;
    gap:8px 12px!important;padding:14px 0 1px!important;margin-top:auto!important;
    border-top:1px solid #f0e4d7;flex-wrap:wrap!important;
}
.ecommerce-body .ecommerce-storefront .product-price-wrap{
    display:flex;align-items:center;flex:0 0 auto;min-width:0;
}
.ecommerce-body .ecommerce-storefront .product-price{
    font-size:clamp(1.2rem,1.8vw,1.5rem)!important;font-weight:950!important;
    white-space:nowrap!important;color:#642d16!important;line-height:1.2!important;
}
.ecommerce-body .ecommerce-storefront .product-add{
    display:inline-flex!important;gap:7px!important;align-items:center!important;justify-content:center!important;
    flex:0 0 auto!important;width:auto!important;min-width:0!important;height:auto!important;
    min-height:46px!important;padding:11px 15px!important;border-radius:13px!important;
    background:#f6b643!important;color:#512909!important;
    font-size:.9rem!important;box-shadow:0 4px 0 rgba(114,60,17,.06)!important;
    margin-inline-start:auto;white-space:nowrap;box-sizing:border-box;
}
@media(max-width:720px){
    .ecommerce-body .ecommerce-storefront .product-price-row{gap:8px!important;padding-top:12px!important}
    .ecommerce-body .ecommerce-storefront .product-add{padding:10px 12px!important;font-size:.83rem!important}
}

/* Foto protagonista: cubre el encabezado del modal; título legible sobre degradado. */
.ecommerce-body .ecommerce-storefront .product-modal-card{
    width:min(660px,calc(100% - 24px))!important;
    max-height:calc(100dvh - 28px)!important;border-radius:24px!important;overflow:auto!important;
}
.ecommerce-body .ecommerce-storefront .modal-product-summary{
    position:relative!important;isolation:isolate;display:block!important;
    height:320px!important;min-height:320px!important;max-height:none!important;
    padding:0!important;margin:0!important;overflow:hidden!important;
    border:0!important;border-radius:22px 22px 0 0!important;
    background:linear-gradient(145deg,#aa753e,#4c2517)!important;
}
.ecommerce-body .ecommerce-storefront .modal-product-img{
    position:absolute!important;inset:0!important;display:flex!important;align-items:center;justify-content:center;
    flex:none!important;width:100%!important;height:100%!important;
    min-height:100%!important;max-height:none!important;min-width:100%!important;
    aspect-ratio:auto!important;border-radius:0!important;margin:0!important;
    padding:0!important;overflow:hidden!important;background:transparent!important;
}
.ecommerce-body .ecommerce-storefront .modal-product-img img{
    display:block!important;width:100%!important;height:100%!important;max-width:none!important;
    max-height:none!important;object-fit:cover!important;object-position:center 45%!important;
    margin:0!important;padding:0!important;border-radius:0!important;
    background:transparent!important;transform:none!important;filter:none!important;
}
.ecommerce-body .ecommerce-storefront .modal-product-img .product-placeholder{font-size:5rem}
.ecommerce-body .ecommerce-storefront .modal-product-summary::after{
    content:""!important;position:absolute;z-index:1;inset:0;pointer-events:none;
    display:block!important;background:linear-gradient(180deg,rgba(26,11,4,.05) 20%,rgba(26,11,4,.22) 46%,rgba(26,11,4,.9) 100%)!important;
}
.ecommerce-body .ecommerce-storefront .modal-product-title{
    position:absolute!important;z-index:2;left:0;right:0;bottom:0;
    display:flex!important;flex-direction:column!important;gap:5px!important;
    min-width:0;padding:34px 26px 22px!important;
    text-shadow:0 2px 9px rgba(0,0,0,.43);
}
.ecommerce-body .ecommerce-storefront .modal-product-title h2{
    font-size:clamp(1.65rem,4vw,2.15rem)!important;line-height:1.1!important;
    font-weight:900!important;letter-spacing:-.035em!important;color:#fff!important;margin:0!important;
}
.ecommerce-body .ecommerce-storefront .modal-product-title p{
    color:#fff9f0!important;line-height:1.45!important;font-size:.96rem!important;
    margin:3px 0 0!important;max-width:90%;
}
.ecommerce-body .ecommerce-storefront .modal-product-title strong{
    display:inline-block;align-self:flex-start;margin-top:4px!important;
    font-size:1.43rem!important;line-height:1.25!important;font-weight:950!important;color:#fff!important;
}
.ecommerce-body .ecommerce-storefront .modal-close{
    position:sticky!important;z-index:20!important;top:12px!important;right:12px!important;
    float:right!important;margin:12px 12px -54px 0!important;
    background:#fff!important;color:#3f2416!important;border:0!important;
    box-shadow:0 4px 15px rgba(0,0,0,.13)!important;
}
.ecommerce-body .ecommerce-storefront .modal-product-body{padding:15px 20px 22px!important}
.ecommerce-body .ecommerce-storefront .modal-product-body>.ecom-retracto-notice{
    margin:0 0 10px!important;display:block!important;
}
@media(max-width:950px){
    .ecommerce-body .ecommerce-storefront .product-img{height:230px!important;min-height:230px!important;max-height:230px!important}
}
@media(max-width:720px){
    .ecommerce-body .ecommerce-storefront .store-menu-bar{width:calc(100% - 24px)!important;margin-bottom:22px!important}
    .ecommerce-body .ecommerce-storefront .store-tools{flex-wrap:wrap!important;gap:10px!important}
    .ecommerce-body .ecommerce-storefront .store-category-picker{flex:1 1 240px!important;width:100%!important;min-width:0!important}
    .ecommerce-body .ecommerce-storefront .store-search{flex:1 1 240px!important;width:100%!important}
    .ecommerce-body .ecommerce-storefront .product-img{height:195px!important;min-height:195px!important;max-height:195px!important}
    .ecommerce-body .ecommerce-storefront .modal-product-summary{height:275px!important;min-height:275px!important}
    .ecommerce-body .ecommerce-storefront .modal-product-title{padding:35px 19px 17px!important}
    .ecommerce-body .ecommerce-storefront .modal-product-body{padding:12px 15px 19px!important}
}
@media(max-width:510px){
    .ecommerce-body .ecommerce-storefront .product-img{height:235px!important;min-height:235px!important;max-height:235px!important}
    .ecommerce-body .ecommerce-storefront .modal-product-summary{height:250px!important;min-height:250px!important}
    .ecommerce-body .ecommerce-storefront .modal-product-title h2{font-size:1.55rem!important}
    .ecommerce-body .ecommerce-storefront .modal-product-title p{font-size:.84rem!important}
    .ecommerce-body .ecommerce-storefront .modal-product-title strong{font-size:1.22rem!important}
}
@media(prefers-reduced-motion:reduce){
    .ecommerce-body .ecommerce-storefront .store-category-menu,
    .ecommerce-body .ecommerce-storefront .store-category-trigger{transition:none!important}
}

/* Pie de página: identidad completa El Papa's (personaje + letras), reutilizando
   las dos imágenes editables que ya usa la cabecera de la tienda. */
.ecommerce-body .ecommerce-storefront .store-footer-about .store-footer-identity{
    display:flex;align-items:center;justify-content:flex-start;gap:11px;
    width:100%;max-width:350px;min-width:0;margin:0 0 10px;
}
.ecommerce-body .ecommerce-storefront .store-footer-about .store-footer-identity img{
    display:block!important;filter:none!important;object-fit:contain!important;
    object-position:center!important;margin:0!important;
    max-width:100%!important;min-width:0!important;
}
.ecommerce-body .ecommerce-storefront .store-footer-about .store-footer-identity .store-footer-character{
    flex:0 0 88px!important;width:88px!important;height:102px!important;
}
.ecommerce-body .ecommerce-storefront .store-footer-about .store-footer-identity .store-footer-lettering{
    flex:1 1 0!important;width:auto!important;height:135px!important;
}
@media(max-width:510px){
    .ecommerce-body .ecommerce-storefront .store-footer-about .store-footer-identity{
        gap:8px;max-width:320px;
    }
    .ecommerce-body .ecommerce-storefront .store-footer-about .store-footer-identity .store-footer-character{
        flex-basis:74px!important;width:74px!important;height:90px!important;
    }
    .ecommerce-body .ecommerce-storefront .store-footer-about .store-footer-identity .store-footer-lettering{
        height:113px!important;
    }
}

/* Tienda cerrada: catálogo visible, acción Agregar desactivada. */
.ecommerce-body .ecommerce-storefront .product-card:disabled{
    opacity:1!important;cursor:default!important;transform:none!important;
    box-shadow:0 10px 25px rgba(98,56,23,.09)!important;
}
.ecommerce-body .ecommerce-storefront .product-card:disabled .product-add{
    background:#e9e5df!important;color:#746b61!important;
    box-shadow:none!important;cursor:not-allowed!important;
}
.ecommerce-body .ecommerce-storefront .cart-qty button:disabled{
    opacity:.55;cursor:not-allowed;
}
