/* EsigaraHane Phase 7 - Search & Catalog Filters */

.catalog-heading{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:28px
}

.catalog-heading h1{
    margin:4px 0 8px;
    font-size:clamp(30px,4vw,48px);
    line-height:1.05
}

.catalog-heading p{
    max-width:760px;
    margin:0;
    color:#6f7479;
    line-height:1.65
}

.catalog-reset-link{
    color:#111;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
    white-space:nowrap
}

.catalog-layout{
    display:grid;
    grid-template-columns:270px minmax(0,1fr);
    gap:28px;
    align-items:start
}

.catalog-filters{
    position:sticky;
    top:145px;
    min-width:0;
    border:1px solid #e4e7eb;
    border-radius:16px;
    background:#fff;
    padding:18px
}

.filter-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    padding-bottom:16px;
    border-bottom:1px solid #eceef1
}

.filter-head h3{
    margin:3px 0 0;
    font-size:18px
}

.filter-clear{
    color:#777d84;
    font-size:11px;
    font-weight:750;
    text-decoration:none
}

.filter-form{
    display:flex;
    flex-direction:column
}

.filter-group{
    padding:17px 0;
    border-bottom:1px solid #eceef1
}

.filter-group:last-of-type{
    border-bottom:0
}

.filter-group>label:first-child:not(.filter-check){
    display:block;
    margin-bottom:9px;
    font-size:11px;
    font-weight:800;
    color:#202327
}

.filter-group select,
.price-filter-grid input{
    width:100%;
    height:42px;
    min-width:0;
    border:1px solid #dfe3e8;
    border-radius:9px;
    background:#fff;
    padding:0 10px;
    color:#202327
}

.filter-check-list{
    max-height:220px;
    overflow:auto;
    padding-right:4px
}

.filter-check{
    display:flex;
    align-items:center;
    gap:9px;
    padding:7px 0;
    cursor:pointer;
    color:#3d4248;
    font-size:12px
}

.filter-check input{
    width:16px;
    height:16px;
    flex:0 0 auto
}

.stock-only{
    font-weight:700
}

.price-filter-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px
}

.filter-submit{
    width:100%;
    min-height:43px;
    margin-top:15px;
    border:0;
    border-radius:9px;
    background:#111;
    color:#fff;
    font-weight:800;
    cursor:pointer
}

.catalog-results{
    min-width:0
}

.category-toolbar,
.active-filter-summary{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:16px;
    padding:11px 14px;
    border:1px solid #e6e8eb;
    border-radius:11px;
    background:#fff;
    font-size:12px
}

.category-toolbar span,
.active-filter-summary span{
    color:#777d84
}

.category-toolbar a{
    color:#111;
    font-weight:750;
    text-decoration:none
}

.catalog-product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))
}

.catalog-product-card{
    min-width:0
}

.catalog-product-card .product-image{
    position:relative
}

.stock-badge{
    position:absolute;
    left:12px;
    bottom:12px;
    z-index:2;
    padding:5px 8px;
    border-radius:999px;
    font-size:10px;
    font-weight:850;
    background:#fff;
    color:#111;
    box-shadow:0 2px 8px rgba(0,0,0,.08)
}

.stock-badge.sold-out{
    background:#111;
    color:#fff
}

.stock-badge.low-stock{
    background:#fff5e8;
    color:#934e00
}

.variation-count{
    display:block;
    margin-top:-3px;
    color:#858b92;
    font-size:10px
}

.catalog-empty{
    grid-column:1/-1;
    min-height:260px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    border:1px dashed #d6dbe0;
    border-radius:16px;
    background:#fafafa;
    padding:30px
}

.catalog-empty h2{
    margin:0 0 8px
}

.catalog-empty p{
    margin:0 0 18px;
    color:#777d84
}

.catalog-pagination{
    margin-top:30px
}

@media(max-width:1100px){
    .catalog-layout{
        grid-template-columns:230px minmax(0,1fr)
    }

    .catalog-product-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
}

@media(max-width:820px){
    .catalog-heading{
        align-items:flex-start;
        flex-direction:column
    }

    .catalog-layout{
        grid-template-columns:1fr
    }

    .catalog-filters{
        position:static
    }

    .filter-check-list{
        max-height:160px
    }
}

@media(max-width:560px){
    .catalog-product-grid{
        grid-template-columns:1fr
    }

    .price-filter-grid{
        grid-template-columns:1fr
    }

    .category-toolbar,
    .active-filter-summary{
        align-items:flex-start;
        flex-direction:column
    }
}
