/* ==============================> "BANNERS DE CATEGORÍA" */

/* -> Contenedor principal */
.bdc-wrapper {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    align-items: stretch;
    opacity: 0;
    transform: translateY(16px);
    animation: bdc-entrada 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* -> Columnas */
.bdc-col-izquierda,
.bdc-col-derecha {
    flex: 0 0 350px;
    max-width: 350px;
}

.bdc-col-centro {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* -> Banners */
.bdc-banner {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bdc-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.45s ease;
    -webkit-transition: -webkit-transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                        filter 0.45s ease;
    will-change: transform;
}

/* -> Vertical */
.bdc-banner-vertical {
    height: 100%;
    min-height: 340px;
}

.bdc-banner-vertical img {
    height: 100%;
}

/* -> Superior */
.bdc-banner-superior {
    flex: 1 1 auto;
}

.bdc-banner-superior img {
    max-height: 520px;
}

/* -> Inferior */
.bdc-banner-inferior {
    flex: 0 0 auto;
}

.bdc-banner-inferior img {
    max-height: 200px;
}

/* -> Hover */
.bdc-banner:hover img {
    transform: scale(1.04);
    -webkit-transform: scale(1.04);
    filter: brightness(1.06);
}

/* -> Borde de acento al hover */
.bdc-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.35s ease;
    pointer-events: none;
    -webkit-transition: border-color 0.35s ease;
}

.bdc-banner:hover::after {
    border-color: var(--e-global-color-primary);
}

/* -> Animación de entrada */
@keyframes bdc-entrada {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes bdc-entrada {
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

/* -> Animación escalonada por columna */
.bdc-col-izquierda { animation-delay: 0s; }
.bdc-col-centro     { animation-delay: 0.08s; }
.bdc-col-derecha    { animation-delay: 0.16s; }

.bdc-col-izquierda,
.bdc-col-centro,
.bdc-col-derecha {
    opacity: 0;
    transform: translateY(16px);
    animation: bdc-entrada 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    -webkit-transform: translateY(16px);
    -webkit-animation: bdc-entrada 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bdc-wrapper { animation: none; opacity: 1; transform: none; }

/* "RESPONSIVE" */

/* -> Tablet 768px */
@media (max-width: 1024px) {
    .bdc-wrapper {
        flex-wrap: wrap;
    }

    .bdc-col-izquierda,
    .bdc-col-derecha {
        flex: 1 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    .bdc-col-centro {
        flex: 0 0 100%;
        order: -1;
    }

    .bdc-banner-vertical {
        min-height: 220px;
    }
}

/* -> Móvil 768px */
@media (max-width: 768px) {
    .bdc-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .bdc-col-izquierda,
    .bdc-col-derecha,
    .bdc-col-centro {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .bdc-banner-vertical {
        min-height: 180px;
    }

    .bdc-banner-superior img {
        max-height: 260px;
    }

    .bdc-banner-inferior img {
        max-height: 140px;
    }
}

/* Categorías de productos */

.categorias-productos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.categoria-producto {
    text-align: center;
}

.categoria-producto img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.categoria-producto:hover img {
    transform: scale(1.05);
}

.categoria-producto h3 {
    font-size: 15px;
    margin: 10px 0 0;
    color: #333;
    text-decoration: none;
}

.categoria-producto a {
    text-decoration: none;
    color: inherit;
}

/* ==============================> MIGAS DE PAN TIENDA */

.mpan-breadcrumb {
    display: inline-flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

/* -> Lista */
.mpan-lista {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: wrap;
}

/* -> Ítem base */
.mpan-item {
    display: flex;
    align-items: center;
    background: color-mix(in srgb, var(--e-global-color-primary) 12%, transparent);
    padding: 8px 24px 8px 30px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%, 12px 50%);
    transition: background 0.25s ease, color 0.25s ease;
    -webkit-transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
    margin-right: -1px;
    animation: mpan-entrada 0.35s ease both;
    -webkit-animation: mpan-entrada 0.35s ease both;
}

/* -> Primer ítem sin punta izquierda */
.mpan-item:first-child {
    padding-left: 18px;
    clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%);
    border-radius: 4px 0 0 4px;
}

/* -> Último ítem sin punta derecha */
.mpan-item:last-child {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 12px 50%);
    padding-right: 18px;
    border-radius: 0 4px 4px 0;
}

/* -> Enlace */
.mpan-enlace {
    color: var(--e-global-color-primary);
    text-decoration: none;
    transition: color 0.25s ease, filter 0.25s ease;
    -webkit-transition: color 0.25s ease, filter 0.25s ease;
}

/* -> Hover */
.mpan-item:not(.mpan-activo):hover {
    background: color-mix(in srgb, var(--e-global-color-primary) 22%, transparent);
    cursor: pointer;
}

.mpan-item:not(.mpan-activo):hover .mpan-enlace {
    filter: brightness(0.85);
}

/* -> Ítem activo */
.mpan-item.mpan-activo {
    background: var(--e-global-color-primary);
    color: #fff;
    pointer-events: none;
}

.mpan-item.mpan-activo .mpan-actual {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

/* -> Animación de entrada */
@keyframes mpan-entrada {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mpan-item:nth-child(1) { animation-delay: 0.00s; }
.mpan-item:nth-child(2) { animation-delay: 0.06s; }
.mpan-item:nth-child(3) { animation-delay: 0.12s; }
.mpan-item:nth-child(4) { animation-delay: 0.18s; }
.mpan-item:nth-child(5) { animation-delay: 0.24s; }

/* -> Responsive tablet */
@media (max-width: 768px) {
    .mpan-lista {
        flex-wrap: wrap;
        gap: 4px;
    }

    .mpan-item {
        font-size: 12px;
        padding: 6px 20px 6px 24px;
        clip-path: polygon(0% 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 0% 100%, 10px 50%);
    }

    .mpan-item:first-child {
        padding-left: 14px;
        clip-path: polygon(0% 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 0% 100%);
    }

    .mpan-item:last-child {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 10px 50%);
        padding-right: 14px;
    }

    .mpan-item.mpan-activo .mpan-actual {
        max-width: 200px;
    }
}

/* -> Responsive móvil */
@media (max-width: 480px) {
    .mpan-item {
        font-size: 11px;
        padding: 5px 16px 5px 20px;
    }

    .mpan-item.mpan-activo .mpan-actual {
        max-width: 140px;
    }
}

/* ==============================> DESCRIPCION DE CATEGORIA */

.wd-shop-desc {
    padding: 24px;
}

.wd-shop-desc h2{
    font-size: 16px;
}