/* IHT header/footer 0.3 — isolated preview or opted-in real home only. */
body.ihthf-preview-page{background:#171717;color:#fff;margin:0;min-height:100vh;font-family:Vazirmatn,Tahoma,sans-serif;font-size:14px}
body.ihthf-preview-page .ihthf-root,body.ihthf-preview-page .ihthf-root *{box-sizing:border-box}
.ihthf-root{width:100%;min-height:100vh;display:flex;flex-direction:column;font-family:Vazirmatn,Tahoma,sans-serif;direction:rtl}
.ihthf-root a{color:inherit;text-decoration:none}
.ihthf-root button,.ihthf-root input{font:inherit}
.ihthf-header{position:relative;z-index:50;width:100%;background:#242c31;border-bottom:1px solid #313940;min-height:76px}
.ihthf-header-inner{direction:ltr;max-width:1920px;margin:auto;width:100%;padding:6px clamp(16px,2vw,36px);min-height:76px;display:flex;align-items:center;gap:clamp(12px,1.4vw,28px)}
.ihthf-brand{display:block;flex:0 0 auto;line-height:0}
.ihthf-brand img{display:block;width:120px;height:auto;aspect-ratio:120/65;object-fit:contain}
.ihthf-nav{direction:rtl;flex:1 1 auto;min-width:0}
.ihthf-menu,.ihthf-menu ul{margin:0;padding:0;list-style:none}
.ihthf-nav>.ihthf-menu{display:flex;align-items:center;justify-content:space-between;gap:clamp(6px,0.8vw,16px)}
.ihthf-menu li{position:relative}
.ihthf-nav .ihthf-menu>li>a{font-size:clamp(12px,.9vw,16px);font-weight:900;line-height:1.5;white-space:nowrap;display:block;padding:10px 0}
.ihthf-menu li a:hover,.ihthf-menu li a:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:6px}
.ihthf-menu .sub-menu{position:absolute;top:100%;right:0;min-width:195px;display:none;background:#242c31;border:1px solid #45515c;border-radius:8px;box-shadow:0 12px 24px #0008;padding:8px;z-index:5}
.ihthf-menu .sub-menu li a{display:block;white-space:nowrap;padding:8px 10px;font-size:13px;font-weight:500}
.ihthf-menu li:hover>.sub-menu,.ihthf-menu li:focus-within>.sub-menu{display:block}
.ihthf-menu .sub-menu .sub-menu{right:100%;top:0}
.ihthf-tools{direction:rtl;display:flex;align-items:center;gap:6px;flex:0 0 auto}
.ihthf-tools details{position:relative}
.ihthf-tools summary{display:grid;place-items:center;cursor:pointer;list-style:none;width:42px;height:42px;border-radius:8px}
.ihthf-tools summary::-webkit-details-marker{display:none}
.ihthf-tools summary:hover,.ihthf-tools summary:focus-visible{background:#3c454a}
.ihthf-tools svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ihthf-search form{position:absolute;z-index:20;left:0;top:calc(100% + 12px);width:min(350px,calc(100vw - 32px));padding:14px;display:flex;gap:8px;background:#252d32;border:1px solid #45515c;border-radius:10px;box-shadow:0 12px 28px #0009}
.ihthf-search input{min-width:0;flex:1;padding:9px 12px;border-radius:6px;border:1px solid #66727b;background:#fff;color:#181818}
.ihthf-search button{border:0;border-radius:6px;background:#eee;color:#111;padding:8px 13px;cursor:pointer}
.ihthf-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ihthf-mobile-menu{display:none}
.ihthf-content{width:100%;flex:1;min-height:0;padding:0;margin:0;display:block}
.ihthf-content .ihtls{width:100%;margin:0;max-width:none}
.ihthf-notice{text-align:center;padding:5rem 1rem;color:white}
.ihthf-footer{width:100%;background:#171717;border-top:1px solid #333;margin-top:auto}
.ihthf-footer-inner{max-width:1920px;margin:auto;padding:22px clamp(18px,3vw,48px);display:grid;grid-template-columns:minmax(120px,1fr) minmax(230px,2fr) minmax(170px,1fr);gap:18px;align-items:center}
.ihthf-footer-brand{justify-self:start;display:inline-block;line-height:0}
.ihthf-footer-brand img{width:120px;height:auto;aspect-ratio:120/65;object-fit:contain}
.ihthf-footer-center{text-align:center;font-size:13px;font-weight:400}
.ihthf-footer-center p{line-height:1.8;margin:8px 0 0}
.ihthf-social{display:flex;align-items:center;justify-content:center;gap:16px}
.ihthf-social a{display:grid;place-items:center;width:28px;height:28px;border-radius:6px}
.ihthf-social a:hover{background:#303a40}
.ihthf-social svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.ihthf-trust{display:flex;align-items:center;justify-self:end;gap:9px;flex-wrap:wrap;max-width:280px}
.ihthf-trust a,.ihthf-trust span{padding:8px 10px;min-height:34px;border:1px solid #555;border-radius:6px;font-size:11px;line-height:1.5;color:#d4d4d4;text-align:center}
.ihthf-trust span{opacity:.72}
@media(max-width:1450px){.ihthf-header-inner{gap:12px}.ihthf-nav .ihthf-menu>li>a{font-size:12px}}
@media(max-width:1180px){
 .ihthf-nav{display:none}
 .ihthf-mobile-menu{display:block}
 .ihthf-header-inner{justify-content:space-between}
 .ihthf-mobile-panel{direction:rtl;position:absolute;top:calc(100% + 12px);left:auto;right:0;width:min(370px,calc(100vw - 32px));max-height:min(75vh,650px);overflow:auto;background:#252d32;border:1px solid #485158;box-shadow:0 16px 35px #0009;border-radius:9px;padding:8px 14px}
 .ihthf-mobile-panel .ihthf-menu li a{display:block;padding:10px 8px;border-bottom:1px solid #ffffff1a;font-size:14px;font-weight:600}
 .ihthf-mobile-panel .ihthf-menu .sub-menu{position:static;display:block;border:0;background:transparent;box-shadow:none;min-width:0;padding:0 18px 5px 0}
 .ihthf-mobile-panel .ihthf-menu .sub-menu li a{font-size:12px;font-weight:400}
}
@media(max-width:600px){
 .ihthf-header,.ihthf-header-inner{min-height:68px}
 .ihthf-header-inner{padding:3px 14px;gap:8px}
 .ihthf-brand img{width:100px}
 .ihthf-tools summary{height:40px;width:40px}
 .ihthf-search form{left:auto;right:0}
 .ihthf-footer-inner{grid-template-columns:1fr;justify-items:center;gap:12px;text-align:center;padding:24px 16px}
 .ihthf-footer-brand,.ihthf-trust{justify-self:center}
 .ihthf-footer-brand img{width:110px}
 .ihthf-footer-center{font-size:12px}
 .ihthf-trust{justify-content:center}
}

/* Full cloned homepage: restore XTRA-compatible content wrapper without
   affecting the previously benchmarked /test-slider/ layout. */
body.ihthf-preview-page .ihthf-home-content{overflow:visible;min-width:0}
body.ihthf-preview-page .ihthf-home-content>.ihthf-home-row{margin-left:auto;margin-right:auto}
body.ihthf-preview-page .ihthf-home-content .wpb-content-wrapper{max-width:100%}
body.ihthf-preview-page .ihthf-home-content img{max-width:100%;height:auto}

/* v0.4: global header/footer, but DO NOT replace WordPress page templates.
 * Hide native XTRA header/footer only for internal pages where custom chrome
 * was injected. Original cover, sidebars, wpbakery and WooCommerce remain.
 */
body.ihthf-global-chrome #site_header,
body.ihthf-global-chrome #site_footer,
body.ihthf-global-chrome header.page_header,
body.ihthf-global-chrome footer.page_footer {display:none !important;}
body.ihthf-global-chrome .ihthf-global-header-root,
body.ihthf-global-chrome .ihthf-global-footer-root {
  width:100%;height:auto;min-height:0;display:block;color:#fff;direction:rtl;
  margin:0;padding:0;box-sizing:border-box;isolation:isolate;
}
body.ihthf-global-chrome .ihthf-global-header-root {position:relative;z-index:100;}
body.ihthf-global-chrome .ihthf-global-footer-root {position:relative;z-index:5;}
body.ihthf-global-chrome .ihthf-global-footer-root .ihthf-footer {margin-top:0;}
body.ihthf-global-chrome .ihthf-global-header-root .ihthf-header,
body.ihthf-global-chrome .ihthf-global-footer-root .ihthf-footer {color:#fff;}
