/*
Theme Name: Zhemun
Theme URI: https://zhemun.com
Author: Zhemun
Author URI: https://zhemun.com
Description: قالب اختصاصی فروشگاه هدیه ژمون، سازگار با ووکامرس و افزونه باکس‌ساز ژمون.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zhemun
Tags: e-commerce, block-patterns, full-site-editing, rtl-language-support, wide-blocks
*/

:root{
  --zh-bg:#f4f0ec;
  --zh-surface:#ffffff;
  --zh-surface-soft:#fbf8f5;
  --zh-ink:#302824;
  --zh-muted:#7e7069;
  --zh-primary:#6f4d3e;
  --zh-primary-dark:#51372d;
  --zh-accent:#c98868;
  --zh-line:#e7ddd6;
  --zh-success:#2f7a53;
  --zh-shadow:0 18px 55px rgba(63,43,34,.10);
  --zh-radius:22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  background:var(--zh-bg);
  color:var(--zh-ink);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{text-underline-offset:.18em}
img{max-width:100%;height:auto}

/* Header */
.zh-site-header-wrap{position:relative;z-index:50;padding:18px 20px 0}
.zh-site-header{
  width:min(1180px,100%);
  min-height:78px;
  margin-inline:auto;
  padding:12px 18px;
  border:1px solid rgba(231,221,214,.95);
  border-radius:20px;
  background:rgba(255,255,255,.94);
  box-shadow:0 12px 35px rgba(70,48,38,.07);
  backdrop-filter:blur(14px);
}
.admin-bar .zh-site-header-wrap{top:0}
.zh-site-header .wp-block-site-logo img{border-radius:13px}
.zh-site-header .wp-block-site-title{font-weight:800;letter-spacing:-.02em}
.zh-site-header .wp-block-navigation-item__content{padding:10px 12px;border-radius:10px}
.zh-site-header .wp-block-navigation-item__content:hover{background:#f2ebe6;color:var(--zh-primary)}
.zh-header-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.zh-header-action{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:42px;padding:8px 12px;border:1px solid var(--zh-line);
  border-radius:12px;background:#fff;color:var(--zh-primary);text-decoration:none;font-weight:700;
}
.zh-header-action--cart{background:var(--zh-primary);border-color:var(--zh-primary);color:#fff}
.zh-cart-count{display:grid;place-items:center;min-width:23px;height:23px;padding-inline:5px;border-radius:999px;background:#fff;color:var(--zh-primary);font-size:12px}

/* General layout */
.zh-main{min-height:55vh}
.zh-page-shell{width:min(1180px,calc(100% - 40px));margin:32px auto 72px}
.zh-page-card{padding:clamp(22px,4vw,52px);border:1px solid var(--zh-line);border-radius:28px;background:#fff;box-shadow:var(--zh-shadow)}
.zh-page-title{margin-bottom:28px}
.zh-page-title h1{margin:5px 0 0}
.zh-eyebrow{color:var(--zh-accent);font-size:13px;font-weight:800}

/* Hero */
.zh-hero{
  width:min(1180px,calc(100% - 40px));min-height:520px;margin:22px auto 28px;
  border:1px solid #eadfd7;border-radius:30px;overflow:hidden;
  background:linear-gradient(130deg,#fff 0%,#fbf5ef 60%,#eee0d4 100%);
  box-shadow:0 18px 55px rgba(63,43,34,.07);
}
.zh-hero-copy{padding:clamp(38px,7vw,78px) clamp(28px,6vw,70px)}
.zh-hero-copy h1{font-size:clamp(40px,6vw,64px);line-height:1.35;letter-spacing:-.04em;margin:14px 0 16px}
.zh-hero-copy p{max-width:610px;color:var(--zh-muted);line-height:2;font-size:17px}
.zh-builder-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  margin-top:13px;padding:14px 22px;border-radius:13px;
  background:var(--zh-primary);color:#fff;text-decoration:none;font-weight:800;
  box-shadow:0 10px 24px rgba(111,77,62,.18);transition:.18s ease;
}
.zh-builder-cta:hover{background:var(--zh-primary-dark);color:#fff;transform:translateY(-1px)}
.zh-hero-art{position:relative;min-height:480px;overflow:hidden}
.zh-gift-box{position:absolute;display:grid;place-items:center;color:#fff;box-shadow:0 25px 50px rgba(70,42,30,.23)}
.zh-gift-box--back{width:245px;height:175px;border-radius:14px;background:#879181;right:26%;top:18%;transform:rotate(-8deg)}
.zh-gift-box--front{width:270px;height:185px;border-radius:15px;background:#8a604d;right:12%;top:44%;transform:rotate(6deg);font-family:Georgia,serif;font-size:27px}
.zh-gift-box:before{content:"";position:absolute;right:-10px;left:-10px;top:-17px;height:36px;border-radius:10px;background:rgba(255,255,255,.14)}
.zh-gift-box--front:after{content:"ZHEMUN";letter-spacing:.18em;font-size:16px}
.zh-floating-item{position:absolute;width:76px;height:76px;border-radius:24px;display:grid;place-items:center;background:rgba(255,255,255,.95);font-size:34px;box-shadow:0 15px 35px rgba(65,40,30,.14)}
.zh-floating-item--1{right:9%;top:15%;transform:rotate(8deg)}
.zh-floating-item--2{right:67%;top:56%;transform:rotate(-8deg)}
.zh-floating-item--3{right:63%;top:8%;transform:rotate(5deg)}

/* Home sections */
.zh-section{width:min(1180px,calc(100% - 40px));margin:72px auto}
.zh-section-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}
.zh-section-head h2{margin:6px 0 0;font-size:clamp(28px,4vw,40px)}
.zh-section-head p{max-width:620px;margin:0;color:var(--zh-muted);line-height:1.9}
.zh-step-grid,.zh-benefit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.zh-step-card,.zh-benefit-card{padding:24px;border:1px solid var(--zh-line);border-radius:20px;background:#fff}
.zh-step-number{display:grid;place-items:center;width:42px;height:42px;margin-bottom:22px;border-radius:50%;background:var(--zh-primary);color:#fff;font-weight:800}
.zh-step-card h3,.zh-benefit-card h3{margin:0 0 8px;font-size:19px}
.zh-step-card p,.zh-benefit-card p{margin:0;color:var(--zh-muted);line-height:1.85;font-size:14px}
.zh-benefit-card{background:var(--zh-surface-soft)}
.zh-benefit-icon{font-size:30px;margin-bottom:14px}
.zh-home-products .wc-block-grid__products,.zh-home-products ul.products{gap:18px}
.zh-home-products .wc-block-grid__product,.zh-home-products li.product{border:1px solid var(--zh-line)!important;border-radius:20px!important;background:#fff!important;overflow:hidden;padding-bottom:18px!important;transition:.2s ease}
.zh-home-products .wc-block-grid__product:hover,.zh-home-products li.product:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(58,40,32,.09)}
.zh-home-products img{aspect-ratio:1/1;object-fit:cover}
.zh-home-products .button{border-radius:12px!important;background:var(--zh-primary)!important;color:#fff!important}
.zh-cta-panel{padding:clamp(30px,6vw,64px);border-radius:28px;background:var(--zh-primary);color:#fff;text-align:center}
.zh-cta-panel h2{margin:0 0 12px;font-size:clamp(30px,5vw,46px)}
.zh-cta-panel p{max-width:650px;margin:0 auto 18px;color:#f1e9e5;line-height:1.9}
.zh-cta-panel .zh-builder-cta{background:#fff;color:var(--zh-primary)}

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb{color:var(--zh-muted);font-size:13px;margin-bottom:22px}
.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;margin:0!important;padding:0 0 18px;border:1px solid var(--zh-line);border-radius:20px;background:#fff;overflow:hidden;transition:.2s ease}
.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(58,40,32,.09)}
.woocommerce ul.products li.product img{margin:0 0 16px!important;aspect-ratio:1/1;object-fit:cover}
.woocommerce ul.products li.product .woocommerce-loop-product__title,.woocommerce ul.products li.product .price,.woocommerce ul.products li.product .button{margin-inline:16px!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:17px!important;color:var(--zh-ink)}
.woocommerce ul.products li.product .price{color:var(--zh-primary)!important;font-weight:800}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.wc-block-components-button{
  border-radius:12px!important;background:var(--zh-primary)!important;color:#fff!important;font-weight:800!important;border:0!important;
}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.wc-block-components-button:hover{background:var(--zh-primary-dark)!important;color:#fff!important}
.woocommerce div.product{padding:clamp(20px,4vw,48px);border:1px solid var(--zh-line);border-radius:28px;background:#fff;box-shadow:var(--zh-shadow)}
.woocommerce div.product div.images img{border-radius:18px}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--zh-primary);font-weight:800}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:14px;border-top:0!important;background:#fff;box-shadow:0 8px 22px rgba(63,43,34,.06)}
.woocommerce-message{border-right:4px solid var(--zh-success)!important}
.woocommerce-info{border-right:4px solid var(--zh-accent)!important}
.woocommerce-error{border-right:4px solid #b74646!important}
.woocommerce table.shop_table{border-color:var(--zh-line)!important;border-radius:18px!important;background:#fff;overflow:hidden}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border-color:#f1eae5!important;padding:15px!important}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,
.wc-block-components-text-input input,.wc-block-components-textarea,.wc-block-components-combobox .wc-block-components-combobox-control input{
  border:1px solid var(--zh-line)!important;border-radius:12px!important;background:#fff!important;color:var(--zh-ink)!important;
}
.woocommerce form.checkout,.woocommerce-account .woocommerce{padding:clamp(18px,3vw,36px);border:1px solid var(--zh-line);border-radius:24px;background:#fff}
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.woocommerce-MyAccount-navigation a{display:block;padding:12px 14px;border-radius:11px;background:var(--zh-surface-soft);text-decoration:none}
.woocommerce-MyAccount-navigation .is-active a{background:var(--zh-primary);color:#fff}

/* Box builder theme integration */
.zbb-app{
  --zbb-accent:var(--zh-primary)!important;
  --zbb-accent-soft:#f2ebe6!important;
  --zbb-border:var(--zh-line)!important;
  --zbb-text:var(--zh-ink)!important;
  --zbb-muted:var(--zh-muted)!important;
  --zbb-success:var(--zh-success)!important;
  --zbb-danger:#b74646!important;
  max-width:1180px!important;margin:30px auto 74px!important;padding-inline:20px!important;
}
.zbb-product,.zbb-review-card,.zbb-message-fields,.zbb-steps li{border-color:var(--zh-line)!important;border-radius:20px!important}
.zbb-product,.zbb-review-card,.zbb-message-fields{box-shadow:0 10px 30px rgba(63,43,34,.05)}
.zbb-product.is-selected{background:#fbf5ef!important}
.zbb-product-image{background:#f8f3ee!important}
.zbb-select{background:var(--zh-primary)!important}
.zbb-qty button{background:#f2ebe6!important;color:var(--zh-primary)!important}
.zbb-summary{border-color:var(--zh-line)!important;border-radius:20px!important;box-shadow:0 16px 45px rgba(63,43,34,.16)!important}
.zbb-progress{background:#eee7e2!important}
.zbb-actions .button{background:var(--zh-primary)!important;color:#fff!important;border:0!important}
.zbb-actions .zbb-back{background:#fff!important;color:var(--zh-primary)!important;border:1px solid var(--zh-line)!important}

/* Footer */
.zh-footer{margin-top:80px;padding:54px 20px 26px;background:#362b27;color:#f8f3ee}
.zh-footer-inner{width:min(1180px,100%);margin-inline:auto}
.zh-footer a{color:#f8f3ee}
.zh-footer .wp-block-site-title{font-weight:800}
.zh-footer-note{padding-top:24px;margin-top:30px;border-top:1px solid rgba(255,255,255,.13);color:#cfc2ba;font-size:13px}

/* Utility */
.zh-empty-state{padding:38px;border:1px dashed var(--zh-line);border-radius:18px;background:#fff;text-align:center;color:var(--zh-muted)}
.wp-block-search__input{border:1px solid var(--zh-line)!important;border-radius:12px!important}
.wp-block-search__button{border-radius:12px!important;background:var(--zh-primary)!important;color:#fff!important}

@media(max-width:980px){
  .zh-hero>.wp-block-columns{grid-template-columns:1fr!important}
  .zh-hero-art{min-height:400px}
  .zh-step-grid,.zh-benefit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .zh-site-header .wp-block-navigation{order:3;width:100%}
}
@media(max-width:700px){
  .zh-site-header-wrap{padding:10px 10px 0}
  .zh-site-header{border-radius:16px;padding:10px 12px}
  .zh-header-action span:not(.zh-cart-count){display:none}
  .zh-page-shell,.zh-section,.zh-hero{width:min(100% - 20px,1180px)}
  .zh-hero{min-height:auto;border-radius:22px}
  .zh-hero-copy{padding:34px 24px}
  .zh-hero-art{min-height:330px}
  .zh-gift-box--back{width:190px;height:135px;right:26%;top:17%}
  .zh-gift-box--front{width:210px;height:145px;right:9%;top:45%}
  .zh-floating-item{width:58px;height:58px;font-size:26px;border-radius:18px}
  .zh-step-grid,.zh-benefit-grid,.woocommerce ul.products{grid-template-columns:1fr}
  .zh-section-head{display:block}
  .zh-section-head p{margin-top:12px}
  .woocommerce div.product{padding:18px;border-radius:20px}
  .zbb-app{padding-inline:10px!important}
}
