/*
Theme Name: Asay Store Atelier
Theme URI: https://asaystore.ir
Author: Asay Store
Description: قالب اختصاصی فروشگاه آسای استور؛ فارسی، راست‌چین و سازگار با ووکامرس.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: asaystore-atelier
*/
:root{--ink:#20352d;--green:#1e4a3b;--green-deep:#153a2f;--clay:#c66047;--sand:#e8d8c2;--cream:#fbf8f2;--paper:#fffdfa;--muted:#7b817a;--line:#e9e4dc;--shadow:0 22px 55px rgba(34,49,39,.09)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Tahoma,"Segoe UI",sans-serif;font-size:15px;line-height:1.85;direction:rtl}
body,button,input,select,textarea{font-family:Tahoma,"Segoe UI",sans-serif}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;vertical-align:middle}
button,input{font:inherit}
.container{width:min(1240px,calc(100% - 48px));margin-inline:auto}
.demo-ribbon{height:34px;display:flex;align-items:center;justify-content:center;gap:9px;background:var(--green-deep);color:#f8f4ec;font-size:11px;letter-spacing:.01em}
.demo-ribbon__dot{width:6px;height:6px;border-radius:50%;background:#e2a180;box-shadow:0 0 0 4px rgba(226,161,128,.13)}
.site-header{position:relative;z-index:10;background:var(--paper)}
.header-main{height:94px;display:grid;grid-template-columns:190px minmax(280px,1fr) 210px;align-items:center;gap:28px}
.brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.brand__mark{width:43px;height:43px;border-radius:15px 15px 15px 4px;background:var(--green);display:grid;place-items:center;color:#fff;font-size:25px;font-weight:bold;transform:rotate(-5deg)}
.brand__text{display:flex;flex-direction:column;line-height:1.25}
.brand__text strong{font-size:19px;letter-spacing:-.04em}
.brand__text small{font-size:9px;direction:ltr;text-align:right;letter-spacing:.22em;color:var(--muted);margin-top:4px}
.header-search{height:47px;display:flex;align-items:center;gap:10px;padding:0 15px;border:1px solid var(--line);border-radius:9px;background:#f8f6f1}
.header-search svg{width:18px;height:18px;fill:none;stroke:#758178;stroke-width:1.7}
.header-search input[type=search]{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:13px}
.header-search input::placeholder{color:#8a8c85}
.header-search button{border:0;background:none;color:var(--green);font-size:12px;font-weight:bold;cursor:pointer;white-space:nowrap}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px}
.icon-link{position:relative;display:inline-flex;align-items:center;gap:6px;color:var(--ink);font-size:11px}
.icon-link svg{width:21px;height:21px;fill:none;stroke:var(--green);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.cart-count{position:absolute;top:-9px;right:10px;min-width:17px;height:17px;padding:0 4px;border-radius:20px;display:grid;place-items:center;background:var(--clay);color:#fff;font-size:9px}
.menu-toggle{display:none}
.nav-wrap{border-top:1px solid #f0ede8;border-bottom:1px solid #f0ede8}
.primary-nav{height:48px;display:flex;align-items:center;gap:34px;font-size:12px;color:#4e5b53}
.primary-nav a{transition:color .2s}
.primary-nav a:hover,.section-link:hover,.text-link:hover{color:var(--clay)}
.nav-note{margin-right:auto;color:#8c9089;font-size:11px}
.hero-section{height:530px;position:relative;overflow:hidden;background:#ecddc9}
.hero-section__photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 52%}
.hero-section__shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(248,239,225,.12) 0%,rgba(248,239,225,.05) 42%,rgba(248,239,225,.04) 100%);pointer-events:none}
.hero-section__inner{height:100%;position:relative}
.hero-copy{position:absolute;left:5.5%;top:50%;transform:translateY(-50%);width:min(390px,37%);text-align:right}
.eyebrow{display:inline-flex;align-items:center;gap:9px;color:var(--clay);font-size:10px;font-weight:bold;letter-spacing:.08em}
.eyebrow i{width:19px;height:1px;background:var(--clay)}
.hero-copy h1{margin:16px 0 10px;color:#24372f;font-size:clamp(40px,5vw,64px);line-height:1.2;letter-spacing:-.06em;font-weight:800}
.hero-copy h1 em{font-style:normal;color:var(--green)}
.hero-copy p{max-width:340px;margin:0;color:#5b6058;font-size:14px;line-height:2.1}
.hero-actions{display:flex;align-items:center;gap:23px;margin-top:27px}
.button{min-height:48px;padding:0 21px;display:inline-flex;justify-content:center;align-items:center;gap:18px;border-radius:6px;font-size:12px;font-weight:bold;transition:transform .2s,background .2s}
.button:hover{transform:translateY(-2px)}
.button span,.section-link span{font-size:19px;line-height:1}
.button--dark{background:var(--green);color:white}
.button--dark:hover{background:var(--green-deep);color:white}
.button--light{background:#fffaf1;color:var(--green)}
.text-link{font-size:12px;font-weight:bold;color:var(--green)}
.hero-caption{display:flex;align-items:center;gap:10px;margin-top:47px;color:#706e65;font-size:10px}
.hero-caption__line{width:35px;height:1px;background:#aa775e}
.hero-stamp{position:absolute;right:2%;bottom:36px;width:83px;height:83px;border-radius:50%;border:1px solid rgba(255,255,255,.68);background:rgba(255,250,240,.63);backdrop-filter:blur(8px);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.2;color:var(--green);transform:rotate(-8deg)}
.hero-stamp span{font-size:9px;letter-spacing:.18em;direction:ltr}
.hero-stamp b{font-size:11px;margin:3px 0}
.hero-stamp small{font-size:7px;letter-spacing:.1em;direction:ltr}
.intro-strip{display:grid;grid-template-columns:repeat(3,1fr);padding:25px 15px;border-bottom:1px solid var(--line)}
.intro-strip__item{display:flex;align-items:center;justify-content:center;gap:12px;border-left:1px solid var(--line)}
.intro-strip__item:last-child{border-left:0}
.intro-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#f4eee5;color:var(--clay);font-size:18px}
.intro-strip__item strong,.intro-strip__item small{display:block}
.intro-strip__item strong{font-size:12px}
.intro-strip__item small{margin-top:2px;color:var(--muted);font-size:10px}
.section-block{padding-top:77px;padding-bottom:78px}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:26px}
.section-heading h2,.section-heading h1{margin:5px 0 0;font-size:28px;line-height:1.4;letter-spacing:-.04em;color:var(--ink)}
.section-link{display:inline-flex;align-items:center;gap:9px;color:var(--green);font-size:11px;font-weight:bold;padding-bottom:5px}
.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.category-card{height:240px;position:relative;overflow:hidden;border-radius:8px;background:#ded2c0;isolation:isolate}
.category-card:before{content:"";position:absolute;inset:0;background-image:linear-gradient(0deg,rgba(18,40,31,.71),rgba(18,40,31,.02) 75%),var(--category-image);background-position:center;background-size:cover;transition:transform .5s;z-index:-1}
.category-card:hover:before{transform:scale(1.045)}
.category-card--green:before{background-image:linear-gradient(0deg,rgba(18,40,31,.76),rgba(18,40,31,.03) 82%),var(--category-image)}
.category-card--sand:before{background-image:linear-gradient(0deg,rgba(72,54,36,.72),rgba(72,54,36,.02) 78%),var(--category-image)}
.category-card--clay:before{background-image:linear-gradient(0deg,rgba(74,39,29,.72),rgba(74,39,29,.02) 78%),var(--category-image)}
.category-card__copy{position:absolute;right:22px;bottom:20px;color:#fff;display:flex;flex-direction:column}
.category-card__copy small{font-size:10px;opacity:.82}
.category-card__copy strong{font-size:20px;margin-top:4px}
.category-card__arrow{position:absolute;left:18px;top:17px;width:31px;height:31px;border:1px solid rgba(255,255,255,.65);border-radius:50%;display:grid;place-items:center;color:white;font-size:16px}
.featured-section{background:#f8f6f1}
.featured-section .section-block{padding-top:69px;padding-bottom:76px}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.product-card{min-width:0;border-radius:8px;background:#fff;overflow:hidden;border:1px solid #efede8;transition:transform .24s,box-shadow .24s}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.product-card__image{height:auto;aspect-ratio:1/1;display:block;position:relative;overflow:hidden;background:#f5f0e7}
.product-card__image img{width:100%;height:100%;object-fit:cover;transition:transform .45s}
.product-card:hover .product-card__image img{transform:scale(1.035)}
.product-card__badge{position:absolute;z-index:1;top:12px;right:12px;padding:4px 8px;border-radius:30px;background:rgba(255,253,250,.92);color:#8e5847;font-size:9px}
.product-card__quick{position:absolute;left:12px;bottom:12px;padding:7px 10px;background:rgba(255,253,250,.94);border-radius:4px;color:var(--green);font-size:10px;font-weight:bold;opacity:0;transform:translateY(5px);transition:.2s}
.product-card:hover .product-card__quick{opacity:1;transform:translateY(0)}
.product-card__body{padding:13px 14px 15px}
.product-card__category{display:block;color:#9a7967;font-size:10px}
.product-card h3{min-height:48px;margin:5px 0 9px;font-size:13px;line-height:1.7;font-weight:bold}
.product-card h3 a:hover{color:var(--clay)}
.product-card__bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f0eee8;padding-top:10px}
.product-card__price{font-size:12px;font-weight:bold;color:var(--green)}
.product-card__price .amount{font-weight:bold}
.product-card__price del{color:#96958e;font-size:10px}
.product-card__price ins{text-decoration:none}
.product-card__arrow{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#f5f0e7;color:var(--green);font-size:16px}
.story-section{padding-top:72px;padding-bottom:20px}
.story-card{min-height:330px;position:relative;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;border-radius:9px;background:var(--green);color:white}
.story-card__image{background-image:linear-gradient(0deg,rgba(26,56,44,.12),rgba(26,56,44,.02)),var(--story-image);background-position:center 56%;background-size:cover;min-height:330px}
.story-card__copy{padding:45px 46px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.story-card__copy .eyebrow{color:#e5ae90}
.story-card__copy h2{max-width:400px;margin:10px 0 9px;color:#fff;font-size:27px;line-height:1.55}
.story-card__copy p{max-width:440px;margin:0;color:rgba(255,255,255,.75);font-size:12px;line-height:2.2}
.story-card__copy .button{margin-top:20px}
.closing-cta{display:flex;align-items:center;gap:17px;padding-top:62px;padding-bottom:72px}
.closing-cta__spark{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#f4eee5;color:var(--clay);font-size:23px}
.closing-cta h2{margin:0;font-size:21px}
.closing-cta .button{margin-right:auto}
.site-footer{background:#203c32;color:#fff}
.footer-main{display:grid;grid-template-columns:1.45fr .8fr .8fr 1.15fr;gap:45px;padding-top:52px;padding-bottom:45px}
.brand--footer .brand__mark{background:#f3e8d9;color:var(--green)}
.brand--footer .brand__text strong{color:#fff}
.brand--footer .brand__text small{color:#c1c9c1}
.footer-brand p{max-width:270px;color:#c3cbc4;font-size:11px;line-height:2.1;margin:17px 0 0}
.footer-col{display:flex;flex-direction:column;gap:9px}
.footer-col h3{font-size:13px;margin:0 0 7px;color:#fff}
.footer-col a{font-size:11px;color:#c3cbc4}
.footer-col a:hover{color:#e9b394}
.footer-note{align-self:center;border-right:1px solid rgba(255,255,255,.18);padding-right:22px;display:flex;flex-direction:column}
.footer-note__icon{color:#e2a27f;font-size:22px}
.footer-note strong{margin:3px 0 2px;font-size:13px}
.footer-note small{color:#c3cbc4;font-size:10px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);font-size:10px;color:#c3cbc4}
.footer-bottom .container{min-height:47px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.page-content-wrap{min-height:52vh;padding:57px 0 80px;background:#fbfaf7}
.text-page{max-width:900px}
.text-page h1{margin:7px 0 25px;font-size:34px}
.page-entry{background:#fff;border:1px solid var(--line);border-radius:8px;padding:30px}
.empty-note{padding:30px;background:#fff;border:1px solid var(--line);border-radius:8px;color:var(--muted);text-align:center}
.archive-heading{margin-bottom:24px}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.post-card{border:1px solid var(--line);background:#fff;border-radius:8px;overflow:hidden}
.post-card img{width:100%;aspect-ratio:1.4;object-fit:cover}
.post-card h2,.post-card p{margin:15px 17px}
.post-card h2{font-size:17px}
.post-card p{font-size:12px;color:var(--muted)}
.woocommerce .woocommerce-breadcrumb{color:var(--muted);font-size:11px;margin:0 0 25px}
.woocommerce .woocommerce-breadcrumb a{color:var(--green)}
.woocommerce .woocommerce-products-header__title,.woocommerce div.product .product_title{color:var(--ink);font-size:29px;letter-spacing:-.04em}
.woocommerce .woocommerce-result-count,.woocommerce .woocommerce-ordering{font-size:11px;color:var(--muted)}
.woocommerce .woocommerce-ordering select,.woocommerce select,.woocommerce input[type=text],.woocommerce input[type=email],.woocommerce input[type=tel],.woocommerce input[type=password],.woocommerce textarea{border:1px solid var(--line);border-radius:5px;padding:10px 12px;background:#fff;color:var(--ink)}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:20px 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;padding:0 0 14px!important;border:1px solid #efede8;border-radius:8px;background:white;overflow:hidden}
.woocommerce ul.products li.product a img{width:100%;aspect-ratio:1;object-fit:cover;margin:0 0 12px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0 14px;font-size:13px;line-height:1.7}
.woocommerce ul.products li.product .price{padding:0 14px;color:var(--green);font-weight:bold;font-size:12px}
.woocommerce ul.products li.product .button{margin:8px 14px 0;background:var(--green);color:#fff;border-radius:4px;font-size:10px;padding:11px 14px}
.woocommerce span.onsale{top:12px;right:12px;left:auto;min-height:0;padding:5px 10px;border-radius:20px;background:var(--clay);font-size:10px;line-height:1.4}
.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:44px}
.woocommerce div.product div.images,.woocommerce div.product div.summary{width:100%;float:none;margin:0}
.woocommerce div.product div.images img{border-radius:8px}
.woocommerce div.product .summary .price{color:var(--green);font-weight:bold;font-size:20px}
.woocommerce div.product form.cart .button,.woocommerce button.button,.woocommerce a.button,.woocommerce input.button{background:var(--green);color:white;border-radius:5px;font-size:12px;min-height:42px}
.woocommerce .quantity .qty{min-height:42px;border:1px solid var(--line);border-radius:5px}
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info,.woocommerce .woocommerce-error{border-top-color:var(--green);background:#f3f7f2}
.woocommerce .woocommerce-message:before,.woocommerce .woocommerce-info:before{color:var(--green)}
.woocommerce table.shop_table{border-radius:7px;border-color:var(--line);font-size:12px}
.woocommerce table.shop_table th{color:var(--green)}
.woocommerce .cart-collaterals .cart_totals,.woocommerce form.checkout_coupon,.woocommerce form.login,.woocommerce form.register{border:1px solid var(--line);border-radius:8px;background:white;padding:24px}
.woocommerce nav.woocommerce-pagination ul{border:0}
.woocommerce nav.woocommerce-pagination ul li{border:0;margin:2px}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{border-radius:4px;background:#f1eee8}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--green);color:white}
.woocommerce .star-rating{color:#c58b50}
.woocommerce .woocommerce-tabs ul.tabs li{border-color:var(--line);background:#f5f2ec;border-radius:5px 5px 0 0}
.woocommerce .woocommerce-tabs ul.tabs li.active{background:#fff}
.woocommerce .woocommerce-tabs ul.tabs li a{font-size:11px}
.woocommerce .related>h2{font-size:21px;margin:40px 0 18px}
@media(max-width:950px){
 .container{width:min(100% - 34px,760px)}
 .header-main{grid-template-columns:150px minmax(180px,1fr) 150px;gap:14px;height:82px}
 .header-actions{gap:12px}.icon-link span:not(.cart-count){display:none}
 .primary-nav{gap:22px}.nav-note{display:none}
 .hero-section{height:470px}.hero-copy{width:42%;left:4%}.hero-copy h1{font-size:48px}
 .product-grid,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
 .footer-main{grid-template-columns:1fr 1fr;gap:30px}
}
@media(max-width:640px){
 .container{width:calc(100% - 28px)}
 .demo-ribbon{height:auto;min-height:32px;padding:5px 12px;text-align:center;font-size:9px}
 .header-main{height:auto;min-height:73px;grid-template-columns:36px 1fr auto;gap:11px;padding-top:9px;padding-bottom:10px}
 .menu-toggle{width:34px;height:34px;border:1px solid var(--line);background:transparent;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;grid-column:1;grid-row:1}
 .menu-toggle span{width:15px;height:1.5px;background:var(--green)}
 .brand{grid-column:2;grid-row:1}.brand__mark{width:36px;height:36px;font-size:21px;border-radius:12px 12px 12px 3px}
 .brand__text strong{font-size:16px}.brand__text small{font-size:7px}
 .header-actions{grid-column:3;grid-row:1;gap:10px}.icon-link svg{width:20px;height:20px}.account-link{display:none}
 .cart-count{right:9px}
 .header-search{grid-column:1 / -1;grid-row:2;height:40px;margin-top:2px}
 .header-search button{font-size:10px}
 .nav-wrap{border:0}
 .primary-nav{display:none;height:auto;width:100%;padding:8px 14px 14px;flex-direction:column;align-items:stretch;gap:0;background:#fff;border-top:1px solid var(--line)}
 .primary-nav.is-open{display:flex}
 .primary-nav a{padding:10px 3px;border-bottom:1px solid #f3f0eb}
 .hero-section{height:540px}
 .hero-section__photo{object-position:65% center}
 .hero-section__shade{background:linear-gradient(0deg,rgba(250,245,237,.96) 0%,rgba(250,245,237,.87) 47%,rgba(250,245,237,.04) 100%)}
 .hero-copy{left:16px;right:16px;top:auto;bottom:27px;transform:none;width:auto}
 .hero-copy h1{font-size:43px;margin:9px 0}
 .hero-copy p{font-size:12px;max-width:330px}
 .hero-actions{margin-top:17px;gap:16px}.button{min-height:43px;padding:0 16px;font-size:11px}
 .hero-caption{margin-top:22px;font-size:9px}
 .hero-stamp{right:17px;bottom:auto;top:18px;width:68px;height:68px}
 .intro-strip{width:100%;padding:17px 14px;grid-template-columns:1fr;gap:12px}
 .intro-strip__item{justify-content:flex-start;border:0}.intro-icon{width:32px;height:32px}
 .intro-strip__item strong{font-size:11px}.intro-strip__item small{font-size:9px}
 .section-block{padding-top:48px;padding-bottom:50px}
 .section-heading{align-items:flex-end;gap:12px;margin-bottom:19px}
 .section-heading h2,.section-heading h1{font-size:22px}
 .section-link{font-size:9px;white-space:nowrap;gap:4px}
 .category-grid{grid-template-columns:1fr;gap:11px}
 .category-card{height:190px}
 .featured-section .section-block{padding-top:48px;padding-bottom:52px}
 .product-grid,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .product-card__body{padding:10px}
 .product-card__badge{top:8px;right:8px;font-size:8px}
 .product-card h3{font-size:11px;min-height:44px}
 .product-card__category{font-size:9px}
 .product-card__price{font-size:10px}
 .product-card__quick{display:none}
 .story-section{padding-top:38px}
 .story-card{grid-template-columns:1fr}
 .story-card__image{min-height:220px;grid-row:1}
 .story-card__copy{padding:24px 21px 28px}
 .story-card__copy h2{font-size:22px}
 .story-card__copy p{font-size:11px}
 .closing-cta{padding-top:39px;padding-bottom:45px;gap:11px;flex-wrap:wrap}
 .closing-cta__spark{width:40px;height:40px}
 .closing-cta h2{font-size:17px}
 .closing-cta .button{width:100%;margin:3px 0 0}
 .footer-main{grid-template-columns:1fr 1fr;gap:24px 18px;padding-top:37px;padding-bottom:33px}
 .footer-brand{grid-column:1/-1}
 .footer-brand p{max-width:none}
 .footer-note{grid-column:1/-1;border-right:0;border-top:1px solid rgba(255,255,255,.14);padding:16px 0 0}
 .footer-bottom .container{padding-top:11px;padding-bottom:11px;min-height:0;flex-direction:column;align-items:flex-start;gap:4px}
 .page-content-wrap{padding:35px 0 55px}
 .text-page h1{font-size:27px}
 .page-entry{padding:19px}
 .woocommerce div.product{grid-template-columns:1fr;gap:22px}
 .woocommerce .woocommerce-result-count,.woocommerce .woocommerce-ordering{float:none!important}
 .woocommerce .woocommerce-ordering{margin-top:10px}
 .woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0 9px;font-size:11px}
 .woocommerce ul.products li.product .price{padding:0 9px;font-size:10px}
 .woocommerce ul.products li.product .button{margin-right:9px;margin-left:9px;padding:9px;font-size:9px}
}
