/* ============================================================
   SNEACKS — SHOP PAGE
============================================================ */

/* ============================================================
   BASE
============================================================ */

:root {
    --border: var(--color-border, #d8d4c8);
    --text-dark: var(--color-text-primary, #2c2c1e);
    --text-mid: var(--color-text-secondary, #4a4a38);
    --text-placeholder: #b0ad9e;
    --cream-card: #f7f4ee;
    --white: var(--color-white, #ffffff);
}

body {

    background: #f7f4ee;

}

/* ============================================================
   SHOP HEADER
============================================================ */

.shop-header {

    padding: 60px 0 45px;

    background: transparent;

    border-bottom: 1px solid var(--border);

    margin-bottom: 30px;

    text-align: center;

}

.shop-header h1 {

    font-family: 'Playfair Display', serif;

    font-size: clamp(38px, 5vw, 72px);

    font-weight: 400;

    line-height: 1;

    letter-spacing: -2px;

    color: var(--text-dark);

    max-width: 1000px;

    margin: 0 auto 18px;

}

.shop-header p {

    max-width: 480px;

    margin: 0 auto;

    font-size: 15px;

    line-height: 1.6;

    color: var(--text-mid);

}

/* ============================================================
   TOPBAR
============================================================ */

.shop-topbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 24px;

    padding-bottom: 24px;

    margin-bottom: 42px;

    border-bottom: 1px solid var(--border);

}

.mobile-filter-btn {

    display: none;

}

.shop-meta {

    font-size: 0.65rem;

    font-weight: 600;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    color: var(--text-placeholder);

}

.sort-dropdown {

    min-width: 220px;

}

.custom-select {

    width: 100%;

    height: 52px;

    border: 1px solid var(--border);

    background-color: var(--cream-card);

    padding: 0 2.5rem 0 18px;

    font-size: 0.85rem;

    color: var(--text-dark);

    outline: none;

    transition: all 0.25s ease;

    cursor: pointer;

}

.custom-select:focus {

    border-color: var(--text-dark);

}

/* ============================================================
   MAIN LAYOUT
============================================================ */

.shop-layout {

    display: grid;

    grid-template-columns: 260px 1fr;

    gap: 52px;

    align-items: start;

}

/* ============================================================
   SIDEBAR
============================================================ */

.shop-sidebar {

    position: sticky;

    top: 100px;

    background: transparent;

}

.sidebar-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-bottom: 18px;

    margin-bottom: 28px;

    border-bottom: 1px solid var(--border);

}

.mobile-only {

    display: none;

}

.filter-group {

    margin-bottom: 30px;

    padding-bottom: 30px;

    border-bottom: 1px solid rgba(216,212,200,0.5);

}

.filter-group:last-child {

    border-bottom: none;

}

.filter-title {

    font-size: 0.65rem;

    font-weight: 700;

    letter-spacing: 0.16em;

    text-transform: uppercase;

    color: var(--text-dark);

    margin-bottom: 22px;

}

/* ============================================================
   SEARCH
============================================================ */

.search-box {

    position: relative;

}

.filter-group .form-input {

    width: 100%;

    height: 52px;

    border: 1px solid var(--border);

    background: var(--cream-card);

    padding: 0 16px;

    font-size: 0.88rem;

    color: var(--text-dark);

    outline: none;

    transition: all 0.25s ease;

}

.filter-group .form-input:focus {

    border-color: var(--text-dark);

    background: var(--white);

}

.clear-search-btn {

    position: absolute;

    top: 50%;

    right: 16px;

    transform: translateY(-50%);

    color: var(--text-placeholder);

    text-decoration: none;

}

/* ============================================================
   FILTER LIST
============================================================ */

.filter-list {

    display: flex;

    flex-direction: column;

    gap: 16px;

}

.filter-list li {

    list-style: none;

}

/* ============================================================
   CHECKBOX
============================================================ */

.filter-checkbox {

    display: flex;

    align-items: center;

    gap: 12px;

    cursor: pointer;

    position: relative;

    font-size: 0.85rem;

    color: var(--text-mid);

    transition: color 0.2s ease;

}

.filter-checkbox:hover {

    color: var(--text-dark);

}

.filter-checkbox input {

    position: absolute;

    opacity: 0;

}

.checkmark {

    width: 16px;

    height: 16px;

    border: 1px solid var(--border);

    border-radius: 2px;

    position: relative;

    transition: all 0.25s ease;

    flex-shrink: 0;

}

.filter-checkbox input:checked ~ .checkmark {

    background: var(--text-dark);

    border-color: var(--text-dark);

}

.checkmark::after {

    content: '';

    position: absolute;

    left: 4px;

    top: 1px;

    width: 4px;

    height: 8px;

    border: solid white;

    border-width: 0 2px 2px 0;

    transform: rotate(45deg);

    opacity: 0;

}

.filter-checkbox input:checked ~ .checkmark::after {

    opacity: 1;

}

/* ============================================================
   PRICE INPUTS
============================================================ */

.price-inputs {

    display: flex;

    align-items: center;

    gap: 10px;

}

/* ============================================================
   FILTER BUTTONS
============================================================ */

.filter-actions {

    display: flex;

    flex-direction: column;

    gap: 12px;

}

.filter-actions .btn {

    width: 100%;

    height: 52px;

    font-size: 0.68rem;

    letter-spacing: 0.15em;

    text-transform: uppercase;

}

/* ============================================================
   PRODUCT GRID
============================================================ */

.shop-grid {

    width: 100%;

}

.grid.grid-3 {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 42px 28px;

}

/* ============================================================
   PRODUCT CARD
============================================================ */

.product-card {

    transition: transform 0.3s ease;

}

.product-card:hover {

    transform: translateY(-5px);

}

.product-image-wrapper {

    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #f5f2eb;

}

.product-image-wrapper img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    transition: transform 0.45s ease;

}

.product-card:hover .product-image-wrapper img {

    transform: scale(1.04);

}

/* ============================================================
   PRODUCT CONTENT
============================================================ */

.product-content {

    padding-top: 18px;

}

.product-brand {

    font-size: 0.62rem;

    font-weight: 600;

    letter-spacing: 0.16em;

    text-transform: uppercase;

    color: var(--text-placeholder);

    margin-bottom: 10px;

}

.product-title {

    font-family: 'Playfair Display', serif;

    font-size: 1.45rem;

    font-weight: 400;

    line-height: 1.3;

    color: var(--text-dark);

    margin-bottom: 12px;

    transition: color 0.25s ease;

}

.product-card:hover .product-title {

    color: #6d5c45;

}

.product-price {

    font-size: 1.35rem;

    font-weight: 600;

    color: var(--text-dark);

}

/* ============================================================
   PAGINATION
============================================================ */

.pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    margin-top: 70px;

}

.pagination a,
.pagination span {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    border: 1px solid var(--border);

    color: var(--text-dark);

    transition: all 0.25s ease;

}

.pagination a:hover {

    background: var(--text-dark);

    color: var(--white);

}

.pagination .active {

    background: var(--text-dark);

    color: var(--white);

    border-color: var(--text-dark);

}

/* ============================================================
   OVERLAY
============================================================ */

.sidebar-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.4);

    z-index: 999;

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

}

.sidebar-overlay.active {

    opacity: 1;

    visibility: visible;

}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1200px) {

    .grid.grid-3 {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media (max-width: 992px) {

    .shop-layout {

        grid-template-columns: 1fr;

    }

    .shop-sidebar {

        position: fixed;

        top: 0;

        left: -340px;

        width: 320px;

        height: 100vh;

        background: #f7f4ee;

        z-index: 1000;

        padding: 30px;

        overflow-y: auto;

        transition: left 0.35s ease;

        box-shadow: 0 0 40px rgba(0,0,0,0.08);

    }

    .shop-sidebar.active {

        left: 0;

    }

    .mobile-filter-btn {

        display: flex;

    }

    .mobile-only {

        display: flex;

    }

}

@media (max-width: 768px) {

    .shop-header {

        padding: 50px 20px 36px;

    }

    .shop-header h1 {

        font-size: 42px;

        letter-spacing: -1px;

    }

    .shop-header p {

        font-size: 14px;

    }

    .shop-topbar {

        flex-wrap: wrap;

        gap: 18px;

    }

    .sort-dropdown {

        width: 100%;

    }

    .grid.grid-3 {

        grid-template-columns: 1fr;

        gap: 32px;

    }

}

@media (max-width: 480px) {

    .shop-header h1 {

        font-size: 36px;

    }

    .shop-header p {

        font-size: 0.82rem;

    }

    .shop-sidebar {

        width: 100%;

        left: -100%;

    }

}

/* =========================================
   PREMIUM PAGINATION
========================================= */

.premium-pagination{

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 14px;

    margin-top: 80px;

    margin-bottom: 80px;

}

.pagination-numbers{

    display: flex;

    align-items: center;

    gap: 12px;

}

.pagination-number,
.pagination-arrow{

    width: 48px;

    height: 48px;

    border: 1px solid #d8d2c8;

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    color: #1e1e1e;

    font-size: 0.95rem;

    font-weight: 500;

    transition: all 0.3s ease;

    background: transparent;

}

.pagination-number:hover,
.pagination-arrow:hover{

    background: #1e1e1e;

    color: #f5f1ea;

    border-color: #1e1e1e; 

    transform: translateY(-2px);

}

.active-page{

    background: #1e1e1e;

    color: #f5f1ea;

    border-color: #1e1e1e;

    box-shadow: 0 8px 20px rgba(0,0,0,0.08);

}