/* =========================================================
   catalogo.css — Estilos específicos del catálogo público
   Requiere: public-base.css cargado antes
   ========================================================= */

/* ── FILTER BAR ── */
.filter-bar-wrapper {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--nav-h);
    z-index: 99;
}
.filter-bar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3.5rem);
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 54px;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: #666;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-pill:hover,
.filter-pill.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    font-weight: 600;
}
.filter-sep {
    width: 1px;
    height: 18px;
    background: var(--border);
    flex-shrink: 0;
}

/* ── HERO ── */
.catalog-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.catalog-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}
.catalog-hero__label::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--accent);
}
.catalog-hero__title {
    font-size: clamp(3rem, 7vw, 5.8rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.catalog-hero__meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.catalog-hero__count {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.catalog-hero__count strong { color: var(--black); font-weight: 600; }

/* Active search badge */
.search-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--black);
    color: var(--white);
    padding: 5px 14px 5px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
}
.search-active-badge strong { font-weight: 700; }
.search-clear-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}
.search-clear-btn:hover { color: var(--white); }

/* ── GRID ── */
.catalog-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3.5rem) 5rem;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.6rem, 1.2vw, 1rem);
}
@media (max-width: 1280px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; } }
@media (max-width: 420px)  { .products-grid { grid-template-columns: 1fr; } }

/* ── PRODUCT CARD ── */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.product-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}
.product-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.product-card__img-wrap {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #EEEEED;
    position: relative;
}
.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
    display: block;
}
.product-card:hover .product-card__img { transform: scale(1.07); }

.product-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2.5rem;
}
.product-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 13px;
    background: rgba(17,17,17,0.82);
    color: var(--white);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(6px);
}
.product-card:hover .product-card__overlay { transform: translateY(0); }

.product-card__info {
    padding: 13px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.product-card__cat {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.product-card__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card__price {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 5px;
}

/* ── EMPTY STATE ── */
.empty-state {
    grid-column: 1 / -1;
    padding: 5rem 1rem;
    text-align: center;
}
.empty-state i { font-size: 2.5rem; color: #ccc; display: block; margin-bottom: 1rem; }
.empty-state p { color: var(--text-muted); font-size: 0.95rem; }
