/* ==========================================================================
   Bozorgan Shop — صفحه اصلی و هدر/فوتر (v1.9.2)
   پالت واحد: مشکی-زغالی، قرمز برند، سفید و خاکستری روشن.
   همه‌ی کلاس‌های صفحه اصلی با پیشوند hm- هستند تا با CSS قدیمی تداخل نکنند.
   ========================================================================== */
:root{
  --hm-ink:#16181c;
  --hm-text:#16181c;
  --hm-muted:#585f68;
  --hm-line:#e3e6ea;
  --hm-surface:#f4f5f7;
  --hm-white:#fff;
  --hm-red:#d71920;
  --hm-red-d:#b3121a;
  --hm-radius:12px;
  --line:#e3e6ea;--cream:#f4f5f7;--paper:#fff;
  --hm-font:Shabnam,IRANYekan,Tahoma,Arial,sans-serif;
}
body{font-family:var(--hm-font)}

/* ---------- هدر و نوار بالا ---------- */
.topbar{background:var(--hm-ink)!important;color:#e6e8eb!important;font-size:13px!important;height:auto!important;min-height:34px;line-height:34px!important}
.topbar *{font-size:13px!important;color:inherit}
.topbar i{color:var(--hm-red)!important}
.site-header{background:#fff!important;border-bottom:1px solid var(--hm-line)!important}
.header-search{background:var(--hm-surface)!important;border:1px solid var(--hm-line)!important}
.header-search input{font-size:14px!important;color:var(--hm-text)}
.header-search button{color:#fff!important;background:var(--hm-red)!important}
.quick-access{display:flex;gap:8px;flex-wrap:wrap;padding-top:2px;padding-bottom:12px}
.quick-access a{background:#fff!important;color:var(--hm-text)!important;border:1px solid var(--hm-line)!important;border-radius:999px!important;padding:7px 16px!important;font-size:14px!important;font-weight:500;text-decoration:none;box-shadow:none!important}
.quick-access a:hover,.quick-access a:focus-visible{border-color:var(--hm-red)!important;color:var(--hm-red)!important}
.site-brand span{font-size:13px!important;color:var(--hm-text)!important}

/* ---------- ساختار عمومی ---------- */
.hm-home{color:var(--hm-text);font-size:15px;line-height:1.9;background:#fff}
.hm-home h1,.hm-home h2,.hm-home h3,.hm-home p,.hm-home ol,.hm-home ul{margin:0;padding:0}
.hm-home a{text-decoration:none;color:inherit}
.hm-home :focus-visible{outline:3px solid var(--hm-red);outline-offset:2px;border-radius:6px}
.hm-ico{width:26px;height:26px;flex:none}
.hm-sec{padding:56px 0;background:#fff}
.hm-sec--alt{background:var(--hm-surface)}
.hm-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 22px}
.hm-head h2{font-size:24px;line-height:1.5;font-weight:700;color:var(--hm-text)}
.hm-head p{font-size:15px;color:var(--hm-muted);margin-top:4px}
.hm-head--stack{display:block;max-width:720px}
.hm-tools{display:flex;align-items:center;gap:14px}
.hm-more{font-size:14px;font-weight:600;color:var(--hm-red)!important;white-space:nowrap}
.hm-more:hover{text-decoration:underline!important;text-underline-offset:4px}
.hm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 24px;border-radius:10px;background:var(--hm-red);color:#fff!important;font-size:15px;font-weight:700;transition:background .2s}
.hm-btn:hover{background:var(--hm-red-d)}
.hm-btn--line{background:#fff;color:var(--hm-text)!important;border:1px solid var(--hm-line)}
.hm-btn--line:hover{background:#fff;border-color:var(--hm-red);color:var(--hm-red)!important}
.hm-btn--line .hm-ico{width:20px;height:20px}
.hm-empty{padding:24px;border:1px dashed var(--hm-line);border-radius:var(--hm-radius);text-align:center;color:var(--hm-muted)}

/* ---------- هیرو ---------- */
.hm-hero{padding:20px 0 0;background:#fff}
.hm-slider{position:relative;border-radius:16px;overflow:hidden;background:var(--hm-ink)}
.hm-track{display:grid}
.hm-slide{grid-area:1/1;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);min-height:420px;opacity:0;visibility:hidden;transition:opacity .5s ease,visibility .5s}
.hm-slide.is-active{opacity:1;visibility:visible}
.hm-slide-text{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:16px;padding:48px 44px 64px;background:var(--hm-ink);color:#fff}
.hm-slide-title{font-size:38px;line-height:1.45;font-weight:700;color:#fff;max-width:14em}
.hm-slide-text p{font-size:16px;line-height:1.95;color:#d5d9de;max-width:30em}
.hm-slide-text .hm-btn{margin-top:6px}
.hm-slide-img{background-size:cover;background-position:center;background-color:#2a2d33}
.hm-dots{position:absolute;right:44px;bottom:20px;display:flex;gap:4px;z-index:2}
.hm-dots button{width:36px;height:24px;padding:0;border:0;background:none;cursor:pointer;position:relative}
.hm-dots button:after{content:"";position:absolute;inset:10px 2px;border-radius:99px;background:rgba(255,255,255,.4);transition:background .2s}
.hm-dots button.is-active:after{background:var(--hm-red)}
.hm-dots button:focus-visible{outline:2px solid #fff;outline-offset:0}

/* ---------- نوار اعتماد ---------- */
.hm-trust{background:#fff;border-bottom:1px solid var(--hm-line)}
.hm-trust .wrap{display:grid;grid-template-columns:repeat(4,1fr)}
.hm-trust-item{display:flex;align-items:center;gap:12px;padding:20px 16px;border-left:1px solid var(--hm-line)}
.hm-trust-item:last-child{border-left:0}
.hm-trust-item .hm-ico{color:var(--hm-red);width:30px;height:30px}
.hm-trust-item span{display:flex;flex-direction:column}
.hm-trust-item b{font-size:15px;font-weight:700}
.hm-trust-item small{font-size:13px;color:var(--hm-muted);line-height:1.6}

/* ---------- دسته‌بندی‌ها ---------- */
.hm-cats{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:12px}
.hm-cats a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:112px;padding:14px 8px;background:#fff;border:1px solid var(--hm-line);border-radius:var(--hm-radius);text-align:center;transition:border-color .2s,color .2s}
.hm-cats .hm-ico{width:30px;height:30px;color:var(--hm-text)}
.hm-cats span{font-size:14px;font-weight:500;line-height:1.5}
.hm-cats a:hover,.hm-cats a:focus-visible{border-color:var(--hm-red);color:var(--hm-red)}
.hm-cats a:hover .hm-ico{color:var(--hm-red)}

/* ---------- ردیف محصولات (کاروسل) ---------- */
.hm-arrows{display:flex;gap:8px}
.hm-arrows button{width:40px;height:40px;display:grid;place-items:center;padding:0;border:1px solid var(--hm-line);border-radius:50%;background:#fff;color:var(--hm-text);cursor:pointer;transition:border-color .2s,color .2s}
.hm-arrows button:hover{border-color:var(--hm-red);color:var(--hm-red)}
.hm-arrows button:disabled{opacity:.4;cursor:default;border-color:var(--hm-line);color:var(--hm-text)}
.hm-arrows .hm-ico{width:20px;height:20px}

.hm-list .woocommerce ul.products{display:flex!important;flex-wrap:nowrap;gap:16px;margin:0!important;padding:2px 2px 8px!important;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hm-list .woocommerce ul.products::-webkit-scrollbar{display:none}
.hm-list .woocommerce ul.products::before,.hm-list .woocommerce ul.products::after{display:none!important}
.hm-list .woocommerce ul.products li.product{flex:0 0 calc((100% - 64px)/5)!important;float:none!important;width:auto!important;min-width:0;margin:0!important;padding:0 0 14px!important;display:flex;flex-direction:column;background:#fff;border:1px solid var(--hm-line)!important;border-radius:var(--hm-radius);overflow:hidden;box-shadow:none!important;transform:none!important;scroll-snap-align:start;position:relative}
.hm-list .woocommerce ul.products li.product:hover{border-color:#c9ced4;transform:none!important;box-shadow:none!important}
.hm-list .woocommerce ul.products li.product>a:first-child{display:flex;flex-direction:column;flex:1;color:var(--hm-text)}
.hm-list .woocommerce ul.products li.product a img{width:100%!important;height:auto!important;aspect-ratio:1/1;object-fit:cover!important;margin:0!important;padding:0!important;background:var(--hm-surface)!important;border-radius:0}
.hm-list .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px!important;line-height:1.7!important;font-weight:600;min-height:3.4em!important;padding:12px 14px 0!important;margin:0;color:var(--hm-text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hm-list .woocommerce ul.products li.product .price{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding:6px 14px 0!important;margin:0!important;font-size:15px!important;font-weight:700;color:var(--hm-text)!important}
.hm-list .woocommerce ul.products li.product .price del{font-size:13px!important;color:var(--hm-muted)!important;font-weight:400}
.hm-list .woocommerce ul.products li.product .price ins{text-decoration:none;color:var(--hm-red)}
.hm-list .woocommerce ul.products li.product .button{display:flex!important;align-items:center;justify-content:center;margin:12px 14px 0!important;min-height:42px;padding:0 12px!important;border-radius:9px!important;background:var(--hm-ink)!important;color:#fff!important;font-size:14px!important;font-weight:600;line-height:1.2;text-align:center;transition:background .2s}
.hm-list .woocommerce ul.products li.product .button:hover{background:var(--hm-red)!important}
.hm-list .woocommerce ul.products li.product .added_to_cart{display:block;margin:6px 14px 0;font-size:13px;color:var(--hm-red);text-align:center}
.hm-list .woocommerce ul.products li.product .onsale{position:absolute!important;z-index:2;top:10px!important;right:10px!important;left:auto!important;min-width:0!important;min-height:0!important;padding:4px 10px!important;border-radius:999px!important;background:var(--hm-red)!important;color:#fff!important;font-size:13px!important;font-weight:700;line-height:1.5!important}
.hm-list .star-rating{display:none}

/* ---------- باند تخفیف ---------- */
.hm-sale{background:var(--hm-red)}
.hm-sale .hm-head h2,.hm-sale .hm-head p,.hm-sale .hm-more{color:#fff!important}
.hm-sale .hm-head p{opacity:.95}
.hm-sale .hm-arrows button{background:transparent;border-color:rgba(255,255,255,.7);color:#fff}
.hm-sale .hm-arrows button:hover{background:#fff;color:var(--hm-red);border-color:#fff}
.hm-sale .hm-arrows button:disabled:hover{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}
.hm-sale .hm-list .woocommerce ul.products li.product{border-color:transparent}

/* ---------- گالری ---------- */
.hm-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hm-gallery a{position:relative;display:block;aspect-ratio:4/5;border-radius:var(--hm-radius);overflow:hidden;background:#2a2d33}
.hm-gallery img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.hm-gallery a:hover img{transform:scale(1.03)}
.hm-gallery span{position:absolute;inset:auto 12px 12px 12px;display:flex;flex-direction:column;padding:12px 16px;border-radius:10px;background:rgba(22,24,28,.9);color:#fff}
.hm-gallery b{font-size:17px;font-weight:700;color:#fff}
.hm-gallery small{font-size:14px;color:#d5d9de}

/* ---------- راهنمای انتخاب ---------- */
.hm-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;counter-reset:step}
.hm-steps li{position:relative;padding:22px 22px 22px 22px;background:#fff;border:1px solid var(--hm-line);border-radius:var(--hm-radius);counter-increment:step}
.hm-steps li:before{content:counter(step);display:grid;place-items:center;width:34px;height:34px;margin-bottom:12px;border-radius:50%;background:var(--hm-red);color:#fff;font-size:16px;font-weight:700}
.hm-steps b{display:block;font-size:17px;font-weight:700;margin-bottom:4px}
.hm-steps p{font-size:15px;color:var(--hm-muted)}
.hm-steps a{color:var(--hm-red);font-weight:700}

/* ---------- مجله ---------- */
.hm-journal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hm-journal-grid a{display:flex;flex-direction:column;background:#fff;border:1px solid var(--hm-line);border-radius:var(--hm-radius);overflow:hidden}
.hm-journal-grid img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}
.hm-journal-grid span{display:flex;flex-direction:column;gap:6px;padding:16px 18px 18px;flex:1}
.hm-journal-grid small{font-size:13px;color:var(--hm-muted)}
.hm-journal-grid b{font-size:17px;line-height:1.7;font-weight:700}
.hm-journal-grid i{margin-top:auto;font-style:normal;font-size:14px;font-weight:600;color:var(--hm-red)}
.hm-journal-grid a:hover b{color:var(--hm-red)}

/* ---------- سوالات متداول ---------- */
.hm-faq-grid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:48px;align-items:start}
.hm-faq header h2{font-size:24px;font-weight:700;line-height:1.5}
.hm-faq header p{font-size:15px;color:var(--hm-muted);margin:6px 0 18px}
.hm-faq-list details{border-bottom:1px solid var(--hm-line)}
.hm-faq-list details:first-child{border-top:1px solid var(--hm-line)}
.hm-faq-list summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;font-size:16px;font-weight:600;cursor:pointer;list-style:none}
.hm-faq-list summary::-webkit-details-marker{display:none}
.hm-faq-list summary:after{content:"+";flex:none;width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--hm-line);border-radius:50%;font-size:18px;line-height:1;color:var(--hm-text)}
.hm-faq-list details[open] summary:after{content:"−";background:var(--hm-red);border-color:var(--hm-red);color:#fff}
.hm-faq-list details p{padding:0 0 18px;font-size:15px;color:var(--hm-muted);max-width:60em}

/* ---------- فوتر: هم‌رنگ با پالت جدید، متن خوانا ---------- */
.site-footer{--sand:#fff;--gold:#fff;--accent:#fff}
.site-footer .footer-newsletter{background:var(--hm-red)!important;color:#fff!important}
.site-footer .footer-newsletter span,.site-footer .footer-newsletter h3,.site-footer .footer-newsletter p{color:#fff!important}
.site-footer .footer-newsletter span{font-size:13px!important}
.site-footer .footer-newsletter p{font-size:14px!important}
.site-footer .footer-newsletter button{background:var(--hm-ink)!important;font-size:14px!important}
.site-footer .footer-newsletter input{font-size:14px!important}
.site-footer .footer-newsletter small{color:#fff!important;font-size:12px!important}
.site-footer .footer-grid h4{font-size:16px!important;color:#fff!important}
.site-footer .footer-grid h4:after{background:var(--hm-red)!important}
.site-footer .footer-about>b{font-size:14px!important;color:#fff!important}
.site-footer .footer-about p,.site-footer .footer-contact p,.site-footer .footer-grid p{font-size:14px!important;color:#b7bcc3!important}
.site-footer .footer-links a{font-size:14px!important;color:#c9cdd3!important}
.site-footer .footer-links a:hover{color:#fff!important}
.site-footer .footer-contact small,.site-footer .footer-phone small{font-size:13px!important;color:#9aa1a9!important}
.site-footer .footer-contact address span{font-size:14px;color:#e6e8eb}
.site-footer .footer-phone b{font-size:18px!important;color:#fff!important}
.site-footer .footer-promises b{font-size:14px!important}
.site-footer .footer-promises small{font-size:13px!important;color:#9aa1a9!important}
.site-footer .footer-bottom>.wrap{font-size:13px!important;color:#9aa1a9!important}

/* ---------- تبلت و موبایل ---------- */
@media(max-width:1100px){
  .hm-list .woocommerce ul.products li.product{flex-basis:calc((100% - 48px)/4)!important}
  .hm-cats{grid-template-columns:repeat(5,minmax(0,1fr))}
  .hm-slide-title{font-size:32px}
  .hm-slide-text{padding:40px 32px 60px}
  .hm-dots{right:32px}
}
@media(max-width:860px){
  .hm-trust .wrap{grid-template-columns:repeat(2,1fr)}
  .hm-trust-item:nth-child(2){border-left:0}
  .hm-trust-item:nth-child(-n+2){border-bottom:1px solid var(--hm-line)}
  .hm-list .woocommerce ul.products li.product{flex-basis:calc((100% - 32px)/3)!important}
  .hm-gallery{grid-template-columns:1fr 1fr}
  .hm-gallery a:first-child{grid-column:1/-1;aspect-ratio:16/9}
  .hm-steps,.hm-journal-grid{grid-template-columns:1fr}
  .hm-journal-grid a{flex-direction:row}
  .hm-journal-grid img{width:38%;aspect-ratio:auto;height:auto;min-height:130px}
  .hm-faq-grid{grid-template-columns:1fr;gap:20px}
}
@media(max-width:760px){
  .hm-slide{grid-template-columns:1fr;min-height:0}
  .hm-slide-img{order:-1;aspect-ratio:16/10}
  .hm-slide-text{padding:22px 20px 56px;gap:12px}
  .hm-slide-title{font-size:25px}
  .hm-slide-text p{font-size:15px}
  .hm-dots{right:50%;transform:translateX(50%);bottom:16px}
  .hm-sec{padding:36px 0}
  .hm-head h2{font-size:20px}
  .hm-head{align-items:flex-start}
  .hm-tools{gap:10px}
  .hm-arrows{display:none}
  .hm-cats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .hm-cats a{min-height:98px}
  .hm-list .woocommerce ul.products{gap:12px}
  .hm-list .woocommerce ul.products li.product{flex-basis:calc((100% - 12px)/2.2)!important}
}
@media(max-width:480px){
  .hm-trust-item{padding:14px 10px;gap:10px}
  .hm-trust-item small{display:none}
  .hm-gallery{grid-template-columns:1fr}
  .hm-gallery a,.hm-gallery a:first-child{aspect-ratio:16/10}
  .hm-journal-grid a{flex-direction:column}
  .hm-journal-grid img{width:100%;aspect-ratio:16/10}
}
@media(prefers-reduced-motion:reduce){
  .hm-slide,.hm-gallery img,.hm-btn,.hm-arrows button{transition:none}
  .hm-gallery a:hover img{transform:none}
}

/* سایه‌ی کشوی سبد خرید وقتی بسته است روی لبه صفحه نمایش داده نشود */
.him-cart-drawer:not(.open){box-shadow:none!important}

/* ---------- قیمت: عدد + یک فاصله + نماد واحد پول (نماد سمت چپ عدد) ---------- */
.woocommerce-Price-amount,.woocommerce-Price-amount bdi{direction:rtl;unicode-bidi:isolate;white-space:nowrap}
.woocommerce .price .woocommerce-Price-amount,.woocommerce div.product p.price .woocommerce-Price-amount{display:inline!important}
.woocommerce-Price-currencySymbol{display:inline;margin:0!important;padding:0!important;font-size:.85em;font-weight:inherit!important;order:0;grid-column:auto}
