/* ==========================================================================
   MODERNA HOGAR — Storefront child theme
   Paleta: blanco #FFFFFF · negro #0A0A0A · rojo señal #E11D2A · gris #F5F5F4
   Tipografías: Space Grotesk (display) + Plus Jakarta Sans (texto)
   ========================================================================== */

/* Ancho máximo global del sitio — cambiar aquí para ajustar todo el layout */
:root {
    --mh-max-w: 1280px;   /* contenido principal */
    --mh-pad-x: 48px;     /* padding horizontal de secciones */
}

body.mh-theme {
    background: var(--mh-paper);
    color: var(--mh-ink);
    font-family: 'Plus Jakarta Sans', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mh-theme *,
.mh-theme *::before,
.mh-theme *::after {
    box-sizing: border-box;
}

.mh-display {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.mh-theme h1,
.mh-theme h2,
.mh-theme h3,
.mh-theme h4 {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
    color: var(--mh-ink);
}

.mh-theme a {
    color: var(--mh-ink);
}

.mh-theme a:hover {
    color: var(--mh-sale);
}

.mh-container {
    max-width: var(--mh-max-w);
    margin: 0 auto;
    padding: 0 var(--mh-pad-x);
}

/* Storefront overrides — make the parent layout match our white canvas. */
.mh-theme #page,
.mh-theme .site,
.mh-theme .site-content,
.mh-theme .col-full {
    background: var(--mh-paper) !important;
    max-width: none;
    padding: 0;
    margin: 0;
}

.mh-theme #content {
    padding: 0;
}

.mh-theme .site-header,
.mh-theme #masthead {
    padding: 0 !important;
    background: var(--mh-paper);
    border-bottom: 0 !important;
    margin: 0 !important;          /* Storefront adds ~64px margin-bottom — must override */
    margin-bottom: 0 !important;
}

/* Storefront may add top padding to .site-content on some layouts */
.mh-theme .site-content,
.mh-theme #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.mh-theme .site-footer {
    background: var(--mh-gray);
    padding: 0;
    color: var(--mh-ink);
}

/* =========================
   TOP STRIP
   ========================= */

.mh-strip {
    background: #111111;
    color: rgba(255, 255, 255, 0.92);
    padding: 8px 0;
    font-size: 12.5px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.01em;
}

.mh-strip-inner {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 0 24px;
}

.mh-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mh-strip b {
    font-weight: 700;
}

/* -- Ticker / marquee mode ------------------------------ */
.mh-strip-inner.is-ticker {
    overflow: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
}

/*
 * Two identical tracks sit side-by-side inside the overflow:hidden container.
 * The animation slides each track -100% of its own width.
 * When track 1 exits left, track 2 fills exactly where track 1 started → seamless loop.
 */
.mh-strip-ticker__track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 56px;
    padding: 0 28px;      /* visual breathing room at start/end of each track */
    animation: mh-ticker 22s linear infinite;
}

@keyframes mh-ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Pause on hover — accessibility */
.mh-strip-inner.is-ticker:hover .mh-strip-ticker__track {
    animation-play-state: paused;
}

/* Ensure spans in ticker don't wrap */
.mh-strip-inner.is-ticker span {
    white-space: nowrap;
    flex-shrink: 0;
}

/* =========================
   HEADER
   ========================= */

.mh-header {
    background: var(--mh-paper);
    position: relative;   /* default: no sticky */
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Sticky activado desde admin (body class inyectada por functions.php) */
body.mh-sticky-header .mh-header {
    position: sticky;
}

.mh-header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    /* Fondo full-width; contenido centrado dentro de --mh-max-w */
    padding: 14px max(var(--mh-pad-x), calc((100% - var(--mh-max-w)) / 2));
    border-bottom: 1px solid var(--mh-gray-2);
    background: #FAFAF9;
}

.mh-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.mh-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--mh-gray);
    border-radius: 8px;
    padding: 10px 16px;
    max-width: 560px;
    width: 100%;
    justify-self: center;
    align-self: center;      /* centrado vertical explícito en la grilla */
    border: 1.5px solid var(--mh-gray-2);
    transition: border-color .15s;
}

.mh-search:focus-within {
    border-color: var(--mh-ink);
    background: #fff;
}

.mh-search input[type="search"],
.mh-search input[type="text"] {
    flex: 1;
    background: transparent;
    border: 0;
    outline: none;
    font: inherit;
    font-size: 14px;
    padding: 0;
    box-shadow: none;
    width: 100%;
}

.mh-search kbd {
    font-size: 11px;
    padding: 2px 6px;
    background: #fff;
    border-radius: 4px;
    color: var(--mh-mute);
    font-family: inherit;
    border: 1px solid var(--mh-gray-2);
}

.mh-header-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.mh-header-actions a,
.mh-header-actions button {
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font: inherit;
    font-size: 13px;
    color: var(--mh-ink);
    border-radius: 8px;
    transition: background .15s;
    text-decoration: none;
}

.mh-header-actions a:hover,
.mh-header-actions button:hover {
    background: var(--mh-gray);
    color: var(--mh-ink);
}

.mh-cart-btn {
    background: var(--mh-ink) !important;
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: 100px !important;
}

.mh-cart-btn:hover {
    background: #1f1f1f !important;
}

.mh-badge {
    background: var(--mh-sale);
    color: #fff;
    border-radius: 100px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

/* Menu — barra oscura para identidad Moderna Hogar */
.mh-menu {
    /* Fondo full-width; contenido centrado dentro de --mh-max-w */
    padding: 0 max(var(--mh-pad-x), calc((100% - var(--mh-max-w)) / 2));
    display: flex;
    gap: 0;
    align-items: stretch;
    background: var(--mh-ink);     /* NAV OSCURA — marca el límite del header */
}

.mh-menu ul,
.mh-menu .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
    flex: 1;
    flex-wrap: wrap;
}

.mh-menu li {
    list-style: none;
}

.mh-menu li a {
    display: block;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all .15s;
    letter-spacing: 0.01em;
}

.mh-menu li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mh-menu .mh-sale-link a,
.mh-menu li.mh-sale-item a {
    color: #ff8a8a;      /* rojo claro legible sobre fondo oscuro */
    font-weight: 700;
}

.mh-menu-right {
    margin-left: auto;
    padding: 14px 0;
    display: flex;
    gap: 18px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12.5px;
    align-items: center;
}

/* =========================
   HERO
   ========================= */

.mh-hero {
    max-width: var(--mh-max-w);
    margin-left: auto;
    margin-right: auto;
    padding: 28px var(--mh-pad-x) 0;
    display: grid;
    grid-template-columns: 2.4fr 1fr;
    gap: 16px;
}

.mh-hero-main {
    background: linear-gradient(120deg, #FEE2E5 0%, #F5F1EB 60%, #E7E5E4 100%);
    border-radius: 18px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 460px;
}

.mh-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mh-ink);
    color: #fff;
    border-radius: 100px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
}

.mh-pill--sale {
    background: var(--mh-sale);
}

.mh-pill--light {
    background: #fff;
    color: var(--mh-ink);
}

.mh-pill--gold {
    background: #C8A07F;
    color: var(--mh-ink);
}

.mh-hero-main h1 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    font-size: 76px;
    line-height: 0.92;
    margin: 16px 0 18px;
    font-weight: 700;
}

.mh-hero-main h1 em {
    color: var(--mh-sale);
    font-style: normal;
}

.mh-hero-main p {
    color: var(--mh-mute);
    max-width: 420px;
    font-size: 16px;
    margin-bottom: 28px;
}

.mh-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mh-btn {
    padding: 14px 24px;
    border-radius: 100px;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--mh-ink);
    background: var(--mh-ink);
    color: #fff;
    cursor: pointer;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
}

.mh-btn:hover {
    background: #1f1f1f;
    color: #fff;
    border-color: #1f1f1f;
}

.mh-btn--ghost {
    background: transparent;
    color: var(--mh-ink);
}

.mh-btn--ghost:hover {
    background: var(--mh-ink);
    color: #fff;
}

.mh-btn--sale {
    background: var(--mh-sale);
    border-color: var(--mh-sale);
    color: #fff;
}

.mh-btn--sale:hover {
    background: var(--mh-sale-dark);
    border-color: var(--mh-sale-dark);
    color: #fff;
}

.mh-btn--gold {
    background: #C8A07F;
    border-color: #C8A07F;
    color: var(--mh-ink);
}

.mh-btn--gold:hover {
    background: #b58a67;
    border-color: #b58a67;
    color: var(--mh-ink);
}

.mh-countdown {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.mh-countdown small {
    font-size: 12px;
    color: var(--mh-mute);
    margin-right: 8px;
}

.mh-countdown b {
    background: var(--mh-ink);
    color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    min-width: 56px;
    text-align: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.mh-countdown b span {
    font-size: 9px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mh-hero-img {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--mh-gray-2);
}

.mh-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mh-hero-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 80%;
}

.mh-hero-tag b {
    font-size: 13px;
    display: block;
}

.mh-hero-tag span {
    font-size: 11px;
    color: var(--mh-mute);
}

.mh-hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mh-hero-side-card {
    flex: 1;
    border-radius: 18px;
    padding: 28px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 222px;
    text-decoration: none;
}

.mh-hero-side-card--cream {
    background: #FFE9CC;
    color: var(--mh-ink);
}

.mh-hero-side-card--dark {
    background: var(--mh-ink);
    color: #fff;
}

.mh-hero-side-card--dark h3,
.mh-hero-side-card--dark span,
.mh-hero-side-card--dark .mh-pill {
    color: #fff;
}

.mh-hero-side-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    margin: 12px 0 0;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.mh-hero-side-card svg {
    align-self: flex-end;
}

/* =========================
   BENEFITS BAR
   ========================= */

.mh-bens {
    max-width: var(--mh-max-w);
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    padding: 24px var(--mh-pad-x);
    border-top: 1px solid var(--mh-gray-2);
    border-bottom: 1px solid var(--mh-gray-2);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--mh-paper);
}

.mh-ben {
    display: flex;
    gap: 14px;
    align-items: center;
}

.mh-ben svg {
    color: var(--mh-ink);
    flex-shrink: 0;
}

.mh-ben b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--mh-ink);
}

.mh-ben span {
    font-size: 12px;
    color: var(--mh-mute);
}

/* =========================
   SECTIONS
   ========================= */

.mh-section {
    max-width: var(--mh-max-w);
    margin-left: auto;
    margin-right: auto;
    padding: 56px var(--mh-pad-x);
}

.mh-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 24px;
    flex-wrap: wrap;
}

.mh-section-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    margin: 0;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--mh-ink);
}

.mh-section-head p {
    color: var(--mh-mute);
    margin: 4px 0 0;
    font-size: 14px;
}

.mh-section-head a {
    color: var(--mh-ink);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.mh-section-head a:hover {
    color: var(--mh-sale);
}

/* =========================
   PRODUCT SLIDER
   ========================= */

.mh-slider {
    position: relative;
    /* Overflow visible so arrow buttons can sit outside the viewport clip */
}

.mh-slider__viewport {
    overflow: hidden;
    /* Tiny radius avoids pixel bleed on first/last card during animation */
    border-radius: 2px;
}

/* Track: flex layout set in CSS as base; JS overrides transform + transition */
.mh-slider__track {
    display: flex;
    gap: 16px;
}

/* Arrow buttons */
.mh-slider__btn {
    position: absolute;
    top: 38%;               /* visual center of card image, not full card */
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--mh-gray-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--mh-ink);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}

.mh-slider__btn:hover {
    background: var(--mh-ink);
    border-color: var(--mh-ink);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.mh-slider__btn:focus-visible {
    outline: 2px solid var(--mh-sale);
    outline-offset: 2px;
}

.mh-slider__prev { left: -22px; }
.mh-slider__next { right: -22px; }

/* Arrows on mobile — smaller, keep inside viewport */
@media (max-width: 768px) {
    .mh-slider__btn {
        width: 32px;
        height: 32px;
    }
    .mh-slider__prev { left: 2px; }
    .mh-slider__next { right: 2px; }
}

/* =========================
   CATEGORIES GRID
   ========================= */

.mh-cats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.mh-cat {
    background: var(--mh-gray);
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--mh-ink);
    display: block;
}

.mh-cat:hover {
    background: #fff;
    border-color: var(--mh-ink);
    transform: translateY(-2px);
    color: var(--mh-ink);
}

.mh-cat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    overflow: hidden;
}

.mh-cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.mh-cat b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--mh-ink);
}

.mh-cat span {
    font-size: 11px;
    color: var(--mh-mute);
}

/* =========================
   SALE GRID + PRODUCT CARDS
   ========================= */

.mh-sale-grid {
    background: linear-gradient(180deg, #FEF2F2 0%, #fff 100%);
    border-radius: 24px;
    padding: 40px;
}

.mh-sale-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.mh-sale-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    margin: 0;
    letter-spacing: -0.02em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mh-sale-badge {
    background: var(--mh-sale);
    color: #fff;
    font-size: 18px;
    padding: 4px 14px;
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 0;
}

.mh-sale-head .mh-link-sale {
    text-decoration: none;
    color: var(--mh-sale);
    font-weight: 700;
    font-size: 13px;
}

.mh-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mh-products--3 {
    grid-template-columns: repeat(3, 1fr);
}

.mh-product {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: all .22s ease;
    border: 1.5px solid var(--mh-gray-2);
    position: relative;
    text-decoration: none;
    color: var(--mh-ink);
    display: block;
}

.mh-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
    border-color: var(--mh-ink);
    color: var(--mh-ink);
}

.mh-product-img-wrap {
    aspect-ratio: 1;
    background: var(--mh-gray);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
}

.mh-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mh-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mh-ink);
    z-index: 2;
}

.mh-fav:hover {
    color: var(--mh-sale);
}

.mh-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--mh-sale);
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.mh-product-cat {
    font-size: 11px;
    color: var(--mh-mute);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.mh-product-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 10px;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--mh-ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0;
}

.mh-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.mh-price-row .price,
.mh-price-row > span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mh-ink);
}

.mh-price-row .price del,
.mh-price-row del {
    font-size: 12px;
    color: var(--mh-mute);
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 6px;
}

.mh-price-row ins {
    background: transparent;
    text-decoration: none;
    color: var(--mh-ink);
}

.mh-installments {
    display: block;
    flex-basis: 100%;          /* force new line inside .mh-price-row flex */
    font-size: 11px;
    color: var(--mh-green);
    margin-top: 4px;
    font-weight: 600;
}

.mh-installments svg {
    display: inline;
    vertical-align: -2px;
    margin-right: 3px;
}

.mh-quick-add {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    background: var(--mh-ink);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    opacity: 1;              /* always visible — no hover required */
    transition: opacity .15s, background .15s;
    text-align: center;
}

.mh-product:hover .mh-quick-add {
    background: #1a1a1a;
}

/* =========================
   SOMMIER BANNER
   ========================= */

.mh-sommier-banner {
    /* Floating card centrado: fondo no extiende a los bordes */
    width: calc(100% - 2 * var(--mh-pad-x));
    max-width: calc(var(--mh-max-w) - 2 * var(--mh-pad-x));
    margin-left: auto;
    margin-right: auto;
    border-radius: 24px;
    overflow: hidden;
    background: var(--mh-ink);
    color: #fff;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.mh-sommier-banner__text {
    padding: 56px 48px;
}

.mh-sommier-banner__text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 60px;
    line-height: 0.95;
    margin: 16px 0;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #fff;
}

.mh-sommier-banner__text h2 em {
    font-style: normal;
    color: #C8A07F;
}

.mh-sommier-banner__text p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 380px;
    font-size: 15px;
    margin-bottom: 28px;
}

.mh-sommier-banner__text ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mh-sommier-banner__text li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.mh-sommier-banner__text li svg {
    color: #C8A07F;
}

.mh-sommier-banner__img {
    position: relative;
    background: #1a1a1a;
}

.mh-sommier-banner__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Los estilos del banner de Mercado Pago viven en el bloque FEATURE 10 al final del archivo. */

/* =========================
   ELECTRO SECTION
   ========================= */

.mh-electro {
    /* Floating card centrado */
    width: calc(100% - 2 * var(--mh-pad-x));
    max-width: calc(var(--mh-max-w) - 2 * var(--mh-pad-x));
    margin-left: auto;
    margin-right: auto;
    border-radius: 24px;
    overflow: hidden;
    background: #FFFBEA;
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: center;
}

.mh-electro__text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    margin: 12px 0;
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--mh-ink);
}

.mh-electro__text p {
    color: var(--mh-mute);
    max-width: 320px;
    margin-bottom: 24px;
}

.mh-electro__products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* =========================
   TRUST / REVIEWS
   ========================= */

.mh-trust {
    /* Fondo full-width, contenido centrado */
    padding: 56px max(var(--mh-pad-x), calc((100% - var(--mh-max-w)) / 2));
    background: var(--mh-gray);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.mh-trust__head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 38px;
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--mh-ink);
}

.mh-stars {
    font-size: 24px;
    color: #F59E0B;
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.mh-trust__head p {
    color: var(--mh-mute);
    margin-top: 12px;
    font-size: 14px;
}

.mh-trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mh-trust__card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid var(--mh-gray-2);
}

.mh-trust__card .mh-stars {
    color: #F59E0B;
    font-size: 13px;
    margin-bottom: 10px;
}

.mh-trust__card p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 14px;
    color: var(--mh-ink);
}

.mh-trust__who {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mh-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mh-gray-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--mh-ink);
}

.mh-trust__who b {
    font-size: 12px;
}

.mh-trust__who small {
    color: var(--mh-mute);
    font-size: 11px;
    display: block;
}

/* =========================
   NEWSLETTER
   ========================= */

.mh-news {
    /* Fondo full-width, contenido centrado */
    padding: 64px max(var(--mh-pad-x), calc((100% - var(--mh-max-w)) / 2));
    background: var(--mh-ink);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mh-news h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px;
    margin: 0 0 12px;
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #fff;
}

.mh-news h2 span {
    color: var(--mh-mp-yellow);
}

.mh-news p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 420px;
    font-size: 15px;
}

.mh-news-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mh-news-form input[type="email"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 16px 22px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    outline: none;
    min-width: 240px;
}

.mh-news-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* =========================
   FOOTER
   ========================= */

.mh-footer {
    padding: 56px 48px 24px;
    background: var(--mh-gray);
    color: var(--mh-ink);
}

.mh-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.mh-footer h5 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--mh-ink);
    letter-spacing: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: none;
}

.mh-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.mh-footer li {
    list-style: none;
    font-size: 13px;
    color: var(--mh-mute);
}

.mh-footer a {
    color: var(--mh-mute);
    text-decoration: none;
    font-size: 13px;
}

.mh-footer a:hover {
    color: var(--mh-ink);
}

.mh-footer-about p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--mh-mute);
    margin: 16px 0;
    max-width: 320px;
}

.mh-footer-socials {
    display: flex;
    gap: 8px;
}

.mh-footer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mh-ink);
    border: 1px solid var(--mh-gray-2);
}

.mh-footer-socials a:hover {
    background: var(--mh-ink);
    color: #fff;
}

.mh-footer-bottom {
    border-top: 1px solid var(--mh-gray-2);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--mh-mute);
    gap: 16px;
    flex-wrap: wrap;
}

.mh-pays {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.mh-pays b {
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    border: 1px solid var(--mh-gray-2);
    font-weight: 600;
}

/* =========================
   WOOCOMMERCE
   ========================= */

.mh-theme .woocommerce ul.products li.product .price,
.mh-theme .woocommerce ul.products li.product .price ins,
.mh-theme .woocommerce ul.products li.product .price .amount,
.mh-theme .woocommerce div.product p.price,
.mh-theme .woocommerce div.product span.price {
    color: var(--mh-ink);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.mh-theme .woocommerce ul.products li.product .button,
.mh-theme .woocommerce a.button,
.mh-theme .woocommerce button.button,
.mh-theme .woocommerce input.button,
.mh-theme .woocommerce #respond input#submit {
    background: var(--mh-ink);
    color: #fff;
    border-radius: 100px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 13px;
    border: 0;
    text-transform: none;
    letter-spacing: 0;
}

.mh-theme .woocommerce ul.products li.product .button:hover,
.mh-theme .woocommerce a.button:hover,
.mh-theme .woocommerce button.button:hover,
.mh-theme .woocommerce input.button:hover,
.mh-theme .woocommerce #respond input#submit:hover {
    background: #1f1f1f;
    color: #fff;
}

.mh-theme .woocommerce a.button.alt,
.mh-theme .woocommerce button.button.alt,
.mh-theme .woocommerce #respond input#submit.alt,
.mh-theme .woocommerce input.button.alt {
    background: var(--mh-sale);
    color: #fff;
}

.mh-theme .woocommerce a.button.alt:hover,
.mh-theme .woocommerce button.button.alt:hover,
.mh-theme .woocommerce #respond input#submit.alt:hover,
.mh-theme .woocommerce input.button.alt:hover {
    background: var(--mh-sale-dark);
}

.mh-theme .woocommerce span.onsale {
    background: var(--mh-sale);
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    min-height: auto;
    line-height: 1;
    min-width: auto;
}

.mh-theme .woocommerce ul.products li.product {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid var(--mh-gray-2);
    transition: all .2s;
}

.mh-theme .woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--mh-ink);
}

.mh-theme .woocommerce ul.products li.product a img {
    border-radius: 8px;
    margin-bottom: 14px;
}

.mh-theme .woocommerce ul.products li.product h2,
.mh-theme .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    padding: 0;
    margin: 0 0 10px;
    color: var(--mh-ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0;
}

.mh-theme .woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--mh-mute);
    padding: 16px 48px;
    background: var(--mh-gray);
    margin: 0 0 32px;
}

.mh-theme .woocommerce-breadcrumb a {
    color: var(--mh-mute);
}

.mh-theme .woocommerce-breadcrumb a:hover {
    color: var(--mh-ink);
}

.mh-theme .woocommerce .page-title,
.mh-theme .woocommerce-products-header__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--mh-ink);
    margin: 32px 48px;
    letter-spacing: -0.02em;
}

.mh-theme .woocommerce .products {
    padding: 0 48px;
}

.mh-theme .woocommerce form .form-row input.input-text,
.mh-theme .woocommerce form .form-row textarea {
    border: 1px solid var(--mh-gray-2);
    border-radius: 8px;
    padding: 10px 14px;
}

/* Cart / checkout / account — keep palette consistent */
.mh-theme .woocommerce-message,
.mh-theme .woocommerce-info {
    border-top-color: var(--mh-sale);
    background: #FEF2F2;
}

.mh-theme .woocommerce-message::before,
.mh-theme .woocommerce-info::before {
    color: var(--mh-sale);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
    .mh-header-top {
        padding: 14px 24px;
    }

    .mh-menu {
        padding: 0 24px;
    }

    .mh-hero,
    .mh-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .mh-bens {
        padding-left: 24px;
        padding-right: 24px;
    }

    .mh-sommier-banner,
    .mh-electro {
        /* Reemplaza el width calc base con márgenes de 24px */
        width: calc(100% - 48px);
        max-width: none;
    }

    .mh-mp-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .mh-news,
    .mh-footer,
    .mh-trust {
        padding-left: 24px;
        padding-right: 24px;
    }

    .mh-hero {
        grid-template-columns: 1fr;
    }

    .mh-hero-main {
        grid-template-columns: 1fr;
        padding: 40px;
        min-height: auto;
    }

    .mh-hero-main h1 {
        font-size: 56px;
    }

    .mh-hero-side {
        flex-direction: row;
    }

    .mh-bens {
        grid-template-columns: repeat(2, 1fr);
    }

    .mh-cats {
        grid-template-columns: repeat(3, 1fr);
    }

    .mh-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .mh-sommier-banner,
    .mh-electro,
    .mh-trust,
    .mh-news,
    .mh-footer-grid {
        grid-template-columns: 1fr;
    }

    .mh-sommier-banner__text h2 {
        font-size: 44px;
    }
}

@media (max-width: 720px) {
    /* Strip (static mode only): centered row, scrollable if text overflows */
    .mh-strip-inner:not(.is-ticker) {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        gap: 20px;
        padding: 0 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mh-strip-inner:not(.is-ticker)::-webkit-scrollbar { display: none; }
    .mh-strip-inner:not(.is-ticker) span {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .mh-header-top {
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        gap: 16px;
    }

    .mh-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .mh-header-actions {
        gap: 6px;
    }

    .mh-header-actions a span,
    .mh-header-actions button span:not(.mh-badge) {
        display: none;
    }

    .mh-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mh-menu ul,
    .mh-menu .menu {
        flex-wrap: nowrap;
    }

    .mh-menu li a {
        padding: 13px 12px;
        white-space: nowrap;
    }

    .mh-menu-right {
        display: none;
    }

    .mh-hero-main h1 {
        font-size: 40px;
    }

    .mh-hero-main {
        padding: 28px;
    }

    .mh-section {
        padding: 40px 16px;
    }

    .mh-hero {
        padding: 16px 16px 0;
    }

    .mh-bens {
        padding: 24px 16px;
        margin-top: 32px;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    /* Benefits bar — center icon + text on mobile */
    .mh-ben {
        text-align: center;
        align-items: center;
    }
    .mh-ben-text {
        text-align: center;
    }

    .mh-sale-grid,
    .mh-trust,
    .mh-news,
    .mh-footer {
        padding: 24px 16px;
    }

    .mh-cats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .mh-sommier-banner,
    .mh-electro {
        width: calc(100% - 32px);
        max-width: none;
        padding: 28px;
    }

    .mh-mp-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mh-mp-banner {
        padding: 28px;
    }

    .mh-electro__products {
        grid-template-columns: 1fr 1fr;
    }

    .mh-trust__grid {
        grid-template-columns: 1fr;
    }

    .mh-section-head h2 {
        font-size: 28px;
    }

    /* Footer — single column, centered */
    .mh-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .mh-footer-about,
    .mh-footer div {
        text-align: center;
    }
    .mh-footer h5 {
        text-align: center;
    }
    .mh-footer ul {
        align-items: center;
    }
    .mh-footer-about p {
        max-width: none;
    }
    .mh-footer-socials {
        justify-content: center;
    }
    .mh-footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .mh-pays {
        justify-content: center;
    }
}

/* ==========================================================================
   STOREFRONT PARENT — OVERRIDES POST-DEPLOY (live site inspection)
   Correcciones aplicadas luego de ver el sitio en vivo en Hostinger.
   ========================================================================== */

/* 1. Eliminar margin-bottom que Storefront agrega al site-header (~64px)
      Causa un gap visible entre la nav y el hero. */
body.mh-theme .site-header,
body.mh-theme #masthead,
body.mh-theme header.site-header {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* 2. Eliminar top-padding que Storefront agrega a .site-content */
body.mh-theme .site-content,
body.mh-theme #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 3. Neutralizar el col-full de Storefront (puede agregar max-width y padding) */
body.mh-theme .col-full {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

/* 4. Storefront sidebar — en la home no queremos sidebar, forzar full-width */
body.mh-theme.storefront-full-width-content .site-content,
body.mh-theme.home .site-content {
    float: none;
    width: 100%;
    margin: 0;
}

body.mh-theme .storefront-breadcrumb,
body.mh-theme .woocommerce-breadcrumb {
    padding-left: 48px;
    padding-right: 48px;
}

/* 5. Admin bar compensation — sticky header sin overlap */
body.admin-bar.mh-sticky-header .mh-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar.mh-sticky-header .mh-header {
        top: 46px;
    }
}

/* 6. Storefront puede agregar su propio header vacío — ocultarlo si existe
      y no está siendo usado por nosotros */
body.mh-theme .site-header > .col-full:empty {
    display: none;
}

/* 7. Aseguramos que el logo se vea correctamente en el header propio */
.mh-header .mh-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.mh-header .mh-logo img {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    filter: none;
}

/* 8. Refuerzo del stack header: strip → header-top → nav, sin espacios */
.mh-strip + .mh-header,
.mh-strip + #masthead {
    margin-top: 0;
}

/* 9. Botones WooCommerce — quitar text-transform uppercase que Storefront aplica */
body.mh-theme .woocommerce a.button,
body.mh-theme .woocommerce button.button,
body.mh-theme .woocommerce input.button,
body.mh-theme .woocommerce #respond input#submit {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
}

/* 10. Precio WooCommerce — alinear con la paleta */
body.mh-theme .woocommerce .price .amount {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* 11. Estrechar el gap entre cards en el grid de productos de Woo */
body.mh-theme .woocommerce ul.products {
    margin: 0;
}

/* 12. Sale badge de Woo — reforzar el estilo de la paleta */
body.mh-theme .woocommerce span.onsale {
    background-color: var(--mh-sale) !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    min-height: auto !important;
    line-height: 1 !important;
    padding: 4px 8px !important;
}

/* 13. Quitar el "Store coming soon" banner si está visible (Hostinger) */
/* Note: esto es un banner de Hostinger, no del tema. No hay CSS directo. */

/* 14. Hero — ajuste adicional de padding para que quede justo debajo del nav */
.mh-hero {
    padding-top: 28px;
}

/* Separación mínima entre sections grandes */
.mh-sommier-banner + section,
.mh-mp-banner + section {
    margin-top: 0;
}

/* ==========================================================================
   WOOCOMMERCE — PRODUCT, CART, CHECKOUT, SHOP
   Moderna Hogar WooCommerce template styles.
   Appended: 2026-05-22
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SINGLE PRODUCT PAGE
   -------------------------------------------------------------------------- */

.mh-product-page {
    padding: 40px 0 80px;
    background: var(--mh-paper);
}

/* 2-column grid: 55% gallery / 45% info */
.mh-product-layout {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 64px;
}

/* --- Gallery column --- */
.mh-product-gallery {
    position: sticky;
    top: 100px; /* clear sticky header */
}

/* WooCommerce's own gallery wrapper */
.mh-product-gallery .woocommerce-product-gallery {
    margin: 0;
}

.mh-product-gallery .woocommerce-product-gallery__wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.mh-product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Thumbnail strip */
.mh-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.mh-product-gallery .flex-control-thumbs li {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.18s ease;
}

.mh-product-gallery .flex-control-thumbs li:hover,
.mh-product-gallery .flex-control-thumbs li .flex-active {
    border-color: var(--mh-ink);
}

.mh-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Zoom icon */
.mh-product-gallery .woocommerce-product-gallery__trigger {
    display: none; /* hide default zoom link; rely on lightbox or click */
}

/* --- Info column --- */
.mh-product-info {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 11 */
    padding-bottom: 24px;
}

.mh-product-info::-webkit-scrollbar {
    display: none;
}

/* Breadcrumb */
.mh-product-breadcrumb .woocommerce-breadcrumb {
    font-size: 12px;
    color: var(--mh-mute);
    margin-bottom: 12px;
    padding: 0;
}

.mh-product-breadcrumb .woocommerce-breadcrumb a {
    color: var(--mh-mute);
    text-decoration: none;
    transition: color 0.15s;
}

.mh-product-breadcrumb .woocommerce-breadcrumb a:hover {
    color: var(--mh-ink);
}

/* Discount badge */
.mh-product-badge-row {
    margin-bottom: 8px;
}

.mh-discount-badge {
    display: inline-block;
    background: var(--mh-sale);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Product title */
.mh-product-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--mh-ink);
    line-height: 1.1;
    margin: 0 0 12px;
}

/* Star rating */
.mh-product-rating {
    margin-bottom: 16px;
}

.mh-product-rating .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    line-height: 1;
}

.mh-product-rating .star-rating span::before,
.mh-product-rating .star-rating::before {
    color: #F59E0B; /* amber */
}

.mh-product-rating .woocommerce-review-link {
    font-size: 12px;
    color: var(--mh-mute);
    text-decoration: underline;
}

/* Price */
.mh-product-price-wrap {
    margin-bottom: 20px;
}

body.mh-theme .mh-product-price-wrap .price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

body.mh-theme .mh-product-price-wrap .price .amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mh-ink);
}

body.mh-theme .mh-product-price-wrap .price del .amount {
    font-size: 20px;
    font-weight: 400;
    color: var(--mh-mute);
}

body.mh-theme .mh-product-price-wrap .price ins {
    text-decoration: none;
}

body.mh-theme .mh-product-price-wrap .price ins .amount {
    color: var(--mh-sale);
}

/* Short description */
.mh-product-excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: var(--mh-mute);
    margin-bottom: 24px;
    border-top: 1px solid var(--mh-gray-2);
    border-bottom: 1px solid var(--mh-gray-2);
    padding: 16px 0;
}

.mh-product-excerpt p:last-child {
    margin-bottom: 0;
}

/* Add to cart area */
.mh-product-atc {
    margin-bottom: 24px;
}

/*
 * Cart form: flex layout so quantity + button share one row.
 * Any other form children (plugin assembly selector, variations table,
 * hidden inputs, etc.) are forced to full width with flex-basis:100%.
 * This applies to BOTH desktop and mobile.
 */
.mh-product-atc .cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.mh-product-atc .cart > *:not(.quantity):not(.single_add_to_cart_button) {
    flex-basis: 100%;
    width: 100%;
}

/* Quantity input + stepper */
.mh-product-atc .quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--mh-gray-2);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin-bottom: 0;  /* gap on .cart handles spacing */
    flex-shrink: 0;
}

.mh-product-atc .quantity input[type="number"] {
    width: 56px;
    text-align: center;
    border: none;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--mh-ink);
    padding: 10px 0;
    -moz-appearance: textfield;
    background: transparent;
}

.mh-product-atc .quantity input[type="number"]::-webkit-inner-spin-button,
.mh-product-atc .quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Add-to-cart button: fills remaining space next to quantity */
body.mh-theme .mh-product-atc .single_add_to_cart_button {
    display: block;
    flex: 1 1 auto;
    min-width: 160px;
    padding: 16px 24px;
    background: var(--mh-ink);
    color: var(--mh-paper);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.12s ease;
    text-transform: none;
}

body.mh-theme .mh-product-atc .single_add_to_cart_button:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

body.mh-theme .mh-product-atc .single_add_to_cart_button:active {
    transform: translateY(0);
}

/* Shipping info widget */
.mh-product-shipping-info {
    background: var(--mh-gray);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--mh-ink);
}

.mh-shipping-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mh-mute);
}

/* Trust badges row */
.mh-product-trust-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid var(--mh-gray-2);
    margin-bottom: 20px;
}

.mh-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--mh-mute);
    flex: 1 1 auto;
    min-width: 120px;
}

.mh-badge-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--mh-green);
}

/* Product meta (SKU, categories) */
.mh-product-meta {
    font-size: 12px;
    color: var(--mh-mute);
}

.mh-product-meta .sku_wrapper,
.mh-product-meta .posted_in,
.mh-product-meta .tagged_as {
    display: block;
    margin-bottom: 4px;
}

.mh-product-meta a {
    color: var(--mh-mute);
    text-decoration: underline;
}

/* Product tabs */
.mh-product-tabs-wrap {
    border-top: 1px solid var(--mh-gray-2);
    margin-bottom: 64px;
}

.mh-product-tabs-wrap .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid var(--mh-gray-2);
}

.mh-product-tabs-wrap .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.mh-product-tabs-wrap .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 16px 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--mh-mute);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.mh-product-tabs-wrap .woocommerce-tabs ul.tabs li.active a,
.mh-product-tabs-wrap .woocommerce-tabs ul.tabs li a:hover {
    color: var(--mh-ink);
    border-bottom-color: var(--mh-ink);
}

.mh-product-tabs-wrap .woocommerce-tabs .panel {
    padding: 32px 0;
}

/* Related products */
.mh-related-products-wrap .related.products > h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mh-ink);
    margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   2. CART PAGE
   -------------------------------------------------------------------------- */

.mh-cart-page {
    padding: 40px 0 80px;
    background: var(--mh-paper);
}

.mh-cart-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--mh-ink);
    margin: 0 0 32px;
}

/* 2-column layout: 65% items / 35% summary */
.mh-cart-layout {
    display: grid;
    grid-template-columns: 65fr 35fr;
    gap: 40px;
    align-items: start;
}

/* --- Cart items column --- */
.mh-cart-items {
    min-width: 0;
}

/* Header row */
.mh-cart-items__header {
    display: grid;
    grid-template-columns: 1fr 120px 140px 120px 40px;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 2px solid var(--mh-ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mh-mute);
}

/* Individual cart item row */
.mh-cart-item {
    display: grid;
    grid-template-columns: 1fr 120px 140px 120px 40px;
    gap: 12px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--mh-gray-2);
    transition: background 0.15s;
}

.mh-cart-item:hover {
    background: var(--mh-gray);
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

/* Product cell: image + details */
.mh-cart-col-product {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.mh-cart-item__image {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--mh-gray);
}

.mh-cart-item__image img,
.mh-cart-item__image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mh-cart-item__details {
    min-width: 0;
    flex: 1;
}

.mh-cart-item__name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--mh-ink);
    display: block;
    margin-bottom: 4px;
}

.mh-cart-item__name a {
    color: inherit;
    text-decoration: none;
}

.mh-cart-item__name a:hover {
    text-decoration: underline;
}

/* Price / subtotal cells */
.mh-cart-col-price,
.mh-cart-col-total {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--mh-ink);
    text-align: right;
}

.mh-cart-col-price .amount,
.mh-cart-col-total .amount {
    font-family: inherit;
}

/* Quantity stepper in cart */
.mh-cart-col-qty .quantity {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--mh-gray-2);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.mh-cart-col-qty .quantity input[type="number"] {
    width: 48px;
    text-align: center;
    border: none;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--mh-ink);
    padding: 8px 0;
    -moz-appearance: textfield;
    background: transparent;
}

.mh-cart-col-qty .quantity input[type="number"]::-webkit-inner-spin-button,
.mh-cart-col-qty .quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Remove button */
.mh-cart-col-remove {
    display: flex;
    justify-content: center;
}

.mh-cart-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--mh-mute);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.mh-cart-remove:hover {
    background: #fee2e2;
    color: var(--mh-sale);
}

.mh-cart-remove svg {
    width: 16px;
    height: 16px;
}

/* Cart actions row */
.mh-cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 0;
    flex-wrap: wrap;
}

.mh-cart-coupon {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.mh-cart-coupon input[type="text"] {
    flex: 1;
    max-width: 240px;
    padding: 10px 14px;
    border: 1.5px solid var(--mh-gray-2);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: var(--mh-ink);
    outline: none;
    transition: border-color 0.15s;
}

.mh-cart-coupon input[type="text"]:focus {
    border-color: var(--mh-ink);
}

.mh-cart-coupon input[type="text"]::placeholder {
    color: var(--mh-mute);
}

/* Shared button base within cart */
.mh-cart-page .mh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    white-space: nowrap;
}

.mh-cart-page .mh-btn--outline {
    background: transparent;
    color: var(--mh-ink);
    border-color: var(--mh-ink);
}

.mh-cart-page .mh-btn--outline:hover {
    background: var(--mh-ink);
    color: var(--mh-paper);
}

.mh-cart-page .mh-btn--ghost {
    background: transparent;
    color: var(--mh-mute);
    border-color: var(--mh-gray-2);
}

.mh-cart-page .mh-btn--ghost:hover {
    border-color: var(--mh-ink);
    color: var(--mh-ink);
}

/* --- Cart summary column --- */
.mh-cart-summary {
    position: sticky;
    top: 100px;
}

.mh-cart-summary-card {
    background: var(--mh-gray);
    border-radius: 16px;
    padding: 28px 24px;
}

.mh-cart-summary__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mh-ink);
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mh-gray-2);
}

/* Totals rows */
.mh-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--mh-gray-2);
    font-size: 14px;
}

.mh-totals-row:last-of-type {
    border-bottom: none;
}

.mh-totals-label {
    color: var(--mh-mute);
    font-weight: 500;
}

.mh-totals-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--mh-ink);
    text-align: right;
}

.mh-totals-value .amount {
    font-family: inherit;
}

.mh-totals-value--discount {
    color: var(--mh-sale);
}

/* Coupon code chip */
.mh-coupon-code {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--mh-gray-2);
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 4px;
}

.mh-remove-coupon {
    color: var(--mh-mute);
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    margin-left: 4px;
    transition: color 0.15s;
}

.mh-remove-coupon:hover {
    color: var(--mh-sale);
}

/* Shipping methods */
.mh-totals-row--shipping ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

.mh-totals-row--shipping li label {
    font-size: 13px;
    color: var(--mh-ink);
}

/* Grand total row */
.mh-totals-row--grand {
    border-top: 2px solid var(--mh-ink);
    padding-top: 16px;
    margin-top: 8px;
}

.mh-totals-row--grand .mh-totals-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--mh-ink);
}

.mh-totals-value--grand .amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--mh-ink);
}

/* Checkout button — full-width red */
.mh-cart-checkout-btn-wrap {
    margin-top: 20px;
}

body.mh-theme .mh-cart-checkout-btn-wrap .mh-btn--checkout,
body.mh-theme .mh-cart-checkout-btn-wrap .checkout-button {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: var(--mh-sale);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.12s ease;
    text-transform: none;
    letter-spacing: 0;
}

body.mh-theme .mh-cart-checkout-btn-wrap .mh-btn--checkout:hover,
body.mh-theme .mh-cart-checkout-btn-wrap .checkout-button:hover {
    background: #c7181e;
    transform: translateY(-1px);
}

/* Continue shopping link */
.mh-cart-continue {
    margin-top: 16px;
    text-align: center;
}

.mh-cart-continue__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mh-mute);
    text-decoration: none;
    transition: color 0.15s;
}

.mh-cart-continue__link:hover {
    color: var(--mh-ink);
}

.mh-cart-continue__link svg {
    width: 14px;
    height: 14px;
}

/* WooCommerce notices inside cart */
.mh-cart-page .woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   3. CHECKOUT PAGE (CSS-only, no template override)
   -------------------------------------------------------------------------- */

body.mh-theme .woocommerce-checkout #order_review_heading,
body.mh-theme .woocommerce-checkout h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mh-ink);
    margin-bottom: 20px;
}

/* 2-column checkout layout */
body.mh-theme .woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: start;
}

/* Left: billing + shipping stacked */
body.mh-theme .woocommerce-checkout #customer_details {
    min-width: 0;
}

/* Right: order review */
body.mh-theme .woocommerce-checkout #order_review {
    position: sticky;
    top: 100px;
    background: var(--mh-gray);
    border-radius: 16px;
    padding: 28px 24px;
}

/* Input groups */
body.mh-theme .woocommerce-checkout .woocommerce-input-group {
    display: flex;
}

body.mh-theme .woocommerce-checkout .woocommerce-input-group .input-text {
    flex: 1;
    border-radius: 8px 0 0 8px;
}

body.mh-theme .woocommerce-checkout .woocommerce-input-group .woocommerce-input-group__append button {
    border-radius: 0 8px 8px 0;
}

/* All checkout inputs */
body.mh-theme .woocommerce-checkout .input-text,
body.mh-theme .woocommerce-checkout select,
body.mh-theme .woocommerce-checkout textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--mh-gray-2);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: var(--mh-ink);
    background: var(--mh-paper);
    outline: none;
    transition: border-color 0.15s;
}

body.mh-theme .woocommerce-checkout .input-text:focus,
body.mh-theme .woocommerce-checkout select:focus,
body.mh-theme .woocommerce-checkout textarea:focus {
    border-color: var(--mh-ink);
}

/* Form field labels */
body.mh-theme .woocommerce-checkout label {
    font-size: 13px;
    font-weight: 600;
    color: var(--mh-ink);
    margin-bottom: 6px;
    display: block;
}

/* Inline 2-col for billing first/last name */
body.mh-theme .woocommerce-checkout .woocommerce-billing-fields .form-row-first,
body.mh-theme .woocommerce-checkout .woocommerce-billing-fields .form-row-last,
body.mh-theme .woocommerce-checkout .woocommerce-shipping-fields .form-row-first,
body.mh-theme .woocommerce-checkout .woocommerce-shipping-fields .form-row-last {
    float: left;
    width: calc(50% - 8px);
}

body.mh-theme .woocommerce-checkout .woocommerce-billing-fields .form-row-first,
body.mh-theme .woocommerce-checkout .woocommerce-shipping-fields .form-row-first {
    margin-right: 16px;
}

/* Order review table */
body.mh-theme .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

body.mh-theme .woocommerce-checkout-review-order-table th,
body.mh-theme .woocommerce-checkout-review-order-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--mh-gray-2);
    text-align: left;
}

body.mh-theme .woocommerce-checkout-review-order-table th {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mh-mute);
}

body.mh-theme .woocommerce-checkout-review-order-table .order-total td {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--mh-ink);
    border-bottom: none;
    border-top: 2px solid var(--mh-ink);
    padding-top: 16px;
}

body.mh-theme .woocommerce-checkout-review-order-table td.product-total {
    text-align: right;
    font-weight: 600;
}

/* Payment methods */
body.mh-theme .woocommerce-checkout #payment {
    background: var(--mh-gray);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

body.mh-theme .woocommerce-checkout #payment .payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.mh-theme .woocommerce-checkout #payment .payment_methods li {
    border: 1.5px solid var(--mh-gray-2);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 14px 16px;
    background: var(--mh-paper);
    transition: border-color 0.15s;
}

body.mh-theme .woocommerce-checkout #payment .payment_methods li.payment_method_paypal {
    /* Specific payment method spacing */
}

body.mh-theme .woocommerce-checkout #payment .payment_methods label {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.mh-theme .woocommerce-checkout #payment .payment_methods .payment_box {
    font-size: 13px;
    color: var(--mh-mute);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--mh-gray-2);
}

/* Place order button */
body.mh-theme .woocommerce-checkout #payment #place_order {
    display: block;
    width: 100%;
    padding: 16px 24px;
    margin-top: 20px;
    background: var(--mh-sale);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.12s ease;
    text-transform: none;
    letter-spacing: 0;
}

body.mh-theme .woocommerce-checkout #payment #place_order:hover {
    background: #c7181e;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. SHOP / ARCHIVE PAGES
   -------------------------------------------------------------------------- */

/* 4-column product grid */
body.mh-theme .woocommerce ul.products,
body.mh-theme .woocommerce-page ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.mh-theme .woocommerce ul.products li.product,
body.mh-theme .woocommerce-page ul.products li.product {
    float: none; /* override WC float */
    width: auto;
    margin: 0;
    background: var(--mh-paper);
    border-radius: 12px;
    border: 1px solid var(--mh-gray-2);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

body.mh-theme .woocommerce ul.products li.product:hover,
body.mh-theme .woocommerce-page ul.products li.product:hover {
    box-shadow: 0 8px 32px rgba(10,10,10,0.10);
    transform: translateY(-3px);
}

/* Product card image */
body.mh-theme .woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

body.mh-theme .woocommerce ul.products li.product:hover a img {
    transform: scale(1.03);
}

/* Card body */
body.mh-theme .woocommerce ul.products li.product .woocommerce-loop-product__link,
body.mh-theme .woocommerce ul.products li.product .woocommerce-loop-category__link {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

body.mh-theme .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.mh-theme .woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--mh-ink);
    margin: 12px 16px 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.mh-theme .woocommerce ul.products li.product .price {
    display: block;
    padding: 0 16px 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--mh-ink);
}

body.mh-theme .woocommerce ul.products li.product .price del {
    font-size: 13px;
    font-weight: 400;
    color: var(--mh-mute);
}

body.mh-theme .woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--mh-sale);
}

/* Star rating in card */
body.mh-theme .woocommerce ul.products li.product .star-rating {
    font-size: 12px;
    margin: 0 16px 8px;
}

/* Add to cart button in card */
body.mh-theme .woocommerce ul.products li.product .button {
    display: block;
    margin: auto 16px 16px;
    padding: 10px 16px;
    background: var(--mh-ink);
    color: var(--mh-paper);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.18s;
    text-transform: none;
    letter-spacing: 0;
}

body.mh-theme .woocommerce ul.products li.product .button:hover {
    background: #1a1a1a;
}

/* Sale badge */
body.mh-theme .woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--mh-sale);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
    min-height: auto;
    line-height: 1.4;
}

/* Pagination */
body.mh-theme .woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

body.mh-theme .woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.mh-theme .woocommerce-pagination ul.page-numbers li {
    margin: 0;
}

body.mh-theme .woocommerce-pagination ul.page-numbers li .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--mh-ink);
    text-decoration: none;
    border: 1.5px solid var(--mh-gray-2);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

body.mh-theme .woocommerce-pagination ul.page-numbers li .page-numbers:hover {
    background: var(--mh-gray);
    border-color: var(--mh-ink);
}

body.mh-theme .woocommerce-pagination ul.page-numbers li .page-numbers.current {
    background: var(--mh-ink);
    border-color: var(--mh-ink);
    color: var(--mh-paper);
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE — ≤768px
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    /* Product layout: tighter gap on tablet */
    .mh-product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* Cart layout: tighter */
    .mh-cart-layout {
        grid-template-columns: 60fr 40fr;
        gap: 24px;
    }

    /* Shop grid: 3-col on tablet */
    body.mh-theme .woocommerce ul.products,
    body.mh-theme .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* ---- Product page ---- */
    .mh-product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }

    .mh-product-gallery,
    .mh-product-info {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .mh-product-title {
        font-size: 24px;
    }

    .mh-product-trust-badges {
        gap: 12px;
    }

    .mh-trust-badge {
        min-width: 100%;
    }

    /* ---- Cart page ---- */
    .mh-cart-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .mh-cart-summary {
        position: static;
    }

    /* Hide cart header columns on mobile; use data-label instead */
    .mh-cart-items__header {
        display: none;
    }

    .mh-cart-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px;
        padding: 16px 0;
    }

    .mh-cart-col-product {
        grid-column: 1 / -1;
    }

    .mh-cart-col-price,
    .mh-cart-col-qty,
    .mh-cart-col-total {
        grid-column: auto;
        text-align: left;
    }

    .mh-cart-col-price::before { content: attr(data-label) ": "; font-size: 11px; color: var(--mh-mute); }
    .mh-cart-col-qty::before   { content: attr(data-label) ": "; font-size: 11px; color: var(--mh-mute); }
    .mh-cart-col-total::before { content: attr(data-label) ": "; font-size: 11px; color: var(--mh-mute); }

    .mh-cart-col-remove {
        position: absolute;
        top: 16px;
        right: 0;
    }

    .mh-cart-item {
        position: relative;
        padding-right: 40px;
    }

    .mh-cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mh-cart-coupon {
        flex-direction: column;
        align-items: stretch;
    }

    .mh-cart-coupon input[type="text"] {
        max-width: none;
    }

    /* ---- Checkout ---- */
    body.mh-theme .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    body.mh-theme .woocommerce-checkout #order_review {
        position: static;
    }

    body.mh-theme .woocommerce-checkout .woocommerce-billing-fields .form-row-first,
    body.mh-theme .woocommerce-checkout .woocommerce-billing-fields .form-row-last,
    body.mh-theme .woocommerce-checkout .woocommerce-shipping-fields .form-row-first,
    body.mh-theme .woocommerce-checkout .woocommerce-shipping-fields .form-row-last {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    /* ---- Shop grid: 2-col on mobile ---- */
    body.mh-theme .woocommerce ul.products,
    body.mh-theme .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* ---- Container padding on mobile ---- */
    .mh-cart-page .mh-container,
    .mh-product-page .mh-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mh-cart-heading {
        font-size: 24px;
    }

    /* ================================================================
       PRODUCT PAGE — MOBILE LAYOUT
       ================================================================ */

    /* Hide breadcrumbs on mobile */
    .mh-product-breadcrumb {
        display: none;
    }

    /* Gallery: center main image + thumbnails */
    .mh-product-gallery .woocommerce-product-gallery__image img {
        margin: 0 auto;
        display: block;
    }
    .mh-product-gallery .flex-control-thumbs {
        justify-content: center;
    }
    .mh-product-gallery .flex-control-thumbs li {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }

    /* Info column: flex column so we can reorder */
    .mh-product-info {
        display: flex;
        flex-direction: column;
    }

    /* Desired mobile order: title → badges → rating → price → desc → shipping → ATC → features → trust → meta */
    h1.mh-product-title          { order: 1; }
    .mh-product-badge-row        { order: 2; }
    .mh-product-stock            { order: 3; }
    .mh-product-rating           { order: 4; }
    .mh-product-price-wrap       { order: 5; }
    .mh-product-excerpt          { order: 6; }
    .mh-shipping-info-wrap       { order: 7; }
    .mh-product-atc              { order: 8; }
    .mh-sticky-atc               { order: 20; }
    .mh-product-features         { order: 9; }
    .mh-product-trust-badges     { order: 10; }
    .mh-product-meta-info        { order: 11; }

    /* Feature strip texts already center-aligned; ensure on mobile too */
    .mh-product-features {
        grid-template-columns: repeat(3, 1fr);
    }
    .mh-product-feature {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 380px) {
    /* Single column on very small phones */
    body.mh-theme .woocommerce ul.products,
    body.mh-theme .woocommerce-page ul.products {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   ORDER CONFIRMATION (THANK YOU)
   -------------------------------------------------------------------------- */

.mh-thankyou {
    max-width: 640px;
    margin: 60px auto 100px;
    padding: 0 24px;
    text-align: center;
}

.mh-thankyou__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--mh-gray-1);
    margin-bottom: 24px;
    color: var(--mh-black);
}

.mh-thankyou__icon--success {
    background: #f0fdf4;
    color: #16a34a;
}

.mh-thankyou__icon--fail {
    background: #fef2f2;
    color: var(--mh-red);
}

.mh-thankyou__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--mh-black);
    margin-bottom: 12px;
    line-height: 1.25;
}

.mh-thankyou__subtitle {
    font-size: 16px;
    color: var(--mh-mute);
    margin-bottom: 16px;
}

.mh-thankyou__notice {
    font-size: 14px;
    color: var(--mh-mute);
    background: var(--mh-gray-1);
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 32px;
}

.mh-thankyou__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--mh-white);
    border: 1px solid var(--mh-gray-2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    text-align: left;
}

.mh-thankyou__detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--mh-gray-2);
}

.mh-thankyou__detail-item:nth-last-child(-n+2) {
    border-bottom: 0;
}

.mh-thankyou__detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--mh-mute);
}

.mh-thankyou__detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--mh-black);
}

.mh-thankyou__status {
    color: #16a34a;
    text-transform: capitalize;
}

.mh-thankyou__total {
    color: var(--mh-red);
    font-size: 16px;
}

.mh-thankyou__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.mh-thankyou__order-details {
    text-align: left;
    border-top: 1px solid var(--mh-gray-2);
    padding-top: 40px;
}

.mh-thankyou__order-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.mh-btn--outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1.5px solid var(--mh-black);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mh-black);
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.mh-btn--outline:hover {
    background: var(--mh-black);
    color: var(--mh-white);
}

/* --------------------------------------------------------------------------
   SHOP / ARCHIVE PAGE
   -------------------------------------------------------------------------- */

.mh-shop-page {
    padding: 40px 0 80px;
    background: var(--mh-paper);
    min-height: 50vh;
}

.mh-shop-page .mh-container {
    max-width: var(--mh-max-w);
    margin: 0 auto;
    padding: 0 32px;
}

/* --------------------------------------------------------------------------
   MY ACCOUNT PAGE
   -------------------------------------------------------------------------- */

.mh-account-page {
    padding: 40px 0 80px;
    background: var(--mh-paper);
    min-height: 50vh;
}

.mh-account-page .mh-container {
    max-width: var(--mh-max-w);
    margin: 0 auto;
    padding: 0 32px;
}

.mh-account-page .woocommerce-MyAccount-navigation {
    float: left;
    width: 220px;
}

.mh-account-page .woocommerce-MyAccount-content {
    float: right;
    width: calc(100% - 260px);
}

/* --------------------------------------------------------------------------
   PRODUCT ARTICLE — single product <article> wrapper
   -------------------------------------------------------------------------- */

.mh-product-article {
    background: var(--mh-paper);
}

/* --------------------------------------------------------------------------
   PRODUCT META — SKU / categories / tags (BUG-05 alias fix)
   -------------------------------------------------------------------------- */

.mh-product-meta-info {
    font-size: 12px;
    color: var(--mh-mute);
    margin-top: 8px;
}

.mh-product-meta-info .sku_wrapper,
.mh-product-meta-info .posted_in,
.mh-product-meta-info .tagged_as {
    display: block;
    margin-bottom: 4px;
}

.mh-product-meta-info a {
    color: var(--mh-mute);
    text-decoration: underline;
}

/* ── Stock status badge ────────── */
.mh-product-stock { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; padding:4px 10px; border-radius:20px; margin-bottom:10px; }
.mh-stock--in  { background:#f0fdf4; color:#16a34a; }
.mh-stock--out { background:#fef2f2; color:#dc2626; }
.mh-product-stock svg { flex-shrink:0; }

/* ── Sticky ATC bar ───────────── */
.mh-sticky-atc { position:fixed; bottom:0; left:0; right:0; z-index:999; background:#0a0a0a; color:#fff; padding:14px 24px; transform:translateY(100%); transition:transform .25s cubic-bezier(.4,0,.2,1); box-shadow:0 -4px 24px rgba(0,0,0,.18); }
.mh-sticky-atc--visible { transform:translateY(0); }
.mh-sticky-atc__inner { max-width:1240px; margin:0 auto; display:flex; align-items:center; gap:16px; }
.mh-sticky-atc__name  { font-weight:700; font-size:14px; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mh-sticky-atc__price { font-size:16px; font-weight:700; color:#fff; white-space:nowrap; }
.mh-sticky-atc__price del,
.mh-sticky-atc__price small { display:none; }
.mh-sticky-atc__btn { display:inline-flex; align-items:center; padding:10px 24px; background:#e11d2a; color:#fff; border-radius:8px; font-weight:700; font-size:14px; text-decoration:none; white-space:nowrap; transition:background .15s; }
.mh-sticky-atc__btn:hover { background:#c81523; }

/* ── Product features strip ───── */
.mh-product-features { display:grid; grid-template-columns:repeat(3,1fr); gap:0; border:1px solid var(--mh-gray-2); border-radius:10px; overflow:hidden; margin:16px 0; }
.mh-product-feature  { display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding:14px 10px; font-size:11px; color:var(--mh-mute); font-weight:500; border-right:1px solid var(--mh-gray-2); }
.mh-product-feature:last-child { border-right:0; }
.mh-product-feature svg { color:var(--mh-black); }
.mh-product-feature strong { display:block; font-size:12px; color:var(--mh-black); font-weight:700; }

/* ── Checkout 2-col layout ──── */
.mh-checkout-form { margin: 0; }
.mh-checkout-wrap { display:grid; grid-template-columns:60fr 40fr; gap:40px; align-items:start; max-width:1100px; margin:0 auto; padding:40px 32px 80px; }
.mh-checkout-steps { display:flex; align-items:center; gap:8px; margin-bottom:28px; font-size:13px; }
.mh-step { color:var(--mh-mute); font-weight:500; }
.mh-step--active { color:var(--mh-black); font-weight:700; }
.mh-step--done { color:var(--mh-red); font-weight:600; text-decoration:line-through; text-decoration-color:var(--mh-gray-2); }
.mh-step-sep { color:var(--mh-gray-2); }
.mh-checkout-section { background:#fff; border:1px solid var(--mh-gray-2); border-radius:12px; padding:24px; margin-bottom:20px; }
.mh-checkout-section h3 { font-size:15px; font-weight:700; margin:0 0 20px; padding-bottom:14px; border-bottom:1px solid var(--mh-gray-1); }
.mh-checkout-order-card { background:#fff; border:1px solid var(--mh-gray-2); border-radius:12px; padding:24px; position:sticky; top:100px; }
.mh-checkout-order-card h3 { font-size:16px; font-weight:700; margin:0 0 16px; }
/* WC form fields inside checkout */
.woocommerce-checkout .form-row label { font-size:13px; font-weight:600; color:var(--mh-black); margin-bottom:5px; display:block; }
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea { width:100%; padding:10px 14px; border:1.5px solid var(--mh-gray-2); border-radius:8px; font-size:14px; font-family:inherit; background:#fff; transition:border-color .15s, box-shadow .15s; outline:none; }
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus { border-color:var(--mh-red); box-shadow:0 0 0 3px rgba(225,29,42,.1); }
/* Order review table */
.woocommerce-checkout-review-order-table { width:100%; border-collapse:collapse; font-size:14px; margin-bottom:16px; }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td { padding:10px 0; border-bottom:1px solid var(--mh-gray-1); }
.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td { font-size:16px; font-weight:700; border-bottom:0; padding-top:16px; }
/* Payment box */
#payment { margin-top:16px; }
#payment .payment_methods { list-style:none; margin:0 0 16px; padding:0; }
#payment .payment_methods li { padding:12px; border:1.5px solid var(--mh-gray-2); border-radius:8px; margin-bottom:8px; cursor:pointer; }
#payment .payment_methods li.wc_payment_method input[type="radio"] { margin-right:8px; }
#payment .place-order { margin:0; }
#place_order, .wc-block-components-checkout-place-order-button { width:100% !important; padding:16px !important; background:var(--mh-red) !important; color:#fff !important; border:none !important; border-radius:10px !important; font-size:16px !important; font-weight:700 !important; cursor:pointer !important; transition:background .15s !important; font-family:inherit !important; }
#place_order:hover { background:#c81523 !important; }
@media(max-width:768px) {
  .mh-checkout-wrap { grid-template-columns:1fr; padding:24px 16px 60px; }
  .mh-checkout-order-card { position:static; }
}

/* --------------------------------------------------------------------------
   ARMADOS — Selector de variante en el carrito
   -------------------------------------------------------------------------- */

.mh-cart-assembly {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mh-cart-assembly__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8125rem;
    font-weight: 600;
    color: #0a0a0a;
    white-space: nowrap;
}

.mh-cart-assembly__label svg {
    flex-shrink: 0;
    color: #e11d2a;
}

.mh-cart-assembly__select {
    flex: 1;
    min-width: 200px;
    height: 36px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #d6d3d1;
    border-radius: 6px;
    font-size: .8125rem;
    color: #0a0a0a;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color .15s;
}

.mh-cart-assembly__select:focus {
    border-color: #e11d2a;
    box-shadow: 0 0 0 3px rgba(225,29,42,.08);
}

.mh-cart-assembly__select:disabled {
    opacity: .5;
    cursor: wait;
}

/* ── Assembly selector — product page ──────────────────────────────────── */

.mh-assembly-selector {
    margin: 20px 0 24px;
    border: 1.5px solid #E7E5E4;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    font-size: 13px;
}

.mh-assembly-selector__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: #F5F5F4;
    border-bottom: 1px solid #E7E5E4;
    font-size: 13px;
    color: #0A0A0A;
    font-weight: 600;
}

.mh-assembly-selector__head svg {
    color: #E11D2A;
    flex-shrink: 0;
}

/* No-zone / unavailable states */
.mh-assembly-selector__no-zone,
.mh-assembly-selector__unavailable {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 13px 16px;
    font-size: 13px;
    color: #78716C;
}

.mh-assembly-selector__no-zone svg {
    color: #D97706;
    flex-shrink: 0;
}

.mh-assembly-selector__unavailable svg {
    color: #A8A29E;
    flex-shrink: 0;
}

.mh-assembly-selector__zone-btn {
    background: none;
    border: 1.5px solid #E11D2A;
    color: #E11D2A;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
    transition: background .14s, color .14s;
    margin-left: 2px;
}

.mh-assembly-selector__zone-btn:hover {
    background: #E11D2A;
    color: #fff;
}

/* Options list */
.mh-assembly-selector__options {
    display: flex;
    flex-direction: column;
}

.mh-assembly-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    cursor: pointer;
    transition: background .12s;
    border-bottom: 1px solid #F5F5F4;
    margin: 0;
    position: relative;
}

.mh-assembly-option:last-child {
    border-bottom: none;
}

.mh-assembly-option:hover {
    background: #FAFAF9;
}

.mh-assembly-option.is-selected {
    background: #FFF5F5;
}

/* Hide native radio */
.mh-assembly-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom radio dot */
.mh-assembly-option__dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #D6D3D1;
    flex-shrink: 0;
    transition: border-color .14s;
    box-sizing: border-box;
    background: #fff;
}

.mh-assembly-option.is-selected .mh-assembly-option__dot {
    border-color: #E11D2A;
    background: #E11D2A;
    box-shadow: inset 0 0 0 4px #fff;
}

/* Option content */
.mh-assembly-option__text {
    font-size: 13px;
    color: #78716C;
    flex: 1;
}

.mh-assembly-option--none.is-selected .mh-assembly-option__text {
    color: #0A0A0A;
}

.mh-assembly-option__info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
}

.mh-assembly-option__label {
    font-size: 13px;
    font-weight: 500;
    color: #0A0A0A;
}

.mh-assembly-option__pieces {
    font-size: 11px;
    color: #78716C;
    background: #F5F5F4;
    border: 1px solid #E7E5E4;
    border-radius: 100px;
    padding: 2px 8px;
    white-space: nowrap;
}

.mh-assembly-option__price {
    font-size: 13px;
    font-weight: 600;
    color: #E11D2A;
    white-space: nowrap;
    margin-left: auto;
}

/* --------------------------------------------------------------------------
   Assembly suggestion popup — overlay + card + opciones + botones
   -------------------------------------------------------------------------- */

.mh-assembly-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.mh-assembly-popup-overlay.is-open {
    opacity: 1;
}

.mh-assembly-popup {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.22s ease;
}

.mh-assembly-popup-overlay.is-open .mh-assembly-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Cabecera del popup */
.mh-assembly-popup__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #0A0A0A;
}

.mh-assembly-popup__head svg {
    color: #E11D2A;
    flex-shrink: 0;
}

.mh-assembly-popup__head strong {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: #0A0A0A;
}

.mh-assembly-popup__desc {
    font-size: 14px;
    color: #57534E;
    margin: 0 0 20px;
    line-height: 1.55;
}

/* Lista de opciones */
.mh-assembly-popup__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.mh-assembly-popup__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #E7E5E4;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    user-select: none;
}

.mh-assembly-popup__option:hover {
    border-color: #0A0A0A;
    background: #F5F5F4;
}

.mh-assembly-popup__option.is-selected {
    border-color: #E11D2A;
    background: #FFF5F5;
}

/* Indicador de radio personalizado */
.mh-assembly-popup__dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #E7E5E4;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
    position: relative;
}

.mh-assembly-popup__dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.15s ease;
}

.mh-assembly-popup__option.is-selected .mh-assembly-popup__dot {
    border-color: #E11D2A;
}

.mh-assembly-popup__option.is-selected .mh-assembly-popup__dot::after {
    background: #E11D2A;
}

/* Información de cada opción */
.mh-assembly-popup__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mh-assembly-popup__label {
    font-size: 14px;
    font-weight: 600;
    color: #0A0A0A;
    line-height: 1.3;
}

.mh-assembly-popup__pieces {
    font-size: 12px;
    color: #78716C;
}

.mh-assembly-popup__price {
    font-size: 15px;
    font-weight: 700;
    color: #E11D2A;
    white-space: nowrap;
    margin-left: auto;
}

/* Botón confirmar (rojo primario) */
.mh-assembly-popup__confirm {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #E11D2A;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.2;
}

.mh-assembly-popup__confirm:hover:not(:disabled) {
    background: #B0141F;
}

.mh-assembly-popup__confirm:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

/* Botón saltar (texto con subrayado) */
.mh-assembly-popup__skip {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #57534E;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    padding: 6px;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
    line-height: 1.4;
}

.mh-assembly-popup__skip:hover {
    color: #0A0A0A;
}

/* Móvil: bottom sheet */
@media ( max-width: 600px ) {
    .mh-assembly-popup-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .mh-assembly-popup {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        padding: 24px 20px 36px;
        transform: translateY(100%);
    }

    .mh-assembly-popup-overlay.is-open .mh-assembly-popup {
        transform: translateY(0);
    }
}

/* ==========================================================================
   NUEVAS FEATURES v1.4.6
   ========================================================================== */

/* ── FEATURE 5: Menú texto blanco ──────────────────────────────────────── */
.mh-menu .menu a {
    color: #ffffff;
}
.mh-menu .menu a:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* ── FEATURE 2: Mini Cart Drawer ───────────────────────────────────────── */
.mh-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100vw);
    height: 100vh;
    background: var(--mh-paper);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mh-cart-drawer.is-open {
    transform: translateX(0);
}

.mh-cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--mh-gray-2);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.mh-cart-drawer__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mh-sale);
    color: #fff;
    border-radius: 100px;
    padding: 1px 7px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    margin-left: 6px;
}

.mh-cart-drawer__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--mh-mute);
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.mh-cart-drawer__close:hover {
    background: var(--mh-gray);
    color: var(--mh-ink);
}

.mh-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

/* ── Mini cart items — WC usa .mini_cart_item, no .woocommerce-mini-cart__item ── */

/* Lista UL */
.mh-cart-drawer__body .woocommerce-mini-cart.cart_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Cada item: posición relativa para el botón × */
.mh-cart-drawer__body .mini_cart_item {
    position: relative;
    padding: 14px 20px;
    border-bottom: 1px solid var(--mh-gray-2);
}

/* Botón de eliminar — esquina superior derecha */
.mh-cart-drawer__body .mini_cart_item .remove_from_cart_button {
    position: absolute;
    top: 12px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--mh-gray-2);
    color: var(--mh-mute);
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.mh-cart-drawer__body .mini_cart_item .remove_from_cart_button:hover {
    background: var(--mh-sale);
    color: #fff;
}

/* Link de producto: imagen + nombre en fila */
.mh-cart-drawer__body .mini_cart_item > a:not(.remove_from_cart_button) {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: var(--mh-ink);
    font-size: 13px;
    font-weight: 500;
    padding-right: 32px;  /* espacio para el × */
    line-height: 1.4;
}
.mh-cart-drawer__body .mini_cart_item > a:not(.remove_from_cart_button):hover {
    color: var(--mh-sale);
}

/* Imagen del producto */
.mh-cart-drawer__body .mini_cart_item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid var(--mh-gray-2);
    background: var(--mh-gray);
}

/* Meta del item (armado, variaciones) — badge compacto */
.mh-cart-drawer__body .mini_cart_item .wc-item-meta,
.mh-cart-drawer__body .mini_cart_item dl {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin: 6px 0 0;
    margin-left: 68px;  /* 56px imagen + 12px gap */
    padding: 5px 10px;
    background: var(--mh-gray);
    border-radius: 6px;
    font-size: 11px;
    color: var(--mh-mute);
}
.mh-cart-drawer__body .mini_cart_item dl dt {
    display: inline;
    font-weight: 600;
    color: var(--mh-mute);
    margin: 0;
}
.mh-cart-drawer__body .mini_cart_item dl dd {
    display: inline;
    font-weight: 700;
    color: var(--mh-ink);
    margin: 0;
}
.mh-cart-drawer__body .mini_cart_item dl dd::after {
    content: '';
    display: inline;
}

/* Cantidad — alineada con el texto */
.mh-cart-drawer__body .mini_cart_item .quantity {
    display: block;
    padding-left: 68px;
    font-size: 12px;
    color: var(--mh-mute);
    margin-top: 4px;
}

/* Ocultar subtotal y botones propios de WC — tenemos los nuestros en el footer */
.mh-cart-drawer__body .woocommerce-mini-cart__total,
.mh-cart-drawer__body .woocommerce-mini-cart__buttons {
    display: none !important;
}

/* Carrito vacío */
.mh-cart-drawer__body .woocommerce-mini-cart__empty-message {
    padding: 48px 20px;
    text-align: center;
    color: var(--mh-mute);
    font-size: 14px;
}

/* Nota informativa de armado en el footer */
.mh-cart-drawer__fee-note {
    font-size: 11.5px;
    color: var(--mh-mute);
    text-align: center;
    margin: 0;
}

.mh-cart-drawer__footer {
    border-top: 1px solid var(--mh-gray-2);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    background: #FAFAF9;
}

.mh-cart-drawer__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.mh-cart-drawer__total strong {
    font-weight: 700;
    font-size: 17px;
}

.mh-cart-drawer__checkout-btn {
    display: block;
    background: var(--mh-ink);
    color: #fff !important;   /* !important para evitar override de Storefront/WC */
    text-align: center;
    padding: 13px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: background 0.15s;
}

.mh-cart-drawer__checkout-btn:hover {
    background: #1f1f1f;
    color: #fff !important;
}

.mh-cart-drawer__quick-checkout {
    display: block;
    background: transparent;
    color: var(--mh-ink);
    text-align: center;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    border: 1.5px solid var(--mh-gray-2);
    transition: border-color 0.15s, background 0.15s;
}

.mh-cart-drawer__quick-checkout:hover {
    border-color: var(--mh-ink);
    background: var(--mh-gray);
    color: var(--mh-ink);
}

/* ── Overlay (compartido por cart drawer, mobile nav) ─────────────────── */
.mh-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
    backdrop-filter: blur(2px);
    animation: mhFadeIn 0.2s ease;
}

.mh-overlay.is-open {
    display: block;
}

@keyframes mhFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── FEATURE 4: Account Modal ──────────────────────────────────────────── */
.mh-account-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 80px);
    background: var(--mh-paper);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 1200;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mh-account-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

#mh-account-overlay {
    z-index: 1150;
}

.mh-account-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--mh-gray-2);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.mh-account-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--mh-mute);
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.mh-account-modal__close:hover {
    background: var(--mh-gray);
    color: var(--mh-ink);
}

.mh-account-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mh-account-modal__user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mh-gray-2);
    margin-bottom: 16px;
}

.mh-account-modal__avatar {
    width: 52px;
    height: 52px;
    border-radius: 100px;
    background: var(--mh-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--mh-mute);
}

.mh-account-modal__user b {
    display: block;
    font-weight: 700;
    font-size: 15px;
}

.mh-account-modal__user small {
    color: var(--mh-mute);
    font-size: 12px;
}

.mh-account-modal__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mh-account-modal__links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--mh-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}

.mh-account-modal__links a:hover {
    background: var(--mh-gray);
    color: var(--mh-ink);
}

.mh-account-modal__logout {
    color: var(--mh-sale) !important;
    margin-top: 8px;
}

.mh-account-modal__tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--mh-gray-2);
    margin-bottom: 20px;
}

.mh-account-modal__tab {
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    color: var(--mh-mute);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.mh-account-modal__tab--active {
    color: var(--mh-ink);
    border-bottom-color: var(--mh-ink);
}

.mh-account-modal__panel--hidden {
    display: none;
}

/* WC login/register forms inside modal */
.mh-account-modal__body .woocommerce-form-login,
.mh-account-modal__body .woocommerce-form-register {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.mh-account-modal__body .woocommerce-form__input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--mh-gray-2);
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.15s;
    margin-bottom: 12px;
}

.mh-account-modal__body .woocommerce-form__input:focus {
    outline: none;
    border-color: var(--mh-ink);
}

.mh-account-modal__body .woocommerce-button {
    background: var(--mh-ink);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    transition: background 0.15s;
}

.mh-account-modal__body .woocommerce-button:hover {
    background: #1f1f1f;
}

/* Icon button base */
.mh-icon-btn {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font: inherit;
    font-size: 13px;
    color: var(--mh-ink);
    border-radius: 8px;
    transition: background 0.15s;
    text-decoration: none;
}

.mh-icon-btn:hover {
    background: var(--mh-gray);
    color: var(--mh-ink);
}

/* ── FEATURE 6: Zone chip ──────────────────────────────────────────────── */
.mh-zone-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.mh-zone-chip:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* ── FEATURE 7: Mobile Header ──────────────────────────────────────────── */
.mh-header-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--mh-paper);
    border-bottom: 1px solid var(--mh-gray-2);
    position: relative;
    height: 56px;
}

.mh-logo--center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mh-logo--center img {
    height: 36px;
    width: auto;
}

.mh-header-mobile-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Hamburger button */
.mh-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.15s;
    z-index: 2;
    flex-shrink: 0;
}

.mh-hamburger:hover {
    background: var(--mh-gray);
}

.mh-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--mh-ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}

.mh-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mh-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.mh-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mh-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 100vw);
    height: 100vh;
    background: var(--mh-paper);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.15);
}

.mh-mobile-nav.is-open {
    transform: translateX(0);
}

.mh-mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mh-gray-2);
    flex-shrink: 0;
}

.mh-mobile-nav__head strong {
    font-size: 15px;
    font-weight: 700;
}

.mh-mobile-nav__head button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--mh-mute);
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.mh-mobile-nav__head button:hover {
    background: var(--mh-gray);
    color: var(--mh-ink);
}

.mh-mobile-nav__zone {
    padding: 12px 16px;
    border-bottom: 1px solid var(--mh-gray-2);
    background: var(--mh-ink);
}

.mh-mobile-nav__zone .mh-zone-chip {
    width: 100%;
    justify-content: center;
}

.mh-mobile-nav__search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--mh-gray-2);
    flex-shrink: 0;
}

.mh-mobile-nav__search form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--mh-gray);
    border-radius: 8px;
    padding: 9px 12px;
    border: 1.5px solid var(--mh-gray-2);
}

.mh-mobile-nav__search input[type="search"] {
    flex: 1;
    background: transparent;
    border: 0;
    outline: none;
    font: inherit;
    font-size: 14px;
}

.mh-mobile-nav__menu {
    flex: 1;
    padding: 8px 0;
}

.mh-mobile-nav__menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mh-mobile-nav__menu li a {
    display: block;
    padding: 12px 16px;
    color: var(--mh-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--mh-gray-2);
    transition: background 0.1s;
}

.mh-mobile-nav__menu li a:hover {
    background: var(--mh-gray);
    color: var(--mh-ink);
}

.mh-mobile-nav__menu li ul {
    background: var(--mh-gray);
}

.mh-mobile-nav__menu li ul li a {
    padding-left: 28px;
    font-size: 13px;
    font-weight: 400;
    color: var(--mh-mute);
}

.mh-mobile-nav__account {
    padding: 12px 16px;
    border-top: 1px solid var(--mh-gray-2);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    background: var(--mh-gray);
}

.mh-mobile-nav__account a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--mh-ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.mh-mobile-nav__account a:hover {
    background: var(--mh-gray-2);
    color: var(--mh-ink);
}

/* ── FEATURE 9: Benefits con iconos de colores ─────────────────────────── */
.mh-ben__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mh-ben__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mh-ben__text b {
    font-weight: 700;
    font-size: 14px;
    color: var(--mh-ink);
    display: block;
}

.mh-ben__text span {
    font-size: 12.5px;
    color: var(--mh-mute);
}

/* Override old .mh-ben SVG direct placement */
.mh-ben > svg {
    display: none; /* replaced by .mh-ben__icon */
}

/* ── FEATURE 10: MP Banner — logos reales ──────────────────────────────── */
.mh-mp-section {
    max-width: var(--mh-max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--mh-pad-x);
    padding-right: var(--mh-pad-x);
    margin-bottom: 64px;
}

.mh-mp-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #EBF8FF 0%, #F0F9FF 100%);
    border: 1.5px solid #BAE6FD;
    border-radius: 16px;
    padding: 32px 40px;
}

/* Logo Mercado Pago */
.mh-mp-logo {
    display: block;
    height: 30px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.mh-mp-banner__left h3 {
    font-size: 22px;
    margin: 0 0 8px;
    color: var(--mh-ink);
    line-height: 1.3;
}

.mh-mp-banner__left h3 strong {
    color: #009EE3;
}

.mh-mp-banner__left p {
    font-size: 13.5px;
    color: var(--mh-mute);
    line-height: 1.6;
    margin: 0;
}

/* Grid de tarjetas — flex wrap, todos del mismo tamaño */
.mh-mp-banner__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

/* Contenedor de cada logo de tarjeta */
.mh-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 52px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 6px 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.mh-card-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Imagen dentro del logo: ocupa el espacio disponible */
.mh-card-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Cabal: logo oscuro → fondo neutro claro */
.mh-card-logo--cabal {
    padding: 8px 10px;
}

@media (max-width: 768px) {
    .mh-mp-banner {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 24px;
    }

    .mh-mp-banner__cards {
        justify-content: flex-start;
    }

    .mh-card-logo {
        width: 68px;
        height: 44px;
    }
}

/* ── FEATURE 11: Shop filters ──────────────────────────────────────────── */
.mh-shop-filters {
    background: var(--mh-gray);
    border-bottom: 1px solid var(--mh-gray-2);
    padding: 12px 0;
    margin-bottom: 24px;
}

.mh-shop-filters__inner {
    max-width: var(--mh-max-w);
    margin: 0 auto;
    padding: 0 var(--mh-pad-x);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.mh-shop-filters__count {
    font-size: 13px;
    color: var(--mh-mute);
    font-weight: 500;
    white-space: nowrap;
    margin-right: auto;
}

.mh-shop-filters__form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mh-shop-filters__label {
    font-size: 13px;
    color: var(--mh-mute);
    font-weight: 500;
    white-space: nowrap;
}

.mh-shop-filters__sort select {
    border: 1.5px solid var(--mh-gray-2);
    border-radius: 8px;
    padding: 8px 12px;
    font: inherit;
    font-size: 13px;
    background: #fff;
    color: var(--mh-ink);
    cursor: pointer;
    transition: border-color 0.15s;
    outline: none;
    min-width: 160px;
}

.mh-shop-filters__sort select:hover,
.mh-shop-filters__sort select:focus {
    border-color: var(--mh-ink);
}

.mh-price-input {
    border: 1.5px solid var(--mh-gray-2);
    border-radius: 8px;
    padding: 7px 10px;
    font: inherit;
    font-size: 13px;
    background: #fff;
    color: var(--mh-ink);
    width: 90px;
    outline: none;
    transition: border-color 0.15s;
}

.mh-price-input:focus {
    border-color: var(--mh-ink);
}

.mh-price-filter-btn {
    background: var(--mh-ink);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.mh-price-filter-btn:hover {
    background: #1f1f1f;
}

.mh-price-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--mh-gray-2);
    border-radius: 100px;
    color: var(--mh-mute);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.mh-price-clear:hover {
    background: var(--mh-sale);
    color: #fff;
}

.mh-shop-filters__cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.mh-cat-chip {
    display: inline-block;
    padding: 5px 12px;
    border: 1.5px solid var(--mh-gray-2);
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--mh-ink);
    text-decoration: none;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
}

.mh-cat-chip:hover {
    border-color: var(--mh-ink);
    background: var(--mh-ink);
    color: #fff;
}

.mh-cat-chip--active {
    background: var(--mh-ink);
    color: #fff;
    border-color: var(--mh-ink);
}

@media (max-width: 1023px) {
    .mh-shop-filters__inner {
        padding: 0 16px;
        gap: 8px;
    }

    .mh-price-input {
        width: 75px;
    }

    .mh-shop-filters__cats {
        display: none; /* simplify on mobile */
    }
}

/* ── RESPONSIVE: hide desktop header / show mobile ─────────────────────── */
@media (max-width: 1023px) {
    .mh-header-top {
        display: none;
    }

    .mh-header-mobile {
        display: flex;
    }

    /* Hide desktop nav, show only if user is in large viewport */
    .mh-menu {
        display: none;
    }
}

@media (min-width: 1024px) {
    .mh-header-mobile {
        display: none;
    }

    .mh-menu {
        display: flex;
    }
}

/* --------------------------------------------------------------------------
   END: WooCommerce template styles — Moderna Hogar
   -------------------------------------------------------------------------- */

