/* ============================================
   STORE-LISTAR.CSS — Catálogo estilo Woot
   ============================================ */

.ls-page { background: #f5f7fb; min-height: 70vh; padding: 2rem 0 4rem; }
.ls-wrap { max-width: 1360px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Topbar ──────────────────────────────── */
.ls-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e4e8f0;
}

.ls-topbar-left { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.ls-bc { color: #6b7280; text-decoration: none; transition: color .12s; }
.ls-bc:hover { color: #111; }
.ls-bc-sep { color: #d1d5db; font-size: .65rem; }
.ls-bc-active { color: #111827; font-weight: 700; }

.ls-searchbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1.5px solid #e4e8f0;
    border-radius: 10px;
    padding: .4rem .75rem;
    flex: 1;
    max-width: 520px;
}
.ls-search-icon { color: #9ca3af; font-size: .85rem; flex-shrink: 0; }
.ls-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: .88rem;
    background: transparent;
    color: #111;
    min-width: 0;
}
.ls-sort-select {
    border: none;
    outline: none;
    font-size: .82rem;
    color: #374151;
    background: transparent;
    cursor: pointer;
    padding: 0 .25rem;
    border-left: 1.5px solid #e4e8f0;
    padding-left: .6rem;
    flex-shrink: 0;
}

/* ── Layout ──────────────────────────────── */
.ls-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ── Sidebar ─────────────────────────────── */
.ls-sidebar {
    position: sticky;
    top: 88px;
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 14px;
    padding: 1.1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.ls-sidebar-title {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #9ca3af;
    margin-bottom: .6rem;
}

.ls-cat-nav, .ls-sort-nav { display: flex; flex-direction: column; gap: 1px; }

.ls-cat-link, .ls-sort-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding: .42rem .6rem;
    border-radius: 8px;
    font-size: .85rem;
    color: #374151;
    text-decoration: none;
    transition: background .12s, color .12s;
}
.ls-sort-link { justify-content: flex-start; }
.ls-cat-link:hover, .ls-sort-link:hover { background: #f1f5f9; color: #111; }
.ls-cat-link.active, .ls-sort-link.active {
    background: #eef2ff;
    color: #3730a3;
    font-weight: 700;
}

.ls-cat-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-cat-count {
    font-size: .72rem;
    font-weight: 700;
    color: #9ca3af;
    background: #f3f4f6;
    border-radius: 20px;
    padding: .1rem .45rem;
    flex-shrink: 0;
}
.ls-cat-link.active .ls-cat-count { background: #e0e7ff; color: #4338ca; }

/* ── Main ────────────────────────────────── */
.ls-main { min-width: 0; }

.ls-count { font-size: .82rem; color: #6b7280; margin-bottom: 1rem; }
.ls-count strong { color: #111; }

/* ── Product grid ────────────────────────── */
.ls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.1rem;
}

/* ── Card ────────────────────────────────── */
.ls-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}
.ls-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

.ls-card-img {
    display: block;
    position: relative;
    height: 195px;
    background: #f9fafb;
    overflow: hidden;
    text-decoration: none;
}
.ls-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.ls-card:hover .ls-card-img img { transform: scale(1.04); }
.ls-card-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 2.2rem;
}

.ls-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: #ef4444;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    padding: .2rem .55rem;
    border-radius: 6px;
}

.ls-card-body {
    padding: .85rem .95rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1;
}

.ls-card-cat {
    font-size: .68rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ls-card-name {
    font-size: .88rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ls-card-name:hover { color: #3730a3; }

.ls-card-desc {
    font-size: .78rem;
    color: #6b7280;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ls-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: auto;
    padding-top: .65rem;
}

.ls-card-prices { display: flex; flex-direction: column; gap: .05rem; }
.ls-price { font-size: 1.08rem; font-weight: 800; color: #111827; }
.ls-price-old { font-size: .75rem; color: #9ca3af; text-decoration: line-through; }


/* ── Empty state ─────────────────────────── */
.ls-empty { text-align: center; padding: 4rem 1rem; color: #9ca3af; }
.ls-empty i { font-size: 2.5rem; display: block; margin-bottom: 1rem; color: #e5e7eb; }
.ls-empty p { margin: 0 0 .75rem; }
.ls-empty-link {
    display: inline-block;
    padding: .55rem 1.25rem;
    background: #111;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: .88rem;
}

/* ── Load more ───────────────────────────── */
.ls-load-more-wrap { text-align: center; margin-top: 2rem; }
.ls-load-more {
    padding: .7rem 2.2rem;
    border: 1.5px solid #e4e8f0;
    background: #fff;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.ls-load-more:hover { border-color: #111; background: #f9fafb; }
.ls-load-more:disabled { opacity: .55; cursor: not-allowed; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 900px) {
    .ls-layout { grid-template-columns: 1fr; }
    .ls-sidebar {
        position: static;
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
        padding: .8rem 1rem;
    }
    .ls-sidebar-title { margin-bottom: .4rem; font-size: .62rem; }
    .ls-cat-nav { flex-direction: row; flex-wrap: wrap; gap: .3rem; }
    .ls-sort-nav { flex-direction: row; flex-wrap: wrap; gap: .3rem; }
    .ls-cat-link, .ls-sort-link {
        padding: .3rem .65rem;
        border: 1px solid #e4e8f0;
        border-radius: 20px;
        font-size: .78rem;
    }
    .ls-cat-link.active, .ls-sort-link.active { border-color: #3730a3; }
}

@media (max-width: 600px) {
    .ls-page { padding: 1.25rem 0 3rem; }
    .ls-topbar { flex-direction: column; align-items: stretch; }
    .ls-searchbar { max-width: 100%; }
    .ls-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
    .ls-card-img { height: 155px; }
}
