/* ── Layout ─────────────────────────────────────────── */
.pl-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0 3rem;
}

/* ── Sidebar ─────────────────────────────────────────── */
.pl-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}
.pl-sidebar__title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: .5rem;
    margin-top: 1rem;
}
.pl-sidebar__title:first-child { margin-top: 0; }
.pl-filter-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .5rem;
    border-radius: .375rem;
    font-size: .875rem;
    color: #444;
    cursor: pointer;
    user-select: none;
}
.pl-filter-link:hover { background: #f5f5f5; color: #111; }
.pl-filter-link input[type="checkbox"] { cursor: pointer; flex-shrink: 0; }
.pl-filter-link.sub { padding-left: 1.25rem; font-size: .8rem; }
.pl-sidebar__price { display: flex; gap: .5rem; }
.pl-sidebar__price input {
    width: 0;
    flex: 1;
    border: 1px solid #ddd;
    border-radius: .375rem;
    padding: .3rem .5rem;
    font-size: .85rem;
}
.pl-sidebar__price input:focus { outline: none; border-color: #111; }
.pl-clear-btn {
    font-size: .75rem;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.pl-clear-btn:hover { color: #111; }

/* ── Main area ───────────────────────────────────────── */
.pl-main { flex: 1; min-width: 0; }
.pl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: .5rem;
}
.pl-count { font-size: .85rem; color: #666; }
.pl-sort {
    font-size: .85rem;
    border: 1px solid #ddd;
    border-radius: .375rem;
    padding: .3rem .6rem;
}
.pl-sort:focus { outline: none; border-color: #111; }

/* ── Product grid ────────────────────────────────────── */
.pl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}
@media (min-width: 576px) { .pl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .pl-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px){ .pl-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Product card (JS-rendered) ──────────────────────── */
.plc {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    transition: box-shadow .2s;
}
.plc:hover { box-shadow: 0 4px 16px rgba(0,0,0,.13); }
.plc__img {
    aspect-ratio: 1;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.plc__img img { width: 100%; height: 100%; object-fit: cover; }
.plc__img-placeholder { font-size: 2rem; color: #bbb; }
.plc__gender {
    position: absolute;
    top: .5rem;
    left: .5rem;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .2rem .5rem;
    border-radius: 99px;
    color: #fff;
    text-transform: uppercase;
}
.plc__body { padding: .75rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.plc__brand { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #999; }
.plc__name  { font-size: .88rem; font-weight: 600; line-height: 1.3; color: #111; }
.plc__colors { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .2rem; }
.plc__dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.12);
    display: inline-block;
}
.plc__dot--overflow {
    background: #eee;
    font-size: .6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}
.plc__price { font-size: 1rem; font-weight: 700; color: var(--brand, #c0392b); margin-top: auto; padding-top: .4rem; }
.plc__financing { font-size: .68rem; color: #999; }
.plc__btn {
    margin-top: .5rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: .35rem .75rem;
    font-size: .78rem;
    cursor: pointer;
    transition: background .2s;
}
.plc__btn:hover { background: #333; }

/* ── Pagination ──────────────────────────────────────── */
.pl-pagination { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: 2rem; }
.pl-pagination__btn {
    min-width: 36px; height: 36px;
    border: 1px solid #ddd;
    border-radius: .375rem;
    background: #fff;
    font-size: .85rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.pl-pagination__btn:hover:not(:disabled) { border-color: #111; background: #111; color: #fff; }
.pl-pagination__btn.active { border-color: #111; background: #111; color: #fff; font-weight: 700; }
.pl-pagination__btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Empty state ─────────────────────────────────────── */
.pl-empty { text-align: center; padding: 4rem 1rem; color: #888; }
.pl-empty i { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ── Loading skeleton ────────────────────────────────── */
.pl-skeleton { background: linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: .5rem; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Mobile filter button ────────────────────────────── */
.pl-mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 1rem;
    z-index: 1040;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: .5rem 1rem;
    font-size: .85rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
@media (max-width: 767px) {
    .pl-sidebar { display: none; }
    .pl-mobile-filter-btn { display: flex; align-items: center; gap: .4rem; }
}
