.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 10px;
}

.category-label {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 999px;

    background: #efeeec;
    color: #0a2540;



    /* azul del sitio */
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-label:hover {
    background: #0a2540;
    color: #ffffff;
    /* fondo neutro */
}

.producto-resultado {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.producto-media img {
    max-width: 180px;
    height: auto;
    display: block;
}

.producto-info {
    flex: 1;
}

.producto-titulo {
    margin: 0 0 10px 0;
}

.producto-descripcion {
    margin-bottom: 15px;
}

.producto-precio {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-principal);
    /* usa el azul del sitio */
}

.btn-ver-producto {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    background-color: #f2bd1d;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-ver-producto:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.producto-titulo {
    font-size: 26px;
    /* puedes subir a 28–32px si quieres más impacto */
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    color: #003a8f;
    /* azul del sitio (ajústalo si usas otro) */
}

@media (max-width: 768px) {
    .producto-titulo {
        font-size: 22px;
    }
}

.product-thumb {
    width: 160px;
    min-width: 160px;
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.product-image--placeholder svg {
    width: 100%;
    height: auto;
    display: block;
}

.search-results article,
.category article {
    padding: 20px 0;
    border-bottom: 1px solid #e3e3e3;
}

.search-results article:last-child,
.category article:last-child {
    border-bottom: none;
}

.search-results {
    margin: 0 auto; 
    font-size: 1.1rem; 
    line-height: 1.7;
    margin-top:80px;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #666;
}

.category-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar */
.category-sidebar {
    width: 240px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    position: sticky;
    top: 120px;
}

.sidebar-title {
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #f2bd1d;
}

.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-list li {
    margin-bottom: 10px;
}

.subcategory-list a {
    color: #0a2540;
    text-decoration: none;
    font-size: 0.95rem;
}

.subcategory-list a:hover {
    text-decoration: underline;
}

.no-subcategories {
    font-size: 0.9rem;
    color: #777;
}

/* Contenido principal */
.category-content {
    flex: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .category-layout {
        flex-direction: column;
    }

    .category-sidebar {
        width: 100%;
        position: static;
    }
}



.search-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* responsive */
@media (max-width: 1024px) {
    .search-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .search-products-grid {
        grid-template-columns: 1fr;
    }
}

/* CARD ecommerce */
.producto-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.producto-card .product-thumb {
    width: 100%;
    min-width: unset;
}

.producto-card .product-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
}

.producto-card .producto-info {
    display: flex;
    flex-direction: column;
    padding: 16px;
    height: 100%;
}

.producto-card .producto-precio {
    margin-top: auto;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-principal);
}

.producto-card .btn-ver-producto {
    margin-top: 12px;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
}

