/* ==========================================
   SHOP NAVBAR
   (now defined globally in style.css —
   do not restyle it here)
========================================== */


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

.shop-header {
    text-align: center;

    padding: 85px 20px 65px;
}

.shop-header p {
    margin: 0 0 12px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    color: #555555;
}

.shop-header h1 {
    margin: 0;

    font-size: 52px;

    line-height: 1.1;

    font-weight: 500;

    color: #111111;
}

.shop-header span {
    display: block;

    margin-top: 16px;

    font-size: 15px;

    color: #777777;
}


/* ==========================================
   SHOP CONTAINER
========================================== */

.shop-container {
    width: min(1200px, 90%);

    margin: 0 auto 100px;
}


/* ==========================================
   SHOP MESSAGE
========================================== */

.shop-message {
    padding: 60px 20px;

    text-align: center;

    color: #777777;

    font-size: 15px;
}


/* ==========================================
   PRODUCTS GRID
========================================== */

.products-grid {
    display: grid;

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

    gap: 32px;
}


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

.product-card {
    position: relative;

    min-width: 0;

    background: #ffffff;

    border: 1px solid #eeeeee;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);
}


/* ==========================================
   IMAGE WRAPPER
========================================== */

.product-card-image-wrapper {
    position: relative;

    width: 100%;

    aspect-ratio: 3 / 4;

    overflow: hidden;

    background: #f5f5f5;
}


/* ==========================================
   IMAGE LINK
========================================== */

.product-image-link {
    display: block;

    width: 100%;
    height: 100%;

    text-decoration: none;
}


/* ==========================================
   PRODUCT IMAGE
========================================== */

.product-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}


/* ==========================================
   IMAGE PLACEHOLDER
========================================== */

.product-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f5f5f5;

    color: #999999;

    font-size: 12px;

    letter-spacing: 1px;
}


/* ==========================================
   WISHLIST BUTTON
========================================== */

.wishlist-btn {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 42px;
    height: 42px;

    padding: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: #ffffff;

    color: #111111;

    font-size: 23px;

    line-height: 1;

    cursor: pointer;

    z-index: 10;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.wishlist-btn:hover {
    transform: scale(1.08);
}

.wishlist-btn.active {
    color: #e00000;
}


/* ==========================================
   PRODUCT INFO
========================================== */

.product-info {
    padding: 20px;
}


/* CATEGORY */

.product-category {
    margin: 0 0 8px;

    color: #777777;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* NAME */

.product-info h2 {
    margin: 0 0 15px;

    color: #111111;

    font-size: 19px;

    line-height: 1.35;

    font-weight: 500;
}


/* ==========================================
   PRODUCT BOTTOM
========================================== */

.product-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;
}


/* PRICE */

.product-price {
    color: #111111;

    font-size: 16px;

    font-weight: 700;
}


/* RATING */

.product-rating {
    color: #666666;

    font-size: 13px;

    white-space: nowrap;
}


/* ==========================================
   ADD TO CART
========================================== */

.add-cart-btn {
    width: 100%;

    margin-top: 18px;

    padding: 14px 18px;

    border: none;

    background: #111111;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.add-cart-btn:hover {
    opacity: 0.82;
}

.add-cart-btn:disabled {
    opacity: 0.55;

    cursor: not-allowed;
}


/* ==========================================
   FOOTER
========================================== */

.shop-footer {
    margin-top: 80px;

    padding: 55px 5% 25px;

    border-top: 1px solid #eeeeee;

    background: #ffffff;
}

.shop-footer-logo {
    display: inline-block;

    color: #111111;

    text-decoration: none;

    font-size: 21px;

    font-weight: 700;

    letter-spacing: 2px;
}

.shop-footer-logo span {
    color: #111111;
}

.shop-footer p {
    margin-top: 12px;

    color: #777777;

    font-size: 14px;
}

.shop-footer-bottom {
    margin-top: 40px;

    padding-top: 20px;

    border-top: 1px solid #eeeeee;

    color: #888888;

    font-size: 12px;
}



/* ==========================================
   SHOP FILTER / TOOLBAR
========================================== */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--fashion-line, #e9e4df);
}

.shop-toolbar-left,
.shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.results-count {
    color: #777;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border: 1px solid #ddd7d1;
    background: #fff;
    color: #111;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    cursor: pointer;
}

.clear-filters-btn {
    border: 0;
    background: transparent;
    color: #777;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    cursor: pointer;
}

.clear-filters-btn:hover { color: #111; }

.sort-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #777;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
}

.sort-control select {
    min-width: 160px;
    padding: 10px 28px 10px 12px;
    border: 1px solid #ddd7d1;
    background: #fff;
    color: #111;
    font-size: 11px;
    outline: none;
    cursor: pointer;
}

.shop-layout {
    position: relative;
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.filter-sidebar {
    position: sticky;
    top: 96px;
    padding: 24px 20px;
    border: 1px solid #e8e2dc;
    background: #fff;
}

.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee9e4;
}

.filter-sidebar-header > div > span,
.filter-section-title span,
.filter-search > label {
    color: #888;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

.filter-sidebar-header h2 {
    margin: 7px 0 0;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
}

.filter-close {
    display: none;
    width: 34px;
    height: 34px;
    border: 1px solid #e5dfda;
    background: #fff;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.filter-search { padding: 20px 0 4px; }
.filter-search > label { display: block; margin-bottom: 9px; }

.filter-search-box {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #cfc8c2;
}

.filter-search-box input {
    width: 100%;
    padding: 10px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #111;
    font-size: 13px;
}

.filter-search-box span { color: #888; font-size: 19px; }

.filter-section {
    padding: 21px 0;
    border-bottom: 1px solid #eee9e4;
}

.filter-section-title { margin-bottom: 13px; }

.category-filter-list,
.size-filter-list,
.color-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: #555;
    text-align: left;
    font-size: 12px;
    cursor: pointer;
}

.category-filter-btn:hover,
.category-filter-btn.active { color: #111; font-weight: 700; }
.category-filter-btn .category-count { color: #aaa; font-size: 10px; }

.category-filter-parent {
    margin-top: 3px;
    padding-left: 12px;
    border-left: 1px solid #eee9e4;
}

.category-filter-parent .category-filter-btn { font-size: 11px; }

.size-filter-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
}

.size-chip {
    min-width: 40px;
    padding: 9px 10px;
    border: 1px solid #ded8d2;
    background: #fff;
    color: #555;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
}

.size-chip:hover,
.size-chip.active { border-color: #111; background: #111; color: #fff; }

.color-filter-list { gap: 9px; }
.color-option { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.color-option input { width: 14px; height: 14px; accent-color: #111; cursor: pointer; }
.color-option span { color: #555; font-size: 12px; }

.price-inputs { display: grid; grid-template-columns: 1fr 12px 1fr; gap: 6px; align-items: end; }
.price-inputs label span { display: block; margin-bottom: 5px; color: #999; font-size: 8px; letter-spacing: .12em; }
.price-inputs input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 7px;
    border: 1px solid #ded8d2;
    outline: none;
    font-size: 11px;
}
.price-inputs input:focus { border-color: #111; }
.price-dash { color: #aaa; padding-bottom: 9px; text-align: center; }

.clear-filters-main {
    width: 100%;
    margin-top: 20px;
    padding: 12px 10px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    cursor: pointer;
}
.clear-filters-main:hover { opacity: .82; }

.filter-loading { color: #aaa; font-size: 11px; }

.shop-products-area { min-width: 0; }

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 0;
    margin: -5px 0 18px;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #e1dbd5;
    background: #faf8f6;
    color: #555;
    font-size: 10px;
}

.active-filter button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #888;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.active-filter button:hover { color: #111; }

@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; }
    .filter-sidebar {
        position: fixed;
        z-index: 1200;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(360px, 88vw);
        box-sizing: border-box;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .3s ease;
        box-shadow: 12px 0 40px rgba(0,0,0,.12);
    }
    .filter-sidebar.is-open { transform: translateX(0); }
    .filter-close { display: block; }
    .mobile-filter-btn { display: inline-flex; }
    .filter-overlay {
        position: fixed;
        inset: 0;
        z-index: 1100;
        display: none;
        background: rgba(17,17,17,.38);
        backdrop-filter: blur(2px);
    }
    .filter-overlay.is-visible { display: block; }
}

@media (max-width: 650px) {
    .shop-toolbar { align-items: center; margin-bottom: 20px; }
    .shop-toolbar-right { gap: 10px; }
    .clear-filters-btn { display: none; }
    .sort-control span { display: none; }
    .sort-control select { min-width: 130px; padding: 10px 8px; }
    .results-count { font-size: 9px; }
    .shop-layout { gap: 0; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-info { padding: 13px; }
    .product-info h2 { font-size: 14px; margin-bottom: 10px; }
    .product-category { font-size: 8px; }
    .product-price { font-size: 13px; }
    .product-rating { font-size: 10px; }
    .add-cart-btn { margin-top: 12px; padding: 11px 8px; font-size: 9px; letter-spacing: 1px; }
    .wishlist-btn { top: 9px; right: 9px; width: 34px; height: 34px; font-size: 18px; }
    .shop-message { padding: 45px 10px; }
}

@media (max-width: 400px) {
    .shop-toolbar { gap: 8px; }
    .sort-control select { min-width: 118px; font-size: 10px; }
    .mobile-filter-btn { padding: 10px 11px; }
    .products-grid { gap: 10px; }
    .product-info h2 { font-size: 13px; }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 24px;
    }

    .shop-header {
        padding-top: 65px;
    }

    .shop-header h1 {
        font-size: 44px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 650px) {

    .shop-header {
        padding: 55px 20px 45px;
    }

    .shop-header h1 {
        font-size: 38px;
    }

    .shop-header span {
        font-size: 14px;
    }

    .shop-container {
        width: 90%;
    }

    .products-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .product-info {
        padding: 18px;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 400px) {

    .shop-header h1 {
        font-size: 34px;
    }

}
body.filters-locked { overflow: hidden; }


/* Final responsive overrides */
@media (max-width: 650px) {
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 400px) {
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
}


/* ==========================================
   CLICK-TO-OPEN FILTER DRAWER
   Filters stay hidden until FILTER is clicked.
========================================== */

.shop-layout {
    display: block;
}

.shop-products-area {
    width: 100%;
}

.mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1px solid #dcd5cf;
    background: #fff;
    color: #111;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.mobile-filter-btn:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

.filter-sidebar {
    position: fixed;
    z-index: 1201;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(430px, 92vw);
    max-width: 430px;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 28px 26px 30px;
    border: 0;
    border-left: 1px solid #e8e2dc;
    background: #fff;
    box-shadow: -18px 0 50px rgba(17,17,17,.14);
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.22,.61,.36,1);
}

.filter-sidebar.is-open {
    transform: translateX(0);
}

.filter-close {
    display: block;
}

.filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    background: rgba(17,17,17,.38);
    backdrop-filter: blur(3px);
}

.filter-overlay.is-visible {
    display: block;
}

body.filters-locked {
    overflow: hidden;
}

@media (max-width: 900px) {
    .filter-sidebar {
        width: min(390px, 90vw);
        max-width: 390px;
        right: 0;
        left: auto;
        transform: translateX(105%);
        box-shadow: -14px 0 40px rgba(17,17,17,.16);
    }

    .filter-sidebar.is-open {
        transform: translateX(0);
    }

    .filter-close {
        display: block;
    }

    .mobile-filter-btn {
        display: inline-flex;
    }

    .filter-overlay {
        display: none;
    }

    .filter-overlay.is-visible {
        display: block;
    }

    .shop-layout {
        display: block;
    }
}

@media (max-width: 650px) {
    .shop-toolbar {
        align-items: center;
    }

    .mobile-filter-btn {
        padding: 10px 12px;
    }
}
