
/* ======= Categorías ======= */
.category-hero {
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

/* 3 columnas grandes en desktop (como el ejemplo) */
.category-card {
    position: relative;
    grid-column: span 4; /* 12/3 = 4 */
    height: 320px;
    overflow: hidden;
    border-radius: 16px;
    display: block;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,.12);
    }

.category-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.88);
    transform: scale(1.02);
    transition: transform .35s ease, filter .35s ease;
}

.category-card:hover .category-bg {
    transform: scale(1.06);
    filter: brightness(0.95);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05));
}

.category-title {
    position: absolute;
    left: 24px;
    bottom: 20px;
    right: 24px;
    color: #fff;
}

    .category-title h3 {
        font-weight: 800;
        letter-spacing: .5px;
        margin: 0;
        text-transform: uppercase;
    }

/* Responsive */
@media (max-width: 1199px) {
    .category-card {
        height: 300px;
    }
}

@media (max-width: 991px) {
    .category-card {
        grid-column: span 6;
        height: 260px;
    }
    /* 2 por fila */
}

@media (max-width: 575px) {
    .category-card {
        grid-column: span 12;
        height: 220px;
    }
    /* 1 por fila */
}

/* ======= Header catálogo ======= */
.catalog-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

/* ======= Barra de filtros ======= */
.catalog-filterbar .form-label {
    margin-bottom: .3rem;
}

.filter-chips {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #f1f3f5;
    color: #333;
    border-radius: 999px;
    padding: .35rem .7rem;
    text-decoration: none;
    font-size: .875rem;
    border: 1px solid #e6e8eb;
}

    .chip:hover {
        background: #e9ecef;
    }

    .chip .chip-x {
        font-weight: 700;
    }

.chip-clear {
    background: #fff;
    border: 1px dashed #cfd4da;
}

/* ======= Grilla de productos ======= */
.product-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(12, 1fr);
}

.pg-col {
    grid-column: span 3;
}
/* 4 por fila en desktop */

@media (max-width: 1199px) {
    .pg-col {
        grid-column: span 4;
    }
}
/* 3 por fila */
@media (max-width: 991px) {
    .pg-col {
        grid-column: span 6;
    }
}
/* 2 por fila */
@media (max-width: 575px) {
    .pg-col {
        grid-column: span 12;
    }
}
/* 1 por fila */

/* ======= Tarjeta ======= */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    border: 1px solid #eef0f3;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,.10);
        border-color: #e5e8ec;
    }

.pc-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8f9fb;
}

    .pc-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 10px;
        transition: transform .25s ease;
    }

.product-card:hover .pc-media img {
    transform: scale(1.04);
}

/* Badges */
.pc-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

.badge-new {
    background: #22c55e;
    color: #fff;
    padding: .25rem .5rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.badge-featured {
    background: #fde047;
    color: #3b3b3b;
    padding: .25rem .5rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.pc-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.pc-cat {
    color: #6c757d;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pc-title {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pc-desc {
    color: #5e6a74;
    font-size: .9rem;
    max-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pc-actions {
    margin-top: auto;
}

/* ======= Breadcrumb minimal ======= */
.catalog-breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    color: #6b7280;
    margin-bottom: .5rem;
}

    .catalog-breadcrumb a {
        color: #6b7280;
        text-decoration: none;
    }

        .catalog-breadcrumb a:hover {
            text-decoration: underline;
        }

    .catalog-breadcrumb strong {
        color: #111827;
    }

/* ======= Header catálogo ======= */
.catalog-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

/* ======= Barra de filtros y chips ======= */
.catalog-filterbar .form-label {
    margin-bottom: .3rem;
}

.filter-chips {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #f1f3f5;
    color: #333;
    border-radius: 999px;
    padding: .35rem .7rem;
    text-decoration: none;
    font-size: .875rem;
    border: 1px solid #e6e8eb;
}

    .chip:hover {
        background: #e9ecef;
    }

    .chip .chip-x {
        font-weight: 700;
    }

.chip-clear {
    background: #fff;
    border: 1px dashed #cfd4da;
}

/* ======= Grilla de productos ======= */
.product-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(12, 1fr);
}

.pg-col {
    grid-column: span 4;
}
/* 3 por fila desktop */
@media (max-width: 991px) {
    .pg-col {
        grid-column: span 6;
    }
}
/* 2 por fila */
@media (max-width: 575px) {
    .pg-col {
        grid-column: span 12;
    }
}
/* 1 por fila */

/* ======= Tarjeta minimal ======= */
.product-min-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1f2f4;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .product-min-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
        border-color: #e6e8ec;
    }

/* Imagen con aire (como la referencia) */
.pmc-media {
    position: relative;
    background: #fff;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .pmc-media img {
        max-width: 70%;
        max-height: 70%;
        object-fit: contain;
        transition: transform .25s ease;
    }

.product-min-card:hover .pmc-media img {
    transform: scale(1.03);
}

/* Texto */
.pmc-text {
    padding: 10px 6px 18px 6px;
}

.pmc-title-row {
    display: flex;
    gap: 10px;
    align-items: baseline;
    justify-content: space-between;
}

.pmc-title {
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.25;
    margin: 0;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pmc-sku {
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    font-size: .98rem;
}

.pmc-sub {
    margin-top: 4px;
    color: #4b5563;
    font-size: .95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Si quieres aún más aire, baja al 60%:
.pmc-media img{ max-width:60%; max-height:60%; } */

/* ===== Footer ===== */
.site-footer {
    position: relative;
    background: #222;
}

    .site-footer .footer-logo {
        filter: none;
    }

    .site-footer a {
        color: #ffffff;
        text-decoration: none;
    }

        .site-footer a:hover {
            color: #eaeaea;
            text-decoration: underline;
        }

.footer-list li {
    line-height: 1.4;
}

.footer-list i {
    color: #ffffffcc;
    font-size: 1rem;
    vertical-align: middle;
}

.footer-line {
    color: #fff;
}

.footer-bottom {
    background: #1c1c1c;
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer-social {
    color: #fff;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
}

    .footer-social:hover {
        background: rgba(255,255,255,.08);
    }

@media (max-width: 991px) {
    .site-footer .footer-logo {
        height: 38px;
    }
}

/* ===== WhatsApp FAB ===== */
.whatsapp-fab {
    position: fixed;
    right: 18px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    z-index: 1040;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .whatsapp-fab:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0,0,0,.32);
    }

    .whatsapp-fab i {
        font-size: 1.6rem;
    }

/* Hacer que el dropdown se abra al pasar el mouse */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}


