/* Novigrad appearance corrections after the Elementor migration, 3.1.2. */
body.tq-novigrad.wp-theme-toopa-qeshm .product-rail ul.products{gap:16px}
body.tq-novigrad.wp-theme-toopa-qeshm .product-rail ul.products li.product{flex-basis:calc((100% - 96px)/7)}
body.tq-novigrad.wp-theme-toopa-qeshm .woocommerce ul.products li.product a img{aspect-ratio:9/14;border-radius:15px}
body.tq-novigrad.wp-theme-toopa-qeshm .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px!important;line-height:21px!important;min-height:42px}
body.tq-novigrad.wp-theme-toopa-qeshm .section-heading h2{font-size:24px;line-height:32px}
body.tq-novigrad.wp-theme-toopa-qeshm .view-all{border-color:#eee;color:#fff;border-radius:8px;min-height:35px;padding:6px 12px}
body.tq-novigrad.wp-theme-toopa-qeshm .discovery-filter{border-radius:16px}
body.tq-novigrad.wp-theme-toopa-qeshm .discovery-filter summary{border:1px solid #ffffff40;border-radius:8px;min-height:50px;padding:10px 16px;align-items:center}
/* Elementor account pages do not carry the old .page-content ancestor. */
body.tq-novigrad.wp-theme-toopa-qeshm.tq-auth #main{width:100%;max-width:none;min-height:100dvh;margin:0;padding:48px 20px;display:flex;align-items:center;justify-content:center}
body.tq-novigrad.wp-theme-toopa-qeshm.tq-auth #main>article{width:100%;margin:0}
body.tq-novigrad.wp-theme-toopa-qeshm.tq-auth .tq-builder-commerce{min-height:0;background:none;padding:0;border:0}
body.tq-novigrad.wp-theme-toopa-qeshm.tq-auth :is(.tq-builder-commerce>.woocommerce,.page-content>article>.woocommerce){box-sizing:border-box;width:100%;max-width:550px;margin:0 auto;background:#1d1c21;border-radius:16px;padding:48px;color:#fff}
body.tq-novigrad.wp-theme-toopa-qeshm.tq-auth .tq-builder-commerce>.woocommerce>h2{margin:0 0 24px;padding:12px;text-align:center;font-size:16px;line-height:22px;background:var(--lime);color:#172400;border-radius:30px}
body.tq-novigrad.wp-theme-toopa-qeshm.tq-auth .woocommerce form :is(input.input-text,input[type=password],input[type=email]){box-sizing:border-box;display:block;width:100%;height:58px;border:1px solid #ffffff40;border-radius:8px;background:#0d0d0d;color:#fff;padding:14px 16px}
body.tq-novigrad.wp-theme-toopa-qeshm.tq-auth .woocommerce form :is(input.input-text,input[type=password],input[type=email]):focus{border-color:var(--lime);outline:2px solid #96f20740;outline-offset:2px}
body.tq-novigrad.wp-theme-toopa-qeshm.tq-auth .woocommerce form button.button{min-height:55px;width:100%;border-radius:8px;background:var(--lime);color:#172400}
body.tq-novigrad.wp-theme-toopa-qeshm.tq-auth .tq-auth-back{margin-top:24px}
body.tq-novigrad.wp-theme-toopa-qeshm :is(.tq-auth-brand,.footer-bottom) .brand::before{content:"";display:block;width:48px;height:30px;flex:0 0 48px;background:url("images/toopa-qeshm-logo-header.webp") center/contain no-repeat}
body.tq-novigrad.wp-theme-toopa-qeshm :is(.tq-auth-brand,.footer-bottom) .brand>.icon{display:none}
/* Reference footer: three vertical strips in the right quarter of the desktop. */
body.tq-novigrad.wp-theme-toopa-qeshm .site-footer{padding:0 40px 24px}
body.tq-novigrad.wp-theme-toopa-qeshm .footer-strips{display:flex;flex-direction:column;gap:16px;width:25%;min-width:280px;max-width:100%;margin:0 0 16px;padding-top:16px;position:relative}
body.tq-novigrad.wp-theme-toopa-qeshm .site-footer::before{content:"";display:block;height:1px;background:#ffffff36}
body.tq-novigrad.wp-theme-toopa-qeshm .footer-strip{flex:none;box-sizing:border-box;min-height:50px;padding:10px 16px;font-size:16px;line-height:24px;border-radius:3px;border:1px solid #ffffff50;box-shadow:0 0 18px #ffffff12}
body.tq-novigrad.wp-theme-toopa-qeshm .footer-strip:nth-child(1){background:linear-gradient(110deg,#ff986f,#ff657b)}
body.tq-novigrad.wp-theme-toopa-qeshm .footer-strip:nth-child(2){background:linear-gradient(110deg,#92d4ef,#60bde6);border-color:#9b59b6}
body.tq-novigrad.wp-theme-toopa-qeshm .footer-strip:nth-child(n+3){background:linear-gradient(110deg,#92d4ef,#60bde6)}
body.tq-novigrad.wp-theme-toopa-qeshm .footer-strip>.icon:last-child{border-radius:50%;background:#ffffff40;padding:4px;width:22px;height:22px}
body.tq-novigrad.wp-theme-toopa-qeshm .footer-bottom{padding-top:16px;font-size:13px}
@media(min-width:769px) and (max-width:1200px){
 body.tq-novigrad.wp-theme-toopa-qeshm .product-rail ul.products li.product{flex-basis:calc((100% - 80px)/6)}
}
@media(max-width:768px){
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-inner{display:flex;justify-content:space-between;padding:12px;gap:8px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-inner>.brand,body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-inner>.custom-logo-link{position:static;inset:auto;transform:none;width:auto;flex-shrink:0;font-size:15px;gap:4px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-inner>.brand::before{width:40px;flex-basis:40px;height:26px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-actions{display:flex;flex:1;width:auto;min-width:0;gap:6px;direction:ltr;margin:0;justify-content:flex-start}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-actions .theme-switch{order:1;width:36px;min-width:36px;flex:0 0 36px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-actions .header-search{order:2}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-actions .tq-notifications{order:3;width:36px;min-width:36px;flex:0 0 36px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-actions .cart-link{order:4}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-actions .mobile-toggle{order:5;width:64px;min-width:64px;padding-inline:4px;flex:0 0 64px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-actions :is(.header-square,.tq-notification-button){width:36px;min-width:36px;height:36px;min-height:36px;padding:7px;border-radius:5px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .tq-notification-button svg{width:20px;height:20px;flex-basis:20px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .tq-notification-panel{position:fixed;top:calc(64px + env(safe-area-inset-top));left:12px;right:auto;max-width:calc(100vw - 24px)}
 body.tq-novigrad.wp-theme-toopa-qeshm.home .hero{height:clamp(620px,185vw,760px)}
 body.tq-novigrad.wp-theme-toopa-qeshm.home .hero .hero-copy{top:28%;bottom:auto;left:12px;right:auto;width:calc(100% - 24px);text-align:left}
 body.tq-novigrad.wp-theme-toopa-qeshm.home .hero .hero-title{font-size:26px;line-height:34px;text-align:left;margin:0 0 16px}
 body.tq-novigrad.wp-theme-toopa-qeshm.home .hero .hero-meta{justify-content:flex-end;font-size:11px;gap:8px}
 body.tq-novigrad.wp-theme-toopa-qeshm.home .hero .hero-product-link{display:grid;top:38%;right:20%;width:80px;height:80px}
 body.tq-novigrad.wp-theme-toopa-qeshm.home .hero .hero-thumbnails{display:flex;align-items:flex-end;inset-inline:auto;left:12px;right:auto;bottom:6px;width:calc(100% - 24px);max-width:none;gap:22px;direction:rtl;padding:4px 0;overflow-x:auto}
 body.tq-novigrad.wp-theme-toopa-qeshm.home .hero .hero-thumbnails button{flex:0 0 166px;width:166px;height:258px;border-radius:15px;min-height:0}
 body.tq-novigrad.wp-theme-toopa-qeshm.home .hero .hero-thumbnails button[aria-pressed=true]{flex-basis:180px;width:180px;height:278px;border:2px solid #fff}
 body.tq-novigrad.wp-theme-toopa-qeshm.home .hero .hero-dots{display:none}
 body.tq-novigrad.wp-theme-toopa-qeshm.home .hero .hero-controls{bottom:290px;right:12px;left:auto}
 body.tq-novigrad.wp-theme-toopa-qeshm .collection{margin-bottom:72px}
 body.tq-novigrad.wp-theme-toopa-qeshm .section-heading{margin-bottom:24px}
 body.tq-novigrad.wp-theme-toopa-qeshm .section-heading h2{font-size:22px;line-height:30px}
 body.tq-novigrad.wp-theme-toopa-qeshm .view-all{font-size:13px;min-height:35px;padding:6px 12px}
 body.tq-novigrad.wp-theme-toopa-qeshm .product-rail ul.products li.product{flex-basis:calc((100% - 32px)/3)}
 body.tq-novigrad.wp-theme-toopa-qeshm .woocommerce ul.products li.product a img{aspect-ratio:9/14;border-radius:7px}
 body.tq-novigrad.wp-theme-toopa-qeshm .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:12px!important;line-height:18px!important;min-height:36px}
 body.tq-novigrad.wp-theme-toopa-qeshm .woocommerce ul.products li.product .price{font-size:11px!important;line-height:17px}
 body.tq-novigrad.wp-theme-toopa-qeshm .content-wrap,body.tq-novigrad.wp-theme-toopa-qeshm.tq-builder-home #main .e-con:has(.elementor-widget-tq-filters){padding:40px 12px 0}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-footer{padding:0 12px 24px}
 body.tq-novigrad.wp-theme-toopa-qeshm .footer-strips{width:100%;min-width:0}
 body.tq-novigrad.wp-theme-toopa-qeshm .footer-strip{font-size:16px}
 body.tq-novigrad.wp-theme-toopa-qeshm .footer-bottom{font-size:12px;padding-bottom:80px}
 body.tq-novigrad.wp-theme-toopa-qeshm.tq-auth #main{padding:30px 12px}
 body.tq-novigrad.wp-theme-toopa-qeshm.tq-auth :is(.tq-builder-commerce>.woocommerce,.page-content>article>.woocommerce){padding:30px 22px;border-radius:12px}
}
@media(max-width:360px){
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-inner{padding-inline:10px;gap:6px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-inner>.brand{font-size:14px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-inner>.brand::before{width:34px;flex-basis:34px;height:24px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-actions{gap:4px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-actions :is(.theme-switch,.tq-notifications){width:30px;min-width:30px;flex-basis:30px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-actions :is(.header-square,.tq-notification-button){width:30px;min-width:30px;height:30px;min-height:30px;padding:5px}
 body.tq-novigrad.wp-theme-toopa-qeshm .site-header .header-actions .mobile-toggle{width:48px;min-width:48px;flex-basis:48px;font-size:9px}
}
html[data-theme=light] body.tq-novigrad.wp-theme-toopa-qeshm .site-footer::before{background:#0003}
/* Elementor product and commerce spacing after public-store verification. */
body.tq-novigrad.wp-theme-toopa-qeshm.single-product #tq-product-info{position:relative;isolation:isolate;display:grid!important;grid-template-columns:minmax(0,1fr) 360px;direction:ltr;align-items:start;gap:32px;padding:40px;overflow:hidden;background:#1d1c21}
body.tq-novigrad.wp-theme-toopa-qeshm.single-product #tq-product-info::before{content:"";position:absolute;inset:-25px;z-index:-2;background-image:var(--tq-product-cover);background-size:cover;background-position:center;filter:blur(18px);opacity:.32}
body.tq-novigrad.wp-theme-toopa-qeshm.single-product #tq-product-info::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#1d1c21 0%,#1d1c2170 50%,#1d1c2160)}
body.tq-novigrad.wp-theme-toopa-qeshm.single-product #tq-product-info>.elementor-widget-tq-product-gallery{grid-column:2;grid-row:1;width:100%!important;min-width:0;direction:rtl}
body.tq-novigrad.wp-theme-toopa-qeshm.single-product #tq-product-info>.elementor-widget-tq-product-summary{grid-column:1;grid-row:1;width:100%!important;min-width:0;direction:rtl}
body.tq-novigrad.wp-theme-toopa-qeshm.single-product #tq-product-info :is(.woocommerce-product-gallery,.summary){float:none!important;width:100%!important;margin:0!important}
body.tq-novigrad.wp-theme-toopa-qeshm:is(.woocommerce-cart,.woocommerce-checkout) #main.tq-elementor-page{box-sizing:border-box;width:100%;max-width:1440px;margin:0 auto;padding:40px;min-height:40vh}
body.tq-novigrad.wp-theme-toopa-qeshm.woocommerce-cart .tq-builder-commerce .cart-empty{border:1px solid #ffffff40;border-top:3px solid var(--lime);border-radius:16px;background:#0d0d0d;padding-block:22px}
@media(max-width:1024px){
 body.tq-novigrad.wp-theme-toopa-qeshm.single-product #tq-product-info{grid-template-columns:minmax(0,1fr) 300px;gap:24px;padding:28px}
}
@media(max-width:767px){
 body.tq-novigrad.wp-theme-toopa-qeshm.single-product #tq-product-info{grid-template-columns:minmax(0,1fr);gap:24px;padding:12px}
 body.tq-novigrad.wp-theme-toopa-qeshm.single-product #tq-product-info>.elementor-widget-tq-product-gallery{grid-column:1;grid-row:1}
 body.tq-novigrad.wp-theme-toopa-qeshm.single-product #tq-product-info>.elementor-widget-tq-product-summary{grid-column:1;grid-row:2}
 body.tq-novigrad.wp-theme-toopa-qeshm:is(.woocommerce-cart,.woocommerce-checkout) #main.tq-elementor-page{padding:24px 12px}
}

/* Keep native cart/checkout fields and totals readable in the dark theme. */
body.tq-novigrad.wp-theme-toopa-qeshm:is(.woocommerce-cart,.woocommerce-checkout) .tq-builder-commerce :is(table.shop_table,#payment){background:#0d0d0d!important;color:#fff;border:1px solid #ffffff40;border-radius:16px}
body.tq-novigrad.wp-theme-toopa-qeshm:is(.woocommerce-cart,.woocommerce-checkout) .tq-builder-commerce .shop_table :is(th,td){background:transparent!important;color:inherit!important;border-color:#ffffff24!important}
body.tq-novigrad.wp-theme-toopa-qeshm.woocommerce-checkout .tq-builder-commerce :is(input.input-text,textarea,select,.select2-selection){box-sizing:border-box;background:#1d1c21!important;color:#fff!important;border:1px solid #ffffff40!important;border-radius:8px;min-height:44px}
body.tq-novigrad.wp-theme-toopa-qeshm.woocommerce-checkout .tq-builder-commerce .woocommerce-invalid :is(input.input-text,textarea,select,.select2-selection){border-color:#e86464!important}
body.tq-novigrad.wp-theme-toopa-qeshm.woocommerce-checkout .tq-builder-commerce .select2-selection__rendered{color:#fff!important;line-height:42px!important}
body.tq-novigrad.wp-theme-toopa-qeshm.woocommerce-checkout .tq-builder-commerce #payment .payment_box{background:#1d1c21;color:#fff}
body.tq-novigrad.wp-theme-toopa-qeshm.woocommerce-checkout .tq-builder-commerce #payment .payment_box::before{border-bottom-color:#1d1c21}
body.tq-novigrad.wp-theme-toopa-qeshm.woocommerce-checkout .tq-builder-commerce .woocommerce-info{background:#252429;color:#fff;border-top-color:var(--lime)}
body.tq-novigrad.wp-theme-toopa-qeshm.woocommerce-checkout .tq-builder-commerce .col2-set{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));direction:rtl;gap:32px;margin-bottom:32px}
body.tq-novigrad.wp-theme-toopa-qeshm.woocommerce-checkout .tq-builder-commerce .col2-set :is(.col-1,.col-2){float:none;width:100%;min-width:0}
@media(max-width:767px){body.tq-novigrad.wp-theme-toopa-qeshm.woocommerce-checkout .tq-builder-commerce .col2-set{grid-template-columns:minmax(0,1fr);gap:24px}}

body.tq-novigrad.wp-theme-toopa-qeshm.woocommerce-checkout .tq-builder-commerce .col2-set::before,body.tq-novigrad.wp-theme-toopa-qeshm.woocommerce-checkout .tq-builder-commerce .col2-set::after{display:none!important}

/* Mobile hero contrast follow-up after live 3.1.2 verification. */
@media(max-width:768px){
 body.tq-novigrad.wp-theme-toopa-qeshm.home .hero .hero-art::after{background:linear-gradient(90deg,#1d1c21e6 0%,#1d1c2199 45%,#1d1c2100 100%),linear-gradient(0deg,#1d1c21 0%,#1d1c21cf 12%,#1d1c2100 66%)}
 body.tq-novigrad.wp-theme-toopa-qeshm.home .hero :is(.hero-title,.hero-meta){text-shadow:0 2px 8px #0009}
}
