/* Tienda online — storefront blocks.
 *
 * Neutral on purpose: every colour, radius and font comes from a custom
 * property with a sober fallback, so a site restyles its whole shop by
 * setting a handful of variables on :root, without fighting this sheet.
 *
 *   --shopw-accent       buttons, active states, prices on offer
 *   --shopw-accent-ink   text on top of the accent
 *   --shopw-ink          main text      --shopw-muted   secondary text
 *   --shopw-line         borders        --shopw-soft    soft panels
 *   --shopw-surface      cards          --shopw-dark    the dark button
 *   --shopw-radius       cards and buttons
 *   --shopw-font-head    product and section titles
 */

.shopw {
    --_accent: var(--shopw-accent, #9d174d);
    --_accent-ink: var(--shopw-accent-ink, #fff);
    --_ink: var(--shopw-ink, #1f1720);
    --_muted: var(--shopw-muted, #6b5f6a);
    --_line: var(--shopw-line, #ece4e8);
    --_soft: var(--shopw-soft, #faf6f7);
    --_surface: var(--shopw-surface, #fff);
    --_dark: var(--shopw-dark, #1f1720);
    --_r: var(--shopw-radius, 14px);
    --_head: var(--shopw-font-head, inherit);
    color: var(--_ink);
    display: block;
}
span.shopw { display: inline-flex; }
.shopw *, .shopw *::before, .shopw *::after { box-sizing: border-box; }
.shopw img { max-width: 100%; display: block; }
.shopw a { color: inherit; }
.shopw .bi { line-height: 1; }

/* ---------------------------------------------------------------- buttons */
.shopw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
    border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: 1rem;
    text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.shopw-btn:active { transform: translateY(1px); }
.shopw-btn.is-primary { background: var(--_accent); color: var(--_accent-ink); }
.shopw-btn.is-primary:hover { background: color-mix(in srgb, var(--_accent) 86%, #000); }
.shopw-btn.is-dark { background: var(--_dark); color: #fff; }
.shopw-btn.is-dark:hover { background: color-mix(in srgb, var(--_dark) 80%, var(--_accent)); }
.shopw-btn.is-ghost { background: transparent; color: var(--_ink); border-color: var(--_line); }
.shopw-btn.is-ghost:hover { border-color: var(--_ink); }
.shopw-btn:disabled { opacity: .6; cursor: progress; }
.shopw-block { display: flex; width: 100%; }
.shopw-grow { flex: 1 1 auto; }
.shopw-link { background: none; border: 0; padding: 4px 0; color: var(--_muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .875rem; }
.shopw :focus-visible { outline: 2px solid var(--_accent); outline-offset: 2px; }

/* ------------------------------------------------------------------ cards */
.shopw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1199.98px) { .shopw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px)  { .shopw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }

.shopw-card { display: flex; flex-direction: column; background: var(--_surface); border-radius: var(--_r); overflow: hidden;
    border: 1px solid var(--_line); transition: box-shadow .25s, transform .25s; min-width: 0; }
.shopw-card:hover { box-shadow: 0 18px 40px -24px rgba(31, 23, 32, .45); transform: translateY(-2px); }
.shopw-card-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1;
    background: var(--_soft); overflow: hidden; color: var(--_muted); font-size: 2.5rem; }
.shopw-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.shopw-card:hover .shopw-card-media img { transform: scale(1.04); }
.shopw-card.is-out .shopw-card-media img { opacity: .55; filter: grayscale(.4); }
.shopw-badge { position: absolute; left: 12px; top: 12px; background: var(--_accent); color: var(--_accent-ink);
    font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.shopw-badge.is-out { background: var(--_dark); color: #fff; left: auto; right: 12px; }
.shopw-card-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; flex: 1 1 auto; }
.shopw-card-title { margin: 0; font-family: inherit; font-size: .95rem; font-weight: 500; line-height: 1.35; letter-spacing: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.shopw-card-title a { text-decoration: none; }
.shopw-card-title a::after { content: ''; position: absolute; inset: 0; }
.shopw-card { position: relative; }
.shopw-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.shopw-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.shopw-price { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.shopw-regular { color: var(--_muted); text-decoration: line-through; font-size: .85rem; font-variant-numeric: tabular-nums; }
.shopw-add { position: relative; z-index: 1; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 0;
    background: var(--_dark); color: #fff; font-size: 1.1rem; cursor: pointer; display: inline-flex; align-items: center;
    justify-content: center; transition: background-color .2s, transform .2s; }
.shopw-add:hover { background: var(--_accent); color: var(--_accent-ink); }
.shopw-add.is-done { background: var(--_accent); transform: scale(1.08); }

.shopw-card.is-skeleton { pointer-events: none; }
.shopw-card.is-skeleton .shopw-card-media, .shopw-card.is-skeleton span { background: linear-gradient(90deg, var(--_soft), var(--_line), var(--_soft));
    background-size: 200% 100%; animation: shopw-shine 1.2s infinite linear; }
.shopw-card.is-skeleton span { display: block; height: 12px; border-radius: 6px; }
.shopw-card.is-skeleton span + span { width: 50%; }
@keyframes shopw-shine { to { background-position: -200% 0; } }

/* -------------------------------------------------------------- catalogue */
.shopw-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.shopw-search { position: relative; flex: 1 1 280px; max-width: 420px; display: flex; align-items: center; }
.shopw-search .bi { position: absolute; left: 16px; color: var(--_muted); }
.shopw-search input, .shopw-sort select, .shopw-field input, .shopw-field select {
    width: 100%; min-height: 48px; border: 1.5px solid var(--_line); border-radius: 12px; background: var(--_surface);
    color: var(--_ink); font: inherit; font-size: 1rem; padding: 0 16px; transition: border-color .2s, box-shadow .2s; }
.shopw-search input { padding-left: 44px; border-radius: 999px; }
.shopw-search input:focus, .shopw-sort select:focus, .shopw-field input:focus, .shopw-field select:focus {
    outline: none; border-color: var(--_accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--_accent) 15%, transparent); }
.shopw-sort { display: flex; align-items: center; gap: 8px; color: var(--_muted); font-size: .9rem; }
.shopw-sort select { width: auto; min-width: 210px; border-radius: 999px; }
/* Our own chevron, with room: the browser's arrow sat glued to the edge and
   looked different in every browser. */
.shopw-sort select, .shopw-field select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235f5a5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px; }
/* The categories wrap onto a second line instead of being cut at the edge;
   on a phone they scroll, and the fade says there is more. */
.shopw-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 12px; }
@media (max-width: 767.98px) {
    .shopw-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 24px;
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
    .shopw-chips::-webkit-scrollbar { display: none; }
}
.shopw-chips button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
    border-radius: 999px; border: 1.5px solid var(--_line); background: var(--_surface); color: var(--_ink); font: inherit;
    font-size: .9rem; cursor: pointer; transition: all .2s; }
.shopw-chips button span { font-size: .75rem; color: var(--_muted); }
.shopw-chips button:hover { border-color: var(--_ink); }
.shopw-chips button.is-on { background: var(--_dark); border-color: var(--_dark); color: #fff; }
.shopw-chips button.is-on span { color: rgba(255, 255, 255, .7); }
.shopw-count { color: var(--_muted); font-size: .9rem; margin: 0 0 16px; }
.shopw-more { display: flex; justify-content: center; margin-top: 32px; }
.shopw-muted { color: var(--_muted); font-size: .875rem; margin: 8px 0 0; }
.shopw-loading { padding: 48px 0; text-align: center; color: var(--_muted); }
.shopw-empty { text-align: center; padding: 48px 16px; grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.shopw-empty > .bi { font-size: 2.5rem; color: var(--_accent); }
.shopw-empty h3 { margin: 8px 0 0; font-family: var(--_head); font-size: 1.5rem; }
.shopw-empty p { margin: 0 0 16px; color: var(--_muted); }

/* ------------------------------------------------------------- categories */
.shopw-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 991.98px) { .shopw-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shopw .shopw-cat { position: relative; min-height: 148px; padding: 20px; border-radius: var(--_r); overflow: hidden; text-decoration: none;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; color: #fff; isolation: isolate;
    transition: transform .25s, box-shadow .25s; }
.shopw-cat:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(31, 23, 32, .6); }
.shopw-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.shopw-cat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(20, 8, 16, .82)); }
.shopw-cat.tone-0 { background: linear-gradient(135deg, #5b1a3a, #9d174d); }
.shopw-cat.tone-1 { background: linear-gradient(135deg, #2a1830, #6b2a5c); }
.shopw-cat.tone-2 { background: linear-gradient(135deg, #7a2048, #c2416e); }
.shopw-cat.tone-3 { background: linear-gradient(135deg, #1f1720, #4a2a3e); }
.shopw-cat-name { font-family: var(--_head); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.shopw-cat-count { font-size: .8rem; opacity: .85; display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- product */
.shopw-crumbs { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--_muted); margin-bottom: 24px; flex-wrap: wrap; }
.shopw-crumbs a { text-decoration: none; }
.shopw-crumbs a:hover { color: var(--_accent); }
.shopw-crumbs .bi { font-size: .7rem; }
.shopw-product-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 991.98px) { .shopw-product-grid { grid-template-columns: 1fr; gap: 24px; } }
.shopw-gallery { position: sticky; top: 96px; }
@media (max-width: 991.98px) { .shopw-gallery { position: static; } }
.shopw-gallery-main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--_r); overflow: hidden; background: var(--_soft);
    display: flex; align-items: center; justify-content: center; color: var(--_muted); font-size: 4rem; }
.shopw-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.shopw-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.shopw-thumbs button { flex: 0 0 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent;
    background: var(--_soft); cursor: pointer; }
.shopw-thumbs button.is-on { border-color: var(--_accent); }
.shopw-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.shopw-buy { display: flex; flex-direction: column; gap: 16px; }
.shopw-product-title { margin: 0; font-family: var(--_head); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em; }
.shopw-summary { margin: 0; color: var(--_muted); font-size: 1.05rem; }
.shopw-prices.is-big .shopw-price { font-size: 1.9rem; }
.shopw-prices.is-big .shopw-regular { font-size: 1.05rem; }
.shopw-save { background: color-mix(in srgb, var(--_accent) 12%, transparent); color: var(--_accent); font-weight: 600; font-size: .8rem;
    padding: 4px 10px; border-radius: 999px; }
.shopw-stock { margin: 0; display: flex; align-items: center; gap: 8px; color: #166534; font-weight: 500; }
.shopw-stock.is-low { color: #b45309; }
.shopw-stock.is-out { color: var(--_muted); }
.shopw-buy-row { display: flex; gap: 12px; }
.shopw-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--_line); border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.shopw-qty button { width: 44px; height: 48px; border: 0; background: transparent; color: var(--_ink); cursor: pointer; font-size: 1rem; }
.shopw-qty button:hover { background: var(--_soft); }
.shopw-qty output { min-width: 32px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.shopw-qty.is-sm button { width: 36px; height: 36px; }
.shopw-trust { list-style: none; padding: 16px; margin: 8px 0 0; display: grid; gap: 12px; background: var(--_soft); border-radius: var(--_r); }
.shopw-trust li { display: flex; gap: 12px; align-items: center; font-size: .9rem; }
.shopw-trust li > .bi { font-size: 1.3rem; color: var(--_accent); flex: 0 0 auto; }
.shopw-trust b { display: block; }
.shopw-trust li span { color: var(--_muted); }
.shopw-trust li span b { color: var(--_ink); }
.shopw-sku { margin: 0; font-size: .8rem; color: var(--_muted); }
.shopw-desc, .shopw-related { margin-top: 64px; }
.shopw-desc h2, .shopw-related h2 { font-family: var(--_head); font-size: 1.6rem; margin: 0 0 16px; }
.shopw-desc-body { max-width: 760px; line-height: 1.7; color: color-mix(in srgb, var(--_ink) 88%, transparent); }
.shopw-desc-body p { margin: 0 0 12px; }

/* ------------------------------------------------------------- cart / sum */
.shopw-cart, .shopw-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
@media (max-width: 991.98px) { .shopw-cart, .shopw-checkout { grid-template-columns: 1fr; gap: 24px; } }
.shopw-clines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--_line); }
.shopw-cline { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--_line); align-items: center; }
.shopw-cline.is-out { opacity: .7; }
.shopw-cline-img { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--_soft); display: flex; align-items: center; justify-content: center; }
.shopw-cline-img img { width: 100%; height: 100%; object-fit: cover; }
.shopw-cline-name { font-weight: 600; text-decoration: none; display: block; margin-bottom: 4px; }
.shopw-cline-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.shopw-cline-total { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) {
    .shopw-cline { grid-template-columns: 72px minmax(0, 1fr); }
    .shopw-cline-img { width: 72px; height: 72px; }
    .shopw-cline-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}
.shopw-warn { margin: 4px 0 0; color: #b45309; font-size: .85rem; }
.shopw-summary-box { background: var(--_soft); border-radius: var(--_r); padding: 24px; display: flex; flex-direction: column; gap: 12px;
    position: sticky; top: 96px; }
@media (max-width: 991.98px) { .shopw-summary-box { position: static; } }
.shopw-summary-box h2 { margin: 0 0 4px; font-family: var(--_head); font-size: 1.4rem; }
.shopw-sum-row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.shopw-sum-row.is-total { border-top: 1px solid var(--_line); padding-top: 12px; font-size: 1.2rem; }
.shopw-free p { margin: 0 0 8px; font-size: .9rem; }
.shopw-free-bar { height: 6px; background: var(--_line); border-radius: 999px; overflow: hidden; }
.shopw-free-bar span { display: block; height: 100%; background: var(--_accent); border-radius: inherit; transition: width .4s; }
.shopw-mini { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.shopw-mini li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .9rem; }
.shopw-mini-img { position: relative; width: 56px; height: 56px; border-radius: 10px; background: var(--_surface); border: 1px solid var(--_line); }
.shopw-mini-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.shopw-mini-img em { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--_dark);
    color: #fff; font-style: normal; font-size: .75rem; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.shopw-mini-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shopw-problem { margin: 0; padding: 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: .9rem; }
.shopw-legal { font-size: .78rem; }

/* --------------------------------------------------------------- checkout */
.shopw-co-main { display: flex; flex-direction: column; gap: 32px; }
.shopw-checkout fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.shopw-checkout legend { display: flex; align-items: center; gap: 12px; font-family: var(--_head); font-size: 1.35rem; font-weight: 600; margin-bottom: 16px; padding: 0; }
.shopw-step { width: 32px; height: 32px; border-radius: 50%; background: var(--_dark); color: #fff; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: .9rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.shopw-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 575.98px) { .shopw-row2 { grid-template-columns: 1fr; } }
.shopw-field { display: flex; flex-direction: column; gap: 6px; }
.shopw-field label { font-weight: 500; font-size: .9rem; }
.shopw-field small { color: var(--_muted); font-size: .8rem; }
.shopw-field .is-invalid { border-color: #dc2626; }
.shopw-field label em { font-style: normal; font-weight: 400; color: var(--_muted); }
.shopw-field textarea { width: 100%; min-height: 96px; border: 1.5px solid var(--_line); border-radius: 12px; background: var(--_surface);
    color: var(--_ink); font: inherit; font-size: 1rem; padding: 12px 16px; resize: vertical; }
.shopw-field textarea:focus { outline: none; border-color: var(--_accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--_accent) 15%, transparent); }
.shopw-rut { position: relative; display: block; }
.shopw-rut input { padding-right: 44px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.shopw-ok { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #15803d; opacity: 0; transition: opacity .15s; }
.shopw-rut input.is-valid { border-color: #16a34a; }
.shopw-rut input.is-valid + .shopw-ok { opacity: 1; }
.shopw-choices.is-compact { grid-template-columns: 1fr 1fr; }
.shopw-choices.is-compact .shopw-choice-box { padding: 12px 14px; }
.shopw-invoice { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 12px; background: var(--_soft); }
.shopw-invoice[hidden] { display: none; }
.shopw-field label.shopw-check { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; cursor: pointer; }
.shopw-check input { width: 22px; height: 22px; min-height: 0; margin-top: 1px; flex: 0 0 auto; accent-color: var(--_accent); }
.shopw-err { color: #b91c1c; font-size: .85rem; }
.shopw-err:empty { display: none; }
.shopw-ship, .shopw-pickup { display: flex; flex-direction: column; gap: 16px; }
.shopw-ship[hidden], .shopw-pickup[hidden] { display: none; }
.shopw-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.shopw-choices.is-list { grid-template-columns: 1fr; }
.shopw-choice { position: relative; cursor: pointer; display: block; }
.shopw-choice input { position: absolute; opacity: 0; pointer-events: none; }
.shopw-choice-box { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--_line); border-radius: 12px;
    background: var(--_surface); transition: border-color .2s, background-color .2s; height: 100%; }
.shopw-choice-box > .bi { font-size: 1.4rem; color: var(--_muted); flex: 0 0 auto; margin-top: 2px; }
.shopw-choice-box b { display: block; font-weight: 600; }
.shopw-choice-box span span { color: var(--_muted); font-size: .85rem; }
.shopw-choice input:checked + .shopw-choice-box { border-color: var(--_accent); background: color-mix(in srgb, var(--_accent) 6%, var(--_surface)); }
.shopw-choice input:checked + .shopw-choice-box > .bi { color: var(--_accent); }
.shopw-choice input:focus-visible + .shopw-choice-box { outline: 2px solid var(--_accent); outline-offset: 2px; }

/* ------------------------------------------------------------------ order */
.shopw-order { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.shopw-order-head { display: flex; gap: 20px; padding: 28px; border-radius: var(--_r); background: var(--_soft); align-items: flex-start; }
.shopw-order-head > .bi { font-size: 2.2rem; color: var(--_accent); }
.shopw-order-head.is-cancel > .bi { color: var(--_muted); }
.shopw-order-head.is-fail { background: color-mix(in srgb, #dc2626 7%, var(--_surface)); border: 1px solid color-mix(in srgb, #dc2626 30%, transparent); }
.shopw-order-head.is-fail > .bi { color: #dc2626; }
.shopw-order-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.shopw-order-actions .shopw-btn { min-height: 48px; }
.shopw-order-err { margin-top: 10px !important; color: #b91c1c !important; font-weight: 600; }
.shopw-order-head h2 { margin: 0 0 6px; font-family: var(--_head); font-size: 1.6rem; line-height: 1.2; }
.shopw-order-head p { margin: 0; color: var(--_muted); }
.shopw-bank { white-space: pre-line; font: inherit; background: var(--_surface); border: 1px dashed var(--_line); border-radius: 10px; padding: 12px 16px; margin: 12px 0 0; }
.shopw-order-meta { display: flex; justify-content: space-between; color: var(--_muted); font-size: .9rem; }
.shopw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; counter-reset: s; }
.shopw-steps li { display: flex; flex-direction: column; gap: 8px; font-size: .8rem; color: var(--_muted); }
.shopw-steps li span { height: 4px; border-radius: 4px; background: var(--_line); }
.shopw-steps li.is-done span { background: var(--_accent); }
.shopw-steps li.is-now { color: var(--_ink); font-weight: 600; }
.shopw-order-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
@media (max-width: 767.98px) { .shopw-order-grid { grid-template-columns: 1fr; } .shopw-steps { grid-template-columns: 1fr; } }
.shopw-order-grid section { display: flex; flex-direction: column; gap: 12px; }
.shopw-order-grid h3 { margin: 8px 0 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--_muted); font-family: inherit; }
.shopw-order-grid p { margin: 0; }

/* ------------------------------------------------------------ header bits */
.shopw-cartbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 50%; color: inherit; text-decoration: none; font-size: 1.3rem; transition: background-color .2s; }
.shopw-cartbtn:hover { background: rgba(127, 127, 127, .15); }
.shopw-cartbtn-n { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
    background: var(--_accent); color: var(--_accent-ink); font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.shopw-cartbtn-n[hidden] { display: none; }

.shopw-toast { position: fixed; z-index: 2000; left: 50%; bottom: 24px; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 12px;
    background: #1f1720; color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45);
    transition: transform .3s ease; max-width: calc(100vw - 32px); font-size: .9rem; }
.shopw-toast.is-on { transform: translate(-50%, 0); }
.shopw-toast > .bi { font-size: 1.3rem; color: #f9a8d4; }
.shopw-toast-sub { display: block; opacity: .75; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shopw-toast-link { color: #f9a8d4; font-weight: 600; text-decoration: none; white-space: nowrap; margin-left: 8px; }

html.shopw-locked, html.shopw-locked body { overflow: hidden; }
.shopw-age { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(20, 8, 16, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.shopw-age-box { background: #fff; color: #1f1720; max-width: 440px; width: 100%; border-radius: 20px; padding: 40px 32px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 12px; }
.shopw-age-mark { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800;
    color: #fff; background: var(--shopw-accent, #9d174d); font-size: 1.2rem; }
.shopw-age-box h2 { margin: 4px 0 0; font-family: var(--shopw-font-head, inherit); font-size: 1.6rem; }
.shopw-age-box p { margin: 0 0 8px; color: #6b5f6a; }
.shopw-age-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.shopw-age .shopw-btn { width: 100%; }
.shopw-age .shopw-btn.is-primary { background: var(--shopw-accent, #9d174d); color: #fff; }
.shopw-age .shopw-btn.is-ghost { border-color: #ece4e8; color: #1f1720; }

.shopw-preview-tag, .shopw-preview-box { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    border: 1px dashed currentColor; font-size: .85rem; opacity: .8; }
.shopw-preview-box { flex-direction: column; border-radius: var(--_r); padding: 32px; width: 100%; text-align: center; }
.shopw-preview-box .bi { font-size: 2rem; }

@media (prefers-reduced-motion: reduce) {
    .shopw *, .shopw-toast { transition: none !important; animation: none !important; }
}

/* ----------------------------------------------------------------- stores
 * --shopw-store-edge-0…3 colour each card's left edge; a site sets them to
 * its palette. */
.shopw-stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.shopw-store {
    background: var(--_surface); border: 1px solid var(--_line); border-left: 6px solid var(--shopw-store-edge-0, var(--_accent));
    border-radius: var(--_r); padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.shopw-store.tone-1 { border-left-color: var(--shopw-store-edge-1, var(--_dark)); }
.shopw-store.tone-2 { border-left-color: var(--shopw-store-edge-2, var(--_accent)); }
.shopw-store.tone-3 { border-left-color: var(--shopw-store-edge-3, var(--_dark)); }
.shopw-store-top { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.shopw-store-area { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--_muted); }
.shopw-now { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--_muted); }
.shopw-now i { width: 8px; height: 8px; border-radius: 50%; background: #a8a2a6; flex: none; }
.shopw-now.is-open { color: #166534; }
.shopw-now.is-open i { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.shopw-store-name { margin: 0; font-family: var(--_head); font-size: 1.6rem; line-height: 1.1; color: var(--_ink); overflow-wrap: anywhere; }
.shopw-store-line { margin: 0; display: flex; gap: 8px; align-items: flex-start; color: var(--_muted); font-size: 15px; line-height: 1.5; }
.shopw-store-line .bi { margin-top: 4px; color: var(--_accent); flex: none; }
.shopw-store-line.is-pickup { color: var(--_ink); font-size: 14px; }
.shopw-week { font-size: 14.5px; color: var(--_muted); }
.shopw-week summary {
    list-style: none; cursor: pointer; display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; min-height: 24px;
}
.shopw-week summary::-webkit-details-marker { display: none; }
.shopw-week summary .bi-clock { margin-top: 4px; color: var(--_accent); flex: none; }
.shopw-week summary span { flex: 1; }
.shopw-week summary .bi-chevron-down { margin-top: 5px; font-size: 12px; transition: transform .2s; flex: none; }
.shopw-week[open] summary .bi-chevron-down { transform: rotate(180deg); }
.shopw-week ul { list-style: none; margin: 10px 0 0; padding: 10px 0 0 24px; border-top: 1px dashed var(--_line); }
.shopw-week li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.shopw-week li.is-today { color: var(--_ink); font-weight: 700; }
.shopw-week li b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--_accent); margin-left: 4px; }
.shopw-store-actions { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.shopw-store-actions .shopw-btn { min-height: 44px; padding: 0 16px; font-size: .95rem; white-space: nowrap; }
.shopw-store-more { display: flex; gap: 8px; }
.shopw-store-more .shopw-btn { flex: 1 1 0; min-width: 0; font-size: .875rem; padding: 0 8px; gap: 6px; }

/* The privacy box sits right above «Confirmar pedido». */
.shopw-privacy { margin: 0 0 14px; }
.shopw-privacy label.shopw-check { font-size: 14px; line-height: 1.5; color: var(--_ink); }
.shopw-privacy a { color: var(--_accent); text-decoration: underline; text-underline-offset: 2px; }

/* Discount code: one link until it is wanted, then a field; once applied, a tag. */
.shopw-coupon { margin: 14px 0 6px; padding-top: 12px; border-top: 1px dashed var(--_line); }
.shopw-coupon .shopw-link { display: inline-flex; align-items: center; gap: 6px; }
.shopw-coupon-row { display: flex; gap: 8px; }
.shopw-coupon-row input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--_line); border-radius: 10px;
    font: inherit; text-transform: uppercase; letter-spacing: .04em; background: var(--_surface); color: var(--_ink); }
.shopw-coupon-row input.is-invalid { border-color: #dc2626; }
.shopw-coupon-row .shopw-btn { min-height: 44px; padding: 0 16px; }
.shopw-coupon-on { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    background: color-mix(in srgb, #16a34a 9%, var(--_surface)); border: 1px solid color-mix(in srgb, #16a34a 35%, transparent); }
.shopw-coupon-on > .bi { color: #15803d; font-size: 1.2rem; }
.shopw-coupon-on > span { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.3; }
.shopw-coupon-on b { letter-spacing: .04em; }
.shopw-coupon-on [data-coupon-label] { font-size: .85rem; color: var(--_muted); }
.shopw-sum-row.is-discount b { color: #15803d; }
.shopw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- account */
.shopw-heart { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto;
    border-radius: 50%; border: 1.5px solid var(--_line); background: var(--_surface); color: var(--_ink); cursor: pointer;
    font-size: 1.15rem; transition: color .2s, border-color .2s, transform .15s; }
.shopw-heart:hover { border-color: var(--_accent); color: var(--_accent); }
.shopw-heart.is-on { color: var(--_accent); border-color: color-mix(in srgb, var(--_accent) 40%, var(--_line)); }
.shopw-heart:active { transform: scale(.92); }
.shopw-heart:focus-visible { outline: 2px solid var(--_accent); outline-offset: 2px; }
.shopw-heart.is-card { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-color: transparent;
    background: color-mix(in srgb, var(--_surface) 88%, transparent); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.shopw-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.shopw-title-row .shopw-product-title { margin: 0; }

.shopw-acctbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; color: inherit; text-decoration: none; font-size: 1.3rem; }
.shopw-acctbtn-name { font-size: .9rem; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575.98px) { .shopw-acctbtn-name { display: none; } }

.shopw-auth { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.shopw-auth-head h2 { margin: 0 0 8px; font-family: var(--_head); font-size: 2rem; line-height: 1.1; }
.shopw-auth-head p { margin: 0; color: var(--_muted); }
.shopw-auth-form { display: flex; flex-direction: column; gap: 16px; }
.shopw-auth-form[hidden] { display: none; }
.shopw-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--_soft); }
.shopw-seg button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 600; color: var(--_muted); cursor: pointer; }
.shopw-seg button[aria-selected="true"] { background: var(--_surface); color: var(--_ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.shopw-link { align-self: center; background: none; border: 0; padding: 4px; font: inherit; font-size: .9rem; color: var(--_ink);
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.shopw-link:hover { color: var(--_accent); }
.shopw-block { width: 100%; }

.shopw-acct { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 991.98px) { .shopw-acct { grid-template-columns: 1fr; gap: 24px; } }
.shopw-acct-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 991.98px) { .shopw-acct-side { position: static; } }
.shopw-acct-hello { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--_r); background: var(--_soft); }
.shopw-acct-hello div { display: flex; flex-direction: column; min-width: 0; }
.shopw-acct-hello span:not(.shopw-acct-avatar) { color: var(--_muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shopw-acct-avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    background: var(--_accent); color: var(--_accent-ink); font-weight: 700; font-size: 1.1rem; }
.shopw-acct-nav { display: flex; flex-direction: column; gap: 4px; }
.shopw-acct-nav a, .shopw-acct-nav button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; border-radius: 12px;
    border: 0; background: none; font: inherit; color: var(--_ink); text-decoration: none; cursor: pointer; text-align: left; }
.shopw-acct-nav a:hover, .shopw-acct-nav button:hover { background: var(--_soft); }
.shopw-acct-nav a.is-on { background: color-mix(in srgb, var(--_accent) 10%, var(--_surface)); color: var(--_accent); font-weight: 600; }
.shopw-acct-nav button { color: var(--_muted); margin-top: 8px; }
@media (max-width: 991.98px) {
    .shopw-acct-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 8px; }
    .shopw-acct-nav a, .shopw-acct-nav button { flex: 0 0 auto; border: 1.5px solid var(--_line); border-radius: 999px; margin: 0; }
}
.shopw-acct-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.shopw-acct-head h2 { margin: 0 0 6px; font-family: var(--_head); font-size: 1.8rem; line-height: 1.15; }
.shopw-acct-head p { margin: 0; color: var(--_muted); }
.shopw-acct-list { display: flex; flex-direction: column; gap: 16px; }
.shopw-acct-order { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1.5px solid var(--_line); border-radius: var(--_r); background: var(--_surface); }
.shopw-acct-order-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.shopw-acct-order-top div { display: flex; flex-direction: column; gap: 2px; }
.shopw-acct-order-top span:not(.shopw-chip) { color: var(--_muted); font-size: .875rem; }
.shopw-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: var(--_soft); color: var(--_ink); white-space: nowrap; }
.shopw-chip.is-live { background: color-mix(in srgb, var(--_accent) 12%, var(--_surface)); color: var(--_accent); }
.shopw-chip.is-done { background: color-mix(in srgb, #16a34a 12%, var(--_surface)); color: #15803d; }
.shopw-chip.is-wait { background: color-mix(in srgb, #d97706 14%, var(--_surface)); color: #92400e; }
.shopw-chip.is-off { color: var(--_muted); }
.shopw-steps.is-small li { font-size: .75rem; }
@media (max-width: 767.98px) { .shopw-steps.is-small { grid-template-columns: repeat(5, 1fr); } .shopw-steps.is-small li { font-size: 0; } }
.shopw-acct-cancel { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--_muted); }
.shopw-acct-order-body { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.shopw-acct-thumbs { display: flex; gap: 8px; align-items: center; }
.shopw-acct-thumbs .shopw-mini-img { width: 56px; height: 56px; }
.shopw-acct-more { font-weight: 600; color: var(--_muted); padding: 0 4px; }
.shopw-acct-order-sum { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; font-size: .875rem; color: var(--_muted); }
.shopw-acct-order-sum .bi { margin-right: 6px; }
.shopw-acct-total { font-size: 1.25rem; color: var(--_ink); font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) { .shopw-acct-order-sum { align-items: flex-start; text-align: left; } }
.shopw-acct-order-actions, .shopw-acct-row { display: flex; gap: 12px; flex-wrap: wrap; }
.shopw-acct-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1.5px solid var(--_line); border-radius: var(--_r); background: var(--_surface); }
.shopw-acct-card[hidden] { display: none; }
.shopw-acct-card h3 { margin: 0; font-size: 1.1rem; }
.shopw-acct-card p { margin: 0; color: var(--_muted); }
.shopw-acct-card .shopw-btn { align-self: flex-start; }
.shopw-acct-card.is-danger { border-color: color-mix(in srgb, #dc2626 30%, var(--_line)); }
.shopw-btn.is-danger { background: #b91c1c; color: #fff; }
.shopw-btn.is-danger:hover { background: #991b1b; }
.shopw-field input:disabled { background: var(--_soft); color: var(--_muted); }
.shopw-acct-addrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.shopw-acct-addr { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 20px; border: 1.5px solid var(--_line); border-radius: var(--_r); }
.shopw-acct-addr.is-main { border-color: color-mix(in srgb, var(--_accent) 45%, var(--_line)); }
.shopw-acct-addr > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.shopw-acct-addr b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shopw-acct-addr span { color: var(--_muted); font-size: .9rem; }
.shopw-acct-addr-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.shopw-acct-addr-actions .shopw-link { margin-right: auto; padding-left: 0; }
.shopw-iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px;
    border-radius: 10px; border: 1.5px solid var(--_line); background: var(--_surface); color: var(--_ink); cursor: pointer; font: inherit; font-size: .85rem; }
.shopw-iconbtn:hover { border-color: var(--_ink); }
.shopw-iconbtn.is-danger:hover, .shopw-iconbtn.is-sure { border-color: #dc2626; color: #b91c1c; }
.shopw-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .shopw-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Checkout: buying with, or creating, an account. */
.shopw-acct-offer { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: var(--_soft); }
.shopw-acct-offer p, .shopw-acct-note { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .95rem; }
.shopw-acct-offer a, .shopw-acct-note a { font-weight: 600; text-underline-offset: 3px; }
.shopw-acct-offer [hidden] { display: none; }
.shopw-acct-note { padding: 12px 16px; border-radius: 12px; background: var(--_soft); }
.shopw-check-help { display: block; color: var(--_muted); font-size: .8rem; font-weight: 400; margin-top: 2px; }
.shopw-label { font-weight: 500; font-size: .9rem; }
.shopw-choices.is-tight .shopw-choice-box { padding: 12px 14px; }
.shopw-field[hidden] { display: none; }
.shopw-acct-main > [data-addr-new] { align-self: flex-start; }
.shopw-acct-main > [data-addr-new][hidden] { display: none; }
.shopw-acct-addrs > p { grid-column: 1 / -1; margin: 0; }
