.hein-mega {
    background: #ffffff;
    padding: 8px 0 16px;
    font-family: inherit;
    border-bottom: solid 2px #E5E7EB
}

.hein-mega.hein-mega--outlet .hein-mega__section--products .hein-mega__card .hein-mega__card-inner {
    border-color: snow;
    outline: 2px solid red;
    outline-offset: -2px;
    background: red;
    color: white;
}

.hein-mega__inner {
    max-width: 161rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Tabs superiores estilo píldora completa */
.hein-mega__tabs-wrapper {
    background: #f8f9fb;
    border-radius: 999px;
    padding: 7px;
    margin-bottom: 16px;
    overflow: hidden;
    border: solid 1px #E0E0E0;
}

.hein-mega button:not(.primary):active {
    box-shadow: none !important;
    background: none !important;
    border: none !important;
}

.hein-mega button:hover, .hein-mega button:focus {
    background: none;
    border: none !important;
}

.hein-mega button.hein-mega__back:hover{
    background: #F3F4F6 !important;
    border: 1px solid #D1D5DC !important;
}


.hein-mega__tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.hein-mega__tab-item {
    margin: 0;
    padding: 0;
    flex: 1 1 0;
}

/*.hein-mega__tab-item:hover {*/
/*    background: #F9D422 !important;*/
/*    border-radius: 999px;*/
/*}*/

.hein-mega__tab {
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1f2933;
    text-align: center;
}

.hein-mega__tab:hover {
    background: #F9D422 !important;
}

.hein-mega__tab--active {
    background: black;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.08);
    font-weight: 600;
    color: #F9D422;
}

.hein-mega__tab--active:hover {
    background: black !important;
    color: #F9D422;
}

/* Cards strip + botón back */
.hein-mega__cards-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 12px;
    justify-content: center;
}

/* Variante cuando estamos en subcategory */
.hein-mega__cards-wrapper--subcategory {
    position: relative;
    align-items: center;
}

/* Card fijo (categoría actual) */
.hein-mega__cards-wrapper--subcategory .hein-mega__card--fixed {
    position: relative;
    margin-left: 50px;
}

/* Back button en modo subcategory: pegado al card fijo */
.hein-mega__cards-wrapper--subcategory .hein-mega__back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    border: 1px solid #D1D5DC;
}

/* El iconito redondo dentro puede quedarse igual */
.hein-mega__back-icon {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #111827;
}

.hein-mega__return-arrow-svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Carrusel de hijos (derecha) */
.hein-mega__cards--children {
    flex: 1 1 auto;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;

    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hein-mega__cards--children::-webkit-scrollbar {
    display: none;
}


/* Card fijo de categoría actual (izquierda) */
.hein-mega__card--fixed {
    flex: 1 0 0;
}

.hein-mega__back {
    flex: 0 0 auto;
    width: 40px;
    height: 112px;
    border-radius: 20px;
    border: none;
    background: #f6f7f9;
    box-shadow: 0 0 0 1px #e0e4ea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}



.hein-mega__cards {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;

    /* Ocultar scrollbar en todos los navegadores */
    -ms-overflow-style: none;     /* IE y Edge */
    scrollbar-width: none;        /* Firefox */
}

/* WebKit (Chrome, Safari, Edge Chromium) */
.hein-mega__cards::-webkit-scrollbar {
    display: none;
}

.hein-mega__cards-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
    border: 1px solid #c4ccd8;
    background: #ffffff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15,23,42,0.12);
}

/* Si tiene el atributo hidden, no se muestra */
.hein-mega__cards-arrow[hidden] {
    display: none !important;
}

.hein-mega__cards-arrow--prev {
    left: -18px;
}

.hein-mega__cards-wrapper--subcategory .hein-mega__cards-arrow--prev {
    left: 270px;
}

.hein-mega__cards-arrow--next {
    right: -18px;
}

.hein-mega__card {
    border: none;
    background: transparent;
    cursor: pointer;
    flex: 1 0 0;
    text-align: left;
    padding: 0;
    max-width: 150px;
    min-width: 150px;
}

.hein-mega__card.hein-mega__card--more {
    flex: initial;
    width: -webkit-fill-available;
    max-width: none;
}

.hein-mega__card-inner {
    border-radius: 10px;
    border: 2px solid #E5E7EB;
    padding: 0 0 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 190px;
}

.hein-mega__card--current .hein-mega__card-inner .hein-mega__card-label  {
    color: #000000;
    font-weight: 600;
}

.hein-mega__card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #111827;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hein-mega__card-image {
    /*flex: 1 1 auto;*/
    border-radius: 8px 8px 0 0;
    background: #eef1f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    /*width: 146px;*/
    height: 146px;
}

div.hein-mega__card-image.more {
    height: 71px;
    min-height: 71px !important;
}

.hein-mega__card-image img {
    width: 100%;
    height: 100%;
}

.hein-mega__card-image-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px dashed #c4ccd8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hein-mega__card-image-icon {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hein-mega__card-image-icon.more {
    height: 52%;
}

.hein-mega__card-label {
    margin-top: 4px;
    font-size: 13px;
    text-align: center;
    color: inherit;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 5px;
}

div.hein-mega__card-label.more {
    min-height: 0;
}



.hein-mega__section--products {
    position: relative;
}

/* Dropdown de subcategorías */
.hein-mega__dropdown {
    position: absolute;
    top: 100%;
    z-index: 30;
    line-height: 2;
}

.hein-mega__dropdown-panel {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    padding: 12px 16px 14px;
    border: 1px solid #e0e4ea;
}

.hein-mega__dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hein-mega__dropdown-title {
    font-size: 14px;
    font-weight: 600;
    padding-right: 30px;
}

.hein-mega__dropdown-viewall {
    font-size: 13px;
    text-decoration: none;
    color: #111827 !important;
    font-weight: 600;
}

.hein-mega__dropdown-viewall:hover {
    text-decoration: none !important;
}

.hein-mega__dropdown-body {
    margin-top: 4px;
}

.hein-mega__dropdown-columns {
    display: flex;
    gap: 24px;
}

.hein-mega__dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    /*flex: 1 1 0;*/
    min-width: 0;
}

.hein-mega__dropdown-item {
    margin-bottom: 4px;
}

.hein-mega__dropdown-link {
    font-size: 13px;    
    color: #111827 !important;
}

.hein-mega__dropdown-link:hover {
    text-decoration: none !important;    
}



/* Secciones: products / more */
.hein-mega__section {
    margin-top: 12px;
}

.hein-mega__section--more .hein-mega__cards--more {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    width: 100%;
}

/* --- Mobile --- */
.hein-mega__mobile-toggle {
    display: none;
    border: none;
    background: white;
    border-radius: 20px;
    padding: 5px 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-direction: column;
    order: 2;
    grid-column: 2;
    grid-row: 1;
}

.hein-mega__mobile-toggle-bar {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: black;
}

.hein-mega__mobile {

    position: fixed;
    inset: 0;
    z-index: 9999;
    font-family: inherit;
}

.hein-mega__mobile[hidden] {
    display: none !important;
}

.hein-mega__mobile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hein-mega__mobile-panel-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 375px;
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Verdana, Arial, sans-serif;
}

.hein-mega__mobile-panel-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.hein-mega__mobile-bottomnav {
    flex: 0 0 auto;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -2px 16px rgba(15, 23, 42, 0.06);
}

.hein-mega__mobile-bottomnav-inner {
    position: relative;
    padding: 0 32px;
}

.hein-mega__mobile-bottomnav-inner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 34px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 55%);
    pointer-events: none;
    z-index: 1;
}

.hein-mega__mobile-bottomnav-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 34px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, #ffffff 55%);
    pointer-events: none;
    z-index: 1;
}

.hein-mega__mobile-bottomnav-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 8px 2px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hein-mega__mobile-bottomnav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 24px;
    height: 24px;
    border-radius: 999px;   
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.hein-mega__mobile-bottomnav-arrow[hidden] {
    display: none !important;
}

.hein-mega__mobile-bottomnav-arrow--prev {
    left: 6px;
}

.hein-mega__mobile-bottomnav-arrow--next {
    right: 6px;
}

.hein-mega__mobile-bottomnav-arrow span {
    font-size: 15px;
    font-weight: 700;
}

.hein-mega__mobile-bottomnav-scroll::-webkit-scrollbar {
    display: none;
}

.hein-mega__mobile-bottomnav-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #1f2937 !important;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    padding: 4px 6px;
    min-width: 0;
}

.hein-mega__mobile-bottomnav-item--stack {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;   
    text-align: center;
}

.hein-mega__mobile-bottomnav-item:hover,
.hein-mega__mobile-bottomnav-item:focus {
    background: transparent;
    color: #111827 !important;
    text-decoration: none;
}

.hein-mega__mobile-bottomnav-iconWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 30px;
    color: #111827;
}

.hein-mega__mobile-bottomnav-iconWrap--pill {
    border-radius: 999px;
    background: #dbeafe;
    color: #0f3d68;
}

.hein-mega__mobile-bottomnav-item--products .hein-mega__mobile-bottomnav-label {
    color: #0f3d68 !important;
    font-weight: 700;
}

.hein-mega__mobile-bottomnav-svg {
    display: block;
    flex-shrink: 0;
    height: 3rem !important;
}

.hein-mega__mobile-bottomnav-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
    max-width: 6.5rem;
    line-height: 1.2;
    color: inherit;
}

.hein-mega__mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    background: #051634;
    color: #ffffff;
    min-height: 60px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.hein-mega__mobile-header--inner {
    margin-bottom: 8px;
    background: #ffffff;
    color: #111827;
    min-height: auto;
    padding: 12px 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.hein-mega__mobile-header--inner:not(.hein-mega__mobile-header--products-root) .hein-mega__mobile-header-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.hein-mega__mobile-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hein-mega__mobile-home-icon {
    width: 20px;
    height: 20px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    align-self: center;
}

.hein-mega__mobile-home-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hein-mega__mobile-title,
.hein-mega__mobile-header-title {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0;
}

.hein-mega__mobile-header-title {
    font-size: 16px;
}

.hein-mega__mobile-header-title--center {
    flex: 1 1 auto;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.hein-mega__mobile-header-spacer {
    width: 40px;
    flex: 0 0 40px;
    height: 1px;
}

.hein-mega__mobile-header--products-root {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px 12px;
    min-height: 56px;
    border-bottom: 1px solid #e5e7eb;
}

.hein-mega__mobile-close--products {
    flex: 0 0 40px;
    width: 40px;
    padding: 8px;
    color: #111827;
    font-size: 22px;
}

.hein-mega__mobile-close {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
}

.hein-mega__mobile-section {
    margin-bottom: 0;
}

.hein-mega__mobile-screen {
    overflow-x: hidden;
}

.hein-mega__mobile-mainlist,
.hein-mega__mobile-links,
.hein-mega__mobile-families,
.hein-mega__mobile-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hein-mega__mobile-mainitem {
    margin-bottom: 0;
    border-bottom: 1px solid #f3f4f6;
}

.hein-mega__mobile-mainlink {
    width: 100%;
    border: none;
    background: #ffffff;
    padding: 0 16px;
    height: 53px;
    min-height: 53px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    color: #252525 !important;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: background-color .15s ease-in-out;
    overflow: hidden;
    box-sizing: border-box;
}

.hein-mega__mobile-mainlink:hover {
    background: #f9fafb;
}

.hein-mega__mobile-mainlink:active {
    background: #f3f4f6;
}

.hein-mega__mobile-mainlink--anchor {
    color: #252525 !important;
    font-weight: 500;
    text-decoration: none;
}

.hein-mega__mobile-mainlink--anchor:visited,
.hein-mega__mobile-mainlink--anchor:hover,
.hein-mega__mobile-mainlink--anchor:active,
.hein-mega__mobile-mainlink--anchor:focus {
    color: #252525 !important;
    text-decoration: none;
}

.hein-mega__mobile-mainlabel {
    display: block;
    line-height: 1;
    color: #252525 !important;
    font-weight: 500;
    flex: 1 1 auto;
    min-width: 0;
}

.hein-mega__mobile-mainicon {
    font-size: 20px;
    color: #6b7280;
    line-height: 1;
}

.hein-mega__mobile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 24px;
    border-radius: 999px;
    background: #e30613;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 0 10px;
    flex: 0 0 auto;
    margin-left: 8px;
}

.hein-mega__mobile-links-title {
    height: 52px;
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #3a4761;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.hein-mega__mobile-linkitem {
    height: 40px;
    margin-bottom: 0;
    border-bottom: 1px solid #f3f4f6;
}

.hein-mega__mobile-link {
    height: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    font-size: 15px;
    line-height: 1.1;
    text-decoration: none;
    color: #364153 !important;
    transition: background-color .15s ease-in-out;
}

.hein-mega__mobile-link:hover {
    text-decoration: none;
    background: #f9fafb;
    color: #364153 !important;
}

.hein-mega__mobile-link:active {
    background: #f3f4f6;
    color: #364153 !important;
}

.hein-mega__mobile-link:visited,
.hein-mega__mobile-link:focus {
    color: #364153 !important;
}

/* Blindaje de color frente a reglas globales del tema */
.hein-mega__mobile .hein-mega__mobile-mainlist a.hein-mega__mobile-mainlink,
.hein-mega__mobile .hein-mega__mobile-mainlist a.hein-mega__mobile-mainlink:visited,
.hein-mega__mobile .hein-mega__mobile-mainlist a.hein-mega__mobile-mainlink:hover,
.hein-mega__mobile .hein-mega__mobile-mainlist a.hein-mega__mobile-mainlink:active,
.hein-mega__mobile .hein-mega__mobile-mainlist a.hein-mega__mobile-mainlink:focus {
    color: #252525 !important;
}

.hein-mega__mobile .hein-mega__mobile-links a.hein-mega__mobile-link,
.hein-mega__mobile .hein-mega__mobile-links a.hein-mega__mobile-link:visited,
.hein-mega__mobile .hein-mega__mobile-links a.hein-mega__mobile-link:hover,
.hein-mega__mobile .hein-mega__mobile-links a.hein-mega__mobile-link:active,
.hein-mega__mobile .hein-mega__mobile-links a.hein-mega__mobile-link:focus {
    color: #364153 !important;
}

.hein-mega__mobile-linkicon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.75;
    flex: 0 0 16px;
}

.hein-mega__mobile-families {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hein-mega__mobile-families--loading {
    min-height: 120px;
    position: relative;
}

.hein-mega__mobile-families--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 2px solid #e5e7eb;
    border-top-color: #2f3a4c;
    border-radius: 50%;
    animation: hein-mega-spin 0.7s linear infinite;
}

.hein-mega__mobile-family--error {
    padding: 16px;
    color: #6b7280;
    text-align: center;
}

@keyframes hein-mega-spin {
    to {
        transform: rotate(360deg);
    }
}

.hein-mega__mobile-familybtn {
    width: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}

.hein-mega__mobile-familyimg {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #eef1f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    overflow: hidden;
}

.hein-mega__mobile-familyimg img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hein-mega__mobile-family-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px dashed #c4ccd8;
}

.hein-mega__mobile-familylabel {
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
    color: #111827;
}

.hein-mega__mobile-children {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hein-mega__mobile-childlink {
    font-size: 15px;
    text-decoration: none;
    color: #111827;
}

.hein-mega__mobile-childlink:hover {
    text-decoration: underline;
}

.hein-mega__mobile-back {
    border-radius: 999px;
    border: 1px solid #c4ccd8;
    background: #ffffff;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 8px 8px 8px 0;
}

.hein-mega--mobile-open {
    overflow: hidden;
}

.hein-mega button.hein-mega__cards-arrow:focus {
    border: 1px solid #c4ccd8 !important;
}


@media (max-width: 725px) {
    ul.hein-mega__tabs li:nth-child(n+3){
        display: none;
    }
}

@media (max-width: 1023px) {
    /*.hein-mega__tabs-wrapper,
    .hein-mega__cards-wrapper,
    .hein-mega__dropdown {
        display: none;
    }*/

    .hein-mega__back,
    .hein-mega__card--fixed,
    .line-vertical    {
        display: none !important;
    }

    .hein-mega__category-hero-back {
        display: flex !important;
    }

    .hein-mega__cards-wrapper {
        justify-content: flex-start;
    }

    .hein-mega__card {
        flex: 0 0 auto;
        min-width: 132px;
        max-width: 132px;
    }

    .hein-mega__card-inner {
        height: 176px;
    }

    .hein-mega__card-image {
        height: 120px;
    }

    .hein-mega__card-label {
        font-size: 12px;
        line-height: 1.2;
    }

    /* Clic/tap llega al <button>: evita fallos en iOS/Android por hijos dentro del botón */
    .hein-mega__section--products .hein-mega__card {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(17, 24, 39, 0.08);
        cursor: pointer;
    }

    .hein-mega__section--products .hein-mega__card .hein-mega__card-inner,
    .hein-mega__section--products .hein-mega__card .hein-mega__card-image,
    .hein-mega__section--products .hein-mega__card .hein-mega__card-label,
    .hein-mega__section--products .hein-mega__card .hein-mega__card-image img {
        pointer-events: none;
    }

    .hein-mega__cards-arrow--prev {
        left: -18px !important;
    }


    .hein-mega__mobile-toggle {
        display: inline-flex;
    }

    .hein-mega__mobile-header-title {
        font-size: 16px;
        line-height: 1.1;
    }

    .hein-mega__section--products .hein-mega__dropdown {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

}

@media (min-width: 1024px) {
    .hein-mega__card--parent-up {
        display: none !important;
    }
}

.hein-mega__card--parent-up .hein-mega__card-inner--parent-up {
    background: #f3f4f6;
    border-color: #e5e7eb;
    border-width: 1px;
    height: 176px;
    justify-content: center;
}

.hein-mega__card-image--parent-up {
    background: #ffffff !important;
    height: 72px !important;
    width: 72px;
    min-height: 72px;
    margin: 0 auto 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.hein-mega__card-parent-up-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #111827;
}

.hein-mega__card-parent-up-icon .hein-mega__return-arrow-svg {
    width: 24px;
    height: 24px;
}

.hein-mega__card-label--parent-up {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: #111827;
    height: auto;
    min-height: 2.4em;
    display: flex;
    align-items: flex-start;
    padding: 0 6px;
}

@media (max-width: 420px) {
    .hein-mega__mobile-mainlink {
        height: 53px;
        min-height: 53px;
        font-size: 15px;
    }

    .hein-mega__mobile-mainicon {
        font-size: 18px;
    }

    .hein-mega__mobile-badge {
        min-width: 58px;
        height: 22px;
        font-size: 12px;
    }

    .hein-mega__mobile-links-title {
        height: 52px;
        min-height: 52px;
        font-size: 17px;
    }

    .hein-mega__mobile-link {
        height: 40px;
        min-height: 40px;
        font-size: 14px;
    }

    .hein-mega__mobile-linkicon {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }
}

/*@media (min-width: 1024px) {*/
/*    .hein-mega__mobile-toggle,*/
/*    .hein-mega__mobile {*/
/*        display: none !important;*/
/*    }*/
/*}*/

@media (min-width: 1023px) {
    .nav-toggle {
        display: none !important;
    }
}

.line-vertical {
    width: 2px;
    height: -webkit-fill-available;
    background: #ddd;
    margin-inline: 20px;
}

.hein-mega__mobile-familybtn--viewall {
    background: #fff;
    border-color: #d1d5db;
    font-weight: 600;
}

.hein-mega__mobile-familybtn--viewall .hein-mega__mobile-familylabel{
    font-weight: 600;
    text-align: center;
}

.hein-mega__mobile-families--children {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* Vista ROOT: sólo se ven categorías de primer nivel */
.hein-mega__cards-wrapper--view-root .hein-mega__back,
.hein-mega__cards-wrapper--view-root .hein-mega__card--fixed,
.hein-mega__cards-wrapper--view-root .line-vertical {
    display: none;
}

.hein-mega__cards-wrapper--view-root .hein-mega__cards--root {
    display: flex;   /* o inline-flex, según cómo tengas los cards */
}

.hein-mega__cards-wrapper--view-root .hein-mega__cards--children {
    display: none;
}

/* Vista SUB: se ocultan las familias root y se muestran las hijas */
.hein-mega__cards-wrapper--view-sub .hein-mega__cards--root {
    display: none;
}

.hein-mega__cards-wrapper--view-sub .hein-mega__cards--children {
    display: flex;
}

/* Ocultar el header/hero de categoría SOLO en estas categorías */
.catalog-category-view.categorypath-todos-los-productos .hein-mega__card--current,
.catalog-category-view.categorypath-todos-los-productos .hein-mega__back,
.catalog-category-view.categorypath-todos-los-productos .line-vertical,
.catalog-category-view.categorypath-outlet-casa-andina .hein-mega__card--current,
.catalog-category-view.categorypath-outlet-casa-andina .hein-mega__back,
.catalog-category-view.categorypath-outlet-casa-andina .line-vertical{
    display: none !important;
}

/* ============================================================
   Migas de pan debajo de tabs (estilo referencia)
   ============================================================ */
.hein-mega__breadcrumbs {
    margin: 0 -1.5rem 16px;
}

.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs {
    display: block;
    margin: 0;
    padding: 0 !important;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 10px 1.5rem;
    list-style: none;
    font-size: 12px;
    line-height: normal;
    font-weight: 400;
}

.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: #374151;
}

.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .item:not(:last-child)::after {
    content: '>';
    display: inline-block;
    margin: 0 10px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .item:nth-last-child(2):not(:last-child)::after {
    color: #e8b200;
}

.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .ca-breadcrumbs__link,
.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .item > a {
    color: #374151;
    text-decoration: none;
}

.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .ca-breadcrumbs__link:hover,
.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .item > a:hover {
    color: #111827;
    text-decoration: underline;
}

.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .ca-breadcrumbs__current {
    color: #1f2937;
}

.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .ca-breadcrumbs__current-first {
    font-weight: 400;
}

.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .ca-breadcrumbs__current-rest {
    font-weight: 700;
}

.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .ca-breadcrumbs__home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .ca-breadcrumbs__home-icon svg {
    display: block;
}

.hein-mega__breadcrumbs .breadcrumbs.ca-breadcrumbs .ca-breadcrumbs__visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Cabecera de categoría en megamenú (icono + título + conteo)
   ============================================================ */
.hein-mega__category-hero {
    margin: 4px 0 14px;
    padding: 0;
}

.hein-mega__category-hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hein-mega__category-hero-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.hein-mega__category-hero-thumb--placeholder {
    display: inline-block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hein-mega__category-hero-text {
    flex: 1 1 auto;
    min-width: 0;
}

.hein-mega__category-hero-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
}

.hein-mega__category-hero-count {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    color: #6b7280;
}

/* Último nivel (sin subcategorías): atrás + icono + título en una fila, sin carrusel */
.hein-mega__category-hero--leaf {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hein-mega__category-hero-back {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    min-height: 0;
    border-radius: 999px;
    border: 1px solid #d1d5dc;
    background: #f3f4f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hein-mega__category-hero--leaf .hein-mega__category-hero-thumb {
    flex: 0 0 auto;
}

.hein-mega__category-hero--leaf .hein-mega__category-hero-text {
    flex: 1 1 auto;
    min-width: 0;
}

.hein-mega--category-leaf .hein-mega__cards-wrapper--category-leaf {
    display: none !important;
}

.hein-mega__cards-wrapper--subcategory.hein-mega__cards-wrapper--category-context .hein-mega__cards--children {
    margin-left: 52px;
}

@media (min-width: 1024px) {
    .hein-mega__cards-wrapper--subcategory.hein-mega__cards-wrapper--category-context .hein-mega__back {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        min-height: 0;
        border-radius: 999px;
    }
}

@media (max-width: 1023px) {
    .hein-mega--category-context .hein-mega__category-hero-title {
        font-size: 18px;
    }

    .hein-mega--category-context .hein-mega__category-hero-thumb,
    .hein-mega--category-context .hein-mega__category-hero-thumb--placeholder {
        width: 64px;
        height: 64px;
        border-radius: 10px;
    }

    .hein-mega__cards-wrapper--subcategory.hein-mega__cards-wrapper--category-context .hein-mega__cards--children {
        margin-left: 0;
    }
}

/* Categoría "nuevos": solo carrusel de familias raíz (sin atrás ni tarjeta actual) */
.hein-mega__cards-wrapper--subcategory.hein-mega__cards-wrapper--nuevos-root-only .hein-mega__back,
.hein-mega__cards-wrapper--subcategory.hein-mega__cards-wrapper--nuevos-root-only .hein-mega__card--fixed,
.hein-mega__cards-wrapper--subcategory.hein-mega__cards-wrapper--nuevos-root-only .line-vertical {
    display: none !important;
}

.hein-mega__cards-wrapper--subcategory.hein-mega__cards-wrapper--nuevos-root-only .hein-mega__cards--children {
    margin-left: 0;
    width: 100%;
    flex: 1 1 auto;
}

@media (min-width: 1024px) {
    .hein-mega__cards-wrapper--subcategory.hein-mega__cards-wrapper--nuevos-root-only .hein-mega__cards-arrow--prev {
        left: -18px !important;
    }
}



.categorypath-outlet-casa-andina .hein-mega .hein-mega__section--products {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease;
    z-index: 99;
}


