@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');
/* =========================================
   VARIABLES Y ESTILOS GENERALES
========================================= */

* {
    box-sizing: border-box;
}

:root {
    --accent: #c98796;
    --accent-dark: #a96576;
    --accent-soft: #f3dde2;
    --page: #fff7f8;
    --ink: #59464a;
    --muted: #92777d;
    --border: #ead1d7;
    --white: #fff;
    --danger: #c85d6b;
    --success: #32835f;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Arial, sans-serif;
}


/* =========================================
   ENCABEZADO
========================================= */

.site-header {
    background: var(--accent-soft);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 16px;
    padding: 10px 15px;
    border-radius: 9px;
    background: #ffffffc9;
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.site-header img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================
   BUSCADOR Y CATEGORÍAS
========================================= */

.catalog-tools {
    max-width: 1250px;
    margin: 28px auto 0;
    padding: 0 22px;
}

.search-wrap {
    max-width: 560px;
    margin: 0 auto 18px;
}

#productSearch {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    outline: none;
}

#productSearch:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(
        in srgb,
        var(--accent) 18%,
        transparent
    );
}

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}

.category-btn,
.value-option {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--accent-dark);
    padding: 9px 15px;
    border-radius: 22px;
    cursor: pointer;
    font-weight: 700;
    transition: .18s;
}

.category-btn:hover,
.category-btn.active,
.value-option:hover,
.value-option.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.product-count {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin: 15px 0 0;
}

.catalog-message {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    min-height: 18px;
}


/* =========================================
   CONTENEDOR DE PRODUCTOS
========================================= */

.products {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(255px, 1fr)
    );
    gap: 24px;
    padding: 32px 22px 45px;
}


/* =========================================
   TARJETAS DE PRODUCTOS
========================================= */

.product-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid color-mix(
        in srgb,
        var(--border) 75%,
        transparent
    );
    border-radius: 18px;
    box-shadow: 0 5px 18px #60404a12;
    transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px #60404a1c;
}


/* =========================================
   IMÁGENES DE PRODUCTOS
========================================= */

.product-image-wrap {
    height: 260px;
    background: #fffafb;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-placeholder {
    color: #a99499;
    font-size: 14px;
}


/* =========================================
   INFORMACIÓN DEL PRODUCTO
========================================= */

.product-content {
    padding: 17px 18px 20px;
}

.product-category {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    margin: 0 0 7px;
}

.product-content h2 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0;
    color: var(--ink);
}

.product-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    margin: 8px 0 0;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-dark);
    margin: 13px 0;
}


/* =========================================
   VARIANTES Y OPCIONES
========================================= */

.variant-group {
    margin: 13px 0;
    text-align: left;
}

.variant-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-dark);
    margin-bottom: 7px;
}

.value-options,
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.value-option {
    padding: 7px 12px;
    font-size: 13px;
}

.value-option.sold-out {
    opacity: .35;
    text-decoration: line-through;
    cursor: not-allowed;
    background: #f2eeee;
    color: #796f71;
}


/* =========================================
   OPCIONES DE COLOR
========================================= */

.color-option {
    width: 34px;
    height: 34px;
    padding: 4px;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.color-option .swatch {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: var(--swatch);
    border: 1px solid #0002;
    display: block;
}

.color-option.selected {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 2px white inset;
}

.color-option.sold-out {
    opacity: .3;
    filter: grayscale(1);
    cursor: not-allowed;
}


/* =========================================
   DISPONIBILIDAD Y EXISTENCIAS
========================================= */

.availability {
    min-height: 26px;
    margin: 12px 0 9px;
}

.stock-note {
    font-size: 12px;
    color: var(--success);
    font-weight: 700;
}

.stock-badge {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 20px;
    background: #f7dfe2;
    color: #a33e4c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
}


/* =========================================
   BOTÓN AGREGAR AL CARRITO
========================================= */

.add-button {
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.add-button:hover {
    background: var(--accent-dark);
}

.add-button:disabled {
    background: #cfc5c7;
    color: #fff;
    cursor: not-allowed;
}

.is-unavailable .product-image {
    opacity: .65;
}


/* =========================================
   ESTADO SIN PRODUCTOS
========================================= */

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 55px 20px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 18px;
}

.empty-state h2 {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: 22px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}


/* =========================================
   CARRITO
========================================= */

.cart {
    max-width: 850px;
    margin: 0 auto 48px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 5px 18px #60404a0d;
}

.cart h2 {
    margin: 0 0 15px;
    color: var(--accent-dark);
}

.empty-cart {
    color: var(--muted);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #f0e5e8;
}

.cart-item strong {
    display: block;
}

.cart-item small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.remove-button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f6e4e7;
    color: #9c4c5c;
    font-size: 20px;
    cursor: pointer;
}

.total {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-dark);
    margin-top: 18px;
}

.whatsapp-btn,
.share-button {
    display: inline-block;
    margin-top: 16px;
    padding: 13px 22px;
    border: 0;
    border-radius: 10px;
    background: #25b96b;
    color: white;
    font-weight: 800;
    cursor: pointer;
}


/* =========================================
   MODAL Y FACTURA
========================================= */

.invoice-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #0009;
}

.invoice-modal.open {
    display: flex;
}

.invoice-dialog {
    width: min(500px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 20px;
    background: #fff;
    border-radius: 18px;
}

.invoice {
    text-align: center;
    color: #444;
    font-family: Arial, sans-serif;
}

.invoice p {
    text-align: left;
    line-height: 1.55;
}

.invoice hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}

.close-button {
    margin: 16px 0 0 8px;
    padding: 12px 17px;
    border: 0;
    border-radius: 9px;
    background: #e9e1e3;
    color: #59464a;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================
   ACCESIBILIDAD
========================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================
   PIE DE PÁGINA
========================================= */

.site-footer {
    text-align: center;
    padding: 34px 20px 30px;
    color: var(--muted);
    font-size: 13px;
    background: color-mix(in srgb, var(--page) 78%, white);
    border-top: 1px solid var(--line);
}

.footer-inner { display:flex; flex-direction:column; align-items:center; gap:12px; }
.footer-brand { color:var(--accent-dark); font-family:Georgia,serif; font-size:19px; font-weight:700; text-decoration:none; }
.footer-socials { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; }
.footer-socials a { display:inline-flex; align-items:center; gap:7px; padding:8px 13px; border:1px solid var(--line); border-radius:999px; color:var(--accent-dark); background:#fff; text-decoration:none; font-size:12px; font-weight:700; transition:background .2s, transform .2s; }
.footer-socials a:hover { background:var(--accent); color:#fff; transform:translateY(-2px); }
.footer-social-icon { display:inline-grid; place-items:center; width:19px; height:19px; border:1.5px solid currentColor; border-radius:6px; font-size:15px; line-height:1; font-weight:800; }
.footer-social-icon.facebook { border:0; border-radius:50%; font-family:Arial,sans-serif; font-size:18px; }
.footer-inner small { font-size:11px; }
.catalog-whatsapp-contact { position:fixed; right:22px; bottom:22px; z-index:900; display:inline-flex; align-items:center; gap:9px; padding:13px 18px; border-radius:999px; color:#fff; background:#20b968; box-shadow:0 8px 24px rgba(20,120,70,.25); text-decoration:none; font-size:13px; font-weight:800; transition:transform .2s, box-shadow .2s; }
.catalog-whatsapp-contact:hover { transform:translateY(-2px); box-shadow:0 11px 28px rgba(20,120,70,.32); }
.catalog-whatsapp-mark { display:inline-grid; place-items:center; width:21px; height:21px; border:2px solid currentColor; border-radius:50%; font-size:15px; line-height:1; }
@media(max-width:650px){ .catalog-whatsapp-contact{right:14px;bottom:14px;padding:12px 15px;} .site-footer{padding-bottom:86px;} }


/* =========================================
   RESPONSIVE: TABLET Y CELULAR
========================================= */

@media (max-width: 650px) {

    .catalog-tools {
        padding: 0 14px;
    }

    .category-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 3px 2px 10px;
    }

    .category-btn {
        flex: 0 0 auto;
    }

    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 22px 10px 30px;
    }

    .product-image-wrap {
        height: 190px;
    }

    .product-content {
        padding: 13px 12px 15px;
    }

    .product-content h2 {
        font-size: 15px;
    }

    .product-price {
        font-size: 19px;
    }

    .value-option {
        padding: 6px 9px;
        font-size: 12px;
    }

    .cart {
        margin: 0 10px 30px;
        padding: 17px;
    }

    .empty-state {
        padding: 35px 12px;
    }
}


/* =========================================
   RESPONSIVE: CELULARES PEQUEÑOS
========================================= */

@media (max-width: 390px) {

    .products {
        grid-template-columns: 1fr;
    }

    .product-image-wrap {
        height: 240px;
    }

}

/* Vista rápida de producto compartida por todos los catálogos */
.product-card-open{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}
.product-card-open .product-content{min-height:170px}
.product-card-open h2{min-height:48px}
.quick-view-hint{display:inline-block;margin-top:5px;color:var(--accent-dark);font-size:12px;font-weight:700}
.quick-view-modal{position:fixed;inset:0;z-index:1500;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(35,22,26,.58);backdrop-filter:blur(3px)}
.quick-view-modal.open{display:flex;animation:qvFade .2s ease}
.quick-view-dialog{position:relative;width:min(920px,100%);max-height:min(90vh,900px);overflow:auto;background:#fff;border-radius:20px;box-shadow:0 24px 80px #0003;animation:qvExpand .28s cubic-bezier(.2,.8,.2,1)}
.quick-view-close{position:sticky;top:12px;float:right;z-index:2;margin:12px 12px -48px 0;width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:var(--ink);font-size:27px;line-height:1;box-shadow:0 2px 12px #0002;cursor:pointer}
.quick-view-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px;padding:30px}
.quick-view-gallery{position:sticky;top:20px;align-self:start;min-width:0}.quick-view-media{position:relative;min-height:300px;background:#fffafb;border-radius:14px;overflow:hidden;display:grid;place-items:center}.quick-view-media img{width:100%;max-height:560px;object-fit:contain}.quick-view-thumbnails{display:flex;gap:9px;overflow-x:auto;padding:10px 2px 4px}.quick-view-thumb{flex:0 0 66px;width:66px;height:66px;padding:3px;border:1px solid var(--border);border-radius:9px;background:#fff;cursor:pointer}.quick-view-thumb.active{border:2px solid var(--accent-dark);box-shadow:0 0 0 2px var(--accent-soft)}.quick-view-thumb img{width:100%;height:100%;object-fit:contain}.gallery-counter{margin:3px 0 0;text-align:center;color:var(--muted);font-size:12px}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:50%;background:#ffffffdf;color:var(--ink);font-size:25px;line-height:1;box-shadow:0 2px 10px #0002;cursor:pointer}.gallery-prev{left:10px}.gallery-next{right:10px}
.quick-view-info h2{margin:0;font-size:25px;line-height:1.3}
.quick-view-description,.quick-view-detail{margin:18px 0;padding:15px;background:#fff8fa;border:1px solid var(--border);border-radius:12px}
.quick-view-description h3,.quick-view-detail h3{margin:0 0 8px;color:var(--accent-dark);font-size:15px}
.quick-view-description p,.quick-view-detail p{margin:0;color:var(--muted);font-size:14px;line-height:1.65;white-space:pre-line}
.quick-view-variants{margin-top:18px}
body.modal-open{overflow:hidden}
@keyframes qvFade{from{opacity:0}to{opacity:1}}
@keyframes qvExpand{from{opacity:0;transform:translateY(18px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:700px){.quick-view-modal{padding:8px;align-items:flex-end}.quick-view-dialog{width:100%;max-height:94vh;border-radius:18px 18px 10px 10px}.quick-view-layout{grid-template-columns:1fr;gap:16px;padding:20px}.quick-view-gallery{position:relative;top:auto}.quick-view-media{position:relative;min-height:220px;max-height:300px}.quick-view-media img{max-height:290px}.quick-view-info h2{font-size:21px}}


/* Presentación de descuentos */
.price-before{display:inline-block;margin-right:7px;color:#888;text-decoration:line-through;font-size:.88em;font-weight:400}
.price-current{font-weight:700}
.discount-badge{display:inline-block;margin-left:7px;padding:3px 7px;border-radius:999px;background:#fff0ed;color:#b42318;font-size:.72em;font-weight:700;vertical-align:middle}

.checkout-card{max-width:560px;margin:auto;color:#59464a}.checkout-card h2{text-align:center;margin:0 0 8px}.checkout-card>p{text-align:center;color:#92777d;margin-bottom:18px}.checkout-form{display:grid;gap:12px}.checkout-form label{display:grid;gap:6px;font-size:13px;font-weight:700}.checkout-form input,.checkout-form select,.checkout-form textarea,.order-tracking input{width:100%;padding:11px 12px;border:1px solid #ead1d7;border-radius:9px;font:inherit;background:#fff;color:#59464a}.checkout-summary{display:flex;justify-content:space-between;gap:12px;padding:13px;background:#fff7f8;border-radius:9px;font-size:13px}.checkout-submit,.order-tracking button{padding:12px 17px;border:0;border-radius:9px;background:var(--accent);color:#fff;font-weight:800;cursor:pointer}.invoice-saved{padding:20px;background:#fff;color:#4e4245;border-radius:12px}.invoice-kicker{text-align:center;letter-spacing:2px;color:var(--success);font-size:11px;font-weight:800}.invoice-order-number{text-align:center;font-size:24px;font-weight:800;color:var(--accent-dark);margin:12px 0}.invoice-line{display:grid;gap:5px;padding:10px 0;border-bottom:1px solid #ead1d7;font-size:13px}.invoice-line small{color:#92777d}.invoice-total{text-align:center;margin:18px 0}.order-tracking{max-width:850px;margin:0 auto 42px;padding:22px;background:#fff;border:1px solid var(--border);border-radius:16px}.order-tracking h2{margin:0 0 7px;color:var(--accent-dark)}.order-tracking>p{color:var(--muted);font-size:13px;margin-bottom:15px}.order-tracking form{display:grid;grid-template-columns:1fr 1fr auto;gap:9px}.order-tracking button{white-space:nowrap}.order-tracking #trackOrderResult{margin-top:12px;font-size:13px;line-height:1.6}.order-tracking #trackOrderResult p{margin:5px 0;color:var(--muted)}
.customer-order-status{padding:13px 15px;border:1px solid var(--border);border-radius:12px;background:#fff9fb}
.customer-order-status strong{display:block;color:var(--accent-dark);font-size:15px}
.customer-order-timeline{list-style:none;margin:14px 0;padding:0 0 0 12px;border-left:2px solid var(--border)}
.customer-order-timeline li{position:relative;display:flex;justify-content:space-between;gap:12px;padding:0 0 13px 14px;font-size:13px}
.customer-order-timeline li:before{content:"";position:absolute;left:-18px;top:4px;width:8px;height:8px;border-radius:50%;background:var(--accent)}
.customer-order-timeline time{color:var(--muted);font-size:11px;text-align:right;flex-shrink:0}.customer-order-timeline li small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.customer-order-reason{margin-top:8px!important;color:var(--accent-dark)!important}
.customer-order-cancel{display:grid;gap:8px;margin-top:15px;padding:14px;border:1px solid #efd5d9;border-radius:12px;background:#fff8f8}
.customer-order-cancel p{margin:0 0 3px}
.customer-order-cancel label{font-size:12px;font-weight:700;color:var(--accent-dark)}
.customer-order-cancel input{width:100%;box-sizing:border-box;padding:11px;border:1px solid #ead1d7;border-radius:9px;font:inherit}
.customer-order-cancel button{background:#a94d5a}
.customer-order-cancel button:disabled{opacity:.6;cursor:wait}
.customer-order-cancel small{color:var(--muted);font-size:12px}
.customer-order-lock{margin-top:14px;padding:12px;border-radius:10px;background:#f8f3f4}@media(max-width:650px){.order-tracking form{grid-template-columns:1fr}.order-tracking button{width:100%}}

/* Sparkle Trail táctil: destello al tocar y estela al deslizar. */
.sparkle-host{position:relative;isolation:isolate;overflow:hidden}
.sparkle-particle{position:absolute;z-index:8;pointer-events:none;user-select:none;transform:translate(-50%,-50%);color:#fff;font-size:var(--sparkle-size,12px);line-height:1;text-shadow:0 0 4px #fff,0 0 9px #fff,0 0 15px #f5b6dc;animation:sparkleFloat .72s ease-out forwards;will-change:transform,opacity}
@keyframes sparkleFloat{
 0%{opacity:0;transform:translate(-50%,-50%) scale(.2) rotate(-25deg)}
 22%{opacity:1;transform:translate(calc(-50% + var(--sparkle-drift,0px)),calc(-50% - 3px)) scale(1.18) rotate(12deg)}
 100%{opacity:0;transform:translate(calc(-50% + var(--sparkle-drift,0px)),calc(-50% - var(--sparkle-rise,24px))) scale(.2) rotate(var(--sparkle-rotation,55deg))}
}
@media(hover:none),(pointer:coarse){
 .sparkle-particle{text-shadow:0 0 5px #fff,0 0 11px #fff,0 0 19px #f5a9d4;animation-duration:.85s}
}
@media(prefers-reduced-motion:reduce){.sparkle-particle{animation-duration:.2s}}

/* Confirmación de agregado y acceso rápido al carrito */
.floating-cart{position:fixed;z-index:1600;top:18px;right:22px;display:flex;align-items:center;gap:7px;padding:10px 15px;border:1px solid #efd6de;border-radius:999px;background:rgba(255,255,255,.96);color:#92576a;box-shadow:0 5px 20px rgba(80,35,50,.13);font:700 13px system-ui,sans-serif;cursor:pointer;backdrop-filter:blur(10px);transition:transform .18s,box-shadow .18s}
.floating-cart:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(80,35,50,.2)}
.floating-cart-icon{font-size:19px;line-height:1}.floating-cart-count{min-width:21px;height:21px;padding:0 6px;display:grid;place-items:center;border-radius:50%;background:#bd8292;color:#fff;font-size:11px;font-weight:800}.floating-cart-count[hidden]{display:none}
.cart-toast{position:fixed;z-index:1700;left:50%;bottom:24px;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 28px);padding:13px 19px;border:1px solid #e8ccd5;border-radius:14px;background:rgba(255,255,255,.97);color:#684651;box-shadow:0 10px 35px rgba(70,30,45,.18);font-size:14px;font-weight:700;opacity:0;pointer-events:none;transform:translate(-50%,18px);transition:opacity .22s,transform .22s;backdrop-filter:blur(10px)}
.cart-toast.visible{opacity:1;transform:translate(-50%,0)}.cart-toast-check{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#20b76b;color:white;font-weight:900}
@media(max-width:700px){.floating-cart{top:12px;right:62px;padding:9px 11px;min-width:42px;min-height:42px;justify-content:center}.floating-cart-label{display:none}.floating-cart-icon{font-size:20px}.cart-toast{bottom:16px;font-size:13px;padding:12px 15px;z-index:1700;max-width:calc(100vw - 24px);text-align:left}}

/* Confirmación persistente dentro de la tarjeta de producto */
.product-image-wrap{position:relative}
.product-added-badge{position:absolute;top:10px;left:10px;z-index:5;padding:7px 10px;border-radius:999px;background:#20a96b;color:#fff;font-size:11px;font-weight:800;box-shadow:0 3px 12px #0002;pointer-events:none;animation:addedBadgeIn .2s ease-out}
.product-added-note{display:block;margin-top:8px;padding:7px 9px;border-radius:9px;background:#eaf8f0;color:#187a49;font-size:12px;font-weight:800}
.add-button.is-added{background:#208b59!important;color:#fff!important}
.product-added-confirmation{margin:9px 0 0;padding:10px 12px;border:1px solid #bde8ce;border-radius:10px;background:#effaf3;color:#187a49;font-size:13px;font-weight:700;line-height:1.4}
@keyframes addedBadgeIn{from{opacity:0;transform:translateY(-5px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}

.clear-cart-button{display:block;margin:10px 0 0 auto;padding:8px 12px;border:1px solid #ead1d9;border-radius:9px;background:#fff;color:#92576a;font-size:12px;font-weight:700;cursor:pointer}
.clear-cart-button:hover{background:#fff5f8}

/* El cierre permanece visible aunque el contenido del producto sea muy largo. */
.quick-view-close{position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);right:calc(env(safe-area-inset-right,0px) + 12px);float:none;margin:0;z-index:1601;width:42px;height:42px;display:grid;place-items:center;font-size:27px;line-height:1;box-shadow:0 3px 14px #0003}

.customer-order-whatsapp{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border-radius:9px;background:#a94d5a;color:#fff;font-weight:700;text-decoration:none}.customer-order-whatsapp:hover{filter:brightness(.95)}.share-button[hidden]{display:none!important}.share-button:disabled{opacity:.5;cursor:not-allowed}


/* Portadas de catálogo: el arte se aplica como fondo del hero */
.site-header{
 position:relative!important;
 display:block!important;
 width:100%!important;
 aspect-ratio:2.56/1!important;
 min-height:0!important;
 overflow:hidden!important;
 background-color:var(--accent-soft)!important;
 background-position:center center!important;
 background-size:cover!important;
 background-repeat:no-repeat!important;
}
.site-header>img{display:none!important}
.back-home{
 position:absolute!important;
 z-index:2!important;
 top:14px!important;
 left:16px!important;
 margin:0!important;
}
@media(max-width:600px){
 .site-header{aspect-ratio:2.05/1!important;background-position:center!important}
 .back-home{top:10px!important;left:10px!important;padding:8px 11px!important;font-size:12px!important}
}

/* No conservar un banner heredado; el encabezado solo recibe una imagen de fondo del administrador. */
.site-header{background-image:none;background-color:var(--accent-soft)}
.site-header .catalog-banner-surface{display:none!important}

/* Banner y fondo se controlan desde Configuración de catálogos */
.site-header.has-banner{aspect-ratio:2.56/1!important;min-height:180px!important;height:auto!important;overflow:hidden!important;background-position:center center!important;background-size:cover!important;background-repeat:no-repeat!important}
.site-header:not(.has-banner){aspect-ratio:auto!important;height:62px!important;min-height:62px!important;overflow:visible!important;background-image:none!important;background-color:var(--accent-soft)!important}
body.has-catalog-background{background-attachment:fixed!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
@media(max-width:600px){.site-header.has-banner{aspect-ratio:2.05/1!important;min-height:140px!important}.site-header:not(.has-banner){height:58px!important;min-height:58px!important}}

/* Rediseño de catálogo Beta: tarjetas compactas y categorías bien separadas */
#productsContainer.products{
 max-width:1380px!important;
 display:block!important;
 padding:24px clamp(14px,2.2vw,30px) 48px!important;
}
.category-group{
 width:100%;
 margin:0 0 clamp(30px,4vw,52px);
 padding:0;
}
.category-heading{
 display:flex;
 align-items:flex-end;
 justify-content:space-between;
 gap:18px;
 margin:0 0 18px;
 padding:0 0 13px;
 border-bottom:1px solid color-mix(in srgb,var(--accent) 28%,white);
 position:relative;
}
.category-heading:after{
 content:"";
 position:absolute;
 bottom:-1px;
 left:0;
 width:64px;
 height:2px;
 background:var(--accent);
}
.category-heading-copy{min-width:0}
.category-eyebrow{
 display:block;
 margin:0 0 5px;
 color:var(--accent-dark);
 font-size:10px;
 font-weight:800;
 letter-spacing:1.8px;
 text-transform:uppercase;
}
.category-heading h2{
 margin:0;
 color:var(--ink);
 font-family:"Playfair Display",Georgia,serif;
 font-size:clamp(23px,2.4vw,32px);
 font-weight:600;
 line-height:1.15;
}
.category-heading-count{
 flex:0 0 auto;
 margin-bottom:3px;
 padding:7px 12px;
 border:1px solid var(--border);
 border-radius:999px;
 background:#fff9fb;
 color:var(--muted);
 font-size:11px;
 font-weight:700;
}
.category-products{
 display:grid;
 grid-template-columns:repeat(auto-fill,minmax(205px,1fr));
 gap:clamp(13px,1.6vw,20px);
 align-items:stretch;
}
.category-products .product-card{
 min-width:0;
 border:1px solid color-mix(in srgb,var(--border) 80%,white);
 border-radius:15px;
 box-shadow:0 4px 16px rgba(88,48,63,.055);
}
.category-products .product-card:hover{
 transform:translateY(-3px);
 box-shadow:0 10px 24px rgba(88,48,63,.11);
}
.category-products .product-card-open{
 display:flex;
 flex-direction:column;
 align-items:stretch;
 height:100%;
}
.category-products .product-image-wrap{
 height:205px;
 flex:0 0 205px;
 background:linear-gradient(145deg,#fffdfd,#fff5f8);
}
.category-products .product-image{
 padding:9px;
 transition:transform .25s ease;
}
.category-products .product-card:hover .product-image{transform:scale(1.035)}
.category-products .product-content{
 min-height:0!important;
 padding:13px 14px 15px;
 display:flex;
 flex-direction:column;
 flex:1;
}
.category-products .product-category{
 align-self:flex-start;
 margin:0 0 7px;
 padding:4px 8px;
 border-radius:999px;
 background:var(--accent-soft);
 color:var(--accent-dark);
 font-size:9px;
 letter-spacing:.8px;
}
.category-products .product-content h2{
 min-height:0!important;
 display:-webkit-box;
 -webkit-line-clamp:2;
 -webkit-box-orient:vertical;
 overflow:hidden;
 font-size:15px;
 line-height:1.35;
}
.category-products .product-price{
 margin:10px 0 7px;
 font-size:20px;
 line-height:1.2;
}
.category-products .availability{
 min-height:20px;
 margin:5px 0 7px;
}
.category-products .stock-note{font-size:11px}
.category-products .stock-badge{padding:5px 9px;font-size:10px}
.category-products .quick-view-hint{
 margin-top:auto;
 padding-top:8px;
 color:var(--accent-dark);
 font-size:11px;
}
.category-products .product-added-note{font-size:11px}
@media(max-width:900px){
 .category-products{grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:14px}
 .category-products .product-image-wrap{height:185px;flex-basis:185px}
}
@media(max-width:650px){
 #productsContainer.products{padding:18px 12px 34px!important}
 .category-group{margin-bottom:30px}
 .category-heading{margin-bottom:13px;padding-bottom:11px}
 .category-heading h2{font-size:24px}
 .category-heading-count{padding:6px 9px;font-size:10px}
 .category-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .category-products .product-card{border-radius:12px}
 .category-products .product-image-wrap{height:145px;flex-basis:145px}
 .category-products .product-content{padding:10px 10px 12px}
 .category-products .product-content h2{font-size:13px;line-height:1.3}
 .category-products .product-price{font-size:17px;margin:8px 0 5px}
 .category-products .product-category{font-size:8px;letter-spacing:.5px}
 .category-products .quick-view-hint{font-size:10px}
 .category-products .value-option{padding:5px 7px;font-size:11px}
 .category-products .color-option{width:29px;height:29px}
 .category-products .color-option .swatch{width:20px;height:20px}
}
@media(max-width:390px){
 .category-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .category-products .product-image-wrap{height:125px;flex-basis:125px}
 .category-products .product-content{padding:9px 8px 11px}
 .category-products .product-content h2{font-size:12px}
 .category-products .product-price{font-size:16px}
 .category-products .quick-view-hint{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
 .category-products .product-image{transition:none}
}


/* Botón Volver al inicio: mismo estilo visual de Beta */
.back-home{
 position:fixed!important;
 z-index:1598!important;
 top:18px!important;
 left:18px!important;
 margin:0!important;
 padding:11px 17px!important;
 border:1px solid #ffd6e8!important;
 border-radius:999px!important;
 background:#fffdf7!important;
 color:#6b4a5a!important;
 box-shadow:0 6px 22px #57374418!important;
 backdrop-filter:blur(12px)!important;
 font:700 12px 'DM Sans',sans-serif!important;
 text-decoration:none!important;
 transition:transform .2s,background .2s!important;
}
.back-home:hover{
 transform:translateY(-2px)!important;
 background:#fffdf7!important;
}
@media(max-width:600px){.back-home{position:fixed!important;top:10px!important;
  left:11px!important;
  padding:10px 13px!important;
  font-size:11px!important;
 }
}


/* Tipografías usadas en Beta */


/* ===== Concept by Lily: editorial beauty redesign ===== */
:root{
 --accent:#b8798b;--accent-dark:#8f5267;--accent-soft:#f3e4e8;
 --page:#fbf7f4;--ink:#44363b;--muted:#8b777d;--border:#eadde0;
 --shadow-soft:0 12px 32px rgba(73,43,54,.07);
}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{font-family:'DM Sans',Arial,sans-serif;background:radial-gradient(ellipse at 10% 0%,#f7e9ed 0,transparent 34%),var(--page);color:var(--ink)}
.site-header{position:relative;background:var(--accent-soft);overflow:hidden}
.site-header img{display:block;width:100%;height:auto;max-height:340px;object-fit:cover;object-position:center}
.back-home{position:absolute;z-index:2;top:16px;left:18px;margin:0;padding:11px 17px;border:1px solid #ffffffa8;border-radius:999px;background:#fffdf9e8;color:#754c5b;box-shadow:0 6px 22px #57374418;backdrop-filter:blur(12px);font:700 12px 'DM Sans',sans-serif;transition:transform .2s,background .2s}
.back-home:hover{transform:translateY(-2px);background:#fff}
.catalog-tools{max-width:1180px;margin:34px auto 0;padding:0 28px}
.search-wrap{position:relative;max-width:620px;margin:0 auto 24px}
.search-wrap:before{content:"⌕";position:absolute;left:19px;top:50%;transform:translateY(-53%);font-size:25px;color:#a17c88;pointer-events:none}
#productSearch{height:56px;padding:15px 20px 15px 50px;border:1px solid #e8d8de;border-radius:999px;background:#fffdfc;color:var(--ink);font:500 15px 'DM Sans',sans-serif;box-shadow:0 7px 24px #6b40500a;transition:border-color .2s,box-shadow .2s}
#productSearch:focus{border-color:#c99aa8;box-shadow:0 0 0 4px #bd82921c,0 8px 26px #6b405010}
.category-nav{gap:10px;justify-content:center;flex-wrap:wrap}
.category-btn,.value-option{padding:10px 17px;border:1px solid #e7d6dc;border-radius:999px;background:#fffdfc;color:#87596a;font:700 12px 'DM Sans',sans-serif;letter-spacing:.1px;transition:transform .2s,background .2s,border-color .2s,box-shadow .2s}
.category-btn:hover,.value-option:hover{transform:translateY(-1px);border-color:#c99aa8;background:#fff7fa;color:#8f5267}
.category-btn.active,.value-option.selected{border-color:var(--accent-dark);background:var(--accent-dark);color:#fff;box-shadow:0 6px 16px #8f526726}
.product-count{margin:18px 0 0;color:#8b777d;font-size:12px;letter-spacing:.35px}
.catalog-message{margin:9px 0 0;color:#9b858c;font-size:12px}
.products{max-width:1320px;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding:34px 28px 56px}
.product-card{position:relative;border:1px solid #eee2e5;border-radius:18px;background:#fffdfc;box-shadow:0 5px 22px #4f30380a;transition:transform .25s,box-shadow .25s,border-color .25s}
.product-card:hover{transform:translateY(-6px);border-color:#e3cbd3;box-shadow:0 18px 38px #4f303817}
.product-image-wrap{height:auto;aspect-ratio:1/1.08;background:linear-gradient(145deg,#fcf5f6,#f7edf0 58%,#fffaf7);position:relative}
.product-image{padding:12px;transition:transform .35s ease}
.product-card:hover .product-image{transform:scale(1.045)}
.product-content{padding:18px 18px 20px}
.product-category{color:#a17b87;font-size:9px;letter-spacing:1.5px;margin-bottom:8px}
.product-content h2{font-family:'Playfair Display',Georgia,serif;font-size:20px;font-weight:600;line-height:1.25;letter-spacing:-.25px}
.product-description{color:#88757b;font-size:12px;line-height:1.65}
.product-price{margin:14px 0;color:#92596c;font-size:23px;font-weight:700;letter-spacing:-.4px}
.variant-group{margin:15px 0}
.variant-label{color:#7e5362;font-size:11px;letter-spacing:.25px}
.value-options,.color-options{gap:8px}
.value-option{padding:7px 12px;font-size:11px}
.color-option{width:37px;height:37px}
.color-option .swatch{width:25px;height:25px}
.availability{margin:14px 0 10px;min-height:24px}
.stock-note{color:#4d8b6c;font-size:11px}
.stock-badge{padding:7px 11px;background:#f9e8e8;color:#a34d5a;font-size:10px;letter-spacing:.8px}
.add-button{padding:13px 16px;border-radius:999px;background:linear-gradient(135deg,#bd8292,#96596c);font:700 12px 'DM Sans',sans-serif;letter-spacing:.2px;box-shadow:0 7px 17px #a965761f;transition:transform .2s,box-shadow .2s,filter .2s}
.add-button:hover{background:linear-gradient(135deg,#a96e80,#81485b);transform:translateY(-2px);box-shadow:0 10px 22px #a9657630}
.add-button:disabled{box-shadow:none}
.product-card-open .product-content{min-height:185px}
.quick-view-hint{font-size:11px;color:#a16c7e}
.cart,.order-tracking{max-width:920px;margin:0 auto 44px;padding:30px;border:1px solid #eadde0;border-radius:22px;background:#fffdfc;box-shadow:var(--shadow-soft)}
.cart h2,.order-tracking h2{font-family:'Playfair Display',Georgia,serif;font-size:29px;font-weight:600;color:#774c5b}
.cart-item{padding:16px 0;border-bottom-color:#f0e6e9}
.cart-item strong{font-size:14px}
.cart-item small{color:#97828a;font-size:12px}
.total{margin-top:22px;color:#92596c;font-size:25px}
.whatsapp-btn,.share-button{padding:14px 24px;border-radius:999px;font:700 13px 'DM Sans',sans-serif;box-shadow:0 7px 18px #20b96820;transition:transform .2s,filter .2s}
.whatsapp-btn:hover,.share-button:hover{transform:translateY(-2px);filter:brightness(.96)}
.empty-state{padding:60px 24px;border:1px dashed #e3cbd3;border-radius:20px;background:#fffdfc}
.empty-state h2{font-family:'Playfair Display',Georgia,serif;font-size:27px}
.site-footer{background:#f3e6e9;color:#89737b;border-top:1px solid #e8d8de;font-family:'DM Sans',sans-serif}
.footer-brand{font-family:'Playfair Display',Georgia,serif;font-size:23px}
.footer-socials a{padding:10px 16px;border-color:#e4cfd6;background:#fffdfc}
.catalog-whatsapp-contact{right:24px;bottom:24px;padding:14px 19px;border-radius:999px;box-shadow:0 10px 28px #14784630;font-family:'DM Sans',sans-serif}
.quick-view-dialog{border:1px solid #f0e3e7;border-radius:24px;background:#fffdfc;box-shadow:0 30px 100px #1c10165c}
.quick-view-layout{gap:34px;padding:34px}
.quick-view-media{background:linear-gradient(145deg,#fcf5f6,#f7edf0);border-radius:18px}
.quick-view-info h2{font-family:'Playfair Display',Georgia,serif;font-size:30px}
.quick-view-description,.quick-view-detail{background:#fff8fa;border-color:#f0e1e6;border-radius:15px}
.quick-view-description h3,.quick-view-detail h3{font-family:'Playfair Display',Georgia,serif;font-size:18px}
.invoice-dialog{border:1px solid #f0e3e7;border-radius:22px;box-shadow:0 25px 80px #0003}
.checkout-card h2{font-family:'Playfair Display',Georgia,serif}
.checkout-form input,.checkout-form select,.checkout-form textarea,.order-tracking input{border-color:#e7d6dc;border-radius:12px;padding:13px 14px;font:500 14px 'DM Sans',sans-serif}
.checkout-submit,.order-tracking button{border-radius:999px;background:linear-gradient(135deg,#bd8292,#96596c);font:700 12px 'DM Sans',sans-serif}
.customer-order-status{border-radius:15px;background:#fff8fa}
@media(max-width:1050px){.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding-left:22px;padding-right:22px}}
@media(max-width:760px){
 .site-header img{max-height:250px;object-fit:cover}
 .back-home{top:11px;left:11px;padding:10px 13px;font-size:11px}
 .catalog-tools{margin-top:24px;padding:0 17px}
 .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:25px 14px 36px}
 .product-image-wrap{aspect-ratio:1/1.05}
 .product-content{padding:14px 12px 15px}
 .product-content h2{font-size:17px}
 .product-price{font-size:20px}
 .product-card-open .product-content{min-height:165px}
 .cart,.order-tracking{margin-left:14px;margin-right:14px;padding:21px;border-radius:18px}
 .quick-view-layout{padding:20px;gap:18px}
 .quick-view-info h2{font-size:25px}
}
@media(max-width:390px){
 .products{grid-template-columns:1fr;padding-left:18px;padding-right:18px}
 .product-image-wrap{aspect-ratio:1/1.02}
 .product-content{padding:17px}
}
@media(prefers-reduced-motion:reduce){.product-card,.product-image,.add-button,.category-btn,.back-home{transition:none!important}}


/* Rediseño de catálogo Beta: tarjetas compactas y categorías bien separadas */
#productsContainer.products{
 max-width:1380px!important;
 display:block!important;
 padding:24px clamp(14px,2.2vw,30px) 48px!important;
}
.category-group{
 width:100%;
 margin:0 0 clamp(30px,4vw,52px);
 padding:0;
}
.category-heading{
 display:flex;
 align-items:flex-end;
 justify-content:space-between;
 gap:18px;
 margin:0 0 18px;
 padding:0 0 13px;
 border-bottom:1px solid color-mix(in srgb,var(--accent) 28%,white);
 position:relative;
}
.category-heading:after{
 content:"";
 position:absolute;
 bottom:-1px;
 left:0;
 width:64px;
 height:2px;
 background:var(--accent);
}
.category-heading-copy{min-width:0}
.category-eyebrow{
 display:block;
 margin:0 0 5px;
 color:var(--accent-dark);
 font-size:10px;
 font-weight:800;
 letter-spacing:1.8px;
 text-transform:uppercase;
}
.category-heading h2{
 margin:0;
 color:var(--ink);
 font-family:"Playfair Display",Georgia,serif;
 font-size:clamp(23px,2.4vw,32px);
 font-weight:600;
 line-height:1.15;
}
.category-heading-count{
 flex:0 0 auto;
 margin-bottom:3px;
 padding:7px 12px;
 border:1px solid var(--border);
 border-radius:999px;
 background:#fff9fb;
 color:var(--muted);
 font-size:11px;
 font-weight:700;
}
.category-products{
 display:grid;
 grid-template-columns:repeat(auto-fill,minmax(205px,1fr));
 gap:clamp(13px,1.6vw,20px);
 align-items:stretch;
}
.category-products .product-card{
 min-width:0;
 border:1px solid color-mix(in srgb,var(--border) 80%,white);
 border-radius:15px;
 box-shadow:0 4px 16px rgba(88,48,63,.055);
}
.category-products .product-card:hover{
 transform:translateY(-3px);
 box-shadow:0 10px 24px rgba(88,48,63,.11);
}
.category-products .product-card-open{
 display:flex;
 flex-direction:column;
 align-items:stretch;
 height:100%;
}
.category-products .product-image-wrap{
 height:205px;
 flex:0 0 205px;
 background:linear-gradient(145deg,#fffdfd,#fff5f8);
}
.category-products .product-image{
 padding:9px;
 transition:transform .25s ease;
}
.category-products .product-card:hover .product-image{transform:scale(1.035)}
.category-products .product-content{
 min-height:0!important;
 padding:13px 14px 15px;
 display:flex;
 flex-direction:column;
 flex:1;
}
.category-products .product-category{
 align-self:flex-start;
 margin:0 0 7px;
 padding:4px 8px;
 border-radius:999px;
 background:var(--accent-soft);
 color:var(--accent-dark);
 font-size:9px;
 letter-spacing:.8px;
}
.category-products .product-content h2{
 min-height:0!important;
 display:-webkit-box;
 -webkit-line-clamp:2;
 -webkit-box-orient:vertical;
 overflow:hidden;
 font-size:15px;
 line-height:1.35;
}
.category-products .product-price{
 margin:10px 0 7px;
 font-size:20px;
 line-height:1.2;
}
.category-products .availability{
 min-height:20px;
 margin:5px 0 7px;
}
.category-products .stock-note{font-size:11px}
.category-products .stock-badge{padding:5px 9px;font-size:10px}
.category-products .quick-view-hint{
 margin-top:auto;
 padding-top:8px;
 color:var(--accent-dark);
 font-size:11px;
}
.category-products .product-added-note{font-size:11px}
@media(max-width:900px){
 .category-products{grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:14px}
 .category-products .product-image-wrap{height:185px;flex-basis:185px}
}
@media(max-width:650px){
 #productsContainer.products{padding:18px 12px 34px!important}
 .category-group{margin-bottom:30px}
 .category-heading{margin-bottom:13px;padding-bottom:11px}
 .category-heading h2{font-size:24px}
 .category-heading-count{padding:6px 9px;font-size:10px}
 .category-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .category-products .product-card{border-radius:12px}
 .category-products .product-image-wrap{height:145px;flex-basis:145px}
 .category-products .product-content{padding:10px 10px 12px}
 .category-products .product-content h2{font-size:13px;line-height:1.3}
 .category-products .product-price{font-size:17px;margin:8px 0 5px}
 .category-products .product-category{font-size:8px;letter-spacing:.5px}
 .category-products .quick-view-hint{font-size:10px}
 .category-products .value-option{padding:5px 7px;font-size:11px}
 .category-products .color-option{width:29px;height:29px}
 .category-products .color-option .swatch{width:20px;height:20px}
}
@media(max-width:390px){
 .category-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .category-products .product-image-wrap{height:125px;flex-basis:125px}
 .category-products .product-content{padding:9px 8px 11px}
 .category-products .product-content h2{font-size:12px}
 .category-products .product-price{font-size:16px}
 .category-products .quick-view-hint{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
 .category-products .product-image{transition:none}
}


/* Botones principales al estilo Beta, respetando la paleta de cada tienda */
.add-button,.checkout-submit,.order-tracking button{background:var(--accent-dark);color:var(--page);border-radius:999px;font-family:'DM Sans',sans-serif;font-weight:700;}
.add-button:hover,.checkout-submit:hover,.order-tracking button:hover{background:var(--accent);color:var(--ink);}
.category-heading-count{background:color-mix(in srgb,var(--page) 92%,white);color:var(--muted);}

/* Lista de pedidos del cliente verificado */
.customer-orders-list{display:grid;gap:10px;margin:14px 0}.customer-order-status-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.customer-order-status-head .order-status{display:inline-flex;align-items:center}.customer-order-status p{margin:6px 0;color:var(--muted)}.customer-order-status time{display:block;margin-top:8px;color:var(--muted);font-size:12px}

.customer-orders-shortcut{position:fixed;z-index:1599;top:18px;right:192px;display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border:1px solid #efd6de;border-radius:999px;background:rgba(255,255,255,.96);color:#92576a;box-shadow:0 5px 20px rgba(80,35,50,.13);font:700 13px system-ui,sans-serif;text-decoration:none;backdrop-filter:blur(10px)}.customer-orders-shortcut:hover{transform:translateY(-2px)}@media(max-width:650px){.customer-orders-shortcut{top:10px;right:158px;padding:9px 12px;font-size:12px}}


/* Consulta pública de pedidos: resumen sin datos personales */
.order-lookup-method{display:flex;gap:8px;margin:12px 0}.order-lookup-method button{flex:1;background:var(--page);color:var(--accent-dark);border:1px solid var(--border);border-radius:999px}.order-lookup-method button.active{background:var(--accent-dark);color:var(--page)}
#trackOrderPhoneField,#trackOrderNumberField{min-width:0}#trackOrderPhoneField input,#trackOrderNumberField input{box-sizing:border-box}
.customer-order-details{display:block;width:100%;margin-top:10px;background:var(--accent-dark)!important;color:var(--page)!important;border-radius:999px!important}
.customer-order-item{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--border);font-size:13px}.customer-order-item>div{min-width:0}.customer-order-item strong{font-size:13px}.customer-order-item small{display:block;color:var(--muted);font-size:11px;margin-top:3px;overflow-wrap:anywhere}
.customer-order-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}.customer-order-meta p{padding:10px;border-radius:9px;background:var(--page)}.customer-order-meta span,.customer-order-totals span{display:block;color:var(--muted);font-size:12px}.customer-order-meta strong{font-size:13px}
.customer-order-detail h3,.customer-order-history h3{margin:15px 0 8px;color:var(--accent-dark);font-size:15px}.customer-order-totals{margin-top:12px}.customer-order-totals p{display:flex;justify-content:space-between;gap:12px;padding:7px 0}.customer-order-totals strong{color:var(--accent-dark)}.customer-order-totals .customer-order-grand-total{border-top:1px solid var(--border);padding-top:12px;font-size:15px}.customer-order-grand-total span{font-weight:700;color:var(--accent-dark)}.customer-order-history{margin-top:16px}
@media(max-width:650px){.order-lookup-method button{white-space:normal;padding:10px 8px}.customer-order-meta{grid-template-columns:1fr}.customer-order-item{font-size:12px}}


/* Carrito global multi-tienda */
.global-cart-store{border:1px solid var(--border,#eadde1);border-radius:12px;padding:12px;margin:10px 0;background:rgba(255,255,255,.72)}
.global-cart-store h3{margin:0 0 8px;font-size:1rem;color:var(--accent-dark,#92576a)}
.global-cart-subtotal{margin:8px 0 0;text-align:right;font-weight:700;font-size:.92rem}
.global-order-receipt{margin:18px 0;padding:14px;border:1px solid #eadde1;border-radius:12px;background:#fff}
.global-order-receipt h3{margin:0 0 8px;color:#92576a}


/* Navegación de tiendas: centrada y sin superposición al desplazarse */
.store-switcher{
  position:relative;top:auto;z-index:2;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:8px;width:100%;box-sizing:border-box;
  padding:12px clamp(12px,3vw,28px);
  background:color-mix(in srgb,var(--page) 94%,transparent);
  border-bottom:1px solid color-mix(in srgb,var(--border) 70%,transparent);
}
.store-switcher-label{
  flex:0 0 auto;font-size:11px;font-weight:800;letter-spacing:.08em;
  text-transform:uppercase;color:var(--muted);text-align:center;
}
.store-switcher-links{
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;
  gap:8px;max-width:100%;min-width:0;padding:2px 0;
}
.store-switcher-link{
  flex:0 1 auto;display:inline-flex;align-items:center;gap:7px;
  padding:9px 15px;border:1px solid var(--border);border-radius:999px;
  background:#ffffffd9;color:var(--ink);text-decoration:none;
  font-size:13px;font-weight:700;white-space:nowrap;
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
.store-switcher-link:hover{transform:translateY(-1px);border-color:var(--accent);background:#fff}
.store-switcher-link[aria-current="page"]{
  background:var(--accent);border-color:var(--accent);color:#fff;
  box-shadow:0 5px 16px color-mix(in srgb,var(--accent) 25%,transparent);
}
.store-switcher-link .switcher-dot{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.65}
@media(max-width:600px){
 .store-switcher{gap:7px;padding:10px 10px}
 .store-switcher-label{font-size:10px;letter-spacing:.05em}
 .store-switcher-links{gap:6px}
 .store-switcher-link{padding:8px 11px;font-size:12px}
}


/* Mantener la navegación de tiendas visible al recorrer el catálogo */
.store-switcher{
  position:sticky;
  top:0;
  z-index:80;
  background:var(--page,#fff8fa);
  box-shadow:0 6px 18px rgba(105,65,78,.08);
  isolation:isolate;
}


/* Proforma global: productos más fáciles de identificar de un vistazo */
.global-order-receipt{
  padding:16px 17px 13px;
  border:1px solid #ead5dc;
  border-left:4px solid #c58a9b;
  border-radius:15px;
  background:linear-gradient(135deg,#fff9fb 0%,#fffdfd 72%);
  box-shadow:0 5px 18px rgba(116,65,82,.055);
}
.global-order-receipt:nth-of-type(even){
  border-left-color:#d6a7b5;
  background:linear-gradient(135deg,#fff7f9 0%,#fffdfc 75%);
}
.global-order-receipt h3{
  display:block;
  margin:0 0 5px;
  padding-bottom:8px;
  border-bottom:1px solid #f0e1e6;
  color:#87566a;
  font-size:15px;
  line-height:1.3;
}
.global-order-receipt>.invoice-order-number{
  display:block;
  margin:0 0 10px;
  color:#a07887;
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
}
.global-order-receipt .invoice-line{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:5px 14px;
  margin:7px 0;
  padding:12px 13px;
  border:1px solid #f1e1e7;
  border-radius:11px;
  background:#fff;
  box-shadow:0 2px 7px rgba(122,76,93,.035);
}
.global-order-receipt .invoice-line strong{
  grid-column:1;
  grid-row:1;
  color:#493740;
  font-size:13px;
  font-weight:700;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.global-order-receipt .invoice-line small{
  grid-column:1;
  grid-row:2;
  color:#987d88;
  font-size:11px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.global-order-receipt .invoice-line span{
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  color:#92596c;
  font-size:13px;
  font-weight:800;
  text-align:right;
  white-space:nowrap;
}
.global-order-receipt .store-subtotal{
  margin:11px 0 0;
  padding:11px 2px 0;
  border-top:1px solid #eadbe1;
  color:#92596c;
  text-align:right;
  font-size:13px;
  font-weight:800;
  line-height:1.35;
}
@media(max-width:650px){
  .global-order-receipt{padding:12px 11px 10px;border-radius:13px}
  .global-order-receipt .invoice-line{
    grid-template-columns:minmax(0,1fr) auto;
    gap:5px 10px;
    padding:11px 12px;
  }
  .global-order-receipt .invoice-line strong{grid-column:1;grid-row:1;min-width:0}
  .global-order-receipt .invoice-line small{grid-column:1;grid-row:2}
  .global-order-receipt .invoice-line span{
    grid-column:2;
    grid-row:1 / span 2;
    align-self:center;
    padding-top:0;
    text-align:right;
    white-space:nowrap;
    font-size:12px;
  }
  .global-order-receipt .store-subtotal{font-size:12px}
}

/* Receipt: product name and quantity must stay left-aligned; price stays right */
.global-order-receipt .invoice-line strong,
.global-order-receipt .invoice-line small{
  text-align:left !important;
  justify-self:start !important;
}
