/* =========================================================================
   Amigable Market 2 — hipermercado online
   Prefijo mk-. Colores desde theme.json: --mk-brand, --mk-accent, --mk-sale
   (+ *-ink con el texto que contrasta, calculado por el engine).
   ========================================================================= */

:root {
    --mk-brand: #0b4ea2;
    --mk-accent: #ffc61a;
    --mk-sale: #e3262f;
    --mk-brand-ink: #fff;
    --mk-accent-ink: #111;
    --mk-brand-dark: color-mix(in srgb, var(--mk-brand) 78%, #000);
    --mk-brand-soft: color-mix(in srgb, var(--mk-brand) 9%, #fff);
    --mk-sale-soft: color-mix(in srgb, var(--mk-sale) 10%, #fff);
    --mk-ok: #13a05b;
    --mk-wa: #25d366;
    --mk-ink: #16203a;
    --mk-ink-2: #3b4562;
    --mk-muted: #6d7690;
    --mk-line: #e5e8ef;
    --mk-bg: #f2f4f8;
    --mk-surface: #fff;
    --mk-r: 14px;
    --mk-r-sm: 10px;
    --mk-shadow: 0 1px 2px rgba(16, 24, 48, .05), 0 4px 14px rgba(16, 24, 48, .06);
    --mk-shadow-lg: 0 10px 34px rgba(16, 24, 48, .16);
    --mk-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mk-wrap: 1360px;
    --mk-cols: 5;
}
[data-font="Inter"] { --mk-font: 'Inter', system-ui, sans-serif; }
[data-font="Nunito"] { --mk-font: 'Nunito', system-ui, sans-serif; }
[data-font="Roboto"] { --mk-font: 'Roboto', system-ui, sans-serif; }
.mk-cols-4 { --mk-cols: 4; }
.mk-cols-6 { --mk-cols: 6; }

* { -webkit-tap-highlight-color: transparent; }
body.mk-body {
    font-family: var(--mk-font);
    background: var(--mk-bg);
    color: var(--mk-ink);
    font-size: 15px;
    letter-spacing: -.005em;
    -webkit-font-smoothing: antialiased;
}
.mk-body a { color: inherit; text-decoration: none; }
.mk-body img { max-width: 100%; }
.mk-wrap { width: 100%; max-width: var(--mk-wrap); margin: 0 auto; padding: 0 20px; }
.mk-main { min-height: 50vh; }

/* ── Botones ───────────────────────────────────────────────────────────── */
.mk-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .25rem; min-height: 44px; padding: 0 20px;
    border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 700; font-size: .95rem; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
    white-space: nowrap;
}
.mk-btn:hover { transform: translateY(-1px); }
.mk-btn:active { transform: translateY(0) scale(.98); }
.mk-btn[disabled] { opacity: .5; pointer-events: none; }
.mk-btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.02rem; }
.mk-btn-primary { background: var(--mk-brand); color: var(--mk-brand-ink) !important; box-shadow: 0 6px 18px color-mix(in srgb, var(--mk-brand) 30%, transparent); }
.mk-btn-primary:hover { background: var(--mk-brand-dark); }
.mk-btn-accent { background: var(--mk-accent); color: var(--mk-accent-ink) !important; }
.mk-btn-light { background: rgba(255,255,255,.16); color: #fff !important; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.mk-btn-light:hover { background: #fff; color: var(--mk-brand) !important; }
.mk-btn-ghost { background: #fff; color: var(--mk-ink) !important; border-color: var(--mk-line); }
.mk-btn-ghost:hover { border-color: var(--mk-brand); color: var(--mk-brand) !important; }
.mk-btn-wa { background: var(--mk-wa); color: #fff !important; }
.mk-btn-success { background: var(--mk-ok); color: #fff !important; }

/* ── Franja superior ──────────────────────────────────────────────────── */
.mk-strip { background: var(--mk-brand-dark); color: rgba(255,255,255,.92); font-size: .8rem; font-weight: 600; }
.mk-strip-in { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 1rem; }
.mk-strip-in i { color: var(--mk-accent); }

/* ── Cabecera ─────────────────────────────────────────────────────────── */
.mk-header { position: sticky; top: 0; z-index: 1030; }
.mk-header-main {
    background:
        radial-gradient(1200px 120px at 85% -40%, rgba(255,255,255,.18), transparent 60%),
        var(--mk-brand);
    color: var(--mk-brand-ink);
    transition: box-shadow .2s;
}
.mk-header.is-stuck .mk-header-main { box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.mk-header-row { display: flex; align-items: center; gap: 18px; min-height: 76px; transition: min-height .2s; }
.mk-header.is-stuck .mk-header-row { min-height: 64px; }
.mk-burger { background: transparent; border: 0; color: inherit; font-size: 1.35rem; width: 40px; height: 40px; border-radius: 10px; }
.mk-burger:hover { background: rgba(255,255,255,.12); }
.mk-logo { display: flex; align-items: center; flex-shrink: 0; }
.mk-logo img { max-height: 48px; max-width: 170px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; }
.mk-logo-txt { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; color: inherit; }

.mk-search {
    flex: 1; position: relative; display: flex; align-items: center;
    max-width: 760px; margin: 0 auto;
    background: #fff; border-radius: 999px; height: 50px;
    box-shadow: 0 2px 0 rgba(0,0,0,.06), inset 0 0 0 2px transparent;
    transition: box-shadow .2s;
}
.mk-search:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--mk-accent) 55%, transparent); }
.mk-search-ico { position: absolute; left: 20px; color: var(--mk-muted); }
.mk-search input {
    flex: 1; height: 100%; border: 0; outline: 0; background: transparent;
    padding: 0 12px 0 50px; font-size: .98rem; color: var(--mk-ink); min-width: 0;
}
.mk-search input::-webkit-search-cancel-button { display: none; }
.mk-search-clear { color: var(--mk-muted); padding: 0 10px; }
.mk-search-btn {
    height: 40px; margin-right: 5px; padding: 0 22px; border: 0; border-radius: 999px;
    background: var(--mk-accent); color: var(--mk-accent-ink); font-weight: 800; font-size: .9rem;
}
.mk-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mk-hbtn, .mk-cartbtn {
    display: flex; align-items: center; gap: 10px; background: transparent; border: 0;
    color: inherit !important; padding: 6px 10px; border-radius: 12px; transition: background .15s;
}
.mk-hbtn:hover, .mk-cartbtn:hover { background: rgba(255,255,255,.12); }
.mk-hbtn > i, .mk-cartbtn-ico > i { font-size: 1.45rem; }
.mk-hbtn-txt { flex-direction: column; line-height: 1.1; text-align: left; }
.mk-hbtn-txt small { font-size: .72rem; opacity: .8; font-weight: 500; }
.mk-hbtn-txt strong { font-size: .9rem; font-weight: 800; white-space: nowrap; }
.mk-cartbtn { background: rgba(255,255,255,.12); padding: 7px 14px 7px 10px; }
.mk-cartbtn-ico { position: relative; display: inline-flex; }
.mk-cart-count {
    position: absolute; top: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: var(--mk-accent); color: var(--mk-accent-ink);
    font-size: .7rem; font-weight: 800; display: grid; place-items: center;
    border: 2px solid var(--mk-brand); transition: transform .25s cubic-bezier(.3,1.6,.6,1);
}
.mk-cart-count.is-empty { display: none; }
.mk-cart-count.is-bump { transform: scale(1.35); }
.mk-dropdown { border: 0; border-radius: 14px; box-shadow: var(--mk-shadow-lg); padding: 8px; min-width: 230px; }
.mk-dropdown .dropdown-item { border-radius: 9px; padding: 9px 12px; font-weight: 600; font-size: .9rem; display: flex; gap: 10px; align-items: center; }
.mk-dropdown .dropdown-item i { width: 18px; color: var(--mk-brand); }

/* Barra de navegación + mega menú */
.mk-navbar { background: #fff; border-bottom: 1px solid var(--mk-line); }
.mk-navbar-row { display: flex; align-items: center; gap: 22px; min-height: 50px; }
.mk-mega { position: relative; }
.mk-mega-btn {
    height: 50px; padding: 0 20px; border: 0; background: var(--mk-brand-soft);
    color: var(--mk-brand); font-weight: 800; font-size: .92rem;
}
.mk-mega-caret { font-size: .7rem; transition: transform .2s; }
.mk-mega.is-open .mk-mega-btn { background: var(--mk-brand); color: var(--mk-brand-ink); }
.mk-mega.is-open .mk-mega-caret { transform: rotate(180deg); }
.mk-mega-panel {
    position: absolute; top: 100%; left: 0; z-index: 50;
    display: grid; grid-template-columns: 300px minmax(420px, 640px);
    background: #fff; border-radius: 0 0 18px 18px; box-shadow: var(--mk-shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s, transform .18s, visibility .18s; overflow: hidden;
    max-height: calc(100vh - 160px);
}
.mk-mega.is-open .mk-mega-panel { opacity: 1; visibility: visible; transform: none; }
.mk-mega-cats { list-style: none; margin: 0; padding: 10px; overflow-y: auto; background: #fafbfd; border-right: 1px solid var(--mk-line); }
.mk-mega-cat a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.mk-mega-cat a > i { margin-left: auto; font-size: .65rem; color: var(--mk-muted); opacity: 0; transition: opacity .15s; }
.mk-mega-cat.is-active a { background: #fff; color: var(--mk-brand); box-shadow: var(--mk-shadow); }
.mk-mega-cat.is-active a > i { opacity: 1; color: var(--mk-brand); }
.mk-mega-ico {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    background: var(--mk-brand-soft); color: var(--mk-brand);
    display: grid; place-items: center; font-weight: 800; overflow: hidden; font-size: .9rem;
}
.mk-mega-ico img { width: 100%; height: 100%; object-fit: cover; }
.mk-mega-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.mk-mega-subs { padding: 22px 26px; overflow-y: auto; }
.mk-mega-sub { display: none; }
.mk-mega-sub.is-active { display: block; animation: mkFade .2s ease; }
.mk-mega-sub-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.mk-mega-sub-head h4 { font-size: 1.15rem; font-weight: 800; margin: 0; text-transform: capitalize; }
.mk-mega-sub-head a { color: var(--mk-brand); font-weight: 700; font-size: .88rem; }
.mk-mega-sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 18px; }
.mk-mega-sub-grid a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-size: .9rem; color: var(--mk-ink-2); text-transform: capitalize; }
.mk-mega-sub-grid a:hover { background: var(--mk-brand-soft); color: var(--mk-brand); }
.mk-mega-sub-grid span { color: var(--mk-muted); font-size: .78rem; }
.mk-navlinks { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mk-navlinks a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--mk-ink-2); }
.mk-navlinks a i { font-size: .85rem; color: var(--mk-muted); }
.mk-navlinks a:hover { background: var(--mk-bg); color: var(--mk-brand); }
.mk-navlinks a.is-sale, .mk-navlinks a.is-sale i { color: var(--mk-sale); }
.mk-navbar-wa { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; color: #128c4b !important; }
.mk-navbar-wa i { font-size: 1.2rem; }

/* Menú del celular */
.mk-offcanvas { width: min(88vw, 360px) !important; border: 0 !important; }
.mk-offcanvas-head { background: var(--mk-brand); color: var(--mk-brand-ink); }
.mk-offcanvas-head .offcanvas-title { font-weight: 800; }
.mk-mob-login { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-weight: 700; color: var(--mk-brand) !important; border-bottom: 1px solid var(--mk-line); }
.mk-mob-login i { font-size: 1.3rem; }
.mk-mob-acc .accordion-button, .mk-mob-cat { display: flex; align-items: center; gap: 12px; padding: 12px 20px; font-weight: 700; font-size: .95rem; color: var(--mk-ink); text-transform: capitalize; }
.mk-mob-acc .accordion-button:not(.collapsed) { background: var(--mk-brand-soft); color: var(--mk-brand); box-shadow: none; }
.mk-mob-acc .accordion-body { padding: 4px 20px 14px 66px; display: flex; flex-direction: column; }
.mk-mob-acc .accordion-body a { padding: 7px 0; color: var(--mk-ink-2); font-size: .92rem; text-transform: capitalize; }
.mk-mob-all { font-weight: 700; color: var(--mk-brand) !important; }
.mk-mob-links { padding: 12px 0 90px; border-top: 6px solid var(--mk-bg); }
.mk-mob-links a { display: flex; gap: 14px; align-items: center; padding: 12px 22px; font-weight: 600; }
.mk-mob-links a i { width: 20px; color: var(--mk-brand); }

/* Barra inferior del celular */
.mk-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--mk-line);
    padding-bottom: env(safe-area-inset-bottom);
}
.mk-bottomnav a, .mk-bottomnav button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; height: 60px; border: 0; background: transparent;
    font-size: .68rem; font-weight: 700; color: var(--mk-muted);
}
.mk-bottomnav i { font-size: 1.15rem; color: var(--mk-ink-2); }
.mk-bottomnav-cart i { color: var(--mk-brand); }
.mk-bottomnav .mk-cart-count { top: 5px; right: calc(50% - 22px); border-color: #fff; }
@media (max-width: 991.98px) { body.mk-body { padding-bottom: 64px; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.mk-hero { padding: 20px 0 0; }
.mk-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.mk-hero-main { min-width: 0; }
.mk-slider { position: relative; border-radius: 20px; overflow: hidden; background: #dfe4ec; box-shadow: var(--mk-shadow); }
.mk-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mk-slides::-webkit-scrollbar { display: none; }
/* El banner se ve entero en cualquier pantalla (como el banner ancho): sin
   recorte. Si los banners tienen distinta proporción, el carrusel toma el
   alto del más alto y los demás quedan centrados. */
.mk-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; }
.mk-slide img { width: 100%; height: auto; display: block; }
.mk-slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.92); color: var(--mk-ink); box-shadow: var(--mk-shadow);
    opacity: 0; transition: opacity .2s;
}
.mk-slider:hover .mk-slider-nav { opacity: 1; }
.mk-slider-nav.is-prev { left: 14px; } .mk-slider-nav.is-next { right: 14px; }
.mk-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.mk-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.6); transition: width .25s, background .25s; padding: 0; }
.mk-dots button.is-active { width: 26px; background: #fff; }

.mk-autobanner {
    position: relative; overflow: hidden; border-radius: 22px; min-height: 360px;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
    background:
        radial-gradient(600px 300px at 90% 120%, color-mix(in srgb, var(--mk-accent) 55%, transparent), transparent 70%),
        radial-gradient(500px 260px at 0% -10%, rgba(255,255,255,.22), transparent 60%),
        linear-gradient(120deg, var(--mk-brand-dark), var(--mk-brand));
    color: #fff; box-shadow: var(--mk-shadow);
}
.mk-autobanner::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px);
    background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.mk-autobanner-copy { position: relative; z-index: 2; padding: 44px 0 44px 48px; }
.mk-pill-sale {
    display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
    background: var(--mk-sale); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase;
}
.mk-pill-sale.is-brand { background: rgba(255,255,255,.18); }
.mk-autobanner h1 { font-size: clamp(2rem, 3.6vw, 3.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 16px 0 12px; }
.mk-autobanner p { font-size: 1.05rem; opacity: .88; max-width: 440px; margin-bottom: 26px; }
.mk-autobanner-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-autobanner-art {
    position: relative; z-index: 1; height: 100%; min-height: 360px;
    display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
    gap: 14px; padding: 26px 30px 26px 0; transform: rotate(-4deg) scale(1.06);
}
.mk-floater {
    position: relative; margin: 0; background: #fff; border-radius: 18px; padding: 12px;
    box-shadow: 0 16px 34px rgba(0,0,0,.25); display: grid; place-items: center;
    animation: mkFloat 6s ease-in-out infinite;
}
.mk-floater:nth-child(2n) { animation-delay: -2s; transform: translateY(18px); }
.mk-floater:nth-child(3n) { animation-delay: -4s; }
.mk-floater:nth-child(n+7) { display: none; }
.mk-floater img { max-height: 120px; object-fit: contain; }
.mk-floater b {
    position: absolute; top: -8px; right: -8px; background: var(--mk-sale); color: #fff;
    border-radius: 999px; padding: 4px 9px; font-size: .78rem; font-weight: 800; box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
@keyframes mkFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.mk-hero-side { flex-direction: column; gap: 16px; }
.mk-side-card {
    position: relative; flex: 1; border-radius: 20px; padding: 24px; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
    color: #fff !important; box-shadow: var(--mk-shadow); transition: transform .2s;
}
.mk-side-card:hover { transform: translateY(-3px); }
.mk-side-card strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.mk-side-card > span:not(.mk-side-kicker) { opacity: .85; font-size: .9rem; }
.mk-side-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; opacity: .8; margin-bottom: auto; }
.mk-side-go { position: absolute; right: 22px; top: 22px; font-size: 1.6rem; opacity: .9; }
.mk-side-card.is-dark { background: radial-gradient(260px 160px at 100% 0, color-mix(in srgb, var(--mk-brand) 70%, transparent), transparent), #111a2e; }
.mk-side-card.is-wa { background: linear-gradient(135deg, #1fb855, #0d8a43); }
.mk-side-card.is-accent { background: var(--mk-accent); color: var(--mk-accent-ink) !important; }

/* ── Beneficios ───────────────────────────────────────────────────────── */
.mk-benefits { padding: 16px 0 0; }
.mk-benefits-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: #fff; border-radius: 18px; box-shadow: var(--mk-shadow); padding: 6px;
}
.mk-benefit { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.mk-benefit + .mk-benefit { border-left: 1px solid var(--mk-line); }
.mk-benefit > i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mk-brand-soft); color: var(--mk-brand); font-size: 1.15rem; flex-shrink: 0; }
.mk-benefit strong { display: block; font-size: .92rem; font-weight: 800; }
.mk-benefit span { font-size: .8rem; color: var(--mk-muted); }

/* ── Secciones y encabezados ──────────────────────────────────────────── */
.mk-section { padding: 30px 0 4px; }
.mk-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.mk-sec-head h2 { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.025em; margin: 0; }
.mk-sec-head h2.is-cat { text-transform: capitalize; }
.mk-sec-badge { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--mk-sale); color: #fff; font-size: 1rem; flex-shrink: 0; }
.mk-sec-badge.is-brand { background: var(--mk-brand); color: var(--mk-brand-ink); }
.mk-sec-badge.is-accent { background: var(--mk-accent); color: var(--mk-accent-ink); }
.mk-sec-badge.is-new { background: #111a2e; }
.mk-sec-thumb { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--mk-brand-soft); color: var(--mk-brand); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--mk-line); }
.mk-sec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mk-sec-more { color: var(--mk-brand) !important; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.mk-sec-more:hover { text-decoration: underline !important; }
.mk-rail-ctrl { display: flex; gap: 6px; }
.mk-rail-ctrl button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--mk-line); background: #fff; color: var(--mk-ink); transition: all .15s; }
.mk-rail-ctrl button:hover { background: var(--mk-brand); border-color: var(--mk-brand); color: var(--mk-brand-ink); }
.mk-rail-ctrl button:disabled { opacity: .35; pointer-events: none; }
.mk-section-sale .mk-sec-head h2 { color: var(--mk-sale); }
.mk-section-sale > .mk-wrap {
    background: linear-gradient(180deg, var(--mk-sale-soft), transparent 70%);
    border-radius: 24px; padding-top: 20px; padding-bottom: 6px;
}
.mk-section-cta { padding: 34px 0 10px; }

/* Categorías en círculo */
.mk-catcircles { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.mk-catcircles::-webkit-scrollbar { display: none; }
.mk-catcircle { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; scroll-snap-align: start; }
.mk-catcircle-img {
    width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #fff;
    display: grid; place-items: center; box-shadow: var(--mk-shadow); border: 3px solid #fff;
    transition: transform .2s, box-shadow .2s;
}
.mk-catcircle-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-catcircle-img b {
    width: 100%; height: 100%; display: grid; place-items: center; font-size: 2rem; font-weight: 800;
    color: var(--mk-brand); background: linear-gradient(135deg, var(--mk-brand-soft), #fff);
}
.mk-catcircle:hover .mk-catcircle-img { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--mk-brand), var(--mk-shadow-lg); }
.mk-catcircle-name { font-size: .82rem; font-weight: 700; line-height: 1.2; text-transform: capitalize; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Tarjetas grandes de categoría (las marcadas "Mostrar en Portada") */
.mk-cattiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mk-cattile { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--mk-shadow); }
.mk-cattile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mk-cattile:hover img { transform: scale(1.06); }
.mk-cattile > span { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; display: flex; flex-direction: column; }
.mk-cattile strong { font-size: 1.15rem; font-weight: 800; }
.mk-cattile small { opacity: .85; }

.mk-wide-banner { display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--mk-shadow); }
.mk-wide-banner img { width: 100%; display: block; }

/* ── Carruseles ───────────────────────────────────────────────────────── */
.mk-rail-track {
    display: grid; grid-auto-flow: column; gap: 14px;
    grid-auto-columns: calc((100% - 14px * 5) / 6);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; padding: 4px 2px 18px; margin: 0 -2px;
}
.mk-rail-track::-webkit-scrollbar { display: none; }
.mk-rail-item { scroll-snap-align: start; min-width: 0; display: flex; }
.mk-rail-item > .mk-card { width: 100%; }
.mk-rail-ranked { counter-reset: rank; }
.mk-rail-ranked .mk-rail-item { counter-increment: rank; position: relative; }
.mk-rail-ranked .mk-rail-item::before {
    content: counter(rank); position: absolute; z-index: 3; top: 8px; right: 10px;
    font-size: 2.1rem; font-weight: 800; line-height: 1; color: transparent;
    -webkit-text-stroke: 1.5px color-mix(in srgb, var(--mk-brand) 55%, transparent);
}
@media (max-width: 1199.98px) { .mk-rail-track { grid-auto-columns: calc((100% - 14px * 3) / 4.3); } }
@media (max-width: 767.98px) { .mk-rail-track { grid-auto-columns: 44%; gap: 10px; } }

/* ── Tarjeta de producto ──────────────────────────────────────────────── */
.mk-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--mk-surface); border-radius: var(--mk-r);
    border: 1px solid var(--mk-line); overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.mk-card:hover { transform: translateY(-3px); box-shadow: var(--mk-shadow-lg); border-color: transparent; }
.mk-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; padding: 14px; }
.mk-card-img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; transition: opacity .35s ease, transform .5s ease; }
.mk-card-img2 { opacity: 0; }
.mk-card:hover .mk-card-img2 { opacity: 1; }
.mk-card:hover .mk-card-img:not(.mk-card-img2) { transform: scale(1.04); }
.mk-card-noimg { position: absolute; inset: 14px; display: grid; place-items: center; background: var(--mk-bg); border-radius: 10px; color: #c5cbd8; font-size: 2.6rem; }
.mk-tags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; z-index: 2; }
.mk-tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 7px; font-size: .72rem; font-weight: 800; letter-spacing: .01em; line-height: 1.3; }
.mk-tag.is-lg { font-size: .88rem; padding: 6px 12px; border-radius: 9px; }
.mk-tag-sale { background: var(--mk-sale); color: #fff; }
.mk-tag-new { background: #111a2e; color: #fff; }
.mk-tag-star { background: var(--mk-accent); color: var(--mk-accent-ink); }
.mk-tag-hidden { position: absolute; bottom: 10px; left: 10px; background: #fff3cd; color: #7a5600; z-index: 2; }
.mk-card-body { display: flex; flex-direction: column; flex: 1; padding: 4px 14px 14px; gap: 8px; }
.mk-card-name {
    font-size: .9rem; font-weight: 600; line-height: 1.32; color: var(--mk-ink-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.64em;
}
.mk-card-name:hover { color: var(--mk-brand); }
.mk-price-box { margin-top: auto; min-height: 52px; display: flex; flex-direction: column; justify-content: flex-end; }
.mk-price-old { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--mk-muted); }
.mk-price {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
    font-variant-numeric: tabular-nums; color: var(--mk-ink);
}
.mk-price.is-sale { color: var(--mk-sale); }
.mk-price .mk-cur { font-size: .58em; font-weight: 700; margin-right: 3px; vertical-align: .45em; letter-spacing: 0; }
.mk-price small { font-size: .55em; font-weight: 600; color: var(--mk-muted); margin-left: 3px; }
.mk-price-ask { font-weight: 700; color: var(--mk-muted); font-style: italic; }
.mk-cuotas { font-size: .76rem; color: var(--mk-ok); font-weight: 700; margin-top: 2px; }
.mk-save { display: inline-block; align-self: flex-start; margin-top: 4px; font-size: .72rem; font-weight: 800; color: var(--mk-sale); background: var(--mk-sale-soft); padding: 2px 7px; border-radius: 6px; }
.mk-card-cta { display: flex; gap: 6px; }
.mk-add { position: relative; flex: 1; height: 40px; }
.mk-add-btn, .mk-step { position: absolute; inset: 0; border-radius: 11px; transition: opacity .2s, transform .2s; }
.mk-add-btn {
    border: 0; width: 100%; background: var(--mk-accent); color: var(--mk-accent-ink);
    font-weight: 800; font-size: .9rem;
}
.mk-add-btn:hover { filter: brightness(.96); box-shadow: 0 6px 14px color-mix(in srgb, var(--mk-accent) 45%, transparent); }
.mk-step { display: flex; align-items: center; background: var(--mk-brand); color: var(--mk-brand-ink); opacity: 0; transform: scale(.92); pointer-events: none; visibility: hidden; }
.mk-step button { width: 40px; height: 100%; border: 0; background: transparent; color: inherit; font-size: .85rem; }
.mk-step button:hover { background: rgba(255,255,255,.14); }
.mk-step span { flex: 1; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.mk-add.is-in .mk-add-btn { opacity: 0; transform: scale(.92); pointer-events: none; visibility: hidden; }
.mk-add.is-in .mk-step { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.mk-add.is-busy { opacity: .7; }
.mk-view-btn { flex: 1; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1.5px solid var(--mk-line); font-weight: 700; font-size: .88rem; color: var(--mk-brand) !important; }
.mk-view-btn:hover { border-color: var(--mk-brand); background: var(--mk-brand-soft); }
.mk-sell-btn { width: 40px; height: 40px; border-radius: 11px; border: 0; background: var(--mk-ok); color: #fff; flex-shrink: 0; }

/* ── Listado ──────────────────────────────────────────────────────────── */
.mk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--mk-muted); margin-bottom: 16px; }
.mk-crumbs > i { font-size: .6rem; opacity: .6; }
.mk-crumbs a:hover { color: var(--mk-brand); }
.mk-crumbs span:last-child { color: var(--mk-ink); font-weight: 600; max-width: 50ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-crumbs.is-light, .mk-crumbs.is-light span:last-child { color: rgba(255,255,255,.85); }
.mk-listing-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.mk-listing-grid > .mk-results:only-child { grid-column: 1 / -1; }
.mk-filters { position: sticky; top: 140px; }
.mk-filter-box { background: #fff; border-radius: 16px; box-shadow: var(--mk-shadow); padding: 18px 12px; }
.mk-filter-box h6 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--mk-muted); padding: 0 8px; margin-bottom: 10px; }
.mk-filter-box ul { list-style: none; margin: 0; padding: 0; }
.mk-filter-box a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--mk-ink-2); text-transform: capitalize; }
.mk-filter-box a span { color: var(--mk-muted); font-size: .78rem; font-weight: 500; }
.mk-filter-box a:hover { background: var(--mk-bg); }
.mk-filter-box li.is-active > a { background: var(--mk-brand); color: var(--mk-brand-ink); }
.mk-filter-box li.is-active > a span { color: inherit; opacity: .8; }
.mk-filter-subs { padding: 6px 0 8px 12px !important; border-left: 2px solid var(--mk-brand-soft); margin: 6px 0 6px 14px !important; }
.mk-filter-subs a { font-weight: 500; font-size: .86rem; }
.mk-filter-wa { margin-top: 14px; display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: #e8f9ef; color: #0d6b38 !important; }
.mk-filter-wa i { font-size: 1.8rem; color: #19a957; }
.mk-filter-wa span { font-size: .84rem; line-height: 1.3; }
.mk-filter-wa strong { display: block; font-size: .92rem; }
.mk-results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.mk-results-head h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.mk-results-head p { margin: 2px 0 0; color: var(--mk-muted); font-size: .9rem; }
.mk-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.mk-chips::-webkit-scrollbar { display: none; }
.mk-chip { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--mk-line); font-weight: 700; font-size: .84rem; white-space: nowrap; text-transform: capitalize; }
.mk-chip.is-active { background: var(--mk-brand); color: var(--mk-brand-ink) !important; border-color: var(--mk-brand); }
.mk-grid { display: grid; grid-template-columns: repeat(var(--mk-cols), minmax(0, 1fr)); gap: 14px; }
.mk-listing-grid .mk-grid { grid-template-columns: repeat(calc(var(--mk-cols) - 1), minmax(0, 1fr)); }
.mk-listing-grid > .mk-results:only-child .mk-grid { grid-template-columns: repeat(var(--mk-cols), minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .mk-grid, .mk-listing-grid .mk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 991.98px) { .mk-listing-grid { grid-template-columns: minmax(0, 1fr); } .mk-results { min-width: 0; } }
@media (max-width: 767.98px) { .mk-grid, .mk-listing-grid .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; } }
.mk-pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; color: var(--mk-muted); font-size: .88rem; }
.mk-pager nav { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-page { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 11px; display: grid; place-items: center; background: #fff; border: 1px solid var(--mk-line); font-weight: 700; color: var(--mk-ink) !important; }
.mk-page:hover { border-color: var(--mk-brand); color: var(--mk-brand) !important; }
.mk-page.is-active { background: var(--mk-brand); border-color: var(--mk-brand); color: var(--mk-brand-ink) !important; }
.mk-page.is-dots { border: 0; background: transparent; }

.mk-empty { text-align: center; background: #fff; border-radius: 20px; padding: 56px 24px; box-shadow: var(--mk-shadow); }
.mk-empty.is-flat { box-shadow: none; padding: 30px 0; }
.mk-empty-ico { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--mk-brand-soft); color: var(--mk-brand); font-size: 2rem; }
.mk-empty h3 { font-weight: 800; letter-spacing: -.02em; }
.mk-empty p { color: var(--mk-muted); margin-bottom: 20px; }
.mk-empty-admin { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ── Ficha de producto ────────────────────────────────────────────────── */
.mk-pdp { padding-top: 22px; }
.mk-pdp-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: 26px; align-items: start; }
.mk-gallery { display: flex; gap: 14px; background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--mk-shadow); }
.mk-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; scrollbar-width: none; }
.mk-thumb { width: 74px; height: 74px; flex-shrink: 0; border: 2px solid var(--mk-line); border-radius: 12px; padding: 4px; background: #fff; transition: border-color .15s; }
.mk-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mk-thumb.is-active, .mk-thumb:hover { border-color: var(--mk-brand); }
.mk-stage { position: relative; flex: 1; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; border-radius: 14px; cursor: zoom-in; }
.mk-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s ease, opacity .2s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.mk-stage.is-zoom img { transform: scale(1.9); }
.mk-stage img.is-logo { max-width: 50%; opacity: .5; }
.mk-buy { position: sticky; top: 140px; }
.mk-buy-card { background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--mk-shadow); }
.mk-buy-cat { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mk-brand) !important; }
.mk-buy-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.18; margin: 8px 0 12px; }
.mk-buy-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mk-buy-meta span { font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: var(--mk-bg); color: var(--mk-ink-2); }
.mk-buy-meta .is-ok { background: #e7f7ee; color: #0e7a43; }
.mk-buy-meta .is-warn { background: #fff4e0; color: #9a5b00; }
.mk-buy-price { padding: 18px 0; border-top: 1px dashed var(--mk-line); border-bottom: 1px dashed var(--mk-line); margin-bottom: 18px; }
.mk-price-xl { font-size: 2.6rem; }
.mk-buy-price .mk-price-old { font-size: 1rem; }
.mk-cuotas.is-lg { font-size: .92rem; margin-top: 8px; }
.mk-price-ask.is-lg { font-size: 1.3rem; }
.mk-buy-row { display: flex; gap: 10px; }
.mk-qty { display: flex; align-items: center; border: 1.5px solid var(--mk-line); border-radius: 999px; height: 52px; background: #fff; }
.mk-qty button { width: 44px; height: 100%; border: 0; background: transparent; color: var(--mk-brand); font-size: .9rem; border-radius: 999px; }
.mk-qty button:hover { background: var(--mk-brand-soft); }
.mk-qty input { width: 56px; border: 0; outline: 0; text-align: center; font-weight: 800; font-size: 1.05rem; background: transparent; -moz-appearance: textfield; }
.mk-qty input::-webkit-outer-spin-button, .mk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mk-qty.is-sm { height: 40px; }
.mk-qty.is-sm button { width: 34px; }
.mk-qty.is-sm input { width: 44px; font-size: .95rem; }
.mk-staff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mk-cuotas-box { background: var(--mk-bg); border-radius: 14px; padding: 14px; margin-bottom: 14px; font-size: .88rem; }
.mk-cuotas-box-t { font-weight: 800; margin-bottom: 8px; color: var(--mk-brand); }
.mk-cuotas-box small { color: var(--mk-muted); display: block; margin-top: 6px; }
.mk-radio { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; }
.mk-plans-t { font-weight: 800; margin-bottom: 12px; }
.mk-plan { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border: 2px solid var(--mk-line); border-radius: 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.mk-plan.selected { border-color: var(--mk-brand); background: var(--mk-brand-soft); }
.mk-plan-l { display: flex; flex-direction: column; }
.mk-plan-l small { color: var(--mk-muted); }
.mk-plan-l b { color: var(--mk-ok); }
.mk-plan-r { text-align: right; display: flex; flex-direction: column; }
.mk-plan-r del { font-size: .8rem; color: var(--mk-muted); }
.mk-assure { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--mk-line); display: grid; gap: 10px; }
.mk-assure li { display: flex; gap: 10px; font-size: .84rem; color: var(--mk-ink-2); }
.mk-assure i { color: var(--mk-brand); margin-top: 3px; }
.mk-pdp-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 24px; }
.mk-detail-box { background: #fff; border-radius: 20px; padding: 24px 26px; box-shadow: var(--mk-shadow); }
.mk-detail-box h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.mk-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mk-features li { display: flex; gap: 10px; font-size: .92rem; }
.mk-features i { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--mk-brand-soft); color: var(--mk-brand); display: grid; place-items: center; font-size: .65rem; margin-top: 1px; }
.mk-desc { color: var(--mk-ink-2); line-height: 1.7; font-size: .95rem; }
.mk-related { margin-top: 34px; }
.mk-flash { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; background: var(--mk-brand-soft); color: var(--mk-brand); }
.mk-flash.is-success { background: #e7f7ee; color: #0e7a43; }
.mk-flash.is-danger, .mk-flash.is-error { background: #fdecec; color: #a3141c; }
.mk-flash.is-warning { background: #fff4e0; color: #9a5b00; }

/* ── Carrito, checkout ────────────────────────────────────────────────── */
.mk-steps { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 26px; font-size: .86rem; font-weight: 700; color: var(--mk-muted); }
.mk-steps span { display: flex; align-items: center; gap: 8px; }
.mk-steps b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--mk-line); font-size: .8rem; }
.mk-steps > i { width: 54px; height: 2px; background: var(--mk-line); }
.mk-steps .is-active { color: var(--mk-ink); }
.mk-steps .is-active b { background: var(--mk-brand); border-color: var(--mk-brand); color: var(--mk-brand-ink); }
.mk-steps .is-done b { background: var(--mk-ok); border-color: var(--mk-ok); color: #fff; }
.mk-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.mk-cart-list, .mk-form-card { background: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--mk-shadow); }
.mk-cart-list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.mk-cart-list-head h1, .mk-form-card h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.mk-cart-list-head small { font-size: .85rem; color: var(--mk-muted); font-weight: 600; margin-left: 6px; }
.mk-line { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto 130px 36px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--mk-line); }
.mk-line-img { width: 78px; height: 78px; border-radius: 12px; border: 1px solid var(--mk-line); display: grid; place-items: center; overflow: hidden; background: #fff; color: #c5cbd8; font-size: 1.6rem; }
.mk-line-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.mk-line-img img.is-logo { opacity: .5; }
.mk-line-info strong { display: block; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.mk-line-info small { color: var(--mk-muted); font-size: .8rem; }
.mk-line-sub { text-align: right; font-weight: 800; font-size: 1.02rem; }
.mk-line-sub .price-display, .mk-summary .price-display { display: inline; }
.mk-line-sub .price-alternatives, .mk-line-sub .price-alt { font-size: .72rem; font-weight: 500; color: var(--mk-muted); }
.mk-line-del { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--mk-muted) !important; }
.mk-line-del:hover { background: #fdecec; color: var(--mk-sale) !important; }
.mk-cart-list-foot { padding-top: 16px; display: flex; justify-content: flex-end; }
.mk-summary { position: sticky; top: 140px; background: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--mk-shadow); }
.mk-summary h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 16px; }
.mk-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; color: var(--mk-ink-2); }
.mk-summary-row .is-muted { color: var(--mk-muted); }
.mk-summary-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mk-line); font-size: .88rem; }
.mk-summary-item strong { display: block; font-weight: 700; }
.mk-summary-item small { color: var(--mk-muted); }
.mk-summary-item b { white-space: nowrap; }
.mk-summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; margin: 10px 0 16px; border-top: 2px solid var(--mk-ink); font-weight: 800; }
.mk-summary-total strong { font-size: 1.55rem; letter-spacing: -.03em; }
.mk-summary-note { font-size: .8rem; color: var(--mk-muted); text-align: center; margin: 14px 0 0; }
.mk-form-sub { color: var(--mk-muted); margin: 6px 0 20px; }
.mk-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mk-field { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; font-weight: 700; color: var(--mk-ink-2); }
.mk-field.is-full { grid-column: 1 / -1; }
.mk-field input, .mk-field textarea {
    border: 1.5px solid var(--mk-line); border-radius: 12px; padding: 12px 14px; font-size: .95rem; font-weight: 500;
    outline: 0; transition: border-color .15s, box-shadow .15s; background: #fbfcfe;
}
.mk-field input:focus, .mk-field textarea:focus { border-color: var(--mk-brand); box-shadow: 0 0 0 4px var(--mk-brand-soft); background: #fff; }
.mk-check { display: flex; gap: 10px; align-items: center; margin: 18px 0; font-size: .9rem; cursor: pointer; }
.mk-check input { width: 18px; height: 18px; accent-color: var(--mk-brand); }
.mk-form-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mk-done { max-width: 600px; margin: 20px auto; background: #fff; border-radius: 26px; padding: 50px 32px; text-align: center; box-shadow: var(--mk-shadow); }
.mk-done-ico { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--mk-ok); color: #fff; font-size: 2.4rem; box-shadow: 0 0 0 10px #e7f7ee; animation: mkPop .5s cubic-bezier(.3,1.6,.6,1); }
.mk-done-kicker { font-weight: 800; color: var(--mk-brand); letter-spacing: .04em; }
.mk-done h1 { font-weight: 800; letter-spacing: -.03em; margin: 6px 0 12px; }
.mk-done p { color: var(--mk-muted); }
.mk-done-ctas { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@keyframes mkPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.mk-modal { border: 0; border-radius: 20px; overflow: hidden; }
.mk-modal-head { background: var(--mk-brand); color: var(--mk-brand-ink); }
@media (max-width: 991.98px) {
    .mk-cart-grid, .mk-pdp-grid { grid-template-columns: 1fr; }
    .mk-summary, .mk-buy { position: static; }
}
@media (max-width: 767.98px) {
    .mk-line { grid-template-columns: 64px minmax(0, 1fr) 32px; grid-template-areas: "img info del" "img qty sub"; gap: 8px 12px; }
    .mk-line-img { grid-area: img; width: 64px; height: 64px; }
    .mk-line-info { grid-area: info; } .mk-line-del { grid-area: del; }
    .mk-line .mk-qty { grid-area: qty; justify-self: start; } .mk-line-sub { grid-area: sub; grid-column: 2 / 4; }
    .mk-form-grid { grid-template-columns: 1fr; }
    .mk-steps > i { width: 18px; }
    .mk-steps span { font-size: 0; gap: 0; } .mk-steps b { font-size: .8rem; }
}

/* ── Carrito lateral ──────────────────────────────────────────────────── */
.mk-drawer { width: min(94vw, 420px) !important; border: 0 !important; }
.mk-drawer-head { border-bottom: 1px solid var(--mk-line); }
.mk-drawer-head .offcanvas-title { font-weight: 800; }
.mk-drawer-n { font-size: .8rem; color: var(--mk-muted); font-weight: 600; }
.mk-drawer-body { padding: 8px 18px; background: #fafbfd; }
.mk-drawer-loading, .mk-drawer-empty { text-align: center; color: var(--mk-muted); padding: 50px 10px; }
.mk-drawer-empty i { font-size: 2.6rem; color: #cfd5e1; display: block; margin-bottom: 12px; }
.mk-ditem { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; margin: 8px 0; background: #fff; border-radius: 14px; box-shadow: var(--mk-shadow); }
.mk-ditem-img { width: 58px; height: 58px; border-radius: 10px; border: 1px solid var(--mk-line); display: grid; place-items: center; overflow: hidden; color: #c5cbd8; }
.mk-ditem-img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.mk-ditem-name { font-weight: 700; font-size: .86rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-ditem-sub { font-weight: 800; font-size: .92rem; margin-top: 4px; }
.mk-ditem-ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mk-ditem-step { display: flex; align-items: center; border: 1px solid var(--mk-line); border-radius: 999px; height: 32px; }
.mk-ditem-step button { width: 30px; height: 100%; border: 0; background: transparent; color: var(--mk-brand); font-size: .7rem; border-radius: 999px; }
.mk-ditem-step span { min-width: 26px; text-align: center; font-weight: 800; font-size: .85rem; }
.mk-ditem-del { border: 0; background: transparent; color: var(--mk-muted); font-size: .75rem; padding: 0; }
.mk-ditem-del:hover { color: var(--mk-sale); }
.mk-drawer-foot { padding: 18px; border-top: 1px solid var(--mk-line); background: #fff; }
.mk-drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 700; }
.mk-drawer-total strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }

/* ── Toast ────────────────────────────────────────────────────────────── */
.mk-toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 2000; transform: translate(-50%, 140%);
    display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px;
    background: #111a2e; color: #fff; border-radius: 16px; box-shadow: var(--mk-shadow-lg);
    font-weight: 600; font-size: .9rem; max-width: calc(100vw - 24px);
    transition: transform .35s cubic-bezier(.3,1.4,.6,1), opacity .25s, visibility .35s; pointer-events: none;
    opacity: 0; visibility: hidden;
}
.mk-toast.is-show { transform: translate(-50%, 0); pointer-events: auto; opacity: 1; visibility: visible; }
.mk-toast i { color: #4ade80; font-size: 1.1rem; }
.mk-toast a { color: #111a2e !important; background: var(--mk-accent); padding: 7px 12px; border-radius: 10px; font-weight: 800; white-space: nowrap; }
.mk-toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
@media (max-width: 991.98px) { .mk-toast { bottom: 80px; } }

/* ── Nosotros ─────────────────────────────────────────────────────────── */
.mk-about-hero { background: linear-gradient(120deg, var(--mk-brand-dark), var(--mk-brand)); color: #fff; padding: 34px 0 70px; }
.mk-about-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.035em; margin: 0; }
.mk-about-hero p { opacity: .85; font-size: 1.1rem; margin: 8px 0 0; }
.mk-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; margin-top: -76px; align-items: start; }
.mk-about-body { line-height: 1.75; font-size: 1rem; color: var(--mk-ink-2); }
.mk-about-body img { border-radius: 14px; }
.mk-contact-cards { display: grid; gap: 12px; }
.mk-contact { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border-radius: 18px; box-shadow: var(--mk-shadow); font-weight: 700; font-size: .92rem; word-break: break-word; }
.mk-contact > i { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--mk-brand-soft); color: var(--mk-brand); font-size: 1.1rem; }
.mk-contact small { display: block; color: var(--mk-muted); font-weight: 600; font-size: .75rem; }
.mk-contact.is-wa > i { background: #e8f9ef; color: #19a957; }
@media (max-width: 991.98px) { .mk-about-grid { grid-template-columns: 1fr; } }

/* ── Socio, mapa ──────────────────────────────────────────────────────── */
.mk-socio { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 28px 32px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, var(--mk-brand-dark), var(--mk-brand)); }
.mk-socio h3 { font-weight: 800; font-size: 1.3rem; margin: 0 0 4px; }
.mk-socio p { margin: 0; opacity: .85; }
.mk-map-card { display: grid; grid-template-columns: 360px minmax(0, 1fr); background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--mk-shadow); }
.mk-map-info { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mk-map-info h2 { font-weight: 800; letter-spacing: -.03em; margin: 12px 0 6px; }
.mk-map-info p { color: var(--mk-ink-2); margin: 0 0 6px; }
.mk-map-info .mk-btn { margin-top: 12px; }
.mk-map { min-height: 340px; }
@media (max-width: 767.98px) { .mk-map-card { grid-template-columns: 1fr; } }

/* ── Pie ──────────────────────────────────────────────────────────────── */
.mk-footer { margin-top: 50px; background: #0e1628; color: rgba(255,255,255,.72); }
.mk-footer-cta { background: var(--mk-brand); color: var(--mk-brand-ink); }
.mk-footer-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.mk-footer-cta h3 { font-weight: 800; font-size: 1.35rem; margin: 0; }
.mk-footer-cta p { margin: 2px 0 0; opacity: .85; }
.mk-footer-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr 1.2fr; gap: 34px; padding-top: 46px; padding-bottom: 36px; }
.mk-footer-brand strong { display: block; color: #fff; font-size: 1.2rem; font-weight: 800; margin: 10px 0 6px; }
.mk-footer-brand p { font-size: .9rem; }
.mk-footer-logo { max-height: 56px; max-width: 170px; border-radius: 10px; background: #fff; padding: 4px; }
.mk-footer h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; margin-bottom: 16px; }
.mk-footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .9rem; }
.mk-footer-list a:hover { color: #fff; }
.mk-footer-cols { grid-template-columns: 1fr 1fr; column-gap: 16px; text-transform: capitalize; }
.mk-footer-contact li { display: flex; gap: 10px; }
.mk-footer-contact i { color: var(--mk-accent); margin-top: 4px; width: 14px; }
.mk-social { display: flex; gap: 8px; margin-top: 14px; }
.mk-social a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .2s; }
.mk-social a:hover { background: var(--mk-brand); }
.mk-pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.mk-pay span { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; }
.mk-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; }
.mk-footer-bottom-in { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.mk-footer-bottom a { color: #fff; }
.mk-footer-bottom img { vertical-align: middle; }

@keyframes mkFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── Responsive general ───────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
    .mk-hero-grid { grid-template-columns: 1fr; }
    .mk-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991.98px) {
    .mk-header-row { flex-wrap: wrap; gap: 10px; min-height: 0; padding-top: 10px; padding-bottom: 12px; }
    .mk-header.is-stuck .mk-header-row { min-height: 0; }
    .mk-logo { margin-right: auto; }
    .mk-logo img { max-height: 40px; }
    .mk-search { order: 5; flex-basis: 100%; height: 46px; max-width: none; }
    .mk-header.is-stuck .mk-search { height: 42px; }
    .mk-benefits-row { grid-template-columns: repeat(2, 1fr); }
    .mk-benefit:nth-child(3) { border-left: 0; }
    .mk-benefit:nth-child(n+3) { border-top: 1px solid var(--mk-line); }
    .mk-autobanner { grid-template-columns: 1fr; min-height: 0; }
    .mk-autobanner-copy { padding: 30px 26px 8px; }
    .mk-autobanner-art { min-height: 0; height: 190px; padding: 0 20px 24px; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; transform: rotate(-3deg); }
    .mk-floater:nth-child(n+4) { display: none; }
    .mk-floater img { max-height: 90px; }
}
@media (max-width: 575.98px) {
    .mk-wrap { padding-left: 14px; padding-right: 14px; }
    .mk-search-btn { padding: 0 14px; }
    .mk-cartbtn { padding: 7px 10px; }
    .mk-benefit { padding: 12px 10px; gap: 10px; }
    .mk-benefit > i { width: 36px; height: 36px; font-size: .95rem; }
    .mk-benefit strong { font-size: .8rem; } .mk-benefit span { font-size: .72rem; }
    .mk-sec-head h2 { font-size: 1.15rem; }
    .mk-sec-badge { width: 32px; height: 32px; }
    .mk-catcircle { flex-basis: 82px; } .mk-catcircle-img { width: 76px; height: 76px; }
    .mk-card-body { padding: 2px 10px 10px; }
    .mk-card-media { padding: 10px; }
    .mk-price { font-size: 1.18rem; }
    .mk-add-btn { font-size: .82rem; }
    .mk-footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .mk-buy-card, .mk-cart-list, .mk-form-card, .mk-summary { padding: 18px; border-radius: 18px; }
    .mk-gallery { flex-direction: column-reverse; padding: 12px; }
    .mk-thumbs { flex-direction: row; overflow-x: auto; }
    .mk-thumb { width: 62px; height: 62px; }
    .mk-price-xl { font-size: 2.1rem; }
    .mk-results-head h1 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Mapa Leaflet */
.leaflet-container { font-family: inherit !important; }
/* Modal express (staff) */
.express-autocomplete-wrapper { position: relative; }
.express-autocomplete-dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 1060; background: #fff; border: 1px solid var(--mk-line); border-radius: 10px; box-shadow: var(--mk-shadow-lg); max-height: 240px; overflow-y: auto; display: none; }
.express-ac-item { padding: 8px 12px; cursor: pointer; font-size: .9rem; }
.express-ac-item:hover, .express-ac-item.active { background: var(--mk-brand-soft); }
#expressClienteBadge { display: none; margin-top: 6px; }
.express-autocomplete-dropdown.show { display: block; }
.express-ac-name { font-weight: 600; font-size: .92rem; }
.express-ac-details { font-size: .78rem; color: var(--mk-muted); }

/* Instalar app (lo muestra el script PWA del core) */
.mk-install[hidden] { display: none !important; }
.mk-install > i { font-size: 1.3rem !important; }

/* Círculos de categoría sin imagen: un tono por posición */
.mk-catcircle:nth-child(6n+1) .mk-catcircle-img b { background: linear-gradient(135deg, #ffe7b3, #ffd166); color: #8a5a00; }
.mk-catcircle:nth-child(6n+2) .mk-catcircle-img b { background: linear-gradient(135deg, #d6f5e3, #9be3bd); color: #11663b; }
.mk-catcircle:nth-child(6n+3) .mk-catcircle-img b { background: linear-gradient(135deg, #dbe8ff, #a9c6ff); color: #1d4aa8; }
.mk-catcircle:nth-child(6n+4) .mk-catcircle-img b { background: linear-gradient(135deg, #ffe0e0, #ffb3b3); color: #a3141c; }
.mk-catcircle:nth-child(6n+5) .mk-catcircle-img b { background: linear-gradient(135deg, #ece0ff, #cdb3ff); color: #5b2ab0; }
.mk-catcircle:nth-child(6n+6) .mk-catcircle-img b { background: linear-gradient(135deg, #d9f4f7, #9fe1ea); color: #0b6873; }

/* Hero entre 992 y 1199: tarjetas laterales en fila, bajitas */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .mk-hero-side { flex-direction: row; }
    .mk-side-card { padding: 18px 22px; min-height: 120px; }
    .mk-side-card strong { font-size: 1.2rem; }
}

/* Celular: franja en una línea, hero compacto, beneficios deslizables */
@media (max-width: 767.98px) {
    .mk-strip-in { min-height: 28px; font-size: .74rem; }
    .mk-strip-in > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mk-hero { padding-top: 12px; }
    .mk-autobanner { border-radius: 18px; }
    .mk-autobanner-copy { padding: 22px 20px 4px; }
    .mk-autobanner h1 { font-size: 1.75rem; margin: 10px 0 6px; }
    .mk-autobanner p { font-size: .92rem; margin-bottom: 16px; }
    .mk-autobanner-ctas .mk-btn { min-height: 40px; padding: 0 16px; font-size: .86rem; }
    .mk-autobanner-art { height: 150px; gap: 10px; padding: 0 16px 18px; }
    .mk-floater { padding: 8px; border-radius: 14px; }
    .mk-floater img { max-height: 70px; }
    .mk-floater b { font-size: .7rem; padding: 3px 7px; }
    .mk-benefits-row { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; border-radius: 14px; }
    .mk-benefits-row::-webkit-scrollbar { display: none; }
    .mk-benefit { flex: 0 0 72%; scroll-snap-align: start; border-top: 0 !important; }
    .mk-benefit:nth-child(3) { border-left: 1px solid var(--mk-line); }
    .mk-section { padding-top: 22px; }
}
@media (max-width: 575.98px) {
    .mk-card .mk-save { display: none; }
    .mk-autobanner-ctas { flex-wrap: nowrap; }
}

/* Precios HTML del core (moneda principal + alternativas) */
.mk-body .price-display { display: flex; flex-direction: column; align-items: inherit; }
.mk-line-sub .price-display, .mk-summary .price-display, .mk-summary-item b .price-display { align-items: flex-end; }
.mk-body .price-main { font-weight: 800; }
.mk-body .price-alternatives { display: flex; flex-wrap: wrap; justify-content: inherit; gap: 0 8px; font-size: .72rem; font-weight: 600; color: var(--mk-muted) !important; }
.mk-body .price-alternatives * { color: var(--mk-muted) !important; }
.mk-summary-total strong .price-main { font-size: 1.55rem; }
.mk-summary-total { flex-wrap: wrap; gap: 4px 12px; }
.mk-summary-item { align-items: flex-start; }
.mk-summary-item > span { min-width: 0; }
.mk-catcircle-img.is-product img, .mk-sec-thumb.is-product img { object-fit: contain; padding: 14%; background: #fff; }

/* Botón "En proceso" (staff): amarillo con letras negras */
.mk-btn-proceso { background: #ffc107; color: #111 !important; border-color: #ffc107; }
.mk-btn-proceso:hover { background: #e0a800; border-color: #e0a800; color: #111 !important; }

/* "Consultar stock": stock en cero o sin cargar. Aparece al pasar el
   mouse por la imagen, o al tocarla en el celular (theme.js). */
.mk-card-ask {
    position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
    padding: 8px 10px; border-radius: 10px; text-align: center;
    background: rgba(17, 26, 46, .88); color: #fff; font-size: .8rem; font-weight: 700;
    opacity: 0; transform: translateY(6px); pointer-events: none;
    transition: opacity .2s, transform .2s;
}
@media (hover: hover) { .mk-card-media:hover .mk-card-ask { opacity: 1; transform: none; } }
.mk-card-media.is-ask .mk-card-ask { opacity: 1; transform: none; }

/* Celular/tablet: el collage del banner automático sin inclinación ni
   desfasajes, con aire arriba, para que no se monte sobre los botones. */
@media (max-width: 991.98px) {
    .mk-autobanner-art { transform: none; margin-top: 22px; padding-top: 10px; }
    .mk-floater:nth-child(2n) { transform: none; }
    .mk-floater { animation: none; }
}

/* Celular/tablet: buscador más bajo, sin botón "Buscar" (se busca solo al
   escribir, o con Enter) y con aire dentro de la cabecera. */
@media (max-width: 991.98px) {
    .mk-header-row { padding-top: 8px; padding-bottom: 14px; row-gap: 8px; }
    .mk-search, .mk-header.is-stuck .mk-search { height: 38px; box-shadow: none; }
    .mk-search-btn { display: none; }
    .mk-search-ico { left: 14px; font-size: .85rem; }
    .mk-search input { padding: 0 14px 0 38px; font-size: 16px; } /* 16px: así el iPhone no hace zoom al tocar */
}

/* Precio en monedas alternativas (mismos colores que el core) */
.mk-price-alt { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: .74rem; font-weight: 700; line-height: 1.35; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mk-price-alt .is-1 { color: #16a085; } .mk-price-alt .is-2 { color: #e67e22; } .mk-price-alt .is-3 { color: #8e44ad; }
.mk-price-alt.is-lg { font-size: .92rem; gap: 0 14px; margin-top: 6px; }
/* Celular/tablet: la ficha y el carrito nunca más anchos que la pantalla.
   Con "1fr" la columna crecía hasta el contenido más ancho (la fila
   cantidad + "Agregar al carrito") y el marco de la imagen se salía. */
@media (max-width: 991.98px) {
    .mk-pdp-grid, .mk-cart-grid { grid-template-columns: minmax(0, 1fr); }
    .mk-pdp-grid > *, .mk-cart-grid > * { min-width: 0; }
    .mk-buy-row .mk-btn { min-width: 0; padding: 0 14px; white-space: normal; line-height: 1.15; }
    .mk-buy-row .mk-qty { flex-shrink: 0; }
}
