*{
    box-sizing:border-box
}

html{
    scroll-behavior:smooth
}

body{
    margin:0;
    background:#fff;
    color:#17151a;
    font-family:"Vazirmatn",Tahoma,sans-serif;
    line-height:1.8
}

a{
    text-decoration:none;
    color:inherit
}

button{
    font:inherit
}


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

.site-header{
    position:sticky;
    top:0;
    z-index:100;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(16px);
    border-bottom:1px solid #ece8e1;
    transition:.3s
}


.header-inner{
    height:78px;
    max-width:1320px;
    margin:auto;
    padding:0 30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px
}


/* BRAND */

.brand{
    display:flex;
    align-items:center;
    gap:9px;
    min-width:130px
}


.brand > img{
    width:30px;
    height:auto;
    object-fit:contain;
    display:block;
}

.brand-mark img{
    width:50%;
    height:50%;
    object-fit:cover;
}


.brand-text{
    display:flex;
    flex-direction:column;
    line-height:1.05
}


.brand-text strong{
    font-size:18px;
    letter-spacing:1px
}


.brand-text small{
    font-size:8px;
    letter-spacing:2.5px
}


/* DESKTOP NAV */

.desktop-nav{
    display:flex;
    align-items:center;
    gap:42px;
    font-weight:600
}


.desktop-nav a{
    position:relative;
    padding:8px 0;
    color:#3a373b
}


.desktop-nav a:after{
    content:"";
    position:absolute;
    bottom:0;
    right:0;
    width:0;
    height:2px;
    background:#c69a45;
    transition:.3s
}


.desktop-nav a:hover:after,
.desktop-nav a.active:after{
    width:100%
}


/* ACTIONS */

.header-actions{
    display:flex;
    align-items:center;
    gap:12px
}


.search-pill{
    height:32px;
    border:1px solid #dfc88e;
    background:#f5e9cf;
    border-radius:30px;
    padding:0 10px 0 8px;
    display:flex;
    align-items:center;
    gap:9px;
    font-size:12px;
    color:#504a43;
    cursor:pointer
}


.search-pill b{
    font-size:22px;
    font-weight:400;
    line-height:1
}


/* MOBILE MENU */

.menu-button{
    display:none;
    border:0;
    background:none;
    padding:8px
}


.menu-button span{
    display:block;
    width:24px;
    height:2px;
    background:#17151a;
    margin:5px
}


.mobile-nav{
    display:none
}


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

@media(max-width:760px){

.header-inner{
    height:68px;
    padding:0 17px
}


.desktop-nav{
    display:none
}


.menu-button{
    display:block
}


.mobile-nav{
    padding:0 20px 15px;
    flex-direction:column;
    border-top:1px solid #eee;
}


.mobile-nav.open{
    display:flex
}


.mobile-nav a{
    padding:12px 0;
    border-bottom:1px solid #f0ede8
}


.search-pill span{
    display:none
}


.search-pill{
    width:34px;
    justify-content:center;
    padding:0
}

}.products-hero{
    max-width:1320px;
    margin:auto;
    min-height:300px;
    padding:70px 30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid #eee9e1
}

.products-hero h1{
    font-size:clamp(42px,6vw,72px);
    line-height:1.15;
    margin:0
}

.products-hero h1 span,
.catalog-top h2{
    color:#9d7740
}

.products-hero p:not(.eyebrow){
    color:#777;
    font-size:16px
}

.eyebrow{
    font-size:10px;
    letter-spacing:3px;
    font-weight:800;
    margin:0 0 10px
}

.eyebrow.gold{
    color:#aa813f
}


.hero-decor{
    width:180px;
    height:180px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:
    radial-gradient(circle at 35% 30%,#ead7a8,#a78043 65%,#5d4322);
    color:#fff;
    font:100px Georgia,serif;
    box-shadow:0 25px 70px rgba(90,60,20,.16)
}


/* ================= CATALOG ================= */


.catalog-shell{
    max-width:1320px;
    margin:auto;
    padding:65px 30px 120px
}


.catalog-top{
    display:flex;
    justify-content:space-between;
    align-items:end;
    margin-bottom:35px
}


.catalog-top h2{
    font-size:38px;
    margin:0
}


.result-count{
    margin:3px 0 0;
    color:#8b8580;
    font-size:13px
}


.catalog-layout{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:35px;
    align-items:start
}


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


.filters{
    border:1px solid #e9e4dc;
    background:#fff;
    padding:20px;
    position:sticky;
    top:100px
}


.filter-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-bottom:17px;
    border-bottom:1px solid #eee9e2
}


.filter-header button{
    border:0;
    background:none;
    color:#9d7740;
    font-size:11px;
    cursor:pointer
}


.filter-search{
    display:block;
    margin:18px 0
}


.filter-search span{
    display:block;
    font-size:12px;
    font-weight:700;
    margin-bottom:8px
}


.filter-search input,
.price-inputs input{
    width:100%;
    height:40px;
    border:1px solid #ddd7ce;
    padding:0 10px;
    outline:none;
    font-family:inherit
}


.filter-search input:focus,
.price-inputs input:focus{
    border-color:#b9914b
}


.filter-group{
    padding:18px 0;
    border-top:1px solid #eee9e2
}


.filter-group h3{
    font-size:13px;
    margin:0 0 12px
}


.check-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    font-size:12px;
    color:#5e5955
}


.check-list label{
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer
}


.check-list input{
    accent-color:#9d7740
}


.price-inputs{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    gap:5px;
    align-items:center
}


.price-inputs input{
    min-width:0;
    font-size:10px
}


.price-inputs span{
    font-size:10px;
    color:#999
}


.apply-price{
    width:100%;
    height:34px;
    margin-top:8px;
    border:1px solid #caa967;
    background:#fbf6ec;
    color:#7b5b2d;
    cursor:pointer;
    font-family:inherit
}


/* ================= TOOLBAR ================= */


.toolbar{
    min-height:52px;
    border-bottom:1px solid #eae5dd;
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:24px
}


.sort{
    margin-right:auto;
    display:flex;
    align-items:center;
    gap:8px;
    color:#777;
    font-size:12px
}


.sort select{
    border:0;
    background:#fff;
    font-family:inherit;
    font-size:12px;
    outline:none;
    color:#302c30
}


.filter-chip-button,
.mobile-filter-btn{
    display:none
}


.active-filters{
    display:flex;
    gap:6px;
    flex-wrap:wrap
}


.active-chip{
    font-size:10px;
    background:#f5efe4;
    color:#775b32;
    padding:4px 9px;
    border-radius:20px
}.product-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px
}


.product-card{
    border:1px solid #ece7df;
    background:#fff;
    min-width:0;
    transition:.3s;
    position:relative
}


.product-card:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 45px rgba(30,20,10,.08)
}


.product-img{
    height:310px;
    background:#f2eee7;
    position:relative;
    overflow:hidden;
    display:grid;
    place-items:center
}


.product-img img{
    width:100%;
    height:100%;
    object-fit:cover
}


.image-fallback{
    font:54px Georgia,serif;
    color:#c1ad8b
}


.discount-badge{
    position:absolute;
    top:13px;
    right:13px;
    background:#5d3d67;
    color:#fff;
    padding:3px 8px;
    font-size:10px
}


.availability{
    position:absolute;
    top:13px;
    left:13px;
    background:rgba(255,255,255,.9);
    padding:3px 8px;
    font-size:9px;
    color:#6f6b67
}


.product-body{
    padding:16px
}


.product-body .category{
    font-size:10px;
    color:#a07a41
}


.product-body h3{
    font-size:17px;
    margin:3px 0
}


.notes{
    font-size:10px;
    color:#8b8580;
    display:block;
    min-height:20px
}


.price{
    margin-top:13px
}


.price del{
    display:block;
    font-size:10px;
    color:#aaa
}


.price strong{
    font-size:14px;
    color:#272229
}


.view-product{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-top:1px solid #eee9e2;
    margin-top:13px;
    padding-top:11px;
    font-size:11px;
    color:#98713a
}


/* LOADING */

.loading-card{
    height:440px;
    background:
    linear-gradient(90deg,#f2eee8,#faf8f5,#f2eee8);
    background-size:200% 100%;
    animation:shimmer 1.2s infinite
}


@keyframes shimmer{
    to{
        background-position:-200% 0
    }
}


/* EMPTY */

.empty-state{
    border:1px dashed #d9d0c3;
    text-align:center;
    padding:80px 25px;
    margin-top:10px
}


.empty-icon{
    width:68px;
    height:68px;
    border:2px solid #b18a4d;
    border-radius:50%;
    display:grid;
    place-items:center;
    margin:0 auto 20px;
    font:36px Georgia,serif;
    color:#9d7740
}


.empty-state h3{
    margin:0 0 8px
}


.empty-state p{
    color:#8b8580;
    font-size:13px
}


.empty-state button{
    background:#17151a;
    color:#fff;
    border:0;
    padding:10px 18px;
    font-family:inherit;
    cursor:pointer
}


/* PAGINATION */

.pagination{
    display:flex;
    justify-content:center;
    gap:7px;
    margin-top:35px
}


.page-button{
    min-width:36px;
    height:36px;
    border:1px solid #ded7cc;
    background:#fff;
    cursor:pointer
}


.page-button.active{
    background:#17151a;
    color:#fff;
    border-color:#17151a
}



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

footer{
    background:#f5f2ed;
    padding:65px 30px 20px
}


.footer-inner{
    max-width:1240px;
    margin:auto;
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1.4fr;
    gap:45px;
    padding-bottom:45px
}


.footer-inner>div:not(.footer-brand){
    display:flex;
    flex-direction:column;
    gap:7px
}


.footer-inner h4{
    margin:0 0 8px
}


.footer-inner a{
    font-size:12px;
    color:#666
}


.footer-brand p{
    color:#777;
    font-size:12px
}


.footer-bottom{
    max-width:1240px;
    margin:auto;
    border-top:1px solid #ddd6ca;
    padding-top:15px;
    display:flex;
    justify-content:space-between;
    color:#888;
    font-size:10px
}.drawer-backdrop{
    display:none
}


.mobile-filter-drawer{
    display:none
}


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

@media(max-width:1000px){

.desktop-nav{
    gap:22px
}


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


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

}



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

@media(max-width:760px){


.header-inner{
    height:68px;
    padding:0 16px
}


.desktop-nav{
    display:none
}


.menu-button{
    display:block
}


.mobile-nav{
    padding:0 20px 12px;
    border-top:1px solid #eee;
    flex-direction:column
}


.mobile-nav.open{
    display:flex
}


.mobile-nav a{
    padding:11px 0;
    border-bottom:1px solid #f0ede8
}


.search-pill span{
    display:none
}


.search-pill{
    width:34px;
    justify-content:center;
    padding:0
}



/* HERO */

.products-hero{
    min-height:245px;
    padding:45px 20px
}


.hero-decor{
    width:100px;
    height:100px;
    font-size:55px
}



/* CATALOG */

.catalog-shell{
    padding:45px 16px 80px
}


.catalog-top{
    align-items:start;
    flex-direction:column;
    gap:14px
}


.catalog-top h2{
    font-size:31px
}



.mobile-filter-btn{
    display:block;
    border:1px solid #c9b286;
    background:#fff;
    padding:8px 14px;
    font-family:inherit;
    font-size:11px
}


.catalog-layout{
    display:block
}


.filters{
    display:none
}


.toolbar{
    flex-wrap:wrap;
    padding-bottom:13px
}


.filter-chip-button{
    display:block;
    border:1px solid #ddd6ca;
    background:#fff;
    padding:7px 10px;
    font-family:inherit;
    font-size:10px
}


.sort{
    margin-right:0
}


.active-filters{
    order:3;
    width:100%
}



/* PRODUCTS */

.product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
}


.product-img{
    height:210px
}


.product-body{
    padding:11px
}


.product-body h3{
    font-size:14px
}


.notes{
    font-size:9px
}


.price strong{
    font-size:12px
}



/* FOOTER */

.footer-inner{
    grid-template-columns:1fr 1fr;
    gap:30px
}


.footer-brand{
    grid-column:1/-1
}


.footer-bottom{
    flex-direction:column;
    gap:5px
}



/* MOBILE FILTER DRAWER */

.mobile-filter-drawer{
    position:fixed;
    z-index:200;
    bottom:0;
    right:0;
    left:0;
    background:#fff;
    max-height:88vh;
    border-radius:18px 18px 0 0;
    padding:18px;
    transform:translateY(110%);
    transition:.3s;
    display:block;
    overflow:auto
}


.mobile-filter-drawer.open{
    transform:translateY(0)
}


.drawer-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    z-index:190;
    opacity:0;
    pointer-events:none;
    transition:.3s;
    display:block
}


.drawer-backdrop.open{
    opacity:1;
    pointer-events:auto
}


.drawer-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #eee;
    padding-bottom:12px;
    margin-bottom:12px
}


.drawer-head button{
    border:0;
    background:none;
    font-size:28px
}


.mobile-filter-drawer .filter-group{
    border-top:1px solid #eee
}


.mobile-filter-drawer .filter-search{
    display:block
}


.mobile-filter-drawer .apply-price{
    margin-bottom:10px
}


/* فیلترهای اصلی وقتی داخل دراور موبایل جابه‌جا می‌شن باید دیده بشن */
.mobile-filter-drawer .filters{
    display:block !important;
    position:static;
    border:0;
    padding:0;
    background:transparent
}

}



/* SMALL MOBILE */

@media(max-width:420px){


.product-grid{
    grid-template-columns:1fr 1fr
}


.product-img{
    height:180px
}


.product-body h3{
    font-size:13px
}


.hero-decor{
    display:none
}

}