.sp-shop-hero { padding-top: .2rem; }
.sp-shop-hero__box { position: relative; display: grid; align-items: end; min-height: 230px; padding: clamp(1.5rem, 4vw, 2.8rem); border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 90% 0%, rgba(238, 177, 136, .45), transparent 50%), var(--sp-card); }
.sp-shop-hero__box.has-image { color: #fff; min-height: 300px; }
.sp-shop-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-shop-hero__box.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42, 10, 20, .7), transparent 75%); }
.sp-shop-hero__text { position: relative; z-index: 1; max-width: 640px; }
.sp-shop-hero__text h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 0 .4rem; }
.sp-shop-hero__text p { margin: 0; color: inherit; opacity: .8; }
.sp-shop-hero__box.has-image .sp-crumbs { color: rgba(255, 255, 255, .8); }

.sp-shop { padding: 2rem 0 1rem; }
.sp-shop__layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
.sp-filters { position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; }
.sp-filters__head { display: flex; justify-content: space-between; align-items: center; }
.sp-filters__head h2 { font-size: 1.6rem; margin: 0; }
.sp-filters__close { display: none; }
.sp-filter { border-bottom: 1px solid var(--sp-line); padding: .9rem 0; }
.sp-filter summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; }
.sp-filter summary::-webkit-details-marker { display: none; }
.sp-filter summary::after { content: "−"; color: var(--sp-muted); }
.sp-filter:not([open]) summary::after { content: "+"; }
.sp-filter__body { display: grid; gap: .55rem; padding-top: .8rem; font-size: .9rem; }
.sp-filter__links a { text-decoration: none; color: var(--sp-muted); }
.sp-filter__links a.is-sub { padding-left: 1rem; font-size: .86rem; }
.sp-filter__links a:hover, .sp-filter__links a.is-active { color: var(--sp-maroon); font-weight: 600; }
.sp-filter__chips, .sp-filter__swatches { display: flex; flex-wrap: wrap; gap: .4rem; }
.sp-chip { position: relative; cursor: pointer; }
.sp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sp-chip span { display: inline-flex; align-items: center; gap: .4rem; min-width: 44px; min-height: 36px; justify-content: center; padding: 0 .75rem; border: 1px solid var(--sp-line); border-radius: 999px; font-size: .82rem; font-weight: 500; background: #fff; }
.sp-chip span i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.sp-chip input:checked + span { border-color: var(--sp-maroon); background: var(--sp-maroon); color: #fff; }
.sp-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(130, 8, 44, .2); }
.sp-filter__price { display: flex; align-items: center; gap: .4rem; }
.sp-filter__price input { width: 100%; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--sp-line); border-radius: 10px; font: inherit; font-size: .88rem; }
.sp-filters__actions { display: grid; gap: .6rem; padding-top: 1rem; }
.sp-filters__clear { text-align: center; font-size: .86rem; color: var(--sp-maroon); }

.sp-toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.sp-toolbar__filter { display: none; min-height: 42px; }
.sp-toolbar__count { color: var(--sp-muted); font-size: .9rem; margin-right: auto; }
.sp-toolbar__sort { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--sp-muted); }
.sp-toolbar__sort select { font: inherit; color: var(--sp-ink); padding: .55rem 2rem .55rem .9rem; border: 1px solid var(--sp-line); border-radius: 999px; background: #fff; }
.sp-grid--shop { grid-template-columns: repeat(3, 1fr); }

.sp-empty { display: grid; justify-items: center; gap: .6rem; padding: 4rem 1rem; text-align: center; border-radius: var(--sp-radius); background: var(--sp-card); }
.sp-empty i { font-size: 1.8rem; color: var(--sp-muted); }
.sp-empty h2 { font-size: 2.2rem; margin: 0; }
.sp-empty p { margin: 0 0 .6rem; color: var(--sp-muted); }

.sp-pager { display: flex; justify-content: center; gap: .35rem; margin-top: 2.2rem; }
.sp-pager a, .sp-pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-weight: 500; }
.sp-pager a:hover { background: var(--sp-card); }
.sp-pager a.is-active { background: var(--sp-maroon); color: #fff; }

@media (max-width: 1100px) { .sp-grid--shop { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
    .sp-shop__layout { grid-template-columns: 1fr; }
    .sp-filters { position: fixed; inset: 0 auto 0 0; z-index: 85; width: min(340px, 88vw); max-height: none; padding: 1rem 1.2rem 1.5rem; background: #fff; transform: translateX(-105%); transition: transform .22s; box-shadow: 0 0 60px rgba(0, 0, 0, .2); }
    .sp-filters.is-open { transform: none; }
    .sp-filters__close { display: grid; }
    .sp-toolbar__filter { display: inline-flex; }
    .sp-toolbar__sort span { display: none; }
    body.has-filters::after { content: ""; position: fixed; inset: 0; z-index: 84; background: rgba(42, 10, 20, .45); }
}
.sp-shop__main { min-width: 0; }
@media (max-width: 520px) {
    .sp-toolbar { flex-wrap: wrap; gap: .6rem; }
    .sp-toolbar__count { order: 3; flex-basis: 100%; }
    .sp-toolbar__sort select { max-width: 170px; }
}
