/* ============================================================
   Hooshnevisa Storefront Child styles
   ============================================================ */

/* ---- Persian font: Vazirmatn (local first, CDN fallback) ---- */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/vazirmatn-arabic-400-normal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/vazirmatn/files/vazirmatn-arabic-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/vazirmatn-arabic-500-normal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/vazirmatn/files/vazirmatn-arabic-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/vazirmatn-arabic-700-normal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/vazirmatn/files/vazirmatn-arabic-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/vazirmatn-arabic-800-normal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/vazirmatn/files/vazirmatn-arabic-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal; font-weight: 900; font-display: swap;
  src: url('../fonts/vazirmatn-arabic-900-normal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/vazirmatn/files/vazirmatn-arabic-900-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal; font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122;
  src: url('../fonts/vazirmatn-latin-400-normal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/vazirmatn/files/vazirmatn-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal; font-weight: 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122;
  src: url('../fonts/vazirmatn-latin-700-normal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/vazirmatn/files/vazirmatn-latin-700-normal.woff2') format('woff2');
}

:root {
  --hnv-bg: #f7faf8;
  --hnv-surface: #ffffff;
  --hnv-text: #13221b;
  --hnv-muted: #5d6f66;
  --hnv-primary: #0f8f5f;
  --hnv-primary-dark: #096846;
  --hnv-accent: #6d5dfc;
  --hnv-border: #dfe9e3;
  --hnv-shadow: 0 18px 50px rgba(15, 55, 38, .09);
  --hnv-radius: 22px;
  --hnv-font: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

/* Apply Vazirmatn across the site */
body.hnv-site,
.hnv-site h1, .hnv-site h2, .hnv-site h3, .hnv-site h4, .hnv-site h5, .hnv-site h6,
.hnv-site button, .hnv-site input, .hnv-site select, .hnv-site textarea,
.hnv-site .site-title, .hnv-site .site-description, .hnv-site .main-navigation,
.hnv-site .price, .hnv-site .button, .hnv-site .widget {
  font-family: var(--hnv-font) !important;
}

body.hnv-site {
  direction: rtl;
  text-align: right;
  background: var(--hnv-bg);
  color: var(--hnv-text);
  line-height: 1.9;
}

.hnv-site a { color: var(--hnv-primary); }
.hnv-site a:hover { color: var(--hnv-primary-dark); }

/* ---- Header / navigation ---- */
.hnv-site .site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--hnv-border);
  box-shadow: 0 8px 30px rgba(16, 40, 28, .04);
}
.hnv-site .site-branding .site-title a,
.hnv-site .site-branding .site-description { color: var(--hnv-text); }
.hnv-site .main-navigation ul.menu > li > a,
.hnv-site .main-navigation ul.nav-menu > li > a { color: var(--hnv-text); font-weight: 700; }

/* ---- Mobile menu toggle: bulletproof custom hamburger ---- */
/* High specificity (html body + #id + class) beats any Storefront rule. */
html body.hnv-site #site-navigation-menu-toggle.menu-toggle,
html body.hnv-site .site-header .menu-toggle,
html body.hnv-site button.menu-toggle {
  position: relative !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-indent: -9999px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  width: 46px !important;
  height: 42px !important;
  padding: 0 !important;
  border: 1px solid var(--hnv-border) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='18'%3E%3Crect%20x='1'%20y='2'%20width='22'%20height='2'%20rx='1'%20fill='%2313221b'/%3E%3Crect%20x='1'%20y='8'%20width='22'%20height='2'%20rx='1'%20fill='%2313221b'/%3E%3Crect%20x='1'%20y='14'%20width='22'%20height='2'%20rx='1'%20fill='%2313221b'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 24px 18px !important;
}
html body.hnv-site #site-navigation-menu-toggle.menu-toggle:hover,
html body.hnv-site .site-header .menu-toggle:hover,
html body.hnv-site button.menu-toggle:hover { background-color: #f1faf5 !important; }
/* Hide ALL pseudo-element and child icon sources. The hamburger is now drawn as
   a single inline-SVG background on the button itself (rule above), so it is one
   fixed image that can never be misaligned in any state. */
html body.hnv-site #site-navigation-menu-toggle.menu-toggle::before,
html body.hnv-site .site-header .menu-toggle::before,
html body.hnv-site button.menu-toggle::before,
html body.hnv-site .menu-toggle.toggled::before,
html body.hnv-site button.menu-toggle.toggled::before,
html body.hnv-site #site-navigation-menu-toggle.menu-toggle::after,
html body.hnv-site .site-header .menu-toggle::after,
html body.hnv-site button.menu-toggle::after,
html body.hnv-site .menu-toggle.toggled::after,
html body.hnv-site button.menu-toggle.toggled::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Neutralize EVERY child of the toggle (span/svg/i/em/b) AND their pseudo-
   elements, in BOTH the closed and .toggled states, so nothing but the button's
   own SVG background can draw bars. This kills the stray, wider middle bar that
   Storefront rendered via the child <span> in the closed (non-toggled) state.
   Visuals are removed but the element stays in flow for screen-reader text. */
html body.hnv-site .menu-toggle > *,
html body.hnv-site button.menu-toggle > *,
html body.hnv-site .menu-toggle.toggled > *,
html body.hnv-site button.menu-toggle.toggled > *,
html body.hnv-site .menu-toggle > *::before,
html body.hnv-site .menu-toggle > *::after,
html body.hnv-site button.menu-toggle > *::before,
html body.hnv-site button.menu-toggle > *::after,
html body.hnv-site .menu-toggle.toggled > *::before,
html body.hnv-site .menu-toggle.toggled > *::after {
  content: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  text-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Search widget / search form / cart buttons: modest, not big CTA pills */
.hnv-site .widget .search-form button,
.hnv-site .widget button[type="submit"],
.hnv-site .search-form button,
.hnv-site .wp-block-search__button,
.hnv-site .site-header-cart .button {
  background: var(--hnv-primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: .55rem 1rem !important;
  font-weight: 700;
}

/* Header site-search: keep the field and the submit button on one row */
.hnv-site .site-search .hnv-search-form,
.hnv-site .hnv-search-form {
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex-wrap: nowrap;
}
.hnv-site .hnv-search-form .search-field {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
}
.hnv-site .hnv-search-form .search-submit {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
  margin: 0;
}

/* ---- Buttons: ONLY our CTAs and WooCommerce action buttons ---- */
.hnv-btn,
.hnv-site .woocommerce a.button,
.hnv-site .woocommerce button.button,
.hnv-site .woocommerce input.button,
.hnv-site .woocommerce #respond input#submit,
.hnv-site .woocommerce a.button.alt,
.hnv-site .woocommerce button.button.alt {
  border-radius: 999px;
  background: var(--hnv-primary);
  border: 0;
  color: #fff !important;
  font-weight: 800;
  padding: .85rem 1.35rem;
  box-shadow: 0 12px 28px rgba(15, 143, 95, .22);
  text-decoration: none !important;
  display: inline-block;
}
.hnv-btn:hover,
.hnv-site .woocommerce a.button:hover,
.hnv-site .woocommerce button.button:hover,
.hnv-site .woocommerce input.button:hover,
.hnv-site .woocommerce a.button.alt:hover,
.hnv-site .woocommerce button.button.alt:hover { background: var(--hnv-primary-dark); color: #fff !important; }

.hnv-btn.hnv-btn-secondary { background: #fff; color: var(--hnv-primary) !important; border: 1px solid var(--hnv-border); box-shadow: none; }
.hnv-btn.hnv-btn-secondary:hover { color: var(--hnv-primary-dark) !important; background: #f1faf5; }

/* ---- Landing sections ---- */
.hnv-section { padding: 64px 0; }
.hnv-container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.hnv-hero {
  padding: 86px 0 72px;
  background:
    radial-gradient(circle at 15% 10%, rgba(109,93,252,.16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(15,143,95,.18), transparent 30%),
    linear-gradient(180deg, #ffffff, var(--hnv-bg));
}
.hnv-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.hnv-eyebrow { color: var(--hnv-primary); font-weight: 900; margin-bottom: 10px; }
.hnv-hero h1 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.35; margin: 0 0 18px; letter-spacing: -1px; }
.hnv-lead { font-size: 1.18rem; color: var(--hnv-muted); margin: 0 0 28px; }
.hnv-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hnv-hero-card,
.hnv-card,
.hnv-price-card {
  background: var(--hnv-surface);
  border: 1px solid var(--hnv-border);
  border-radius: var(--hnv-radius);
  box-shadow: var(--hnv-shadow);
}
.hnv-hero-card { padding: 28px; }
.hnv-hero-card ul { margin: 0; padding: 0; list-style: none; }
.hnv-hero-card li { padding: 10px 0; border-bottom: 1px solid var(--hnv-border); }
.hnv-hero-card li:last-child { border-bottom: 0; }

.hnv-section-title { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.hnv-section-title h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 10px; }
.hnv-section-title p { color: var(--hnv-muted); margin: 0; }
.hnv-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hnv-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hnv-card { padding: 24px; }
.hnv-card h3 { margin-top: 0; }
.hnv-card p { color: var(--hnv-muted); }

.hnv-price-card { padding: 26px; position: relative; }
.hnv-price-card.featured { border-color: rgba(15,143,95,.55); transform: translateY(-6px); }
.hnv-badge { display:inline-block; border-radius:999px; background:#e8fff4; color:var(--hnv-primary-dark); padding:.25rem .75rem; font-weight:900; font-size:.85rem; }
.hnv-price { font-size: 2rem; font-weight: 900; margin: 16px 0 6px; }
.hnv-price small { font-size: .95rem; color: var(--hnv-muted); font-weight: 700; }
.hnv-price-card ul { padding-right: 1.1rem; margin: 18px 0; }
.hnv-price-card li { margin-bottom: 8px; }

.hnv-faq details { background:#fff; border:1px solid var(--hnv-border); border-radius:16px; padding:16px 18px; margin-bottom:12px; }
.hnv-faq summary { cursor:pointer; font-weight:900; }
.hnv-faq p { color:var(--hnv-muted); margin:10px 0 0; }

.hnv-cta { background: linear-gradient(135deg, var(--hnv-primary-dark), var(--hnv-primary)); color: #fff; border-radius: 28px; padding: 40px; text-align: center; }
.hnv-cta h2, .hnv-cta p { color: #fff; }
.hnv-cta .hnv-btn-secondary { background: rgba(255,255,255,.12); color: #fff !important; border-color: rgba(255,255,255,.35); }
.hnv-cta .hnv-btn-secondary:hover { background: rgba(255,255,255,.22); color:#fff !important; }

.hnv-site .site-footer { background: #0f2219; color: rgba(255,255,255,.78); }
.hnv-site .site-footer a { color: #fff; }

/* ---- Landing / front page: full width, no sidebar, no page title ---- */
body.hnv-landing #secondary,
body.hnv-landing .widget-area { display: none !important; }
body.hnv-landing #primary,
body.hnv-landing .content-area {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  max-width: 100% !important;
}
body.hnv-landing .entry-header,
body.hnv-landing .page-title,
body.hnv-landing header.entry-header { display: none !important; }
body.hnv-landing .entry-content { margin-top: 0 !important; }
body.hnv-landing .site-content { padding-top: 0 !important; }

@media (max-width: 900px) {
  .hnv-hero-grid,
  .hnv-grid-3,
  .hnv-grid-2 { grid-template-columns: 1fr; }
  .hnv-price-card.featured { transform: none; }
  .hnv-actions { align-items: stretch; }
  .hnv-btn { text-align: center; }
}

/* ---- Professional footer ---- */
.hnv-site .site-footer {
  background: #0f2219 !important;
  color: rgba(255,255,255,.8);
  padding: 0 !important;
  margin-top: 0;
}
.hnv-footer { padding: 56px 0 0; }
.hnv-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.hnv-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding-bottom: 42px;
}
.hnv-footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 18px;
}
.hnv-footer-col ul { list-style: none; margin: 0; padding: 0; }
.hnv-footer-col li { margin-bottom: 11px; font-size: .95rem; }
.hnv-footer-col a { color: rgba(255,255,255,.74); text-decoration: none; transition: color .15s ease; }
.hnv-footer-col a:hover { color: #ffffff; }
.hnv-footer-logo { font-size: 1.55rem; font-weight: 900; color: #ffffff; margin-bottom: 14px; }
.hnv-footer-brand p { color: rgba(255,255,255,.7); line-height: 2.1; font-size: .95rem; margin: 0; }
.hnv-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.hnv-footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.hnv-footer-social a:hover { background: var(--hnv-primary); }
.hnv-footer-social svg { width: 20px; height: 20px; fill: #ffffff; }
.hnv-footer-contact ul li { color: rgba(255,255,255,.74); }
.hnv-footer-badges { margin-top: 18px; }
.hnv-badge-namad {
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  color: rgba(255,255,255,.62);
  font-size: .9rem;
  line-height: 1.7;
}
.hnv-badge-namad small { font-size: .78rem; opacity: .8; }
.hnv-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}
@media (max-width: 900px) {
  .hnv-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .hnv-footer-grid { grid-template-columns: 1fr; }
  .hnv-footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== v1.0.0: footer link contrast + header menu states ===== */
/* Brighter, high-contrast footer links on the dark green background */
.hnv-site .hnv-footer-col a,
.hnv-site .hnv-footer-contact ul li { color: #e8f1ec !important; }
.hnv-site .hnv-footer-col a:hover,
.hnv-site .hnv-footer-col a:focus { color: #ffffff !important; }
.hnv-site .hnv-footer-brand p { color: rgba(255,255,255,.85) !important; }

/* Header primary navigation: instant hover color + current-page highlight */
.hnv-site .main-navigation a,
.hnv-site .storefront-primary-navigation a {
  transition: color .15s ease, box-shadow .15s ease, background-color .15s ease !important;
}
.hnv-site .main-navigation ul li a:hover,
.hnv-site .main-navigation ul li a:focus,
.hnv-site .storefront-primary-navigation ul li a:hover,
.hnv-site .storefront-primary-navigation ul li a:focus {
  color: var(--hnv-primary) !important;
}
.hnv-site .main-navigation li.current-menu-item > a,
.hnv-site .main-navigation li.current_page_item > a,
.hnv-site .main-navigation li.current-menu-ancestor > a,
.hnv-site .main-navigation li.current-menu-parent > a,
.hnv-site .storefront-primary-navigation li.current-menu-item > a,
.hnv-site .storefront-primary-navigation li.current_page_item > a,
.hnv-site .storefront-primary-navigation li.current-menu-ancestor > a {
  color: var(--hnv-primary) !important;
  font-weight: 700 !important;
  box-shadow: inset 0 -2px 0 var(--hnv-primary) !important;
}
/* Handheld (mobile) navigation current item + hover */
.hnv-site .handheld-navigation li.current-menu-item > a,
.hnv-site .handheld-navigation li.current_page_item > a,
.hnv-site .handheld-navigation li.current-menu-ancestor > a {
  color: var(--hnv-primary) !important;
  font-weight: 700 !important;
}
.hnv-site .handheld-navigation a:hover,
.hnv-site .handheld-navigation a:focus { color: var(--hnv-primary) !important; }

/* ===== Pricing cards polish (v1.0.1) ===== */
.hnv-site .hnv-price-card { display: flex; flex-direction: column; }
.hnv-site .hnv-price-card ul { flex: 1 1 auto; }
.hnv-site .hnv-price-card .hnv-btn { margin-top: auto; align-self: stretch; text-align: center; }
.hnv-site .hnv-price span { font-size: .95rem; color: var(--hnv-muted); font-weight: 700; }

/* ===== Designed header for inner landing pages (v1.1.0) ===== */
body.hnv-hidetitle .entry-header,
body.hnv-hidetitle header.entry-header { display: none !important; }
.hnv-site .hnv-page-hero { text-align: center; padding: 54px 24px 40px; background: linear-gradient(180deg, #eafaf2 0%, #ffffff 100%); border: 1px solid var(--hnv-border); border-radius: 16px; margin: 6px 0 14px; }
.hnv-site .hnv-page-hero h1 { font-size: 2.4rem; line-height: 1.25; margin: 0 0 12px; color: var(--hnv-text); }
.hnv-site .hnv-page-hero p { color: var(--hnv-muted); max-width: 700px; margin: 0 auto; font-size: 1.05rem; line-height: 1.9; }
@media (max-width: 600px) { .hnv-site .hnv-page-hero { padding: 36px 16px 28px; } .hnv-site .hnv-page-hero h1 { font-size: 1.9rem; } }

/* ===== WooCommerce shop & product styling (v1.3.0) ===== */
/* Full width on WooCommerce pages (sidebar removed) */
.woocommerce.hnv-site .content-area, .woocommerce-page.hnv-site .content-area { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce.hnv-site #secondary, .woocommerce-page.hnv-site #secondary { display: none !important; }
/* Hide empty placeholder images */
.hnv-site img.woocommerce-placeholder { display: none !important; }
/* Shop grid as clean cards */
.woocommerce.hnv-site ul.products li.product { background:#fff; border:1px solid var(--hnv-border); border-radius:16px; padding:26px 22px; text-align:center; transition:transform .2s, box-shadow .2s; margin-bottom:24px; }
.woocommerce.hnv-site ul.products li.product:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(15,143,95,.12); }
.woocommerce.hnv-site ul.products li.product .woocommerce-loop-product__title { font-size:1.15rem; font-weight:800; color:var(--hnv-text); padding:0 0 10px; }
.woocommerce.hnv-site ul.products li.product .price { color:var(--hnv-text) !important; font-weight:900; font-size:1.3rem; }
.woocommerce.hnv-site ul.products li.product .price ins { text-decoration:none; }
/* Brand buttons across WooCommerce */
.woocommerce.hnv-site a.button, .woocommerce.hnv-site button.button, .woocommerce.hnv-site .button.alt, .woocommerce.hnv-site #respond input#submit, .woocommerce-page.hnv-site a.button, .woocommerce-page.hnv-site button.button, .single-product.hnv-site .single_add_to_cart_button { background:var(--hnv-primary) !important; color:#fff !important; border-radius:10px !important; font-weight:700 !important; border:0 !important; }
.woocommerce.hnv-site a.button:hover, .woocommerce.hnv-site button.button:hover, .woocommerce.hnv-site .button.alt:hover, .woocommerce-page.hnv-site a.button:hover, .single-product.hnv-site .single_add_to_cart_button:hover { background:var(--hnv-primary-dark) !important; }
/* Single product: text-focused full width */
.single-product.hnv-site div.product .woocommerce-product-gallery { display:none !important; }
.single-product.hnv-site div.product .summary.entry-summary { width:100% !important; float:none !important; margin:0 !important; }
.single-product.hnv-site div.product .entry-summary .price { color:var(--hnv-primary-dark); font-weight:900; }
.single-product.hnv-site div.product .product_title { color:var(--hnv-text); }

/* ===== Shop page designed hero header (v1.4.0) ===== */
.hnv-site .woocommerce-products-header { text-align:center; padding:54px 24px 40px; background:linear-gradient(180deg,#eafaf2 0%,#ffffff 100%); border:1px solid var(--hnv-border); border-radius:16px; margin:6px 0 28px; }
.hnv-site .woocommerce-products-header__title.page-title { font-size:2.4rem; line-height:1.25; margin:0 0 12px; color:var(--hnv-text); }
.hnv-site .hnv-shop-subtitle { color:var(--hnv-muted); max-width:700px; margin:0 auto; font-size:1.05rem; line-height:1.9; }
@media (max-width:600px){ .hnv-site .woocommerce-products-header__title.page-title{ font-size:1.9rem; } }

/* ===== Order-received / Thank-you page polish (v1.8.0) ===== */
/* Intro line: "سفارش دریافت شد" */
.hnv-site .woocommerce-thankyou-order-received { font-size:1.35rem; font-weight:800; color:var(--hnv-primary-dark); background:linear-gradient(180deg,#eafaf2 0%,#ffffff 100%); border:1px solid var(--hnv-border); border-radius:16px; padding:22px 24px; margin:0 0 28px; text-align:center; }
/* Order overview as a clean card row */
.hnv-site ul.woocommerce-order-overview { list-style:none; border:1px solid var(--hnv-border); border-radius:14px; padding:18px 24px; margin:0 0 32px; background:#fff; display:flex; flex-wrap:wrap; gap:16px 32px; }
.hnv-site ul.woocommerce-order-overview li { border:0 !important; flex:1 1 150px; margin:0; padding:0; text-transform:none; font-size:.9rem; color:var(--hnv-muted); }
.hnv-site ul.woocommerce-order-overview li strong { display:block; font-size:1.05rem; color:var(--hnv-text); font-weight:800; margin-top:5px; }
/* Section headings on the order page */
.hnv-site .woocommerce-order h2, .hnv-site .woocommerce-order h3, .hnv-site .woocommerce-order .woocommerce-order-details__title, .hnv-site .woocommerce-order .woocommerce-column__title { color:var(--hnv-primary-dark); font-weight:800; border-bottom:2px solid var(--hnv-border); padding-bottom:8px; margin:0 0 16px; }
/* Tables (order details / downloads / addresses) */
.hnv-site .woocommerce-order table.woocommerce-table, .hnv-site .woocommerce-order table.shop_table { border:1px solid var(--hnv-border) !important; border-radius:12px; border-collapse:separate !important; border-spacing:0; overflow:hidden; margin-bottom:30px; }
.hnv-site .woocommerce-order table.woocommerce-table thead th, .hnv-site .woocommerce-order table.shop_table thead th, .hnv-site .woocommerce-order table.shop_table tfoot th { background:#f3faf6; color:var(--hnv-text); font-weight:800; }
.hnv-site .woocommerce-order table.woocommerce-table th, .hnv-site .woocommerce-order table.woocommerce-table td, .hnv-site .woocommerce-order table.shop_table th, .hnv-site .woocommerce-order table.shop_table td { border-color:var(--hnv-border) !important; }
.hnv-site .woocommerce-order table a { color:var(--hnv-primary-dark); font-weight:700; }
/* Highlight the license key chip */
.hnv-site .woocommerce-order table td code, .hnv-site .woocommerce-order .dlm-license-key, .hnv-site .woocommerce-order .order-licenses-key { background:#eafaf2; color:var(--hnv-primary-dark); font-weight:800; padding:4px 12px; border-radius:8px; letter-spacing:1px; font-size:1rem; display:inline-block; }
/* Section spacing */
.hnv-site .woocommerce-order .woocommerce-order-downloads, .hnv-site .woocommerce-order .woocommerce-customer-details, .hnv-site .woocommerce-order .woocommerce-order-details { margin-top:34px; }
@media (max-width:600px){ .hnv-site ul.woocommerce-order-overview{ flex-direction:column; gap:14px; } }


/* eNamad trust seal in footer (v1.10.0) */
.hnv-badge-namad{display:inline-block;background:#fff;padding:8px;border-radius:10px;line-height:0;box-shadow:0 2px 8px rgba(0,0,0,.12);}
.hnv-badge-namad img{max-width:100px;height:auto;display:block;}


/* ===== Checkout: unify order-review box (v1.14.0/1.15.0) ===== */
/* Make the "your order" summary a single rounded card so the subtotal/total
   area no longer looks cut off / two-toned from the rest of the box. */
.hnv-site .woocommerce-checkout-review-order-table { border:1px solid var(--hnv-border) !important; border-radius:14px; border-collapse:separate !important; border-spacing:0; overflow:hidden; background:#fff; width:100%; }
.hnv-site .woocommerce-checkout-review-order-table thead th { background:#f3faf6; color:var(--hnv-text); font-weight:800; border:0 !important; padding:14px 16px; }
.hnv-site .woocommerce-checkout-review-order-table tbody td, .hnv-site .woocommerce-checkout-review-order-table tbody th { background:#fff; color:var(--hnv-text); border:0 !important; border-bottom:1px solid var(--hnv-border) !important; padding:12px 16px; }
.hnv-site .woocommerce-checkout-review-order-table tfoot th, .hnv-site .woocommerce-checkout-review-order-table tfoot td { background:#fff; color:var(--hnv-text); border:0 !important; border-bottom:1px solid var(--hnv-border) !important; padding:12px 16px; }
.hnv-site .woocommerce-checkout-review-order-table tfoot tr:last-child th, .hnv-site .woocommerce-checkout-review-order-table tfoot tr:last-child td { background:#f3faf6; font-weight:800; font-size:1.05rem; border-bottom:0 !important; }

/* Safety net: never show the "(optional)" suffix on the (now required) phone field */
.hnv-site #billing_phone_field label .optional { display:none !important; }

/* Phone field: guarantee exactly one red required star, like other required fields (v1.16.0). */
.hnv-site #billing_phone_field > label .optional,
.hnv-site #billing_phone_field > label .required { display: none !important; }
.hnv-site #billing_phone_field > label::after {
  content: " *" !important;
  color: #e2401c !important;
  font-weight: 700 !important;
}


/* ===== v1.22.0: keep primary nav on ONE line (stop "حساب کاربری" dropping on load) =====
   With the extra "افزایش اعتبار" menu item there are now enough items that the
   last one wrapped to a second line, and the wrap was most visible while the
   Persian webfont was still loading (layout shift / CLS). We (1) lay the menu
   out as a single non-wrapping flex row on desktop, (2) tighten item spacing so
   all items fit, and (3) reserve a stable height so nothing jumps during load. */
@media (min-width: 768px) {
  .hnv-site .storefront-primary-navigation .main-navigation ul.menu,
  .hnv-site .storefront-primary-navigation .main-navigation ul.nav-menu,
  .hnv-site .main-navigation ul.menu,
  .hnv-site .main-navigation ul.nav-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .hnv-site .storefront-primary-navigation .main-navigation > ul > li,
  .hnv-site .main-navigation > ul > li {
    flex: 0 0 auto !important;
    float: none !important;
  }
  /* tighten horizontal padding so the extra item fits on one row */
  .hnv-site .storefront-primary-navigation .main-navigation ul li a,
  .hnv-site .main-navigation ul li a {
    padding-left: .72em !important;
    padding-right: .72em !important;
    white-space: nowrap !important;
  }
  /* reserve the row height up-front to prevent the load-time drop (CLS) */
  .hnv-site .storefront-primary-navigation { min-height: 48px; }
}


/* =====================================================================
   v1.23.0 — Professional, responsive blog cards + single-post polish
   ===================================================================== */

/* --- Blog / archive: full width, no sidebar, clean card grid --- */
body.blog.hnv-site #secondary,
body.archive.hnv-site #secondary,
body.search.hnv-site #secondary { display: none !important; }

body.blog.hnv-site .content-area,
body.archive.hnv-site .content-area,
body.search.hnv-site .content-area {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* The post list becomes a responsive auto-fitting grid:
   1 column on phones, 2 on tablets, 3 on wide desktops — automatically. */
body.blog.hnv-site .site-main,
body.archive.hnv-site .site-main,
body.search.hnv-site .site-main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  align-items: start;
}

/* Page header, pagination and "nothing found" span the whole row. */
body.blog.hnv-site .site-main > *:not(article):not(.hentry),
body.archive.hnv-site .site-main > *:not(article):not(.hentry),
body.search.hnv-site .site-main > *:not(article):not(.hentry) {
  grid-column: 1 / -1;
}

/* --- The card itself --- */
body.blog.hnv-site .hentry,
body.archive.hnv-site .hentry,
body.search.hnv-site .hentry {
  background: var(--hnv-surface);
  border: 1px solid var(--hnv-border) !important;
  border-radius: var(--hnv-radius);
  box-shadow: var(--hnv-shadow);
  margin: 0 !important;
  padding: 0 0 22px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
body.blog.hnv-site .hentry:hover,
body.archive.hnv-site .hentry:hover,
body.search.hnv-site .hentry:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(15, 55, 38, .16);
}

/* Featured image flush to the card top */
body.blog.hnv-site .hentry .post-thumbnail,
body.archive.hnv-site .hentry .post-thumbnail,
body.search.hnv-site .hentry .post-thumbnail {
  display: block; margin: 0; line-height: 0;
}
body.blog.hnv-site .hentry .post-thumbnail img,
body.archive.hnv-site .hentry .post-thumbnail img,
body.search.hnv-site .hentry .post-thumbnail img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  transition: transform .35s ease;
}
body.blog.hnv-site .hentry:hover .post-thumbnail img,
body.archive.hnv-site .hentry:hover .post-thumbnail img { transform: scale(1.04); }

/* Inner padding for the text areas (image stays edge-to-edge) */
body.blog.hnv-site .hentry .entry-header,
body.blog.hnv-site .hentry .entry-content,
body.blog.hnv-site .hentry .entry-meta,
body.blog.hnv-site .hentry .post-taxonomy,
body.blog.hnv-site .hentry .entry-footer,
body.archive.hnv-site .hentry .entry-header,
body.archive.hnv-site .hentry .entry-content,
body.archive.hnv-site .hentry .entry-meta,
body.archive.hnv-site .hentry .post-taxonomy,
body.archive.hnv-site .hentry .entry-footer,
body.search.hnv-site .hentry .entry-header,
body.search.hnv-site .hentry .entry-content,
body.search.hnv-site .hentry .entry-meta,
body.search.hnv-site .hentry .post-taxonomy,
body.search.hnv-site .hentry .entry-footer {
  padding-left: 26px; padding-right: 26px;
}
body.blog.hnv-site .hentry .entry-header,
body.archive.hnv-site .hentry .entry-header,
body.search.hnv-site .hentry .entry-header { padding-top: 22px; margin: 0; border: 0; }

/* Title */
body.blog.hnv-site .hentry .entry-title,
body.archive.hnv-site .hentry .entry-title,
body.search.hnv-site .hentry .entry-title {
  font-size: 1.28rem; line-height: 1.6; margin: 0 0 8px; font-weight: 800;
}
body.blog.hnv-site .hentry .entry-title a,
body.archive.hnv-site .hentry .entry-title a,
body.search.hnv-site .hentry .entry-title a { color: var(--hnv-text); }
body.blog.hnv-site .hentry .entry-title a:hover,
body.archive.hnv-site .hentry .entry-title a:hover,
body.search.hnv-site .hentry .entry-title a:hover { color: var(--hnv-primary); }

/* Meta line: keep the date, hide the raw username byline */
body.blog.hnv-site .hentry .entry-meta,
body.archive.hnv-site .hentry .entry-meta,
body.search.hnv-site .hentry .entry-meta {
  font-size: .82rem; color: var(--hnv-muted); margin: 0 0 12px;
}
body.blog.hnv-site .hentry .entry-meta a,
body.archive.hnv-site .hentry .entry-meta a { color: var(--hnv-muted); }
body.blog.hnv-site .hentry .entry-meta .byline,
body.archive.hnv-site .hentry .entry-meta .byline,
body.search.hnv-site .hentry .entry-meta .byline,
body.single-post.hnv-site .entry-meta .byline { display: none !important; }

/* Excerpt fills the card so the button aligns at the bottom */
body.blog.hnv-site .hentry .entry-content,
body.archive.hnv-site .hentry .entry-content,
body.search.hnv-site .hentry .entry-content {
  color: var(--hnv-muted); line-height: 2; font-size: .95rem;
  flex: 1 1 auto; margin: 0;
}

/* Read-more button */
.hnv-site .hnv-readmore { margin: 16px 0 0 !important; }
.hnv-site .hnv-readmore .button {
  background: var(--hnv-primary) !important; color: #fff !important;
  border: 0 !important; border-radius: 10px !important;
  padding: .55em 1.35em !important; font-weight: 700 !important;
  display: inline-block !important; box-shadow: none !important;
}
.hnv-site .hnv-readmore .button:hover { background: var(--hnv-primary-dark) !important; }

/* Category / tag chips */
body.blog.hnv-site .hentry .post-taxonomy,
body.archive.hnv-site .hentry .post-taxonomy,
body.search.hnv-site .hentry .post-taxonomy { font-size: .8rem; margin-top: 14px; color: var(--hnv-muted); }
.hnv-site .post-taxonomy .cat-links a,
.hnv-site .post-taxonomy .tags-links a {
  display: inline-block; background: #e8fff4; color: var(--hnv-primary-dark);
  padding: .2rem .7rem; border-radius: 999px; font-weight: 700; font-size: .78rem;
  margin: 2px 0 2px 6px;
}
.hnv-site .post-taxonomy .cat-links a:hover,
.hnv-site .post-taxonomy .tags-links a:hover { background: var(--hnv-primary); color: #fff; }

/* Storefront's default archive/search page header is hidden here: the custom
   .hnv-blog-hero rendered via storefront_loop_before is the single hero on
   these pages, so the default .page-header would be a duplicate box. */
body.archive.hnv-site .page-header,
body.search.hnv-site .page-header { display: none; }

/* --- Pagination --- */
.hnv-site .site-main .woocommerce-pagination ul,
.hnv-site .site-main nav.navigation .nav-links {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px;
}
.hnv-site nav.navigation .nav-links a,
.hnv-site nav.navigation .nav-links span {
  display: inline-block; padding: .5em 1em; border-radius: 10px;
  border: 1px solid var(--hnv-border); background: #fff; color: var(--hnv-text); font-weight: 700;
}
.hnv-site nav.navigation .nav-links .current { background: var(--hnv-primary); color: #fff; border-color: var(--hnv-primary); }

/* Custom RTL pagination.
   The Persian «قبلی/بعدی» labels were rendering mirrored/reversed because an
   inherited rule (Storefront's LTR base / an RTL helper) applied a horizontal
   flip (transform: scaleX(-1)) and/or a bidi override to the pagination links.
   A scaleX flip mirrors the glyphs, and a bidi override reverses their order —
   together they produce the «قرینه» look. Neutralize every transform/bidi that
   can mangle Persian shaping here, and pin the labels to correct RTL rendering.
   These win over inherited rules via !important. */
.hnv-site nav.navigation.pagination,
.hnv-site nav.navigation.pagination .nav-links {
  direction: rtl !important;
  text-align: center;
  transform: none !important;
  -webkit-transform: none !important;
}
.hnv-site nav.navigation .nav-links a,
.hnv-site nav.navigation .nav-links span,
.hnv-site nav.navigation .nav-links a.page-numbers,
.hnv-site nav.navigation .nav-links span.page-numbers {
  direction: rtl !important;
  unicode-bidi: isolate !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
  -webkit-transform: none !important;
}
/* Strip any inherited arrow glyphs on the prev/next links. */
.hnv-site nav.navigation .nav-links a.prev::before,
.hnv-site nav.navigation .nav-links a.prev::after,
.hnv-site nav.navigation .nav-links a.next::before,
.hnv-site nav.navigation .nav-links a.next::after { content: none !important; }

/* =====================================================================
   Single post — readable, centered, fully responsive article layout
   ===================================================================== */
body.single-post.hnv-site #secondary { display: none !important; }
body.single-post.hnv-site .content-area {
  width: 100% !important; float: none !important; margin: 0 !important;
}
body.single-post.hnv-site .site-main { max-width: 820px; margin: 0 auto; }

body.single-post.hnv-site .hentry { margin: 0 !important; border: 0 !important; }

body.single-post.hnv-site .entry-header { margin: 0 0 18px; }
body.single-post.hnv-site .entry-title {
  font-size: 2.3rem; line-height: 1.4; margin: 0 0 12px; color: var(--hnv-text); font-weight: 900;
}
body.single-post.hnv-site .entry-meta { font-size: .9rem; color: var(--hnv-muted); margin: 0 0 18px; }
body.single-post.hnv-site .entry-meta a { color: var(--hnv-muted); }

body.single-post.hnv-site .post-thumbnail { display: block; margin: 0 0 26px; line-height: 0; }
body.single-post.hnv-site .post-thumbnail img {
  width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--hnv-radius); display: block;
}

/* Article typography */
body.single-post.hnv-site .entry-content {
  font-size: 1.06rem; line-height: 2.15; color: var(--hnv-text);
}
body.single-post.hnv-site .entry-content h2 { font-size: 1.6rem; font-weight: 800; margin: 1.8em 0 .6em; color: var(--hnv-text); }
body.single-post.hnv-site .entry-content h3 { font-size: 1.3rem; font-weight: 800; margin: 1.5em 0 .5em; color: var(--hnv-text); }
body.single-post.hnv-site .entry-content p { margin: 0 0 1.3em; }
body.single-post.hnv-site .entry-content ul,
body.single-post.hnv-site .entry-content ol { margin: 0 0 1.4em; padding-right: 1.4em; }
body.single-post.hnv-site .entry-content li { margin: .4em 0; }
body.single-post.hnv-site .entry-content blockquote {
  border-right: 4px solid var(--hnv-primary); background: #f3faf6;
  margin: 1.6em 0; padding: 14px 20px; border-radius: 12px; color: var(--hnv-text);
}
body.single-post.hnv-site .entry-content a { color: var(--hnv-primary); font-weight: 700; text-decoration: underline; }
body.single-post.hnv-site .entry-content a:hover { color: var(--hnv-primary-dark); }

/* Responsive media inside any post content */
.hnv-site .entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.hnv-site .entry-content iframe,
.hnv-site .entry-content video { max-width: 100%; }
.hnv-site .entry-content table { display: block; overflow-x: auto; }

/* Single post footer / taxonomy */
body.single-post.hnv-site .post-taxonomy { margin-top: 26px; font-size: .9rem; color: var(--hnv-muted); }
body.single-post.hnv-site .author-info,
body.single-post.hnv-site .comments-area { margin-top: 30px; }

/* --- Fine-tuning for tablets and phones --- */
@media (max-width: 768px) {
  body.single-post.hnv-site .entry-title { font-size: 1.9rem; }
  body.single-post.hnv-site .entry-content { font-size: 1.02rem; line-height: 2.05; }
}
@media (max-width: 480px) {
  body.blog.hnv-site .site-main,
  body.archive.hnv-site .site-main,
  body.search.hnv-site .site-main { gap: 20px; }
  body.blog.hnv-site .hentry .entry-header,
  body.blog.hnv-site .hentry .entry-content,
  body.blog.hnv-site .hentry .entry-meta,
  body.blog.hnv-site .hentry .post-taxonomy,
  body.archive.hnv-site .hentry .entry-header,
  body.archive.hnv-site .hentry .entry-content,
  body.archive.hnv-site .hentry .entry-meta,
  body.archive.hnv-site .hentry .post-taxonomy { padding-left: 18px; padding-right: 18px; }
  body.blog.hnv-site .hentry .post-thumbnail img,
  body.archive.hnv-site .hentry .post-thumbnail img { height: 180px; }
  body.blog.hnv-site .hentry .entry-title,
  body.archive.hnv-site .hentry .entry-title { font-size: 1.18rem; }
  body.single-post.hnv-site .entry-title { font-size: 1.6rem; }
  body.archive.hnv-site .page-header .page-title,
  body.search.hnv-site .page-header .page-title { font-size: 1.7rem; }
}

/* =====================================================================
   v1.23.2 — Cleaner blog cards: no publish date, no "read more" button,
   and a single category chip (no duplicate). Suppress any Storefront-native
   loop meta so the category is never shown twice on the card.
   ===================================================================== */
body.blog.hnv-site .hentry .entry-meta,
body.archive.hnv-site .hentry .entry-meta,
body.search.hnv-site .hentry .entry-meta,
body.blog.hnv-site .hentry .comments-link,
body.archive.hnv-site .hentry .comments-link,
body.search.hnv-site .hentry .comments-link,
body.blog.hnv-site .hentry .posted-on,
body.archive.hnv-site .hentry .posted-on,
body.search.hnv-site .hentry .posted-on { display: none !important; }

/* The single category chip sits neatly at the bottom of the card. */
body.blog.hnv-site .hentry .post-taxonomy,
body.archive.hnv-site .hentry .post-taxonomy,
body.search.hnv-site .hentry .post-taxonomy { margin-top: 16px; }

/* =====================================================================
   v1.23.4 — Blog page header (hero) + justified single-post text
   ===================================================================== */

/* Blog / archive / search hero: spans the full grid row and sits above the
   cards. Base look is inherited from .hnv-page-hero; add breathing room. */
body.blog.hnv-site .site-main > .hnv-blog-hero,
body.archive.hnv-site .site-main > .hnv-blog-hero,
body.search.hnv-site .site-main > .hnv-blog-hero {
  grid-column: 1 / -1;
  margin: 0 0 10px;
}

/* Justify the single-post body text on every device (desktop, tablet, phone)
   for a clean, tidy column. Keep the last line aligned to the start (RTL). */
body.single-post.hnv-site .entry-content p,
body.single-post.hnv-site .entry-content li {
  text-align: justify;
  text-align-last: right;
  text-justify: inter-word;
}

/* ---- v1.33.1 pricing toggle ---- */
.hnv-period-toggle{display:flex;justify-content:center;align-items:center;gap:6px;margin-bottom:44px;direction:rtl;}
.hnv-period-btn{border:2px solid #d0d5e8;background:#fff;padding:14px 36px;border-radius:16px;font-size:17px;font-weight:700;cursor:pointer;color:#888;transition:all .2s;display:flex;align-items:center;gap:10px;font-family:inherit;line-height:1.4;}
.hnv-period-btn.active{background:#5b5bd6;border-color:#5b5bd6;color:#fff;box-shadow:0 4px 16px rgba(91,91,214,.35);}
.hnv-gift-badge{background:#0d9e6e;color:#fff;font-size:12px;padding:3px 10px;border-radius:999px;font-weight:700;white-space:nowrap;}
.hnv-price-card .hnv-price{transition:opacity .15s;}
/* ---- end v1.33.1 ---- */

/* ---- v1.33.2 variable product price display ---- */
.hnv-var-prices{display:flex;flex-direction:column;gap:10px;margin:16px 0;}
.hnv-var-price-row{display:flex;align-items:center;gap:14px;padding:12px 16px;background:#f8f9fc;border-radius:12px;direction:rtl;}
.hnv-var-price-row.yearly{background:#eef0ff;}
.hnv-var-label{font-size:14px;color:#666;min-width:52px;font-weight:600;}
.hnv-var-amount{font-size:22px;font-weight:800;color:#1a1a2e;flex:1;}
.hnv-var-badge{background:#0d9e6e;color:#fff;font-size:11px;padding:3px 10px;border-radius:999px;font-weight:700;white-space:nowrap;}
/* ---- end v1.33.2 ---- */

