/*
Theme Name:        دکورمون (قالب موقت فروشگاهی)
Theme URI:         https://decoremoon.ir/
Description:        قالب سبک، ریسپانسیو و راست‌به‌چپ برای فروشگاه ووکامرس. به‌عنوان جایگزین موقت طراحی شده تا فروشگاه بدون وابستگی به قالب یا افزونهٔ دیگری کامل کار کند. سازگار با WooCommerce، فونت وزیرمتن به‌صورت محلی، بدون هیچ وابستگی به سرور بیرونی.
Author:            —
Version:           1.8.1
Requires PHP:      7.4
Text Domain:       decoremoon
Tags:              woocommerce, rtl, e-commerce, right-to-left, custom-menu, featured-images, threaded-comments, translation-ready
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   Fonts — Vazirmatn (SIL OFL), self-hosted (assets/fonts)
   ============================================================ */
@font-face{font-family:"Vazirmatn";src:url("assets/fonts/Vazirmatn-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("assets/fonts/Vazirmatn-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("assets/fonts/Vazirmatn-SemiBold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("assets/fonts/Vazirmatn-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("assets/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap}

/* ============================================================
   Tokens
   ============================================================ */
:root{
  --dm-bg:#f5f4f1;
  --dm-surface:#ffffff;
  --dm-ink:#22302b;
  --dm-ink-soft:#3c4a44;
  --dm-muted:#6f7671;
  --dm-line:#e6e3dd;
  --dm-primary:#2e4a3c;
  --dm-primary-d:#233b30;
  --dm-gold:#b98c46;
  --dm-gold-d:#a2793a;
  --dm-sale:#b23b3b;
  --dm-radius:14px;
  --dm-radius-sm:10px;
  --dm-shadow:0 6px 24px rgba(34,48,43,.07);
  --dm-shadow-hover:0 16px 38px rgba(34,48,43,.14);
  --dm-max:1200px;
  --dm-font:"Vazirmatn","IRANSans","IRANSansX","Tahoma","Segoe UI",sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  overflow-x:clip;
  font-family:var(--dm-font);
  font-size:16px;
  line-height:1.9;
  color:var(--dm-ink);
  background:var(--dm-bg);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none;transition:color .18s ease}
a:hover{color:var(--dm-gold-d)}
h1,h2,h3,h4{font-weight:800;line-height:1.5;color:var(--dm-ink);margin:0 0 .6em}
p{margin:0 0 1em}
ul,ol{margin:0;padding:0}
li{list-style:none}
button{font-family:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--dm-gold);outline-offset:2px}
.dm-container{max-width:var(--dm-max);margin-inline:auto;padding-inline:20px;width:100%}
.dm-site-content{display:block}
main{display:block}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* ============================================================
   Buttons
   ============================================================ */
.dm-btn,
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.woocommerce #respond input#submit,.woocommerce .button,
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  background:var(--dm-primary)!important;color:#fff!important;
  border:0;border-radius:var(--dm-radius-sm);
  padding:.72rem 1.4rem;font-size:.98rem;font-weight:700;line-height:1.4;
  transition:background .18s ease,transform .12s ease,box-shadow .18s ease;
  box-shadow:0 3px 10px rgba(46,74,60,.18);
}
.dm-btn:hover,
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,.woocommerce .button:hover,
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{
  background:var(--dm-primary-d)!important;color:#fff!important;transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(46,74,60,.26);
}
.dm-btn--gold{background:var(--dm-gold)!important;color:#20170a!important;box-shadow:0 3px 10px rgba(185,140,70,.28)}
.dm-btn--gold:hover{background:var(--dm-gold-d)!important;color:#fff!important}
.dm-btn--ghost{background:transparent!important;color:var(--dm-primary)!important;border:1.5px solid var(--dm-primary)!important;box-shadow:none}
.dm-btn--ghost:hover{background:var(--dm-primary)!important;color:#fff!important}

/* ============================================================
   Top announcement bar
   ============================================================ */
.dm-topbar{background:var(--dm-primary-d);color:#e9efe9;font-size:.82rem}
.dm-topbar .dm-container{display:flex;align-items:center;justify-content:space-between;min-height:40px;gap:16px}
.dm-topbar a{color:#e9efe9}
.dm-topbar a:hover{color:var(--dm-gold)}
.dm-topbar__note{display:flex;align-items:center;gap:.5rem}
.dm-topbar__note svg{width:18px;height:18px;flex-shrink:0}
.dm-topbar__links{display:flex;align-items:center;gap:1.1rem}
.dm-topbar__links svg{width:16px;height:16px;vertical-align:-3px;margin-inline-end:.3rem}
@media(max-width:640px){.dm-topbar__links{display:none}}

/* ============================================================
   Header
   ============================================================ */
.dm-header{background:var(--dm-surface);border-bottom:1px solid var(--dm-line);position:sticky;top:0;z-index:60}
.dm-header__row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:74px}
.dm-brand{display:flex;align-items:center;gap:.6rem;flex-shrink:0}
.dm-brand__mark{width:34px;height:34px;flex:0 0 34px}
.dm-brand__name{font-weight:800;font-size:1.35rem;color:var(--dm-ink);letter-spacing:-.2px}
.dm-brand__name b{color:var(--dm-gold-d)}
.custom-logo-link img{max-height:52px;width:auto}

.dm-navbar{background:var(--dm-surface);border-top:1px solid var(--dm-line)}
.dm-navbar>.dm-container{display:flex;justify-content:center}
.dm-navbar ul{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.15rem;padding:.3rem 0}
.dm-navbar a{display:block;padding:.62rem .95rem;border-radius:8px;font-weight:600;font-size:.96rem;color:var(--dm-ink-soft);white-space:nowrap}
.dm-navbar a:hover,.dm-navbar .current-menu-item>a,.dm-navbar .current_page_item>a,.dm-navbar .current-menu-parent>a{color:var(--dm-primary);background:#eef2ee}
.dm-navbar li{position:relative}
.dm-navbar ul ul{position:absolute;inset-inline-start:0;top:100%;background:var(--dm-surface);border:1px solid var(--dm-line);border-radius:12px;box-shadow:var(--dm-shadow);min-width:210px;padding:.4rem;display:none;z-index:70}
.dm-navbar li:hover>ul{display:block}
.dm-navbar ul ul a{padding:.5rem .7rem;white-space:normal}
.dm-navbar ul ul li{width:100%}

.dm-actions{display:flex;align-items:center;gap:.35rem;flex-shrink:0}
.dm-iconbtn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:transparent;border:0;color:var(--dm-ink);position:relative;transition:background .15s ease,color .15s ease}
.dm-iconbtn:hover{background:#eef2ee;color:var(--dm-primary)}
.dm-iconbtn svg{width:23px;height:23px}
.dm-cart-count{position:absolute;inset-block-start:4px;inset-inline-start:4px;min-width:19px;height:19px;padding:0 5px;border-radius:20px;background:var(--dm-gold);color:#20170a;font-size:.7rem;font-weight:800;display:flex;align-items:center;justify-content:center;line-height:1}
.dm-menu-toggle{display:none}

/* search panel */
.dm-search{border-top:1px solid var(--dm-line);background:var(--dm-surface);max-height:0;overflow:hidden;transition:max-height .28s ease}
.dm-search.is-open{max-height:120px}
.dm-search .dm-container{padding-block:0}
.dm-search.is-open .dm-container{padding-block:16px}
.dm-search form{display:flex;gap:.5rem}
.dm-search input[type=search]{flex:1;border:1.5px solid var(--dm-line);border-radius:var(--dm-radius-sm);padding:.7rem 1rem;font-family:inherit;font-size:1rem;background:#fafaf8;color:var(--dm-ink)}
.dm-search input[type=search]:focus{outline:none;border-color:var(--dm-primary)}
.dm-search button{border:0;background:var(--dm-primary);color:#fff;border-radius:var(--dm-radius-sm);padding:0 1.4rem;font-weight:700}

/* mobile nav drawer */
.dm-mobilenav{position:fixed;inset:0;z-index:200;visibility:hidden;pointer-events:none}
.dm-mobilenav__scrim{position:absolute;inset:0;background:rgba(20,28,24,.5);opacity:0;transition:opacity .25s ease}
.dm-mobilenav__panel{position:absolute;top:0;bottom:0;right:0;left:auto;width:min(84vw,340px);background:var(--dm-surface);box-shadow:-14px 0 40px rgba(0,0,0,.18);transform:translateX(100%);transition:transform .28s ease;padding:18px;overflow-y:auto}
[dir=ltr] .dm-mobilenav__panel{right:auto;left:0;transform:translateX(-100%)}
.dm-mobilenav.is-open{visibility:visible;pointer-events:auto}
.dm-mobilenav.is-open .dm-mobilenav__scrim{opacity:1}
.dm-mobilenav.is-open .dm-mobilenav__panel{transform:translateX(0)}
.dm-mobilenav__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--dm-line)}
.dm-mobilenav ul{flex-direction:column;display:block}
.dm-mobilenav a{display:block;padding:.75rem .4rem;border-bottom:1px solid var(--dm-line);font-weight:600;color:var(--dm-ink)}
.dm-mobilenav ul ul{padding-inline-start:14px}

/* ============================================================
   Hero (front page)
   ============================================================ */
.dm-hero{position:relative;overflow:hidden;background:
   radial-gradient(120% 90% at 92% -20%,rgba(185,140,70,.16),transparent 55%),
   linear-gradient(180deg,#eef2ee 0%,#f5f4f1 100%);
   border-bottom:1px solid var(--dm-line)}
.dm-hero::after{content:"";position:absolute;inset-block-start:-38px;inset-inline-start:8%;width:96px;height:96px;border-radius:50%;
   background:radial-gradient(circle at 62% 38%,#fff 0 42%,transparent 44%),radial-gradient(circle,#f4e9d2 0 70%,transparent 72%);
   box-shadow:0 14px 40px rgba(185,140,70,.12);opacity:.38}
.dm-hero .dm-container{position:relative;z-index:2;padding-block:16px}
.dm-hero__eyebrow{display:inline-flex;align-items:center;gap:.45rem;color:var(--dm-gold-d);font-weight:700;font-size:.75rem;letter-spacing:.02em;margin-bottom:.35rem}
.dm-hero__eyebrow::before{content:"";width:22px;height:2px;background:var(--dm-gold)}
.dm-hero h1{font-size:clamp(1.15rem,1.9vw,1.5rem);line-height:1.4;max-width:26ch;margin-bottom:.4rem}
.dm-hero p{font-size:.86rem;color:var(--dm-ink-soft);max-width:52ch;margin-bottom:.75rem;line-height:1.8}
.dm-hero__cta{display:flex;gap:.6rem;flex-wrap:wrap}

/* ============================================================
   Feature strip
   ============================================================ */
.dm-features{border-bottom:1px solid var(--dm-line);background:var(--dm-surface)}
.dm-features .dm-container{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding-block:10px}
.dm-feature{display:flex;align-items:center;gap:.7rem;padding:.25rem .5rem}
.dm-feature svg{width:23px;height:23px;color:var(--dm-primary);flex-shrink:0}
.dm-feature b{display:block;font-size:.9rem;font-weight:700;color:var(--dm-ink);line-height:1.5}
.dm-feature span{font-size:.75rem;color:var(--dm-muted);line-height:1.4}
@media(max-width:860px){.dm-features .dm-container{grid-template-columns:repeat(2,1fr);gap:10px;padding-block:16px}}
@media(max-width:520px){
  .dm-feature{gap:.5rem;padding:.3rem .25rem}
  .dm-feature svg{width:22px;height:22px}
  .dm-feature b{font-size:.82rem}
  .dm-feature span{display:none}
}

/* ============================================================
   Sections
   ============================================================ */
.dm-section{padding-block:56px}
.dm-section__head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:28px}
.dm-section__head h2{font-size:clamp(1.4rem,3vw,1.9rem);margin:0;position:relative;padding-bottom:.5rem}
.dm-section__head h2::after{content:"";position:absolute;inset-block-end:0;inset-inline-start:0;width:52px;height:3px;border-radius:3px;background:var(--dm-gold)}
.dm-section__head a{color:var(--dm-primary);font-weight:700;font-size:.95rem;white-space:nowrap}

/* ============================================================
   WooCommerce — product grid & cards
   ============================================================ */
.woocommerce ul.products,.woocommerce-page ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:24px;margin:0!important}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:auto!important;margin:0!important;float:none!important;
  background:var(--dm-surface);border:1px solid var(--dm-line);border-radius:var(--dm-radius);overflow:hidden;
  display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.woocommerce ul.products li.product:hover{transform:translateY(-4px);box-shadow:var(--dm-shadow-hover);border-color:#dfe6df}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:block;padding:0}
.woocommerce ul.products li.product img{border-radius:0;margin:0;aspect-ratio:1/1;object-fit:cover;width:100%;background:#f2f0eb}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:.9rem 1rem .2rem;font-size:1rem;font-weight:700;color:var(--dm-ink);line-height:1.7}
.woocommerce ul.products li.product .price{padding:0 1rem;color:var(--dm-primary);font-weight:800;font-size:1.05rem;margin-top:auto}
.woocommerce ul.products li.product .price del{color:var(--dm-muted);font-weight:500;font-size:.85rem;margin-inline-end:.4rem;opacity:.8}
.woocommerce ul.products li.product .price ins{background:transparent;color:var(--dm-sale);text-decoration:none}
.woocommerce ul.products li.product .star-rating{margin:.5rem 1rem 0;color:var(--dm-gold)}
.woocommerce ul.products li.product .button,.woocommerce ul.products li.product .added_to_cart{margin:.9rem 1rem 1rem;width:calc(100% - 2rem);text-align:center}
.woocommerce span.onsale{position:absolute!important;top:12px!important;right:12px!important;left:auto!important;bottom:auto!important;background:var(--dm-sale)!important;color:#fff!important;min-width:0!important;min-height:0!important;width:auto!important;height:auto!important;padding:.3rem .62rem!important;border-radius:20px!important;font-size:.82rem!important;font-weight:800!important;line-height:1.5!important;white-space:nowrap!important;margin:0!important;z-index:5}

@media(max-width:1024px){.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,1fr);gap:14px}}

/* categories (product_categories shortcode) reuse same grid; center titles */
.woocommerce ul.products li.product-category a{padding:0}
.woocommerce ul.products li.product-category h2.woocommerce-loop-category__title{padding:1rem;text-align:center;font-size:1.02rem}
.woocommerce ul.products li.product-category mark{background:var(--dm-gold);color:#20170a;border-radius:20px;padding:0 .5rem;font-weight:700}

/* ============================================================
   WooCommerce — shop toolbar, single, cart, checkout
   ============================================================ */
.woocommerce .woocommerce-result-count{color:var(--dm-muted);font-size:.9rem}
.woocommerce .woocommerce-ordering select{border:1.5px solid var(--dm-line);border-radius:var(--dm-radius-sm);padding:.5rem .8rem;font-family:inherit;background:var(--dm-surface)}
.woocommerce-products-header__title,.woocommerce .product .product_title{color:var(--dm-ink)}
.woocommerce div.product .price,.woocommerce div.product p.price{color:var(--dm-primary);font-weight:800;font-size:1.5rem}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{border-bottom-color:var(--dm-surface)}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--dm-ink-soft);font-weight:700}
.woocommerce .quantity .qty{border:1.5px solid var(--dm-line);border-radius:var(--dm-radius-sm);padding:.55rem;font-family:inherit;width:72px}

.woocommerce table.shop_table{border-radius:var(--dm-radius);border-color:var(--dm-line);overflow:hidden}
.woocommerce table.shop_table th{background:#f0f3ef;color:var(--dm-ink)}
.woocommerce .cart-collaterals .cart_totals>h2,.woocommerce-checkout h3{color:var(--dm-ink)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,
.select2-container--default .select2-selection--single{border:1.5px solid var(--dm-line)!important;border-radius:var(--dm-radius-sm)!important;padding:.6rem .8rem!important;font-family:inherit!important;min-height:44px}
.woocommerce #payment,.woocommerce-checkout #payment{background:#f6f5f2;border-radius:var(--dm-radius)}

/* notices */
.woocommerce-message,.woocommerce-info,.woocommerce-error li,.woocommerce-noreviews{border-top-color:var(--dm-primary)!important;border-radius:var(--dm-radius-sm)}
.woocommerce-message{border-top-color:var(--dm-primary)!important}

/* ============================================================
   Blog / single / pages
   ============================================================ */
.dm-page{padding-block:48px}
.dm-layout{display:grid;grid-template-columns:1fr;gap:36px}
.dm-layout.has-sidebar{grid-template-columns:1fr 300px}
@media(max-width:920px){.dm-layout.has-sidebar{grid-template-columns:1fr}}
.dm-card{background:var(--dm-surface);border:1px solid var(--dm-line);border-radius:var(--dm-radius);padding:26px;box-shadow:var(--dm-shadow)}
.dm-postcard{background:var(--dm-surface);border:1px solid var(--dm-line);border-radius:var(--dm-radius);overflow:hidden;margin-bottom:26px}
.dm-postcard__thumb img{width:100%;aspect-ratio:16/9;object-fit:cover}
.dm-postcard__body{padding:22px}
.dm-postcard__body h2{font-size:1.3rem;margin-bottom:.5rem}
.dm-meta{color:var(--dm-muted);font-size:.85rem;margin-bottom:.8rem}
.entry-content{line-height:2.05}
.entry-content h2,.entry-content h3{margin-top:1.6em}
.entry-content img{border-radius:var(--dm-radius);margin:1.2em 0}
.entry-content a{color:var(--dm-primary);text-decoration:underline;text-underline-offset:3px}
.dm-page-title{font-size:clamp(1.5rem,3vw,2.1rem);margin-bottom:1.4rem}

/* sidebar / widgets */
.dm-sidebar .widget,.dm-footer .widget{margin-bottom:26px}
.dm-sidebar .widget{background:var(--dm-surface);border:1px solid var(--dm-line);border-radius:var(--dm-radius);padding:18px 20px}
.widget-title,.dm-sidebar .widget h2,.dm-footer .widget h2,.dm-footer .widget-title{font-size:1.05rem;font-weight:800;margin-bottom:1rem;position:relative;padding-bottom:.5rem}
.widget-title::after,.dm-footer .widget-title::after{content:"";position:absolute;inset-block-end:0;inset-inline-start:0;width:34px;height:2px;background:var(--dm-gold)}
.dm-sidebar .widget ul li,.dm-footer .widget ul li{padding:.35rem 0;border-bottom:1px dashed var(--dm-line)}
.dm-footer .widget ul li{border-bottom:1px dashed rgba(255,255,255,.14)}

/* pagination */
.woocommerce nav.woocommerce-pagination ul,.dm-pagination{display:flex;gap:.4rem;justify-content:center;border:0!important;margin-top:30px}
.woocommerce nav.woocommerce-pagination ul li,.dm-pagination .page-numbers{border:0!important}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span,.dm-pagination a,.dm-pagination span{
  display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 .6rem;border-radius:10px;
  background:var(--dm-surface);border:1px solid var(--dm-line)!important;color:var(--dm-ink);font-weight:700}
.woocommerce nav.woocommerce-pagination ul li span.current,.dm-pagination span.current{background:var(--dm-primary);color:#fff;border-color:var(--dm-primary)!important}

/* ============================================================
   Footer
   ============================================================ */
.dm-footer{background:var(--dm-primary-d);color:#d6ddd6;margin-top:60px}
.dm-footer a{color:#d6ddd6}
.dm-footer a:hover{color:var(--dm-gold)}
.dm-footer__top{padding-block:48px;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:34px}
.dm-footer__brand .dm-brand__name{color:#fff}
.dm-footer__brand p{color:#aebbb0;margin-top:.8rem;font-size:.92rem;max-width:34ch}
.dm-footer .widget h2,.dm-footer .widget-title{color:#fff}
.dm-footer__bottom{border-top:1px solid rgba(255,255,255,.12);padding-block:18px;font-size:.85rem;color:#9fada2}
.dm-footer__bottom .dm-container{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dm-social{display:flex;gap:.5rem}
.dm-social a{width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center}
.dm-social a:hover{background:var(--dm-gold);color:#20170a}
.dm-social svg{width:19px;height:19px}
@media(max-width:860px){.dm-footer__top{grid-template-columns:1fr 1fr;gap:26px}}
@media(max-width:480px){.dm-footer__top{grid-template-columns:1fr}}

/* ============================================================
   Responsive header
   ============================================================ */
@media(max-width:900px){
  .dm-navbar{display:none}
  .dm-menu-toggle{display:inline-flex}
  .dm-header__row{min-height:58px;gap:8px}
  .dm-brand__name{font-size:.9rem;line-height:1.35}
  .dm-brand__mark{width:28px;height:28px;flex:0 0 28px}
  .dm-brand{flex:1;min-width:0}
  .dm-iconbtn{width:40px;height:40px}
  .dm-iconbtn svg{width:20px;height:20px}
}
@media(min-width:901px){.dm-mobilenav{display:none}}

/* ============================================================
   WPBakery fallback rendering (when the builder isn't active)
   ============================================================ */
.dm-vc-row{display:flex;flex-wrap:wrap;gap:24px;margin:0 0 1em}
.dm-vc-col{flex:1 1 260px;min-width:0}
.dm-vc-text{min-width:0}
.dm-vc-heading{margin:1em 0 .5em}
.dm-vc-hr{border:0;border-top:1px solid var(--dm-line);margin:1.6em 0}
.dm-vc-imgwrap{margin:1em 0}
.dm-vc-img{border-radius:var(--dm-radius);height:auto}
.dm-vc-btn{margin:.4em 0}
.dm-vc-message{display:flex;gap:.75rem;align-items:flex-start;padding:1rem 1.15rem;border-radius:var(--dm-radius-sm);margin:1.2em 0;border:1px solid;line-height:1.95}
.dm-vc-message svg{width:22px;height:22px;flex-shrink:0;margin-top:3px}
.dm-vc-message>div{min-width:0}
.dm-vc-message p{margin:0}
.dm-vc-message--warning{background:#fff7e6;border-color:#f0d089;color:#7a5b12}
.dm-vc-message--warning svg{color:#c99a2e}
.dm-vc-message--danger{background:#fdecec;border-color:#f0b4b4;color:#9a2b2b}
.dm-vc-message--danger svg{color:#c0392b}
.dm-vc-message--success{background:#eaf7ee;border-color:#b7e0c4;color:#1e6b3a}
.dm-vc-message--success svg{color:#2e9e57}
.dm-vc-message--info{background:#eaf1f8;border-color:#b9d2ec;color:#1f4e79}
.dm-vc-message--info svg{color:#2f6fbf}
@media(max-width:640px){.dm-vc-row{gap:16px}.dm-vc-col{flex-basis:100%}}

/* ============================================================
   Extra mobile safeguards
   ============================================================ */
img,svg,video{max-width:100%}
.dm-container{overflow-wrap:break-word}
@media(max-width:520px){
  .dm-hero .dm-container{padding-block:14px}
  .dm-section{padding-block:40px}
  .dm-section__head{flex-wrap:wrap}
  .woocommerce div.product .price,.woocommerce div.product p.price{font-size:1.25rem}
}

/* ============================================================
   CRO features (v1.3.0)
   ============================================================ */

/* --- prominent header search (desktop) --- */
.dm-search-inline{flex:1;max-width:540px;margin-inline:auto;position:relative}
.dm-search-inline form{display:flex;gap:0;border:1.6px solid var(--dm-line);border-radius:var(--dm-radius-sm);overflow:hidden;background:#fafaf8;transition:border-color .15s ease}
.dm-search-inline form:focus-within{border-color:var(--dm-primary);background:#fff}
.dm-search-inline input[type=search]{flex:1;border:0;background:transparent;padding:.7rem 1rem;font-family:inherit;font-size:.98rem;color:var(--dm-ink);min-width:0}
.dm-search-inline input[type=search]:focus{outline:none}
.dm-search-inline button{border:0;background:var(--dm-primary);color:#fff;padding:0 1.1rem;display:flex;align-items:center;cursor:pointer}
.dm-search-inline button svg{width:20px;height:20px}
@media(max-width:900px){.dm-search-inline{display:none}}
@media(min-width:901px){.dm-actions .js-search-toggle{display:none}}

/* --- live search autocomplete --- */
.dm-ac{position:absolute;inset-inline:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--dm-line);border-radius:12px;box-shadow:var(--dm-shadow-hover);padding:.35rem;display:none;z-index:80;max-height:420px;overflow-y:auto}
.dm-ac.is-open{display:block}
.dm-ac__item{display:flex;align-items:center;gap:.7rem;padding:.5rem .6rem;border-radius:9px;color:var(--dm-ink)}
.dm-ac__item:hover{background:#eef2ee}
.dm-ac__item img{width:46px;height:46px;object-fit:cover;border-radius:8px;background:#f2f0eb;flex-shrink:0}
.dm-ac__t{font-weight:600;font-size:.92rem;line-height:1.6;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dm-ac__p{color:var(--dm-primary);font-weight:800;font-size:.9rem;white-space:nowrap}
.dm-ac__empty{padding:.8rem;color:var(--dm-muted);text-align:center;font-size:.9rem}
.dm-ac__all{display:block;text-align:center;padding:.6rem;font-weight:700;color:var(--dm-primary);border-top:1px solid var(--dm-line);margin-top:.2rem}

/* --- product card: rating + review count + low stock --- */
.woocommerce ul.products li.product .dm-card-rating{display:flex;align-items:center;gap:.4rem;padding:.45rem 1rem 0;min-height:.5rem}
.woocommerce ul.products li.product .dm-card-rating .star-rating{margin:0;font-size:.95em}
.dm-review-count{color:var(--dm-muted);font-size:.78rem}
.dm-lowstock{display:inline-block;margin:.5rem 1rem 0;color:var(--dm-sale);font-size:.78rem;font-weight:700;background:#fdecec;padding:.15rem .5rem;border-radius:20px}

/* discount badge styling lives in the product-grid section above */

/* --- deals row + countdown --- */
.dm-deals{background:linear-gradient(180deg,#fbf4ec 0%,#f7f0e6 100%);border-block:1px solid #efe3d2}
.dm-deals .dm-container{padding-block:44px}
.dm-deals__head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:26px}
.dm-deals__title{display:flex;align-items:center;gap:.6rem;font-size:clamp(1.3rem,2.6vw,1.75rem);font-weight:800;margin:0}
.dm-deals__title svg{width:26px;height:26px;color:var(--dm-sale)}
.dm-countdown{display:flex;align-items:center;gap:.4rem;font-weight:800;color:#fff}
.dm-countdown span{background:var(--dm-primary);border-radius:8px;padding:.35rem .5rem;min-width:44px;text-align:center;font-variant-numeric:tabular-nums;font-size:1.05rem}
.dm-countdown small{color:var(--dm-ink-soft);font-weight:700;font-size:.85rem;margin-inline-end:.2rem}

/* --- sticky add-to-cart (mobile, single product) --- */
.dm-sticky-atc{position:fixed;inset-inline:0;bottom:0;z-index:90;background:#fff;border-top:1px solid var(--dm-line);box-shadow:0 -8px 24px rgba(34,48,43,.1);padding:.6rem .9rem;display:none;align-items:center;justify-content:space-between;gap:.8rem}
.dm-sticky-atc__info{min-width:0}
.dm-sticky-atc__name{font-weight:700;font-size:.85rem;color:var(--dm-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:46vw}
.dm-sticky-atc__price{color:var(--dm-primary);font-weight:800;font-size:.95rem}
.dm-sticky-atc__price del{color:var(--dm-muted);font-weight:500;font-size:.8rem;margin-inline-start:.3rem}
.dm-sticky-atc__btn{flex-shrink:0;border:0;background:var(--dm-primary);color:#fff;font-weight:700;border-radius:var(--dm-radius-sm);padding:.75rem 1.4rem;font-family:inherit;font-size:.95rem;cursor:pointer}
@media(max-width:768px){.woocommerce.single-product .dm-sticky-atc{display:flex}body.single-product{padding-bottom:74px}}

/* --- hero: offer chip + optional image --- */
.dm-hero__offer{display:inline-flex;align-items:center;gap:.4rem;background:var(--dm-gold);color:#20170a;font-weight:800;font-size:.85rem;padding:.4rem .85rem;border-radius:30px;margin-bottom:1rem;box-shadow:0 4px 14px rgba(185,140,70,.28)}
.dm-hero__offer svg{width:16px;height:16px}
.dm-hero--haspic .dm-container{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:40px}
.dm-hero__media{position:relative}
.dm-hero__media img{width:100%;border-radius:20px;box-shadow:0 24px 60px rgba(34,48,43,.18);aspect-ratio:4/3;object-fit:cover}
.dm-hero--haspic h1{max-width:none}
@media(max-width:820px){.dm-hero--haspic .dm-container{grid-template-columns:1fr;gap:24px}.dm-hero--haspic .dm-hero__media{order:-1}}

/* ============================================================
   Fix (v1.5.0): WooCommerce clearfix pseudo-elements were being
   rendered as empty grid cells, pushing products out of alignment.
   Removing them makes the product grid sit in clean, even columns.
   ============================================================ */
.woocommerce ul.products::before,.woocommerce ul.products::after,
.woocommerce-page ul.products::before,.woocommerce-page ul.products::after{
  display:none!important;content:none!important;
}
.woocommerce ul.products,.woocommerce-page ul.products{align-items:stretch}

/* ============================================================
   Single product page — refined, user-focused, responsive (v1.6.0)
   ============================================================ */
.woocommerce .woocommerce-breadcrumb{color:var(--dm-muted);font-size:.85rem;margin-bottom:1.2rem}
.woocommerce .woocommerce-breadcrumb a{color:var(--dm-ink-soft)}
.woocommerce .woocommerce-breadcrumb a:hover{color:var(--dm-primary)}

.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:42px;align-items:start}
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary{width:auto!important;float:none!important;margin:0!important}
.woocommerce div.product > .woocommerce-tabs,
.woocommerce div.product > .upsells,
.woocommerce div.product > .related{grid-column:1 / -1;margin-top:20px}

/* gallery */
.woocommerce div.product .woocommerce-product-gallery{position:relative}
.woocommerce div.product .woocommerce-product-gallery__image img{border-radius:var(--dm-radius)}
.woocommerce div.product .woocommerce-product-gallery__trigger{top:1rem;right:1rem;left:auto}
.woocommerce div.product .flex-control-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0;padding:0}
.woocommerce div.product .flex-control-thumbs li{width:auto!important;margin:0!important;float:none!important}
.woocommerce div.product .flex-control-thumbs img{width:68px;height:68px;object-fit:cover;border-radius:9px;opacity:.65;border:1px solid var(--dm-line);transition:opacity .15s ease}
.woocommerce div.product .flex-control-thumbs img:hover{opacity:.9}
.woocommerce div.product .flex-control-thumbs img.flex-active{opacity:1;border-color:var(--dm-primary);box-shadow:0 0 0 1px var(--dm-primary)}

/* summary */
.woocommerce div.product .product_title{font-size:clamp(1.35rem,2.6vw,1.9rem);line-height:1.6;margin-bottom:.6rem}
.woocommerce div.product .woocommerce-product-rating{margin-bottom:.7rem}
.woocommerce div.product .woocommerce-product-rating .star-rating{color:var(--dm-gold)}
.woocommerce div.product p.price,.woocommerce div.product .summary .price{margin:.3rem 0 1rem;font-size:1.5rem;font-weight:800;color:var(--dm-primary)}
.woocommerce div.product .summary .price del{color:var(--dm-muted);font-weight:500;font-size:1rem;margin-inline-start:.5rem;opacity:.85}
.woocommerce div.product .summary .price ins{background:transparent;text-decoration:none}
.woocommerce .stock.in-stock{color:var(--dm-primary);font-weight:700}
.woocommerce .stock.out-of-stock{color:var(--dm-sale);font-weight:700}
.woocommerce div.product .woocommerce-product-details__short-description{color:var(--dm-ink-soft);line-height:2.05;margin-bottom:1rem}
.woocommerce div.product form.cart:not(.variations_form){display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin:1rem 0 1.3rem}
.woocommerce div.product form.variations_form{margin:1rem 0 1.3rem}
.woocommerce div.product form.cart .quantity{margin:0}
.woocommerce div.product form.cart .quantity .qty{height:48px;width:82px}
.woocommerce div.product .single_add_to_cart_button{height:48px;padding:0 2rem;font-size:1rem}
.woocommerce div.product .product_meta{border-top:1px solid var(--dm-line);padding-top:1rem;margin-top:1.2rem;font-size:.88rem;color:var(--dm-muted)}
.woocommerce div.product .product_meta a{color:var(--dm-ink-soft)}
.woocommerce div.product .product_meta a:hover{color:var(--dm-primary)}

/* tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:0 0 1.2rem;border-bottom:1px solid var(--dm-line);display:flex;gap:.25rem;flex-wrap:wrap}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{border:0;background:transparent;border-radius:10px 10px 0 0;margin:0;padding:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:.7rem 1.15rem;color:var(--dm-ink-soft);font-weight:700}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:#eef2ee}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--dm-primary)}
.woocommerce div.product .woocommerce-Tabs-panel h2{font-size:1.2rem}

/* related / upsells headings */
.woocommerce .related>h2,.woocommerce .upsells>h2{font-size:clamp(1.3rem,2.6vw,1.7rem);margin-bottom:1.2rem;position:relative;padding-bottom:.5rem}
.woocommerce .related>h2::after,.woocommerce .upsells>h2::after{content:"";position:absolute;inset-block-end:0;inset-inline-start:0;width:48px;height:3px;border-radius:3px;background:var(--dm-gold)}

@media(max-width:820px){
  .woocommerce div.product{grid-template-columns:1fr;gap:22px}
  .woocommerce div.product .product_title{font-size:1.35rem}
  .woocommerce div.product p.price,.woocommerce div.product .summary .price{font-size:1.3rem}
}

/* ============================================================
   Variable-product options — readable, stacked (v1.7.0)
   ============================================================ */
.woocommerce div.product form.cart .variations{margin:0 0 1rem;width:100%;border:0}
.woocommerce div.product form.cart .variations,
.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td{display:block;width:auto;padding:0;border:0;text-align:start}
.woocommerce div.product form.cart .variations th.label{padding:0 0 .35rem;font-weight:700;color:var(--dm-ink)}
.woocommerce div.product form.cart .variations td.value{padding:0 0 .9rem}
.woocommerce div.product form.cart .variations select{width:100%;min-height:48px;border:1.5px solid var(--dm-line);border-radius:var(--dm-radius-sm);padding:.55rem .8rem;font-family:inherit;font-size:.98rem;background:#fafaf8;color:var(--dm-ink)}
.woocommerce div.product form.cart .variations select:focus{outline:none;border-color:var(--dm-primary)}
.woocommerce div.product .woocommerce-variation-add-to-cart{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin-top:.4rem}
.woocommerce div.product .single_variation{margin-bottom:.8rem}
.woocommerce div.product .single_variation .price{font-size:1.4rem;font-weight:800;color:var(--dm-primary);margin-bottom:.5rem}
.woocommerce div.product .woocommerce-variation-availability .stock{margin:.3rem 0}
.woocommerce div.product .reset_variations{display:inline-block;margin-inline-start:.5rem;color:var(--dm-muted);font-size:.85rem}

/* ============================================================
   Footer trust badges (eNamad / نماد اعتماد)
   ============================================================ */
.dm-footer__trust{border-top:1px solid rgba(255,255,255,.12);color:#d6ddd6}
.dm-footer__trust .dm-container{padding-block:20px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.dm-footer__trust img{background:#fff;border-radius:10px;padding:6px;max-height:96px;width:auto;height:auto}

/* ============================================================
   Hero — horizontal/linear layout (no-image): text one side, CTA the other (v1.8.0)
   ============================================================ */
.dm-hero:not(.dm-hero--haspic) .dm-hero__text{display:flex;align-items:center;justify-content:space-between;gap:34px;flex-wrap:wrap}
.dm-hero:not(.dm-hero--haspic) .dm-hero__copy{flex:1 1 320px;min-width:0}
.dm-hero:not(.dm-hero--haspic) .dm-hero__copy>p:last-child{margin-bottom:0}
.dm-hero:not(.dm-hero--haspic) .dm-hero__cta{flex:0 0 auto}
.dm-hero--haspic .dm-hero__copy{margin-bottom:1rem}
@media(max-width:640px){
  .dm-hero:not(.dm-hero--haspic) .dm-hero__text{flex-direction:column;align-items:flex-start;gap:14px}
  .dm-hero:not(.dm-hero--haspic) .dm-hero__copy{flex-basis:auto}
}
