/* ============================================================
   SHOP PAGE
============================================================ */

.shop-hero {
    padding: 90px 0 80px;
    background: var(--cream);
}

.shop-hero h1 {
    font-size: clamp(55px, 8vw, 100px);
    line-height: 0.86;
    letter-spacing: -0.065em;
    font-weight: 950;
}

.shop-hero h1 span {
    color: var(--green-dark);
}

.shop-hero > .container > p:last-child {
    max-width: 500px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 15px;
}


/* ============================================================
   SHOP SECTION
============================================================ */

.shop-section {
    padding: 60px 0 110px;
}


/* ============================================================
   TOOLBAR
============================================================ */

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--border);
}

.shop-result-count {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.shop-result-count span {
    color: var(--ink);
    font-weight: 900;
}

.shop-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-button {
    display: none;

    padding: 11px 16px;

    border: 1px solid var(--border);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
}

.sort-select {
    min-width: 170px;

    padding: 11px 14px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--white);

    outline: none;

    font-size: 11px;
    font-weight: 700;
}


/* ============================================================
   SHOP LAYOUT
============================================================ */

.shop-layout {
    display: grid;

    grid-template-columns: 220px 1fr;

    gap: 40px;

    padding-top: 35px;
}


/* ============================================================
   FILTER SIDEBAR
============================================================ */

.filter-sidebar {
    position: sticky;
    top: 20px;

    align-self: start;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 30px;
}

.filter-header h2 {
    font-size: 18px;
    font-weight: 900;
}

.filter-header button {
    display: none;

    font-size: 25px;
}


/* ============================================================
   FILTER GROUP
============================================================ */

.filter-group {
    padding: 25px 0;

    border-bottom: 1px solid var(--border);
}

.filter-group:first-of-type {
    padding-top: 0;
}

.filter-group h3 {
    margin-bottom: 17px;

    font-size: 10px;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 12px;

    color: #555;

    font-size: 11px;

    cursor: pointer;
}

.filter-group input[type="checkbox"] {
    accent-color: var(--green-dark);
}

.filter-external-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;

    margin-bottom: 12px;

    color: #555;

    font-size: 11px;
    font-weight: 700;
}

.filter-external-link:hover {
    color: var(--ink);
}

.filter-external-link i {
    width: 13px;
    height: 13px;
}


/* ============================================================
   SIZE OPTIONS
============================================================ */

.size-options {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 6px;
}

.size-options button {
    height: 35px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--white);

    font-size: 10px;
    font-weight: 800;
}

.size-options button:hover,
.size-options button.selected {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}


/* ============================================================
   PRICE
============================================================ */

.filter-group input[type="range"] {
    width: 100%;

    accent-color: var(--ink);
}

.price-range {
    display: flex;
    justify-content: space-between;

    margin-top: 10px;

    color: var(--muted);

    font-size: 9px;
}

.price-range strong {
    color: var(--ink);
}


/* ============================================================
   CLEAR FILTERS
============================================================ */

.clear-filters {
    width: 100%;

    margin-top: 20px;

    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
}

.clear-filters:hover {
    background: var(--ink);
    color: var(--white);
}


/* ============================================================
   PRODUCT GRID
============================================================ */

.shop-products {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 35px 18px;
}


/* Product card */
.shop-products .product-card {
    min-width: 0;
}


/* ============================================================
   EMPTY STATE
============================================================ */

.empty-products {
    grid-column: 1 / -1;

    padding: 100px 20px;

    text-align: center;
}

.empty-products h2 {
    font-size: 35px;
    font-weight: 900;
}

.empty-products p {
    margin-top: 10px;

    color: var(--muted);

    font-size: 13px;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 1000px) {

    .shop-layout {
        grid-template-columns: 190px 1fr;
        gap: 25px;
    }

    .shop-products {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 760px) {

    .shop-hero {
        padding: 60px 0;
    }

    .shop-section {
        padding: 40px 0 80px;
    }

    .shop-toolbar {
        align-items: center;
    }

    .filter-button {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .shop-layout {
        display: block;
    }

    .filter-sidebar {
        position: fixed;

        top: 0;
        left: 0;

        z-index: 1000;

        width: min(330px, 90%);

        height: 100vh;

        padding: 30px 25px;

        background: var(--cream);

        overflow-y: auto;

        transform: translateX(-100%);

        transition: transform 0.3s ease;
    }

    .filter-sidebar.open {
        transform: translateX(0);
    }

    .filter-header button {
        display: block;
    }

    .shop-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .sort-select {
        min-width: 130px;
    }
}


@media (max-width: 450px) {

    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .shop-controls {
        width: 100%;
    }

    .filter-button,
    .sort-select {
        flex: 1;
    }

    .shop-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 10px;
    }
}