/* VASE 2026-11-02 | Apariencia configurable. Se carga DESPUÉS del CSS histórico.
   Selectores más específicos para que las reglas antiguas no vuelvan a estirar las fotos. */
[hidden] { display:none !important; }
.ecommerce-body .ecommerce-storefront {
    --store-bg: var(--ecom-bg, #f7f3ed);
    --store-surface: var(--ecom-surface, #fff);
    --store-ink: var(--ecom-ink, #181614);
    --store-accent: var(--vase-accent, #ed8200);
    background:var(--store-bg); color:var(--store-ink);
    min-height:100vh;
}
.ecommerce-body, .ecommerce-body .ecommerce-storefront .store-header { background:var(--ecom-bg, #f7f3ed); }
.ecommerce-body .ecommerce-storefront .store-header { border-bottom:0; }
.ecommerce-body .ecommerce-storefront .store-nav-clean {
    width:min(960px,calc(100% - 28px)) !important;
    margin-inline:auto !important;
    padding:12px 0 !important;
    justify-content:space-between !important;
}
.ecommerce-body .ecommerce-storefront .store-brand {
    margin:0 !important; min-width:0; font-weight:850; max-width:calc(100% - 20px);
}
.ecommerce-body .ecommerce-storefront .store-brand img { background:var(--store-surface); }
.ecommerce-body .ecommerce-storefront .store-tools {
    margin:8px auto 22px !important;
    max-width:960px;
}
.ecommerce-body .ecommerce-storefront .store-tools .store-search,
.ecommerce-body .ecommerce-storefront .store-category-trigger,
.ecommerce-body .ecommerce-storefront .store-category-menu { background:var(--store-surface); color:var(--store-ink); }
.ecommerce-body .ecommerce-storefront .store-layout-clean { width:min(960px,calc(100% - 28px)); }
.ecommerce-body .ecommerce-storefront .products-grid {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; gap:18px;
}
.ecommerce-body .ecommerce-storefront .product-card {
    display:flex; flex-direction:column; height:100%; min-width:0; min-height:410px;
    overflow:hidden; background:var(--store-surface); color:var(--store-ink);
}
/* Fotografía igual para todo producto, independientemente del formato original. */
.ecommerce-body .ecommerce-storefront .product-img {
    width:100% !important; height:240px !important; min-height:240px !important;
    max-height:240px !important; aspect-ratio:auto !important;
    display:block !important; background:var(--store-surface) !important;
    border-radius:19px 19px 0 0; overflow:hidden !important;
}
.ecommerce-body .ecommerce-storefront .product-img img {
    width:100% !important; height:100% !important; max-width:none !important; max-height:none !important;
    display:block !important; object-fit:cover !important; object-position:center center !important;
    background:var(--store-surface) !important;
}
.ecommerce-body .ecommerce-storefront .product-info {
    padding:15px; gap:9px; flex:1; display:flex; flex-direction:column;
}
.ecommerce-body .ecommerce-storefront .product-info h3 { color:var(--store-ink); }
.ecommerce-body .ecommerce-storefront .product-price-row { margin-top:auto; }
.ecommerce-body .ecommerce-storefront .product-add,
.ecommerce-body .ecommerce-storefront .cart-floating-clean strong { background:var(--vase-accent-2,#181614); color:#fff; }
.ecommerce-body .ecommerce-storefront .product-card:focus-visible { outline:3px solid var(--vase-accent); outline-offset:2px; }
/* Ventana de compra compacta: la foto no tapa los extras ni la cantidad. */
.ecommerce-body .ecommerce-storefront .product-modal-card {
    width:min(640px,calc(100% - 24px));
    max-height:calc(100dvh - 30px); overflow-y:auto; overflow-x:hidden;
    border-radius:22px; margin:15px auto;
    overscroll-behavior:contain;
}
.ecommerce-body .ecommerce-storefront .modal-close {
    position:sticky; float:right; right:12px; top:10px; margin-bottom:-45px; margin-right:12px;
    z-index:11; border:1px solid #e6ddd2; background:#fff;
}
.ecommerce-body .ecommerce-storefront .modal-product-summary {
    display:flex; align-items:center; gap:16px;
    padding:19px 60px 17px 20px;
    border-bottom:1px solid var(--store-line,#e8e1d8);
    background:var(--store-surface);
}
.ecommerce-body .ecommerce-storefront .modal-product-img {
    flex:0 0 132px; width:132px !important; height:132px !important;
    max-height:132px !important; min-height:132px !important;
    aspect-ratio:1/1 !important; overflow:hidden !important;
    border-radius:14px !important; background:#f7f2eb !important;
    display:grid !important; place-items:center;
}
.ecommerce-body .ecommerce-storefront .modal-product-img img {
    width:100% !important; height:100% !important; max-height:100% !important;
    object-fit:contain !important; object-position:center !important;
    background:transparent !important;
}
.ecommerce-body .ecommerce-storefront .modal-product-title {
    flex:1; min-width:0; display:flex; flex-direction:column; gap:6px;
}
.ecommerce-body .ecommerce-storefront .modal-product-title h2 {
    font-size:clamp(1.2rem,3vw,1.5rem); margin:0; line-height:1.15; color:var(--store-ink);
}
.ecommerce-body .ecommerce-storefront .modal-product-title p {
    font-size:.87rem; color:#756c64; line-height:1.4; margin:5px 0 0;
}
.ecommerce-body .ecommerce-storefront .modal-product-title strong { font-size:1.12rem; color:var(--store-ink); }
.ecommerce-body .ecommerce-storefront .modal-product-body { padding:8px 20px 20px; }
.ecommerce-body .ecommerce-storefront .extra-group { margin-top:12px; border-color:#e7ded3; padding:14px; border-radius:14px; }
.ecommerce-body .ecommerce-storefront .extra-group.is-required { border-color:#e7ded3; box-shadow:none; }
.ecommerce-body .ecommerce-storefront .extra-group.needs-selection { border-color:#e6c7b7; }
.ecommerce-body .ecommerce-storefront .extra-group .extra-option { border-radius:12px; min-width:0; }
.ecommerce-body .ecommerce-storefront .extra-group .extra-option:has(input:checked) {
    background:color-mix(in srgb, var(--vase-accent) 12%, white);
    border-color:var(--vase-accent);
}
.ecommerce-body .ecommerce-storefront .extra-group .extra-option input { accent-color:var(--vase-accent-2); }
.ecommerce-body .ecommerce-storefront .modal-no-extras { margin-top:18px; color:#766d65; }
.ecommerce-body .ecommerce-storefront .qty-row { margin-top:14px; }
.ecommerce-body .ecommerce-storefront .modal-error:empty,
.ecommerce-body .ecommerce-storefront .modal-selection-hint:empty { display:none; }
.ecommerce-body .ecommerce-storefront .modal-purchase-actions {
    position:sticky; bottom:0; z-index:5; padding:12px 0 6px; margin-top:8px;
    background:var(--store-surface); display:grid; grid-template-columns:1fr;
}
.ecommerce-body .ecommerce-storefront .modal-purchase-actions .add-modal-btn,
.ecommerce-body .ecommerce-storefront .modal-purchase-actions .go-cart-btn {
    min-height:50px; margin:0; background:var(--vase-accent-2,#181614); color:white;
    border-radius:13px; border:0; font-size:.96rem;
}
.ecommerce-body .ecommerce-storefront .modal-purchase-actions .go-cart-btn { background:#fff; color:var(--store-ink); border:1px solid #d9d0c6; }
.ecommerce-body .ecommerce-storefront .modal-purchase-actions .add-modal-btn:disabled {
    background:#e0dfdc !important; color:#77736e !important; box-shadow:none !important;
    cursor:not-allowed !important; opacity:1 !important; transform:none !important;
}
.ecommerce-body .ecommerce-storefront .modal-selection-hint {
    margin:3px 0 0; color:#986028; font-size:.79rem; line-height:1.45;
}
.ecommerce-body .ecommerce-storefront .checkout-form input,
.ecommerce-body .ecommerce-storefront .checkout-form select,
.ecommerce-body .ecommerce-storefront .checkout-form textarea { background:var(--store-surface); }
.ecommerce-body .ecommerce-storefront .delivery-info { margin:0; padding:10px 12px; font-size:.84rem; color:#685849; border-radius:10px; background:#f6f0e8; }
.ecommerce-body .ecommerce-storefront .delivery-charge {
    display:flex; justify-content:space-between; align-items:center; padding:9px 0 2px;
    font-size:.92rem;
}
.ecommerce-body .ecommerce-storefront .checkout-btn:disabled {
    background:#d7d2cb !important; color:#68635b !important;
    cursor:not-allowed; opacity:1;
}
.ecommerce-body .ecommerce-storefront .cart-drawer { background:var(--store-surface); color:var(--store-ink); }
@media(max-width:760px) {
    .ecommerce-body .ecommerce-storefront .store-nav-clean { width:calc(100% - 24px) !important; }
    .ecommerce-body .ecommerce-storefront .store-brand { margin-left:0 !important; margin-right:auto !important; }
    .ecommerce-body .ecommerce-storefront .store-tools { width:calc(100% - 24px); margin-top:8px !important; }
    .ecommerce-body .ecommerce-storefront .store-layout-clean { width:calc(100% - 24px); }
    .ecommerce-body .ecommerce-storefront .products-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .ecommerce-body .ecommerce-storefront .product-img {
        height:170px !important; min-height:170px !important; max-height:170px !important;
    }
    .ecommerce-body .ecommerce-storefront .product-card { min-height:0; border-radius:15px; }
    .ecommerce-body .ecommerce-storefront .product-info { padding:11px; }
    .ecommerce-body .ecommerce-storefront .product-price-row { flex-wrap:wrap; }
    .ecommerce-body .ecommerce-storefront .product-add { min-width:0; }
    .ecommerce-body .ecommerce-storefront .product-modal-card { width:calc(100% - 12px); max-height:calc(100dvh - 12px); margin:6px auto; border-radius:17px; }
    .ecommerce-body .ecommerce-storefront .modal-product-summary { padding:15px 48px 14px 13px; gap:12px; }
    .ecommerce-body .ecommerce-storefront .modal-product-img {
        flex-basis:94px; width:94px !important; height:94px !important; min-height:94px !important; max-height:94px !important;
    }
    .ecommerce-body .ecommerce-storefront .modal-product-body { padding:6px 13px 16px; }
    .ecommerce-body .ecommerce-storefront .modal-close { right:6px; top:5px; margin-right:6px; }
    .ecommerce-body .ecommerce-storefront .extra-group { padding:11px; }
    .ecommerce-body .ecommerce-storefront .modal-purchase-actions { padding-top:9px; }
    .ecommerce-body .ecommerce-storefront .cart-drawer { width:100%; max-width:100%; }
}
@media(max-width:380px) {
    .ecommerce-body .ecommerce-storefront .products-grid { grid-template-columns:1fr; }
    .ecommerce-body .ecommerce-storefront .product-img { height:210px !important; min-height:210px !important; max-height:210px !important; }
}

.ecommerce-body .ecommerce-storefront .store-closed-banner {
    width:min(960px,calc(100% - 28px)); margin:12px auto; padding:13px 17px;
    border:1px solid #eac6a3; border-radius:13px;
    color:#874f19; background:#fff2e5; font-weight:750;
}
