:root {
    --shop-navy: #1d3f88;
    --shop-blue: #1d4ea1;
    --shop-red: #a51d2a;
    --shop-theme-gradient: linear-gradient(110deg, #82182a 0%, #1d3f88 100%);
    --shop-ink: #172033;
    --shop-muted: #687286;
    --shop-border: #e7ebf1;
    --shop-surface: #f6f8fb;
}

.shop-page {
    background: #fff;
}

.shop-hero {
    min-height: 330px;
    margin-top: 86px;
    position: relative;
    display: flex;
    align-items: center;
    background:
        linear-gradient(110deg, rgba(130, 24, 42, 0.94), rgba(29, 63, 136, 0.82)),
        url('../imgs/as.jpeg') center 42% / cover no-repeat;
}

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12), transparent 22%),
        linear-gradient(90deg, rgba(130, 24, 42, 0.16), rgba(29, 63, 136, 0.10) 60%, transparent 100%);
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
}

.shop-kicker,
.filter-eyebrow,
.results-label {
    display: block;
    margin-bottom: 10px;
    color: #73baf1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.shop-hero h1 {
    max-width: 720px;
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.08;
}

.shop-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.shop-content {
    padding: 48px 0 80px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.filter-panel {
    position: sticky;
    top: 112px;
    border: 1px solid var(--shop-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(18, 59, 99, 0.07);
    overflow: hidden;
}

.filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--shop-border);
}

.filter-heading h2 {
    margin: 0;
    color: var(--shop-ink);
    font-size: 1.35rem;
}

.filter-eyebrow {
    margin-bottom: 3px;
    color: var(--shop-blue);
    font-size: 0.68rem;
}

.filter-close,
.mobile-filter-button {
    display: none;
}

.filter-form {
    padding: 20px 22px 24px;
}

.filter-group {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--shop-border);
}

.filter-group:last-of-type {
    border-bottom: 0;
}

.filter-group > label,
.filter-label,
.price-label-row label {
    display: block;
    margin-bottom: 10px;
    color: var(--shop-ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 0.85rem;
}

.search-input-wrap input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--shop-border);
    border-radius: 8px;
    padding: 0 12px 0 36px;
    color: var(--shop-ink);
    outline: none;
    transition: 0.2s ease;
}

.search-input-wrap input:focus {
    border-color: var(--shop-blue);
    box-shadow: 0 0 0 3px rgba(5, 109, 182, 0.09);
}

.category-options {
    display: grid;
    gap: 7px;
}

.category-option {
    margin: 0;
    cursor: pointer;
}

.category-option input {
    position: absolute;
    opacity: 0;
}

.category-option span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--shop-muted);
    font-size: 0.88rem;
    transition: 0.2s ease;
}

.category-option span i {
    width: 18px;
    color: #91a0b5;
    text-align: center;
}

.category-option input:checked + span {
    border-color: rgba(5, 109, 182, 0.16);
    background: linear-gradient(90deg, rgba(165, 29, 42, 0.08), rgba(29, 78, 161, 0.08));
    color: var(--shop-navy);
    font-weight: 700;
}

.category-option input:checked + span i {
    color: var(--shop-blue);
}

.price-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label-row strong {
    color: var(--shop-blue);
    font-size: 0.86rem;
}

.price-filter input[type="range"] {
    width: 100%;
    accent-color: var(--shop-blue);
}

.range-limits {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    color: #98a2b3;
    font-size: 0.72rem;
}

.apply-filter {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--shop-theme-gradient);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.apply-filter:hover {
    background: linear-gradient(110deg, #1d3f88 0%, #82182a 100%);
    color: #fff;
    transform: translateY(-1px);
}

.clear-filter {
    display: block;
    margin-top: 12px;
    color: var(--shop-muted);
    font-size: 0.8rem;
    text-align: center;
    text-decoration: underline;
}

.shop-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.shop-toolbar h2 {
    margin: 0 0 4px;
    color: var(--shop-ink);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.shop-toolbar p {
    margin: 0;
    color: var(--shop-muted);
    font-size: 0.86rem;
}

.results-label {
    margin-bottom: 5px;
    color: var(--shop-blue);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.shop-product-card {
    min-width: 0;
    border: 1px solid var(--shop-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: 0.25s ease;
}

.shop-product-card:hover {
    border-color: rgba(29, 78, 161, 0.28);
    box-shadow: 0 16px 38px rgba(29, 63, 136, 0.14);
    transform: translateY(-5px);
}

.shop-product-image {
    height: 238px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7fa;
    text-decoration: none;
    overflow: hidden;
}

.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: 0.35s ease;
}

.shop-product-card:hover .shop-product-image img {
    transform: scale(1.04);
}

.offer-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 9px;
    background: linear-gradient(110deg, #a51d2a, #82182a);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

.shop-product-body {
    padding: 18px;
}

.shop-category {
    display: block;
    margin-bottom: 7px;
    color: var(--shop-red);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.shop-product-body h3 {
    min-height: 48px;
    margin: 0 0 7px;
    font-size: 1rem;
    line-height: 1.45;
}

.shop-product-body h3 a {
    color: var(--shop-ink);
    text-decoration: none;
}

.shop-product-body h3 a:hover {
    color: var(--shop-blue);
}

.shop-product-description {
    min-height: 42px;
    margin: 0 0 14px;
    color: var(--shop-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.shop-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--shop-border);
    padding-top: 13px;
}

.shop-product-footer strong {
    color: var(--shop-red);
    font-size: 1.12rem;
}

.view-product {
    color: var(--shop-blue);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.view-product i {
    margin-left: 4px;
    transition: 0.2s ease;
}

.view-product:hover i {
    transform: translateX(3px);
}

.no-products {
    border: 1px dashed #d6dde7;
    border-radius: 14px;
    padding: 70px 20px;
    background: #fafbfc;
    text-align: center;
}

.no-products-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf6fc;
    color: var(--shop-blue);
    font-size: 1.2rem;
}

.no-products h3 {
    margin-bottom: 6px;
    color: var(--shop-ink);
}

.no-products p {
    margin-bottom: 20px;
    color: var(--shop-muted);
}

.no-products .apply-filter {
    width: auto;
    display: inline-flex;
    padding: 0 24px;
}

.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 38px;
}

.shop-pagination a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--shop-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shop-muted);
    font-size: 0.82rem;
    text-decoration: none;
    transition: 0.2s ease;
}

.shop-pagination a:hover,
.shop-pagination a.active {
    border-color: var(--shop-blue);
    background: var(--shop-theme-gradient);
    color: #fff;
}

.page-dots {
    width: 28px;
    text-align: center;
    color: #98a2b3;
}

.filter-backdrop {
    display: none;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .shop-hero {
        min-height: 270px;
        margin-top: 70px;
    }

    .shop-hero h1 {
        max-width: 520px;
        font-size: 2.25rem;
    }

    .shop-content {
        padding-top: 28px;
    }

    .shop-layout {
        display: block;
    }

    .filter-panel {
        position: fixed;
        z-index: 2000;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(330px, 88vw);
        border-radius: 0;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }

    .filter-panel.open {
        transform: translateX(0);
    }

    .filter-close {
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #edf2f7;
        color: var(--shop-ink);
    }

    .filter-backdrop.open {
        position: fixed;
        z-index: 1999;
        inset: 0;
        display: block;
        background: rgba(10, 25, 47, 0.48);
    }

    body.filter-open {
        overflow: hidden;
    }

    .mobile-filter-button {
        height: 42px;
        border: 1px solid var(--shop-border);
        border-radius: 8px;
        display: flex;
        align-items: center;
        background: #fff;
        color: var(--shop-ink);
        padding: 0 14px;
        font-size: 0.82rem;
        font-weight: 700;
    }
}

@media (max-width: 576px) {
    .shop-hero {
        min-height: 230px;
    }

    .shop-hero h1 {
        font-size: 1.85rem;
    }

    .shop-hero p {
        font-size: 0.92rem;
    }

    .shop-toolbar {
        align-items: center;
    }

    .shop-toolbar h2 {
        font-size: 1.45rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .shop-product-image {
        height: 260px;
    }
}
