/* ===== Tienda (front público) ===== */

.shop h1 { margin: 0 0 1.2rem; }

.shop-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; }
.shop-cats__link {
    display: inline-flex; align-items: center;
    padding: .5rem 1rem; border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 999px; text-decoration: none; color: #334155; background: #fff;
    font-size: .9rem; font-weight: 600;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.shop-cats__link:hover {
    background: color-mix(in srgb, var(--brand-primary, #3f8f30) 10%, #fff);
    border-color: color-mix(in srgb, var(--brand-primary, #3f8f30) 40%, #fff);
    color: var(--brand-primary, #3f8f30);
}
.shop-cats__link.is-active {
    background: var(--brand-primary, #3f8f30); color: #fff;
    border-color: var(--brand-primary, #3f8f30);
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand-primary, #3f8f30) 70%, transparent);
    cursor: default;
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .shop-cats__link:hover { background: #eef7ec; border-color: #a7dd98; color: #3f8f30; }
    .shop-cats__link.is-active { box-shadow: 0 8px 18px -8px rgba(63, 143, 46, .5); }
}

.shop-breadcrumb { font-size: .85rem; color: #6b7280; margin: 0 0 1rem; }
.shop-breadcrumb a { color: #6b7280; text-decoration: none; }
.shop-breadcrumb a:hover { text-decoration: underline; }
.shop-breadcrumb span { margin: 0 .35rem; color: #cbd5e1; }

.shop-cat__desc { color: #4b5563; margin: 0 0 1.6rem; max-width: 70ch; }

/* Grilla de productos */
.shop-grid {
    display: grid; gap: 1.2rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.shop-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    border: 1px solid var(--color-border, #e9ebee); border-radius: 12px; overflow: hidden;
    background: #fff; transition: box-shadow .18s, transform .18s;
}
.shop-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.10); transform: translateY(-2px); }
.shop-card__img { aspect-ratio: 1; background: #f3f4f6; overflow: hidden; }
.shop-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card__img--empty { background: repeating-linear-gradient(45deg,#f3f4f6,#f3f4f6 10px,#eceef0 10px,#eceef0 20px); }
.shop-card__body { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.shop-card__name { font-size: .98rem; font-weight: 600; margin: 0; line-height: 1.3; }
.shop-card__price { margin: 0; font-size: 1rem; }

.shop-price__old { text-decoration: line-through; color: #9ca3af; font-size: .88em; margin-right: .35rem; }
.shop-price__now { font-weight: 700; }

.shop-empty { color: #6b7280; padding: 3rem 0; text-align: center; }

/* ============ Página de categoría: header + tarjetas pulidas ============ */
.shop-catpage { padding-top: 1.5rem; }
.shop-cathead {
    display: flex; align-items: flex-start; gap: 1.2rem;
    padding: 1.5rem 1.7rem;
    margin: 0 0 2rem;
    background: linear-gradient(135deg, #f6faf4 0%, #edf6e9 100%);
    border: 1px solid #e4eede;
    border-radius: 20px;
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .shop-cathead { background: #f2f8ef; }
}
.shop-cathead__icon {
    flex-shrink: 0;
    width: 60px; height: 60px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid #e4eede;
    color: var(--brand-primary, #3f8f30);
    box-shadow: 0 8px 18px rgba(63, 143, 46, .12);
}
.shop-cathead__icon svg { width: 32px; height: 32px; }
.shop-cathead__body { min-width: 0; }
.shop-cathead__kicker {
    display: inline-block;
    font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--brand-primary, #3f8f30);
    margin-bottom: .2rem;
}
.shop-cathead__title {
    margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800;
    letter-spacing: -.02em; color: #0f172a; line-height: 1.1;
}
.shop-cathead__count { margin: .45rem 0 0; font-size: .92rem; color: #64748b; }
.shop-cathead__count-num { font-weight: 800; color: var(--brand-primary, #3f8f30); }
.shop-cathead__desc { margin: .9rem 0 0; color: #475569; line-height: 1.6; max-width: 72ch; font-size: .98rem; }
.shop-cathead__desc p:last-child { margin-bottom: 0; }

/* Tarjetas de producto un poco más pulidas en la página de categoría. */
.shop-catpage .shop-card { border-radius: 16px; }
.shop-catpage .shop-card:hover {
    border-color: color-mix(in srgb, var(--brand-primary, #51af3f) 45%, transparent);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .shop-catpage .shop-card:hover { border-color: #a7dd98; }
}
.shop-catpage .shop-card__name { font-size: 1rem; color: #0f172a; }
.shop-catpage .shop-card__body { padding: .9rem 1rem 1.05rem; }
.shop-catpage .shop-price__now { color: var(--brand-primary, #3f8f30); font-weight: 800; }

@media (max-width: 560px) {
    .shop-cathead { gap: .9rem; padding: 1.2rem 1.2rem; border-radius: 16px; }
    .shop-cathead__icon { width: 48px; height: 48px; border-radius: 13px; }
    .shop-cathead__icon svg { width: 26px; height: 26px; }
    .shop-cathead__title { font-size: 1.55rem; }
    .shop-cathead__desc { font-size: .92rem; }
    /* Grilla: 2 columnas en mobile (antes 1 sola, con tarjetas enormes). */
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .shop-catpage .shop-card__body { padding: .7rem .75rem .85rem; }
    .shop-catpage .shop-card__name { font-size: .9rem; }
    .shop-card__price { font-size: .92rem; }
}

/* ============ Ficha de producto (estilo Trendo) ============ */
.shop-product { padding-top: 1.5rem; }
.shop-breadcrumb__current { color: #0f172a; }
.shop-breadcrumb a:hover { color: #0f172a; }

.shop-product__card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 20px;
    padding: 1.6rem;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .04);
}

.shop-product__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.2rem;
    align-items: start;
}
@media (max-width: 900px) {
    .shop-product__grid { grid-template-columns: 1fr; gap: 1.4rem; }
    .shop-product__card { padding: 1rem; }
}

/* ---- Media (thumbs verticales + stage) ---- */
.shop-product__media {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: .8rem;
    align-items: start;
}
/* 1 sola imagen → sin thumbs: el stage ocupa todo el ancho.
   Sin esto el grid mete el stage en la columna de 76px y queda como
   un cuadrado chico (aspect-ratio 1/1) que parece thumbnail. */
.shop-product__media.shop-gallery--solo { grid-template-columns: 1fr; }
@media (max-width: 600px) {
    .shop-product__media { grid-template-columns: 1fr; }
    .shop-gallery__thumbs--vertical { flex-direction: row !important; max-height: none !important; overflow-x: auto; }
}

.shop-gallery__thumbs--vertical {
    display: flex; flex-direction: column;
    gap: .55rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 2px;
}
.shop-gallery__thumbs--vertical .shop-gallery__thumb {
    width: 72px; height: 72px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1.5px solid #eef0f2;
    background: #f8fafc;
    padding: 0; overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: border-color .18s, transform .18s;
}
.shop-gallery__thumbs--vertical .shop-gallery__thumb:hover { transform: translateY(-1px); }
.shop-gallery__thumbs--vertical .shop-gallery__thumb.is-active { border-color: #0f172a; }
.shop-gallery__thumbs--vertical .shop-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.shop-gallery__stage {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
}
.shop-gallery__stage > img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; }
.shop-product__noimg {
    aspect-ratio: 1; border-radius: 16px; background: #f8fafc;
    display: flex; align-items: center; justify-content: center; color: #9ca3af;
}

/* ---- Info ---- */
.shop-product__info { padding: .5rem 0; display: flex; flex-direction: column; gap: 1.1rem; }

.shop-brand {
    display: flex; align-items: center; gap: .65rem;
    margin: 0;
}
.shop-brand__badge {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-primary, #0f172a);
    color: #fff;
    font-weight: 700; font-size: .95rem;
    border-radius: 50%;
}
.shop-brand__name { font-weight: 600; color: #0f172a; }

.shop-product__title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.015em;
    margin: 0;
    color: #0f172a;
    line-height: 1.15;
}
.shop-product__subcat {
    margin: -.6rem 0 0;
    font-size: .9rem;
    color: #64748b;
    font-weight: 500;
}
.shop-product__price {
    margin: 0;
    display: flex; align-items: baseline; gap: .6rem;
}
/* Tamaños grandes SOLO en la ficha de producto (no en cards de la tienda). */
.shop-product__price .shop-price__now { font-size: 1.9rem; font-weight: 800; color: #0f172a; letter-spacing: -.01em; }
.shop-product__price .shop-price__old { font-size: 1.05rem; color: #94a3b8; text-decoration: line-through; }
.shop-product__short {
    color: #475569; margin: 0; line-height: 1.55;
    max-width: 56ch;
}
.shop-product__stock--out { color: #b91c1c; font-weight: 600; }

/* ---- Swatch groups (variaciones) ---- */
.shop-swatchgroup { display: flex; flex-direction: column; gap: .55rem; }
.shop-swatchgroup__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: .8rem;
}
.shop-swatchgroup__label {
    font-size: .92rem; font-weight: 600; color: #0f172a;
    text-transform: capitalize;
}
.shop-swatchgroup__guide {
    font-size: .85rem; color: #64748b; text-decoration: none;
    border-bottom: 1px dashed #cbd5e1;
}
.shop-swatchgroup__guide:hover { color: #0f172a; border-bottom-color: #0f172a; }

.shop-swatches {
    display: flex; flex-wrap: wrap; gap: .5rem;
}
.shop-swatch {
    min-width: 56px;
    padding: .65rem 1rem;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font: inherit; font-weight: 600; font-size: .9rem;
    color: #0f172a;
    transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.shop-swatch:hover { border-color: #94a3b8; transform: translateY(-1px); }
.shop-swatch.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

/* Modo "desplegable" del setting variations_display_mode=select. */
.shop-varselect {
    width: 100%;
    padding: .75rem 2.4rem .75rem 1rem;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    font-size: .92rem;
    color: #0f172a;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230f172a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 8 10 13 15 8'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.shop-varselect:hover  { border-color: #94a3b8; }
.shop-varselect:focus  { outline: 0; border-color: #0f172a; box-shadow: 0 0 0 3px rgba(15,23,42,.08); }
.shop-swatchgroup--select .shop-swatchgroup__label { margin-bottom: .15rem; }

/* Tamaño / talle: grid uniforme, tolerante a valores largos (ej: "500 ml 15x10x3"). */
.shop-swatchgroup--size .shop-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .45rem;
    align-items: stretch;
}
.shop-swatchgroup--size .shop-swatch {
    text-align: center;
    padding: .55rem .5rem;
    min-width: 0;
    min-height: 48px;
    font-size: .82rem;
    line-height: 1.2;
    letter-spacing: -.005em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    hyphens: auto;
}
@media (max-width: 520px) {
    .shop-swatchgroup--size .shop-swatches {
        grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    }
    .shop-swatchgroup--size .shop-swatch { font-size: .78rem; min-height: 44px; padding: .5rem .4rem; }
}

/* ---- Botón Add to cart + qty stepper ---- */
.shop-varstock { color: #b91c1c; font-weight: 600; font-size: .9rem; margin: 0; min-height: 1.1em; }
.shop-product__buyrow {
    display: flex; gap: .6rem; align-items: stretch;
    flex-wrap: wrap;
}
.shop-qtybox {
    display: inline-flex; align-items: stretch;
    border: 1.5px solid #e2e8f0; border-radius: 12px;
    overflow: hidden;
}
.shop-qtybox__btn {
    background: #fff; border: 0;
    width: 40px;
    cursor: pointer;
    font-size: 1.15rem; line-height: 1;
    color: #0f172a;
    transition: background .15s;
}
.shop-qtybox__btn:hover { background: #f1f5f9; }
.shop-qty {
    width: 50px; padding: 0; text-align: center;
    border: 0; border-left: 1.5px solid #e2e8f0; border-right: 1.5px solid #e2e8f0;
    font: inherit; font-weight: 600; font-variant-numeric: tabular-nums;
    background: #fff;
}
.shop-qty:focus { outline: none; }

.shop-addcart {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center;
    gap: .55rem;
    min-width: 200px;
    padding: .9rem 1.4rem;
    background: #0f172a;
    color: #fff;
    border: 0;
    border-radius: 12px;
    font: inherit; font-weight: 600; font-size: .95rem;
    cursor: pointer;
    transition: background .15s, transform .15s, opacity .15s;
}
.shop-addcart:hover:not(:disabled) { background: #1e293b; transform: translateY(-1px); }
.shop-addcart:disabled { opacity: .5; cursor: not-allowed; }
.shop-addcart svg { display: block; }

.shop-wishlist {
    width: 48px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    color: #64748b;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color .15s, border-color .15s, background .15s;
}
.shop-wishlist:hover { color: #ef4444; border-color: #fecaca; background: #fef2f2; }
.shop-wishlist.is-fav { color: #ef4444; border-color: #fecaca; background: #fef2f2; }
.shop-wishlist.is-fav svg { fill: #ef4444; }

/* ---- Corazón overlay en cards del catálogo ---- */
.shop-card-wrap { position: relative; display: flex; }
.shop-card-wrap > .shop-card { flex: 1 1 auto; }
.shop-favbtn {
    position: absolute; top: .55rem; right: .55rem; z-index: 2;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #64748b; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: color .15s, background .15s, transform .12s;
}
.shop-favbtn:hover { color: #ef4444; background: #fff; transform: scale(1.06); }
.shop-favbtn.is-fav { color: #ef4444; }
.shop-favbtn.is-fav svg { fill: #ef4444; }

/* ---- Banner envío gratis ---- */
.shop-freeship {
    margin: .4rem 0 0;
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .65rem .9rem;
    background: #f8fafc;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    font-size: .85rem;
    color: #475569;
    align-self: flex-start;
}
.shop-freeship svg { color: #0f172a; flex-shrink: 0; }

/* ---- Ventajas (perks / elementos atractivos) ---- */
.shop-perks {
    list-style: none; margin: .9rem 0 0; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: .55rem;
}
.shop-perks__item {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem .8rem;
    background: #f6fdf8;
    border: 1px solid #e3f3e8;
    border-radius: 12px;
}
.shop-perks__icon {
    flex-shrink: 0; width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: #e7f6ec; color: #15803d;
}
.shop-perks__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.shop-perks__txt strong { font-size: .86rem; font-weight: 700; color: #0f172a; }
.shop-perks__txt small  { font-size: .76rem; color: #64748b; }
@media (max-width: 520px) {
    .shop-perks { grid-template-columns: 1fr; }
}

/* ---- Tiers (collapsible) ---- */
.shop-tiers--collapsible {
    margin: .4rem 0 0;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    padding: .6rem 1rem;
}
.shop-tiers--collapsible summary {
    cursor: pointer; font-weight: 600; color: #0f172a; font-size: .9rem;
    list-style: none;
    padding: .35rem 0;
}
.shop-tiers--collapsible summary::-webkit-details-marker { display: none; }
.shop-tiers--collapsible summary::after { content: " ↓"; color: #94a3b8; }
.shop-tiers--collapsible[open] summary::after { content: " ↑"; }
.shop-tiers__table { width: 100%; border-collapse: collapse; margin-top: .6rem; }
.shop-tiers__table th, .shop-tiers__table td { padding: .45rem .7rem; border-bottom: 1px solid #f1f5f9; text-align: left; font-size: .88rem; }
.shop-tiers__table thead th { color: #64748b; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.shop-tiers__moq { color: #6b7280; font-size: .82rem; margin: .5rem 0 0; }

/* Descripción larga: bajo la galería, en la columna izquierda.
   Colapsada por defecto con fundido + botón "Leer más". */
.shop-product__desc {
    margin-top: 1.6rem;
    padding: 1.4rem 1.5rem;
    background: #f8fafc;
    border: 1px solid #eef0f2;
    border-radius: 16px;
}
.shop-product__desc-title {
    font-size: 1.05rem; font-weight: 700; margin: 0 0 .7rem; color: #0f172a;
    display: flex; align-items: center; gap: .5rem;
}
.shop-product__desc-title::before {
    content: ""; width: 4px; height: 1.05em; border-radius: 4px;
    background: var(--brand-primary, #16a34a);
}
.shop-product__desc-body {
    color: #475569; line-height: 1.65; font-size: .95rem;
}
.shop-product__desc-body > :first-child { margin-top: 0; }
.shop-product__desc-body > :last-child { margin-bottom: 0; }
.shop-product__desc-body img { max-width: 100%; height: auto; border-radius: 10px; }

/* Estado colapsado: limita la altura y agrega fundido inferior. */
.shop-product__desc.is-clamped .shop-product__desc-body {
    position: relative;
    max-height: 7.2em;
    overflow: hidden;
}
.shop-product__desc.is-clamped .shop-product__desc-body::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em;
    background: linear-gradient(to bottom, rgba(248,250,252,0), #f8fafc);
    pointer-events: none;
}
.shop-product__desc.is-open .shop-product__desc-body {
    max-height: none;
}
.shop-product__desc.is-open .shop-product__desc-body::after { display: none; }

.shop-product__desc-toggle {
    display: inline-flex; align-items: center; gap: .35rem;
    margin-top: .9rem; padding: .4rem .2rem;
    background: none; border: none; cursor: pointer;
    color: var(--brand-primary, #16a34a); font-weight: 600; font-size: .9rem;
    font-family: inherit;
}
.shop-product__desc-toggle:hover { text-decoration: underline; }
.shop-product__desc-toggle svg { transition: transform .2s; }
.shop-product__desc.is-open .shop-product__desc-toggle svg { transform: rotate(180deg); }

/* Precios por mayor (en la columna de info, estilo tradicional) */
.shop-tiers { margin-top: 1.5rem; }
.shop-tiers--aside { border-top: 1px solid #eef0f2; padding-top: 1.1rem; }
.shop-tiers__title { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; }
.shop-tiers h2 { font-size: 1.15rem; margin: 0 0 .7rem; }
.shop-tiers__table { width: 100%; border-collapse: collapse; max-width: 340px; }
.shop-tiers__table th, .shop-tiers__table td { padding: .45rem .7rem; border: 1px solid #e5e7eb; text-align: left; font-size: .9rem; }
.shop-tiers__table thead th { background: #f9fafb; font-weight: 600; }
.shop-tiers__moq { color: #6b7280; font-size: .85rem; margin: .5rem 0 0; }

/* Video embeds (compartido) */
.shop-video { border-radius: 10px; }
div.shop-video { position: relative; width: 100%; aspect-ratio: 16 / 9; }
div.shop-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
video.shop-video { width: 100%; height: auto; background: #000; }

/* Galería de producto (videos primero + imágenes, tipo carrusel) */
.shop-gallery__stage { border-radius: 12px; overflow: hidden; background: #f3f4f6; }
.shop-gallery__stage > img { width: 100%; height: auto; display: block; }
.shop-gallery__stage video.shop-video { aspect-ratio: auto; }
.shop-gallery__facade { position: relative; cursor: pointer; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.shop-gallery__facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-gallery__facade-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.shop-gallery__facade-play:hover { background: rgba(0,0,0,.8); }
.shop-gallery__thumbs { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
.shop-gallery__thumb { position: relative; width: 72px; height: 72px; border: 2px solid #e5e7eb; border-radius: 8px; overflow: hidden; padding: 0; background: #f3f4f6; cursor: pointer; }
.shop-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-gallery__thumb.is-active { border-color: var(--color-text, #111); }
.shop-gallery__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0,0,0,.35); font-size: 1.05rem; }
.shop-gallery__vph { display: block; width: 100%; height: 100%; background: #1f2937; }

/* ===== Carrito ===== */
.shop-cart h1 { margin: 0 0 1.2rem; }
.shop-cart__alert { margin: 0 0 1rem; }
.shop-cart__empty { color: #6b7280; padding: 2rem 0; }

.shop-cart__wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.shop-cart__table { width: 100%; border-collapse: collapse; min-width: 640px; }
.shop-cart__table th, .shop-cart__table td { padding: .9rem .7rem; border-bottom: 1px solid #e5e7eb; vertical-align: middle; text-align: left; }
.shop-cart__table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; font-weight: 600; }
.shop-cart__th-num { text-align: right; }

.shop-cart__thumb { width: 84px; }
.shop-cart__thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.shop-cart__noimg { width: 72px; height: 72px; border-radius: 8px; background: repeating-linear-gradient(45deg,#f3f4f6,#f3f4f6 8px,#eceef0 8px,#eceef0 16px); }

.shop-cart__name a { color: inherit; text-decoration: none; font-weight: 600; }
.shop-cart__name a:hover { text-decoration: underline; }
.shop-cart__var { font-size: .85rem; color: #6b7280; margin: .25rem 0 0; }

.shop-cart__price, .shop-cart__line { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-cart__line { font-weight: 700; }

.shop-cart__qty { text-align: right; }
.shop-cart__qtyform { display: inline-flex; gap: .35rem; align-items: center; justify-content: flex-end; margin: 0; }
.shop-cart__qtyform .shop-qty { width: 76px; text-align: center; padding: .45rem; }
.shop-cart__update { padding: .45rem .65rem; border: 1px solid #d1d5db; background: #fff; border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1; }
.shop-cart__update:hover { background: #f3f4f6; }

.shop-cart__rm { width: 40px; text-align: right; }
.shop-cart__rmform { margin: 0; }
.shop-cart__rmbtn { background: transparent; border: 0; color: #9ca3af; font-size: 1.4rem; cursor: pointer; line-height: 1; padding: .2rem .35rem; border-radius: 6px; }
.shop-cart__rmbtn:hover { color: #b91c1c; background: #fef2f2; }

.shop-cart__totlbl { text-align: right; font-weight: 600; color: #374151; }
.shop-cart__tot { text-align: right; font-weight: 700; font-size: 1.15rem; }
.shop-cart__table tfoot td { border-bottom: 0; padding-top: 1.1rem; }

.shop-cart__actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; padding-top: .5rem; border-top: 1px solid #eef0f2; }
.shop-cart__clearform { margin: 0; }
.shop-cart__actions .btn[disabled] { opacity: .55; cursor: not-allowed; }
/* Nota: los estilos del ícono de carrito en navbar/drawer viven en
 * assets/css/site_header.css (para que sean coherentes con las 3 variantes). */

/* ===== Mini-cart drawer (slide-in desde la izquierda) ===== */
.cart-drawer__backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .55);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
    z-index: 120;
}
.cart-drawer__backdrop.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(92vw, 420px);
    background: #fff;
    z-index: 130;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22, .61, .36, 1);
    display: flex; flex-direction: column;
    box-shadow: -18px 0 40px rgba(15, 23, 42, .25);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid #eef0f2;
    flex-shrink: 0;
}
.cart-drawer__head h2 {
    margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: .55rem;
}
.cart-drawer__count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 .5rem;
    border-radius: 999px;
    background: #0f172a; color: #fff;
    font-size: .75rem; font-weight: 700;
}
.cart-drawer__close {
    background: transparent; border: 1px solid #e5e7eb;
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #64748b; cursor: pointer;
    transition: background .15s, color .15s;
}
.cart-drawer__close:hover { background: #f1f5f9; color: #0f172a; }

.cart-drawer__empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1; padding: 2rem; text-align: center; color: #64748b; gap: .9rem;
}
.cart-drawer__empty svg { color: #cbd5e1; }
.cart-drawer__empty p { margin: 0; font-size: 1rem; }

.cart-drawer__body {
    flex: 1; overflow-y: auto;
    padding: .8rem 1rem;
    display: flex; flex-direction: column; gap: .1rem;
}
.cart-drawer__item {
    display: flex; gap: .9rem; padding: .9rem .4rem;
    border-bottom: 1px solid #f1f5f9;
}
.cart-drawer__item:last-child { border-bottom: 0; }
.cart-drawer__thumb {
    flex-shrink: 0; width: 72px; height: 72px;
    border-radius: 10px; overflow: hidden; background: #f3f4f6;
    display: block;
}
.cart-drawer__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-drawer__noimg { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg,#f3f4f6,#f3f4f6 8px,#eceef0 8px,#eceef0 16px); }
.cart-drawer__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.cart-drawer__name {
    color: #0f172a; text-decoration: none; font-weight: 600;
    line-height: 1.3; font-size: .95rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-drawer__name:hover { text-decoration: underline; }
.cart-drawer__var { margin: 0; font-size: .8rem; color: #6b7280; }
.cart-drawer__price {
    margin: .15rem 0 0; display: flex; gap: .5rem; align-items: baseline;
    font-size: .85rem; color: #6b7280;
}
.cart-drawer__line { color: #0f172a; font-weight: 700; margin-left: auto; font-size: .95rem; }

.cart-drawer__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .35rem; }
.cart-drawer__stepper {
    display: inline-flex; align-items: center;
    border: 1px solid #e5e7eb; border-radius: 8px;
    overflow: hidden; margin: 0;
}
.cart-drawer__step {
    background: #fff; border: 0;
    width: 30px; height: 30px;
    font-size: 1rem; line-height: 1; cursor: pointer;
    color: #0f172a;
    transition: background .15s;
}
.cart-drawer__step:hover:not(:disabled) { background: #f1f5f9; }
.cart-drawer__step:disabled { color: #cbd5e1; cursor: not-allowed; }
.cart-drawer__qty {
    min-width: 30px; text-align: center;
    font-variant-numeric: tabular-nums; font-weight: 600;
    border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb;
    padding: 0 .4rem; line-height: 30px;
}
.cart-drawer__rmform { margin: 0; }
.cart-drawer__rm {
    background: transparent; border: 0; color: #9ca3af;
    cursor: pointer; padding: .35rem;
    border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color .15s, background .15s;
}
.cart-drawer__rm:hover { color: #b91c1c; background: #fef2f2; }

.cart-drawer__foot {
    border-top: 1px solid #eef0f2;
    padding: 1rem 1.3rem 1.2rem;
    flex-shrink: 0;
    background: #fff;
}
.cart-drawer__totrow {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 1rem; margin-bottom: .25rem;
}
.cart-drawer__totrow strong { font-size: 1.25rem; }
.cart-drawer__hint { font-size: .78rem; color: #94a3b8; margin-bottom: .9rem; }
.cart-drawer__cta { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.cart-drawer__cta .btn { padding: .75rem 1rem; font-size: .92rem; text-align: center; }
.cart-drawer__cta .btn[disabled] { opacity: .6; cursor: not-allowed; }

@media (max-width: 480px) {
    .cart-drawer { width: 100vw; }
    .cart-drawer__cta { grid-template-columns: 1fr; }
}

/* ==========================================================
   Checkout (/checkout) y confirmación (/orden/{n})
   ----------------------------------------------------------
   Layout 2-col con sidebar sticky · tarjetas elevadas con
   borde+sombra suave · pasos visuales · radios custom para
   métodos de pago · trust strip al pie del summary.
   Tokens propios para que sea reutilizable con cualquier marca
   sin acoplarse a --color-primary del starter.
   ========================================================== */
.shop-checkout {
    --co-radius:        14px;
    --co-radius-sm:     10px;
    --co-border:        #e6e8eb;
    --co-border-strong: #d3d6db;
    --co-surface:       #ffffff;
    --co-surface-alt:   #f7f8fa;
    --co-text:          #0f172a;
    --co-text-muted:    #64748b;
    --co-text-subtle:   #94a3b8;
    --co-accent:        var(--brand-primary, #0f172a);
    --co-accent-soft:   color-mix(in srgb, var(--brand-primary, #0f172a) 8%, #fff);
    --co-shadow-sm:     0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
    --co-shadow-md:     0 6px 18px -8px rgba(15,23,42,.12), 0 2px 6px -2px rgba(15,23,42,.06);
    padding-top: 1.6rem;
    padding-bottom: 3rem;
    color: var(--co-text);
}

/* --- Encabezado: breadcrumb + título + steps --- */
.shop-checkout__header {
    margin: 0 0 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.shop-checkout__crumb {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    width: max-content;
    font-size: .85rem;
    color: var(--co-text-muted);
    text-decoration: none;
    transition: color .15s;
}
.shop-checkout__crumb:hover { color: var(--co-text); }
.shop-checkout h1 {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    letter-spacing: -.02em;
}
.shop-checkout__steps {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.6rem;
    padding: 0;
    margin: .25rem 0 0;
    font-size: .82rem;
    color: var(--co-text-subtle);
    counter-reset: co-step;
}
.shop-checkout__step {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
    letter-spacing: .005em;
    position: relative;
}
.shop-checkout__step + .shop-checkout__step::before {
    content: '';
    position: absolute;
    left: -.95rem;
    top: 50%;
    width: .35rem;
    height: 1px;
    background: var(--co-border-strong);
}
.shop-checkout__step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: var(--co-surface-alt);
    color: var(--co-text-muted);
    border: 1px solid var(--co-border);
    font-size: .72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.shop-checkout__step.is-active { color: var(--co-text); }
.shop-checkout__step.is-active span {
    background: var(--co-accent);
    color: #fff;
    border-color: var(--co-accent);
}

/* --- Alertas inline (error/warn/info/ok) --- */
.shop-checkout__alert {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .9rem 1rem;
    margin: 0 0 1.2rem;
    border-radius: var(--co-radius-sm);
    border: 1px solid var(--co-border);
    background: var(--co-surface-alt);
    font-size: .92rem;
    line-height: 1.45;
}
.shop-checkout__alert svg { flex-shrink: 0; margin-top: .12rem; }
.shop-checkout__alert--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.shop-checkout__alert--warn  { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.shop-checkout__alert--info  { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.shop-checkout__alert--ok    { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }

/* --- Grid principal --- */
.shop-checkout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.4rem;
    align-items: start;
}
@media (max-width: 960px) {
    .shop-checkout__grid { grid-template-columns: 1fr; }
}
.shop-checkout__col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-width: 0;
}

/* --- Tarjetas de sección (datos / envío / pago / detalle orden) --- */
.shop-checkout__card {
    background: var(--co-surface);
    border: 1px solid var(--co-border);
    border-radius: var(--co-radius);
    box-shadow: var(--co-shadow-sm);
    padding: 1.4rem 1.5rem 1.5rem;
}
@media (max-width: 540px) {
    .shop-checkout__card { padding: 1.2rem 1.1rem; border-radius: 12px; }
}
.shop-checkout__card-head {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin: 0 0 1.2rem;
}
.shop-checkout__card-head > div { min-width: 0; }
.shop-checkout__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: var(--co-accent-soft);
    color: var(--co-accent);
    font-size: .92rem;
    font-weight: 600;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    border: 1px solid color-mix(in srgb, var(--co-accent) 14%, transparent);
}
.shop-checkout__num svg { width: 14px; height: 14px; }
.shop-checkout__card-title {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -.01em;
    color: var(--co-text);
}
.shop-checkout__card-sub {
    margin: .15rem 0 0;
    font-size: .85rem;
    color: var(--co-text-muted);
}

/* --- Campos de formulario --- */
.shop-checkout__fields {
    display: flex;
    flex-direction: column;
    gap: .95rem;
}
.shop-checkout__row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
}
@media (max-width: 540px) {
    .shop-checkout__row2 { grid-template-columns: 1fr; }
}
.shop-checkout__field { display: flex; flex-direction: column; gap: .4rem; }
.shop-checkout__field label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--co-text);
    letter-spacing: .005em;
}
.shop-checkout__field label small {
    font-weight: 400;
    color: var(--co-text-subtle);
    margin-left: .25rem;
}
.shop-checkout__field label span {
    color: var(--co-accent);
    margin-left: .15rem;
}
.shop-checkout__field input,
.shop-checkout__field textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1.5px solid var(--co-border);
    border-radius: var(--co-radius-sm);
    background: var(--co-surface);
    font-family: inherit;
    font-size: .95rem;
    line-height: 1.4;
    color: var(--co-text);
    transition: border-color .15s, box-shadow .15s, background .15s;
    appearance: none;
}
.shop-checkout__field input::placeholder,
.shop-checkout__field textarea::placeholder { color: var(--co-text-subtle); }
.shop-checkout__field input:hover,
.shop-checkout__field textarea:hover { border-color: var(--co-border-strong); }
.shop-checkout__field input:focus,
.shop-checkout__field textarea:focus {
    outline: none;
    border-color: var(--co-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--co-accent) 18%, transparent);
}
.shop-checkout__field textarea { min-height: 4.5rem; resize: vertical; line-height: 1.5; }
.shop-checkout__field-hint {
    font-size: .78rem;
    color: var(--co-text-muted);
    line-height: 1.4;
}

/* --- Selector de método de pago --- */
.shop-checkout__methods {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.shop-checkout__method {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    border: 1.5px solid var(--co-border);
    border-radius: var(--co-radius-sm);
    cursor: pointer;
    background: var(--co-surface);
    transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.shop-checkout__method:hover {
    border-color: var(--co-border-strong);
    background: var(--co-surface-alt);
}
.shop-checkout__method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.shop-checkout__method-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    border: 1.5px solid var(--co-border-strong);
    background: var(--co-surface);
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
    position: relative;
}
.shop-checkout__method-dot::after {
    content: '';
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: var(--co-accent);
    transform: scale(0);
    transition: transform .15s cubic-bezier(.4,0,.2,1);
}
.shop-checkout__method.is-selected {
    border-color: var(--co-accent);
    background: var(--co-accent-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--co-accent) 10%, transparent);
}
.shop-checkout__method.is-selected .shop-checkout__method-dot {
    border-color: var(--co-accent);
}
.shop-checkout__method.is-selected .shop-checkout__method-dot::after { transform: scale(1); }
.shop-checkout__method input[type="radio"]:focus-visible + .shop-checkout__method-dot {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--co-accent) 25%, transparent);
}
.shop-checkout__method-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.shop-checkout__method-body strong {
    font-size: .98rem;
    font-weight: 600;
    color: var(--co-text);
    letter-spacing: -.005em;
}
.shop-checkout__method-body small { font-size: .82rem; color: var(--co-text-muted); }
.shop-checkout__methods-empty {
    margin: 0;
    color: var(--co-text-muted);
    font-size: .9rem;
}

/* --- Sidebar / resumen --- */
.shop-checkout__sidebar { position: sticky; top: 1rem; }
@media (max-width: 960px) {
    .shop-checkout__sidebar { position: static; }
}
.shop-checkout__summary {
    background: var(--co-surface);
    border: 1px solid var(--co-border);
    border-radius: var(--co-radius);
    box-shadow: var(--co-shadow-md);
    padding: 1.4rem 1.5rem 1.3rem;
    position: relative;
    overflow: hidden;
}
.shop-checkout__summary::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--co-accent), color-mix(in srgb, var(--co-accent) 50%, transparent));
}
@media (max-width: 540px) {
    .shop-checkout__summary { padding: 1.2rem 1.1rem; border-radius: 12px; }
}
.shop-checkout__summary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin: 0 0 1rem;
}
.shop-checkout__summary-count {
    font-size: .78rem;
    font-weight: 500;
    color: var(--co-text-muted);
    background: var(--co-surface-alt);
    padding: .2rem .55rem;
    border-radius: 999px;
}
.shop-checkout__items {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.shop-checkout__item {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    gap: .65rem;
    align-items: start;
    padding: .65rem 0;
    border-top: 1px solid var(--co-border);
    font-size: .9rem;
    line-height: 1.4;
}
.shop-checkout__item:first-child { border-top: 0; padding-top: 0; }
.shop-checkout__item:last-child { padding-bottom: .85rem; }
.shop-checkout__item-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0 .4rem;
    border-radius: 8px;
    background: var(--co-surface-alt);
    border: 1px solid var(--co-border);
    color: var(--co-text);
    font-size: .8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.shop-checkout__item-name {
    color: var(--co-text);
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
    word-break: break-word;
}
.shop-checkout__item-name small {
    color: var(--co-text-muted);
    font-size: .78rem;
    font-weight: 400;
}
.shop-checkout__item-total {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 600;
    color: var(--co-text);
    font-size: .92rem;
}
.shop-checkout__totals {
    margin: 0;
    padding: .85rem 0 0;
    border-top: 1px solid var(--co-border);
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.shop-checkout__totline {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0;
    padding: .25rem 0;
    font-size: .92rem;
    color: var(--co-text);
}
.shop-checkout__totline dt { color: var(--co-text-muted); font-weight: 500; }
.shop-checkout__totline dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.shop-checkout__muted { color: var(--co-text-muted); font-weight: 500 !important; font-size: .85rem; }
.shop-checkout__totline--big {
    border-top: 1px solid var(--co-border);
    margin-top: .35rem;
    padding-top: .85rem;
    font-size: 1rem;
}
.shop-checkout__totline--big dt { color: var(--co-text); font-weight: 600; }
.shop-checkout__totline--big dd { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.shop-checkout__hint {
    font-size: .78rem;
    color: var(--co-text-muted);
    line-height: 1.45;
    margin: .9rem 0 1rem;
}

.shop-checkout__submit {
    width: 100%;
    padding: .95rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--co-radius-sm);
    gap: .5rem;
}
.shop-checkout__submit[disabled] { opacity: .5; cursor: not-allowed; }

.shop-checkout__trust {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--co-border);
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
    font-size: .8rem;
    color: var(--co-text-muted);
}
.shop-checkout__trust li {
    display: flex;
    align-items: center;
    gap: .55rem;
}
.shop-checkout__trust svg { color: var(--co-accent); flex-shrink: 0; }

/* --- Vista de carrito vacío --- */
.shop-checkout--empty { padding-top: 3rem; padding-bottom: 4rem; }
.shop-checkout__empty {
    max-width: 28rem;
    margin: 0 auto;
    text-align: center;
    background: var(--co-surface);
    border: 1px solid var(--co-border);
    border-radius: var(--co-radius);
    box-shadow: var(--co-shadow-sm);
    padding: 2.4rem 1.6rem;
}
.shop-checkout__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: var(--co-surface-alt);
    color: var(--co-text-muted);
    margin: 0 0 1rem;
}
.shop-checkout__empty-icon svg { width: 1.6rem; height: 1.6rem; }
.shop-checkout__empty h1 { font-size: 1.4rem; margin: 0 0 .5rem; }
.shop-checkout__empty p { color: var(--co-text-muted); margin: 0 0 1.4rem; }
.shop-checkout__empty-cta { padding: .85rem 1.4rem; }

/* ==========================================================
   Confirmación de orden (/orden/{n})
   ========================================================== */
.shop-order {
    --co-radius:        14px;
    --co-radius-sm:     10px;
    --co-border:        #e6e8eb;
    --co-border-strong: #d3d6db;
    --co-surface:       #ffffff;
    --co-surface-alt:   #f7f8fa;
    --co-text:          #0f172a;
    --co-text-muted:    #64748b;
    --co-text-subtle:   #94a3b8;
    --co-accent:        var(--brand-primary, #0f172a);
    --co-accent-soft:   color-mix(in srgb, var(--brand-primary, #0f172a) 8%, #fff);
    --co-shadow-sm:     0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
    --co-shadow-md:     0 6px 18px -8px rgba(15,23,42,.12), 0 2px 6px -2px rgba(15,23,42,.06);
    padding-top: 2rem;
    padding-bottom: 3rem;
    color: var(--co-text);
}
.shop-order.is-paid    { --co-accent: #15803d; --co-accent-soft: #f0fdf4; }
.shop-order.is-failed  { --co-accent: #b91c1c; --co-accent-soft: #fef2f2; }
.shop-order.is-pending { --co-accent: var(--brand-primary, #0f172a); }

.shop-order__hero { text-align: center; margin: 0 0 1.8rem; }
.shop-order__hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: var(--co-accent-soft);
    color: var(--co-accent);
    margin: 0 0 1rem;
    border: 1px solid color-mix(in srgb, var(--co-accent) 18%, transparent);
}
.shop-order__hero-icon svg { width: 1.8rem; height: 1.8rem; }
.shop-order h1 {
    margin: 0 0 .35rem;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    letter-spacing: -.02em;
}
.shop-order__num { color: var(--co-text-muted); margin: 0; font-size: .95rem; }
.shop-order__num strong { color: var(--co-text); }

.shop-order .shop-checkout__alert { max-width: 42rem; margin-left: auto; margin-right: auto; }

.shop-order .shop-checkout__card {
    max-width: 42rem;
    margin: 1.4rem auto 0;
}
.shop-order__instructions pre {
    white-space: pre-wrap;
    background: var(--co-surface-alt);
    border: 1px solid var(--co-border);
    border-radius: var(--co-radius-sm);
    padding: 1rem 1.1rem;
    font-family: inherit;
    font-size: .92rem;
    line-height: 1.55;
    margin: 0;
    color: var(--co-text);
}

.shop-order__items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.shop-order__item {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    gap: .75rem;
    align-items: center;
    padding: .85rem 0;
    border-top: 1px solid var(--co-border);
    font-size: .94rem;
}
.shop-order__item:first-child { border-top: 0; }
.shop-order__item-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0 .4rem;
    border-radius: 8px;
    background: var(--co-surface-alt);
    border: 1px solid var(--co-border);
    color: var(--co-text);
    font-size: .8rem;
    font-weight: 600;
}
.shop-order__item-name {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
    color: var(--co-text);
}
.shop-order__item-name small { color: var(--co-text-muted); font-size: .78rem; }
.shop-order__item-total {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 600;
}
.shop-order__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 1.1rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1.5px solid var(--co-border);
    font-size: 1rem;
}
.shop-order__total span { color: var(--co-text-muted); font-weight: 500; }
.shop-order__total strong {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--co-text);
    font-variant-numeric: tabular-nums;
}

.shop-order__actions {
    max-width: 42rem;
    margin: 1.6rem auto 0;
    text-align: center;
}

/* ====== Modo Cotización (RFQ) ====== */
.shop-price__quote {
    color: var(--brand-primary, #0f766e);
    font-weight: 600;
    font-size: .9rem;
    background: rgba(15, 118, 110, .08);
    padding: .2rem .55rem;
    border-radius: 6px;
}
.shop-quote__intro {
    font-size: 1.05rem;
    color: #475569;
    max-width: 60ch;
    margin: 0 0 1.5rem;
    line-height: 1.55;
}
.shop-quote__form {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.shop-quote__form h2 {
    margin: 0 0 .3rem;
    font-size: 1.35rem;
}
.shop-quote__notes { margin-top: .5rem; }
.shop-quote__notes summary {
    cursor: pointer;
    color: #64748b;
    font-size: .85rem;
    user-select: none;
}
.shop-quote__notes summary:hover { color: var(--brand-primary, #0f766e); }
.shop-quote__notesform {
    margin-top: .5rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.shop-quote__notesform textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: .5rem;
    font-family: inherit;
    font-size: .9rem;
    resize: vertical;
}
.shop-quote__notesform button {
    align-self: flex-start;
    font-size: .85rem;
    padding: .35rem .8rem;
}
.shop-quote__notes-current {
    margin: .5rem 0 0;
    padding: .5rem .65rem;
    background: #ecfdf5;
    border-left: 3px solid #10b981;
    font-size: .85rem;
    color: #047857;
}
.lead-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem 1.2rem;
}
.lead-form__grid .lead-form__field { margin: 0; }
.lead-form__required {
    color: #dc2626;
    margin-left: .15rem;
    font-weight: 700;
}
@media (max-width: 640px) {
    .lead-form__grid { grid-template-columns: 1fr; }
}
