.storefront-shell.theme-malagadive .storefront-nav { display: none !important; }

.storefront-shell.theme-malagadive .storefront-menu-toggle {
    display: inline-flex !important; width: 46px; min-width: 46px; height: 44px; min-height: 44px;
    border: 1px solid #154aed !important; border-radius: 8px; background: #154aed !important; color: #fff !important;
}
.storefront-shell.theme-malagadive .storefront-menu-toggle:hover,
.storefront-shell.theme-malagadive .storefront-menu-toggle[aria-expanded="true"] {
    background: #123fc9 !important; border-color: #123fc9 !important;
}

.storefront-shell.theme-malagadive .malagadive-mobile-drawer {
    display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden;
}
.storefront-shell.theme-malagadive .storefront-header.menu-open .malagadive-mobile-drawer {
    pointer-events: auto; visibility: visible;
}
.storefront-shell.theme-malagadive .malagadive-mobile-overlay {
    position: absolute; inset: 0; width: 100%; border: 0; background: rgba(3, 24, 38, .52); cursor: pointer;
}
.storefront-shell.theme-malagadive .malagadive-mobile-panel {
    position: absolute; inset: 0 auto 0 0; display: flex; flex-direction: column;
    width: min(88vw, 390px); max-width: 100%; background: #fff; color: #082b40;
    box-shadow: 14px 0 34px rgba(3, 24, 38, .22); transform: translateX(-102%); transition: transform .2s ease;
}
.storefront-shell.theme-malagadive .storefront-header.menu-open .malagadive-mobile-panel { transform: translateX(0); }
.storefront-shell.theme-malagadive .malagadive-mobile-panel-header {
    display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 68px;
    padding: 10px 12px; border-bottom: 1px solid #d9e5ea; background: #154aed; color: #fff;
}
.storefront-shell.theme-malagadive .malagadive-mobile-panel-header strong { text-align: center; font-size: 18px; color: #fff !important; }
.storefront-shell.theme-malagadive .malagadive-mobile-back,
.storefront-shell.theme-malagadive .malagadive-mobile-close {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px;
    background: transparent !important; color: #fff !important; font-size: 28px; cursor: pointer;
}
.storefront-shell.theme-malagadive .malagadive-mobile-back:hover,
.storefront-shell.theme-malagadive .malagadive-mobile-close:hover,
.storefront-shell.theme-malagadive .malagadive-mobile-back:focus-visible,
.storefront-shell.theme-malagadive .malagadive-mobile-close:focus-visible {
    background: rgba(255, 255, 255, .14) !important; outline: 2px solid #70d7ef; outline-offset: -2px;
}
.storefront-shell.theme-malagadive .malagadive-mobile-list {
    display: flex; flex: 1; flex-direction: column; gap: 4px; overflow-y: auto; padding: 12px;
}
.storefront-shell.theme-malagadive .malagadive-mobile-row {
    display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px;
    box-sizing: border-box; padding: 12px 14px; border: 1px solid #d9e5ea; border-radius: 8px;
    background: #fff !important; color: #082b40 !important; font: inherit; font-size: 17px;
    text-align: left; text-decoration: none; cursor: pointer;
}
.storefront-shell.theme-malagadive .malagadive-mobile-row:hover,
.storefront-shell.theme-malagadive .malagadive-mobile-row:focus-visible {
    border-color: #19a6c8; background: #edfaff !important; outline: 2px solid #70d7ef; outline-offset: -2px;
}

@media (min-width: 1081px) {
    html body .storefront-shell.theme-malagadive .storefront-nav {
        display: flex !important;
        width: 100%;
        max-width: none;
        justify-content: center;
        padding: 0 24px;
        box-sizing: border-box;
        border-top: 1px solid rgba(200, 214, 229, .18);
        background: #0b0e14;
        color: #fff;
    }
    .storefront-shell.theme-malagadive .storefront-menu-toggle { display: none !important; }
    .storefront-shell.theme-malagadive .storefront-nav > a,
    .storefront-shell.theme-malagadive .storefront-nav summary { color: #fff !important; }
    .storefront-shell.theme-malagadive .storefront-nav > a.storefront-menu-root-link {
        min-height: 46px; padding-inline: 18px; border-radius: 0; color: #fff !important; font-weight: 900;
    }
    .storefront-shell.theme-malagadive .storefront-nav > a.storefront-menu-root-link:hover,
    .storefront-shell.theme-malagadive .storefront-nav > a.storefront-menu-root-link:focus-visible,
    .storefront-shell.theme-malagadive .storefront-nav > a:hover,
    .storefront-shell.theme-malagadive .storefront-nav summary:hover,
    .storefront-shell.theme-malagadive .storefront-nav details[open] summary {
        background: #154aed !important; color: #fff !important;
    }
}

.storefront-shell.theme-malagadive .malagadive-menu-landing {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 64px) 80px;
}
.storefront-shell.theme-malagadive .malagadive-menu-landing-header {
    margin-bottom: 28px;
    text-align: left;
}
.storefront-shell.theme-malagadive .malagadive-menu-landing-header h1 {
    margin: 0;
    color: #0b0e14;
    font-size: clamp(32px, 5vw, 58px);
}
.storefront-shell.theme-malagadive .malagadive-menu-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.storefront-shell.theme-malagadive .malagadive-menu-category-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d8e3ea;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(8, 43, 64, .08);
    color: #0b0e14;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.storefront-shell.theme-malagadive .malagadive-menu-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(8, 43, 64, .16);
}
.storefront-shell.theme-malagadive .malagadive-menu-category-media {
    display: grid;
    min-height: 170px;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0b4968, #154aed);
    color: #fff;
    font-size: 56px;
    font-weight: 900;
}
.storefront-shell.theme-malagadive .malagadive-menu-category-media img { width: 100%; height: 170px; object-fit: cover; }
.storefront-shell.theme-malagadive .malagadive-menu-category-copy { padding: 16px 18px 18px; }
.storefront-shell.theme-malagadive .malagadive-menu-category-copy h2 { margin: 0 0 12px; font-size: 20px; }
.storefront-shell.theme-malagadive .malagadive-menu-category-copy span { color: #154aed; font-weight: 800; }
.storefront-shell.theme-malagadive .malagadive-menu-category-copy b { margin-left: 6px; }
.storefront-shell.theme-malagadive .malagadive-menu-landing-loading { min-height: 40vh; padding: 80px 20px; text-align: center; }

.storefront-shell.theme-malagadive .storefront-footer {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 42px;
    padding: 56px clamp(20px, 5vw, 72px) 24px;
    border-top: 1px solid #202b40;
    background: #0b0e14;
    color: #aebdd0;
}

.storefront-shell.theme-malagadive .storefront-footer section { gap: 10px; }
.storefront-shell.theme-malagadive .storefront-footer h2 {
    margin-bottom: 10px;
    color: #fff;
    font-size: .85rem;
    letter-spacing: .08em;
}
.storefront-shell.theme-malagadive .storefront-footer a,
.storefront-shell.theme-malagadive .storefront-footer span { color: #aebdd0; font-weight: 600; }
.storefront-shell.theme-malagadive .storefront-footer a:hover { color: #70d7ef; }
.storefront-shell.theme-malagadive .malagadive-footer-brand img { width: min(230px, 100%); margin-bottom: 10px; }
.storefront-shell.theme-malagadive .malagadive-footer-brand p { max-width: 280px; margin: 0 0 14px; line-height: 1.55; }
.storefront-shell.theme-malagadive .malagadive-footer-contact-button {
    display: inline-flex; width: fit-content; padding: 10px 14px; border-radius: 8px;
    background: #154aed; color: #fff !important; font-weight: 900 !important;
}

/* En este rango funciona el cajón móvil; no se muestra el rail antiguo. */
@media (min-width: 721px) and (max-width: 1080px) {
    .storefront-shell.theme-malagadive .storefront-category-rail {
        display: none;
    }
    .storefront-shell.theme-malagadive .storefront-catalog-shell {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Los controles del catálogo comparten el azul del buscador. */
.storefront-shell.theme-malagadive .storefront-catalog-controls button {
    background: #154aed;
    color: #fff;
}
.storefront-shell.theme-malagadive .storefront-catalog-controls button:hover {
    background: #123fc9;
}

/* En escritorio/tablet amplio se conserva el menú horizontal superior. */
@media (min-width: 721px) and (max-width: 1080px) {
    html body .storefront-shell.theme-malagadive .storefront-nav {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
    }
    html body .storefront-shell.theme-malagadive .storefront-menu-toggle {
        display: none !important;
    }
}
.storefront-shell.theme-malagadive .malagadive-footer-contact-button:hover { background: #123fc9; }
.storefront-shell.theme-malagadive .malagadive-footer-bottom {
    grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px;
    padding-top: 18px; border-top: 1px solid #202b40; font-size: .78rem;
}
@media (max-width: 760px) {
    .storefront-shell.theme-malagadive .storefront-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
    .storefront-shell.theme-malagadive .malagadive-footer-brand { grid-column: 1 / -1; }
    .storefront-shell.theme-malagadive .malagadive-footer-bottom { flex-direction: column; }
}
