/*
Theme Name: Gallery Yalda
Theme URI: https://gallery-yalda.ir
Author: Gallery Yalda
Description: قالب فروشگاهی فارسی و راست‌چین با طراحی مدرن برای دکوراسیون منزل. سازگار با WooCommerce و Elementor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: gallery-yalda
*/
:root{
 --gy-ink:#262522;--gy-muted:#77736d;--gy-cream:#f7f4ee;--gy-paper:#fffefa;
 --gy-accent:#c56b4b;--gy-accent-dark:#a94f34;--gy-line:#e9e3da;--gy-sand:#e9dfd1;
 --gy-radius:18px;--gy-shadow:0 12px 35px rgba(48,38,28,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--gy-paper);color:var(--gy-ink);font-family:Tahoma,Arial,sans-serif;line-height:1.9}
a{color:inherit;text-decoration:none}
a:hover{color:var(--gy-accent)}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
.container{width:min(1180px,calc(100% - 40px));margin-inline:auto}
.site-top{background:var(--gy-ink);color:#fff;text-align:center;padding:7px 15px;font-size:12px;letter-spacing:.1px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,254,250,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--gy-line)}
.header-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.brand{display:flex;align-items:center;gap:11px;min-width:190px}
.brand-mark{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--gy-accent);color:#fff;font-family:Georgia,serif;font-size:23px}
.brand-name{font-family:Georgia,serif;font-size:23px;letter-spacing:.5px;line-height:1.1}
.brand-tag{display:block;color:var(--gy-muted);font:10px Tahoma,sans-serif;letter-spacing:1.7px;margin-top:5px}
.main-nav ul{display:flex;align-items:center;gap:27px;list-style:none;padding:0;margin:0;font-size:13px}
.header-actions{display:flex;align-items:center;gap:10px}
.header-icon{width:42px;height:42px;border:1px solid var(--gy-line);border-radius:50%;display:grid;place-items:center;font-size:17px}
.menu-toggle{display:none;border:0;background:none;font-size:25px}
.hero{padding:42px 0 34px}
.hero-panel{min-height:485px;border-radius:28px;overflow:hidden;position:relative;background:linear-gradient(90deg,rgba(31,28,25,.72),rgba(31,28,25,.08)),url('assets/images/hero.svg') center/cover;display:flex;align-items:center}
.hero-content{color:#fff;max-width:550px;padding:60px 7%}
.eyebrow{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:#f1c4ad;font-weight:bold}
.hero h1{font-size:clamp(34px,5vw,58px);line-height:1.35;margin:14px 0 16px;font-weight:700}
.hero p{font-size:15px;color:#f5eee8;max-width:440px;margin:0 0 27px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 25px;border-radius:999px;background:var(--gy-accent);color:white!important;font-size:13px;font-weight:bold;border:1px solid var(--gy-accent);transition:.2s}
.btn:hover{background:var(--gy-accent-dark);transform:translateY(-2px)}
.btn-light{background:#fff;color:var(--gy-ink)!important;border-color:#fff}
.section{padding:45px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}
.section-kicker{font-size:11px;color:var(--gy-accent);letter-spacing:1.8px;font-weight:bold}
.section-title{font-size:clamp(23px,3vw,32px);margin:4px 0 0;line-height:1.5}
.section-desc{color:var(--gy-muted);font-size:13px;margin:7px 0 0}
.text-link{font-size:13px;color:var(--gy-accent);font-weight:bold;white-space:nowrap}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}
.category-card{position:relative;min-height:230px;border-radius:var(--gy-radius);overflow:hidden;background:var(--gy-sand);isolation:isolate}
.category-card:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(25,22,19,.65),transparent 65%);z-index:1}
.category-card img{position:absolute;width:100%;height:100%;object-fit:cover;inset:0;transition:transform .5s}
.category-card:hover img{transform:scale(1.06)}
.category-card span{position:absolute;z-index:2;bottom:18px;right:20px;color:#fff;font-size:18px;font-weight:bold}
.category-card small{display:block;font-size:11px;font-weight:normal;color:#eee}
.promo-strip{background:var(--gy-cream);border-radius:24px;padding:30px 36px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.promo-strip h3{margin:0;font-size:22px}
.promo-strip p{margin:5px 0 0;color:var(--gy-muted);font-size:13px}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.product-card{border:1px solid var(--gy-line);border-radius:17px;overflow:hidden;background:#fff;transition:.25s;position:relative}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--gy-shadow)}
.product-thumb{aspect-ratio:1/1;background:var(--gy-cream);display:block;overflow:hidden}
.product-thumb img{width:100%;height:100%;object-fit:cover;transition:.4s}
.product-card:hover .product-thumb img{transform:scale(1.04)}
.product-info{padding:14px 15px 17px}
.product-title{font-size:14px;font-weight:bold;margin:0 0 5px}
.product-price{font-size:13px;color:var(--gy-accent);font-weight:bold}
.product-badge{position:absolute;top:12px;right:12px;background:#fff;border-radius:20px;padding:4px 10px;font-size:10px;color:var(--gy-accent)}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px; margin:0!important}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}
.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;border:1px solid var(--gy-line);border-radius:17px;padding:12px!important;overflow:hidden}
.woocommerce ul.products li.product a img{border-radius:12px;margin:0 0 12px!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;color:var(--gy-ink);padding:0 0 6px!important}
.woocommerce ul.products li.product .price{color:var(--gy-accent)!important;font-size:13px!important}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--gy-ink)!important;color:#fff!important;border-radius:30px!important;padding:11px 18px!important;font-size:12px!important}
.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--gy-accent)!important}
.woocommerce span.onsale{background:var(--gy-accent)!important;border-radius:20px!important;min-height:0!important;line-height:1.8!important;padding:2px 10px!important}
.site-footer{margin-top:55px;background:#292824;color:#f7f2eb;padding:55px 0 20px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:35px}
.footer-title{font-size:16px;margin:0 0 14px;color:#fff}
.footer-copy,.footer-links{font-size:12px;color:#c9c2b9}
.footer-links{list-style:none;margin:0;padding:0}
.footer-links li{margin:7px 0}
.footer-bottom{border-top:1px solid #494640;margin-top:35px;padding-top:17px;color:#aaa49c;font-size:11px;display:flex;justify-content:space-between;gap:15px}
.page-content{padding:38px 0 60px;min-height:45vh}
.entry-title{font-size:30px}
.woocommerce .woocommerce-breadcrumb{font-size:12px;color:var(--gy-muted)}
.woocommerce div.product .product_title{font-size:28px}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--gy-accent)}
.woocommerce div.product form.cart .button{padding:14px 25px!important}
.woocommerce-message,.woocommerce-info{border-top-color:var(--gy-accent)!important}
.woocommerce-message:before,.woocommerce-info:before{color:var(--gy-accent)!important}
.elementor-page .page-content{padding:0}
@media(max-width:900px){
 .main-nav{display:none;position:absolute;top:82px;right:0;left:0;background:#fff;border-bottom:1px solid var(--gy-line);padding:20px}
 .main-nav.is-open{display:block}.main-nav ul{display:block}.main-nav li{padding:9px 0}
 .menu-toggle{display:block}.brand{min-width:0}.header-inner{min-height:72px}
 .category-grid,.product-grid,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .footer-grid{grid-template-columns:repeat(2,1fr)}
 .hero-panel{min-height:410px}
}
@media(max-width:560px){
 .container{width:min(100% - 28px,1180px)}
 .site-top{font-size:10px}.brand-name{font-size:19px}.brand-mark{width:36px;height:36px}
 .header-actions .header-icon:first-child{display:none}
 .hero{padding-top:20px}.hero-panel{min-height:440px;background-position:58% center}
 .hero-content{padding:35px 25px}.hero h1{font-size:34px}.hero p{font-size:13px}
 .section{padding:32px 0}.section-head{align-items:start;flex-direction:column;gap:7px}
 .category-grid{gap:10px}.category-card{min-height:165px}.category-card span{font-size:15px;right:13px;bottom:12px}
 .product-grid,.woocommerce ul.products{gap:10px!important}
 .product-info{padding:10px}.product-title{font-size:12px}
 .promo-strip{padding:23px;display:block}.promo-strip .btn{margin-top:16px}
 .footer-grid{grid-template-columns:1fr 1fr;gap:22px}.footer-grid>div:first-child{grid-column:1/-1}
 .footer-bottom{display:block;text-align:center}.footer-bottom span{display:block;margin:5px}
}
