/* =========================================================
   SUPERMIX - TARJETAS DEL CATALOGO GENERAL
   ========================================================= */

.supermix-product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.supermix-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9e6f2;
    border-radius: 17px;
    box-shadow: 0 4px 15px rgba(31, 18, 168, .045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.supermix-product-card:hover {
    transform: translateY(-4px);
    border-color: #d8d0f5;
    box-shadow: 0 12px 26px rgba(31, 18, 168, .11);
}

.supermix-product-card__image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
}

.supermix-product-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 8px;
    box-sizing: border-box;
}

.supermix-product-card__image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.supermix-product-card:hover .supermix-product-card__image-link img {
    transform: scale(1.045);
}

.supermix-product-card__actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    z-index: 2;
}

.supermix-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #51458b;
    background: #fff;
    border: 1px solid #eeeaf7;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(25, 15, 75, .09);
    cursor: pointer;
    text-decoration: none !important;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.supermix-icon-action:hover {
    color: #fff;
    background: #5140a5;
    border-color: #5140a5;
    transform: scale(1.07);
}

.supermix-icon-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.supermix-wishlist-action:hover {
    background: #e94c75;
    border-color: #e94c75;
}

.supermix-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 10px 2px 2px;
}

.supermix-product-card__sku {
    display: block;
    margin-bottom: 5px;
    overflow: hidden;
    color: #9691a5;
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supermix-product-card__name {
    display: -webkit-box;
    min-height: 58px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #30265e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.supermix-product-card__name a {
    color: inherit;
    text-decoration: none;
}

.supermix-product-card__name a:hover {
    color: #6b50bd;
}

.supermix-product-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 40px;
    margin-top: auto;
}

.supermix-product-card__price {
    min-width: 0;
    overflow: hidden;
    color: #e99a39;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.supermix-product-card__price .price-box {
    margin: 0;
}

.supermix-product-card__price .price {
    color: #e99a39;
    font-size: inherit;
    font-weight: 700;
}

.supermix-quick-cart {
    display: flex;
    flex: 0 0 auto;
    margin: 0;
}

.supermix-cart-action {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    color: #fff;
    background: #5140a5;
    border: 0;
    box-shadow: none;
}

.supermix-cart-action:hover {
    color: #fff;
    background: #392b83;
}

.supermix-cart-action svg {
    width: 19px;
    height: 19px;
}

.supermix-product-card__stock {
    color: #b34a4a;
    font-size: 11px;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 1000px) {
    .supermix-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .supermix-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .supermix-product-card {
        padding: 9px;
        border-radius: 14px;
    }

    .supermix-product-card__body {
        padding-top: 8px;
    }

    .supermix-product-card__name {
        min-height: 54px;
        font-size: 12px;
    }

    .supermix-product-card__price {
        font-size: 15px;
    }

    .supermix-icon-action {
        flex-basis: 33px;
        width: 33px;
        height: 33px;
    }

    .supermix-cart-action {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 360px) {
    .supermix-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .supermix-product-card {
        padding: 7px;
    }

    .supermix-product-card__price {
        font-size: 14px;
    }
}

/* SUPERMIX: dimensiones protegidas de iconos en tarjetas */
.supermix-product-card__actions .supermix-icon-action,
.supermix-product-card__bottom .supermix-icon-action {
    box-sizing: border-box;
    flex-shrink: 0;
}

.supermix-product-card .supermix-icon-action > svg {
    display: block;
    flex: 0 0 18px;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    overflow: visible;
}

.supermix-product-card .supermix-cart-action > svg {
    flex-basis: 19px;
    width: 19px !important;
    height: 19px !important;
    min-width: 19px;
    min-height: 19px;
    max-width: 19px;
    max-height: 19px;
}

@media (max-width: 700px) {
    .supermix-product-card__actions {
        gap: 6px;
    }

    .supermix-product-card__actions .supermix-icon-action {
        flex: 0 0 33px;
        width: 33px;
        height: 33px;
        min-width: 33px;
        min-height: 33px;
    }

    .supermix-product-card__bottom .supermix-cart-action {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}


.supermix-catalog {
    margin: 18px 0 24px;
}

.supermix-catalog--list .supermix-product-grid {
    grid-template-columns: minmax(0, 1fr);
}

.supermix-catalog--list .supermix-product-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
}

.supermix-catalog--list .supermix-product-card__image-wrap {
    flex: 0 0 clamp(94px, 22%, 180px);
}

.supermix-catalog--list .supermix-product-card__body {
    flex: 1 1 auto;
    align-self: stretch;
}

.supermix-catalog--list .supermix-product-card__name { min-height: 0; }

.supermix-product-card__description {
    margin-top: 10px;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    :is(.catalog-category-view, .catalogsearch-result-index, .customer-account-create) .fress-mega-trigger > .fress-mega {
        left: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 540px) {
    :is(.catalog-category-view, .catalogsearch-result-index) .toolbar-sorter .sorter-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}
