/* ═══ main.css — از v1.1.268 فقط «باقی‌ماندهٔ مهاجرت‌نشده» (خطوط 9648-17846 نسخهٔ قبل).
   این فایل آخرِ زنجیرهٔ tokens→…→account-shared لود می‌شود؛ ترتیب آبشار دقیقاً حفظ شده.
   محتوا: REMAINDER — بخش مهاجرت‌نشده (v71 به بعد: فوتر، v78–v86، v125+، v134/137/138، پاپ‌آپ‌ها) ═══ */
/* ═══════════════════════════════════════
   FIX v71 — Remove white outline around product images/cards
   مشکل: در دارک‌مود دور main-image و بعضی تصویرهای محصول خط سفید دیده می‌شد.
   فقط border/outline/box-shadow اصلاح شده؛ اندازه و layout دست نخورده است.
═══════════════════════════════════════ */

/* Single product main image */
html[data-hg-theme="dark"] body.single-product .main-image{
    border-color:transparent!important;
    outline:0!important;
    box-shadow:0 20px 58px rgba(0,0,0,.30)!important;
}

html[data-hg-theme="dark"] body.single-product .main-image::before,
html[data-hg-theme="dark"] body.single-product .main-image::after{
    border-color:transparent!important;
    outline:0!important;
    box-shadow:none!important;
}

/* If image itself has a border from browser/theme */
html[data-hg-theme="dark"] body.single-product .main-image img,
html[data-hg-theme="dark"] body.single-product .main-image > svg{
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
}

/* Related products image boxes */
html[data-hg-theme="dark"] body.single-product .rel-img,
html[data-hg-theme="dark"] body.single-product .related-section .rel-img{
    border-color:transparent!important;
    outline:0!important;
}

/* Product archive/category cards image boxes */
html[data-hg-theme="dark"] body.woocommerce-shop .pcard-img,
html[data-hg-theme="dark"] body.tax-product_cat .pcard-img,
html[data-hg-theme="dark"] body.post-type-archive-product .pcard-img,
html[data-hg-theme="dark"] body.woocommerce-shop .plist-thumb,
html[data-hg-theme="dark"] body.tax-product_cat .plist-thumb,
html[data-hg-theme="dark"] body.post-type-archive-product .plist-thumb{
    border-color:transparent!important;
    outline:0!important;
}

/* Product card itself: remove bright frame only, keep dark shadow */
html[data-hg-theme="dark"] body.woocommerce-shop .product-card,
html[data-hg-theme="dark"] body.tax-product_cat .product-card,
html[data-hg-theme="dark"] body.post-type-archive-product .product-card,
html[data-hg-theme="dark"] body.single-product .rel-card{
    border-color:rgba(255,255,255,.045)!important;
    outline:0!important;
}

/* Badge border should stay soft, not white */
html[data-hg-theme="dark"] body.single-product .img-badges .badge,
html[data-hg-theme="dark"] body.single-product .badge-sale,
html[data-hg-theme="dark"] body.woocommerce-shop .badge,
html[data-hg-theme="dark"] body.tax-product_cat .badge{
    border-color:rgba(248,194,78,.20)!important;
}


/* v78/v79 carry-forward — checkout dark mode and mobile paybar */
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-head h1,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-card-head h2,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-summary-head h2,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-order-name,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-payment-inside #payment ul.payment_methods li>label,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-summary-line strong{color:var(--hg-u-ink,#edf2f7)!important}html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-head p,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-card-head p,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid label,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-order-meta,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-summary-line,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-terms-note,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-payment-inside .woocommerce-terms-and-conditions-wrapper,html[data-hg-theme="dark"] body.woocommerce-checkout .woocommerce-privacy-policy-text,html[data-hg-theme="dark"] body.woocommerce-checkout .payment_box,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-digital-box p{color:var(--hg-u-muted,#a3adba)!important}html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-steps,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-card,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-summary,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-empty,html[data-hg-theme="dark"] body.woocommerce-checkout .checkout_coupon,html[data-hg-theme="dark"] body.woocommerce-checkout .woocommerce-info{background:var(--hg-u-surface,rgba(23,31,42,.78))!important;border-color:var(--hg-u-line,rgba(255,255,255,.105))!important;color:var(--hg-u-ink,#edf2f7)!important;box-shadow:var(--hg-u-shadow,0 20px 58px rgba(0,0,0,.32))!important}html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-summary{background:rgba(23,31,42,.74)!important;border-color:rgba(255,255,255,.105)!important}html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-step{color:var(--hg-u-muted,#a3adba)!important}html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-step span,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-summary-head span{background:var(--hg-u-soft,#1d2733)!important;color:var(--hg-u-muted,#a3adba)!important;border:1px solid var(--hg-u-line-soft,rgba(255,255,255,.065))!important}html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-step.active,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-step.done{background:rgba(255,255,255,.075)!important;color:var(--hg-u-ink,#edf2f7)!important}html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-step.active span,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-step.done span,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-card-icon,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-empty-icon{background:rgba(255,255,255,.105)!important;color:var(--hg-u-ink,#edf2f7)!important;border:1px solid var(--hg-u-line-soft,rgba(255,255,255,.065))!important}html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid input.input-text,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid textarea,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid select,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-coupon input,html[data-hg-theme="dark"] body.woocommerce-checkout .checkout_coupon input.input-text,html[data-hg-theme="dark"] body.woocommerce-checkout .select2-container--default .select2-selection--single{background:rgba(15,19,26,.58)!important;border-color:var(--hg-u-line,rgba(255,255,255,.105))!important;color:var(--hg-u-ink,#edf2f7)!important;box-shadow:none!important}html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-digital-box,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-payment-inside #payment ul.payment_methods li,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-payment-inside #payment ul.payment_methods li.wc_payment_method.payment_method_selected,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-payment-inside #payment ul.payment_methods li:has(input:checked),html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-order-item,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-total-box,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-payment-inside #payment div.payment_box{background:var(--hg-u-surface-2,rgba(255,255,255,.055))!important;border-color:var(--hg-u-line-soft,rgba(255,255,255,.065))!important;color:var(--hg-u-ink,#edf2f7)!important}html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-payment-inside #place_order,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-mobile-submit,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-empty a{background:linear-gradient(135deg,#edf2f7,#cfd8e3)!important;color:#11161d!important;box-shadow:0 16px 36px rgba(0,0,0,.34)!important}html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-mobile-paybar{background:rgba(23,31,42,.82)!important;border-color:var(--hg-u-line,rgba(255,255,255,.105))!important;color:var(--hg-u-ink,#edf2f7)!important;box-shadow:0 16px 42px rgba(0,0,0,.34)!important}
.hcheckout-total-amount,.hcheckout-paybar-amount{display:block;line-height:1.2}.hcheckout-total-amount strong,.hcheckout-paybar-amount strong,.hcheckout-total-amount .woocommerce-Price-amount,.hcheckout-paybar-amount .woocommerce-Price-amount{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap;line-height:1.2}.hcheckout-total-amount .woocommerce-Price-currencySymbol,.hcheckout-paybar-amount .woocommerce-Price-currencySymbol{font-size:.72em;font-weight:800;opacity:.86}.hcheckout-mobile-paybar{direction:rtl}.hcheckout-paybar-copy{min-width:0;flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;padding-inline:8px 4px;overflow:hidden;text-align:right}.hcheckout-paybar-copy>span{display:block;line-height:1.1;white-space:nowrap}.hcheckout-paybar-amount{width:100%;overflow:hidden}.hcheckout-paybar-amount strong,.hcheckout-paybar-amount .woocommerce-Price-amount,.hcheckout-paybar-amount bdi{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:760px){body.woocommerce-checkout{padding-bottom:calc(var(--mobile-nav,68px) + 94px + env(safe-area-inset-bottom))!important}body.woocommerce-checkout .hcheckout-container{padding-bottom:calc(var(--mobile-nav,68px) + 112px + env(safe-area-inset-bottom))!important}.hcheckout-mobile-paybar{right:max(10px,env(safe-area-inset-right));left:max(10px,env(safe-area-inset-left));bottom:calc(var(--mobile-nav,68px) + 10px + env(safe-area-inset-bottom));min-height:72px;height:auto;padding:10px;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(132px,45%);align-items:center;gap:10px;border-radius:22px;z-index:380}.hcheckout-mobile-paybar span{font-size:11px;line-height:1.15;margin:0}.hcheckout-paybar-amount strong,.hcheckout-paybar-amount .woocommerce-Price-amount{font-size:14px;line-height:1.2}.hcheckout-mobile-submit{min-width:0!important;width:100%;height:52px;padding:0 10px;border-radius:17px;font-size:12.5px;line-height:1.25;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal}}@media(max-width:370px){.hcheckout-mobile-paybar{grid-template-columns:minmax(0,1fr) minmax(118px,43%);gap:8px;padding:8px;border-radius:20px}.hcheckout-paybar-copy{padding-inline:6px 2px}.hcheckout-paybar-amount strong,.hcheckout-paybar-amount .woocommerce-Price-amount{font-size:12.5px}.hcheckout-mobile-submit{height:50px;font-size:11.5px;border-radius:16px}}html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-total-amount strong,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-total-amount .woocommerce-Price-amount,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-paybar-amount strong,html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-paybar-amount .woocommerce-Price-amount{color:var(--hg-u-ink,#edf2f7)!important}html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-paybar-copy>span{color:var(--hg-u-muted,#a3adba)!important}

/* v84 — browser chrome/status-bar dark-mode support */
:root{color-scheme:light;--hg-browser-chrome:#f6f6f2;--hg-browser-chrome-ink:#17181b}
html[data-hg-theme="light"]{color-scheme:light;background:#f6f6f2!important;--hg-browser-chrome:#f6f6f2;--hg-browser-chrome-ink:#17181b}
html[data-hg-theme="dark"]{color-scheme:dark;background:#0f131a!important;--hg-browser-chrome:#0f131a;--hg-browser-chrome-ink:#edf2f7}
html[data-hg-theme="light"] body{background-color:#f6f6f2!important}
html[data-hg-theme="dark"] body{background-color:#0f131a!important}
@media(max-width:760px){
  html,body{min-height:100%;background:var(--hg-browser-chrome)!important;}
  .mobile-nav,.search-overlay{color-scheme:inherit;}
  html[data-hg-theme="dark"] .mobile-nav,
  html[data-hg-theme="dark"] .search-overlay{background-color:#0f131a!important;}
  html[data-hg-theme="light"] .mobile-nav,
  html[data-hg-theme="light"] .search-overlay{background-color:#f6f6f2!important;}
}

/* v85 — bottom browser/safe-area color sync for mobile dark/light mode */
@media(max-width:768px){
  html[data-hg-theme="light"]{
    background-color:#f6f6f2!important;
    --hg-browser-bottom-chrome:#f6f6f2;
    --hg-safe-area-bottom-color:#f6f6f2;
  }
  html[data-hg-theme="dark"]{
    background-color:#0f131a!important;
    --hg-browser-bottom-chrome:#0f131a;
    --hg-safe-area-bottom-color:#0f131a;
  }
  html[data-hg-theme="light"] body{background-color:#f6f6f2!important;}
  html[data-hg-theme="dark"] body{background-color:#0f131a!important;}
  html[data-hg-theme] body::after{
    content:"";
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    height:max(28px,env(safe-area-inset-bottom,0px));
    background:var(--hg-safe-area-bottom-color,var(--hg-browser-bottom-chrome,#f6f6f2));
    z-index:2147482500;
    pointer-events:none;
  }
  html[data-hg-theme] .mobile-nav{
    overflow:visible!important;
    background:var(--hg-safe-area-bottom-color,var(--hg-browser-bottom-chrome,#f6f6f2))!important;
  }
  html[data-hg-theme] .mobile-nav::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:calc(-1 * env(safe-area-inset-bottom,0px));
    height:max(28px,env(safe-area-inset-bottom,0px));
    background:var(--hg-safe-area-bottom-color,var(--hg-browser-bottom-chrome,#f6f6f2));
    pointer-events:none;
  }
  html[data-hg-theme="dark"] .mobile-nav,
  html[data-hg-theme="dark"] .mobile-nav::after,
  html[data-hg-theme="dark"] .mobile-nav-inner{
    background-color:#0f131a!important;
  }
  html[data-hg-theme="light"] .mobile-nav,
  html[data-hg-theme="light"] .mobile-nav::after,
  html[data-hg-theme="light"] .mobile-nav-inner{
    background-color:#f6f6f2!important;
  }
  html[data-hg-theme="dark"] .hcheckout-mobile-paybar,
  html[data-hg-theme="dark"] .search-overlay,
  html[data-hg-theme="dark"] .search-overlay-inner{
    background-color:#0f131a!important;
  }
}
/* v86 — iPhone mobile bottom nav: glass surface + dark active state fix */
@media(max-width:768px){
  html[data-hg-theme]{
    --hg-mnav-z:2147483600;
  }

  html[data-hg-theme] body::after{
    z-index:2147480500!important;
    height:max(12px,env(safe-area-inset-bottom,0px))!important;
    background:var(--hg-safe-area-bottom-color,var(--hg-browser-bottom-chrome,#f6f6f2))!important;
    pointer-events:none!important;
  }

  html[data-hg-theme] .mobile-nav{
    display:block!important;
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    transform:none!important;
    z-index:var(--hg-mnav-z)!important;
    overflow:visible!important;
    isolation:isolate!important;
    background:transparent!important;
    background-color:transparent!important;
    border-top:0!important;
    box-shadow:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }

  html[data-hg-theme] .mobile-nav::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;
    pointer-events:none;
    border-top:1px solid rgba(20,23,28,.08);
    background:rgba(255,255,255,.58);
    -webkit-backdrop-filter:blur(24px) saturate(160%);
    backdrop-filter:blur(24px) saturate(160%);
    box-shadow:0 -10px 34px rgba(20,23,28,.075);
  }

  html[data-hg-theme] .mobile-nav::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:calc(-1 * env(safe-area-inset-bottom,0px));
    height:env(safe-area-inset-bottom,0px);
    z-index:0;
    pointer-events:none;
    background:rgba(255,255,255,.58)!important;
    -webkit-backdrop-filter:blur(24px) saturate(160%);
    backdrop-filter:blur(24px) saturate(160%);
  }

  html[data-hg-theme] .mobile-nav-inner{
    position:relative!important;
    z-index:2!important;
    background:transparent!important;
    background-color:transparent!important;
    height:100%!important;
  }

  html[data-hg-theme] .mnav-item{
    position:relative!important;
    z-index:2!important;
    color:rgba(76,86,99,.82)!important;
    background:transparent!important;
    border:1px solid transparent!important;
    box-shadow:none!important;
  }

  html[data-hg-theme] .mnav-item svg,
  html[data-hg-theme] .mnav-item .mnav-label{
    position:relative!important;
    z-index:2!important;
  }

  html[data-hg-theme] .mnav-item.active{
    color:#11161d!important;
    background:rgba(255,255,255,.44)!important;
    border-color:rgba(20,23,28,.07)!important;
    box-shadow:0 8px 18px rgba(20,23,28,.06)!important;
  }

  html[data-hg-theme] .mnav-dot{
    background:#11161d!important;
    box-shadow:none!important;
    opacity:.72!important;
  }

  html[data-hg-theme="dark"] .mobile-nav::before{
    border-top-color:rgba(255,255,255,.075)!important;
    background:linear-gradient(180deg,rgba(19,25,35,.46),rgba(11,15,22,.62))!important;
    -webkit-backdrop-filter:blur(26px) saturate(150%);
    backdrop-filter:blur(26px) saturate(150%);
    box-shadow:0 -14px 38px rgba(0,0,0,.30)!important;
  }

  html[data-hg-theme="dark"] .mobile-nav::after{
    background:rgba(11,15,22,.86)!important;
    -webkit-backdrop-filter:blur(26px) saturate(150%);
    backdrop-filter:blur(26px) saturate(150%);
  }

  html[data-hg-theme="dark"] .mnav-item{
    color:rgba(203,213,225,.72)!important;
    background:transparent!important;
    border-color:transparent!important;
  }

  html[data-hg-theme="dark"] .mnav-item.active,
  html[data-hg-theme="dark"] .mnav-item[aria-current="page"]{
    color:#eef2f7!important;
    background:rgba(255,255,255,.075)!important;
    border-color:rgba(255,255,255,.09)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 8px 20px rgba(0,0,0,.16)!important;
  }

  html[data-hg-theme="dark"] .mnav-dot{
    background:#eef2f7!important;
    opacity:.55!important;
    box-shadow:0 0 10px rgba(238,242,247,.18)!important;
  }

  html[data-hg-theme="dark"] .cart-badge-mobile{
    background:#eef2f7!important;
    color:#11161d!important;
    box-shadow:0 0 0 2px rgba(15,19,26,.82)!important;
  }

  html[data-hg-theme="light"] .cart-badge-mobile{
    background:#11161d!important;
    color:#fff!important;
  }
}


/* v125 — shop card surface cleanup + full image contain + day/night image support */
:root{
  --hg-shop-radius-xl: 24px;
  --hg-shop-radius-lg: 20px;
  --hg-shop-radius-md: 16px;
}

body.woocommerce-shop .shop-topbar,
body.tax-product_cat .shop-topbar,
body.post-type-archive-product .shop-topbar,
body.woocommerce-shop .product-card,
body.tax-product_cat .product-card,
body.post-type-archive-product .product-card,
body.woocommerce-shop .plist-item,
body.tax-product_cat .plist-item,
body.post-type-archive-product .plist-item{
  border-radius: var(--hg-shop-radius-xl) !important;
}

body.woocommerce-shop .shop-topbar,
body.tax-product_cat .shop-topbar,
body.post-type-archive-product .shop-topbar{
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(15,23,42,.07) !important;
  box-shadow: 0 10px 26px rgba(15,23,42,.05) !important;
  padding: 14px 16px !important;
}

body.woocommerce-shop .view-toggle,
body.tax-product_cat .view-toggle,
body.post-type-archive-product .view-toggle{
  background: rgba(255,255,255,.82) !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  border-radius: 16px !important;
  padding: 4px !important;
}

body.woocommerce-shop .vbtn,
body.tax-product_cat .vbtn,
body.post-type-archive-product .vbtn{
  border-radius: 12px !important;
}

body.woocommerce-shop .product-card,
body.tax-product_cat .product-card,
body.post-type-archive-product .product-card,
body.woocommerce-shop .plist-item,
body.tax-product_cat .plist-item,
body.post-type-archive-product .plist-item{
  background: rgba(255,255,255,.95) !important;
  border: 1px solid rgba(15,23,42,.07) !important;
  box-shadow: 0 12px 34px rgba(15,23,42,.05) !important;
  overflow: hidden !important;
}

body.woocommerce-shop .product-card,
body.tax-product_cat .product-card,
body.post-type-archive-product .product-card{
  padding: 10px !important;
}

body.woocommerce-shop .pcard-link,
body.tax-product_cat .pcard-link,
body.post-type-archive-product .pcard-link{
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

body.woocommerce-shop .pcard-img,
body.tax-product_cat .pcard-img,
body.post-type-archive-product .pcard-img,
body.woocommerce-shop .plist-thumb,
body.tax-product_cat .plist-thumb,
body.post-type-archive-product .plist-thumb{
  position: relative !important;
  overflow: hidden !important;
  border-radius: var(--hg-shop-radius-lg) !important;
  background: linear-gradient(180deg, rgba(248,250,252,.94), rgba(241,245,249,.98)) !important;
  border: 1px solid rgba(15,23,42,.06) !important;
}

body.woocommerce-shop .pcard-img,
body.tax-product_cat .pcard-img,
body.post-type-archive-product .pcard-img{
  min-height: 196px !important;
}

body.woocommerce-shop .plist-thumb,
body.tax-product_cat .plist-thumb,
body.post-type-archive-product .plist-thumb{
  min-height: 86px !important;
}

.hg-product-media{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
}

.hg-product-media-img,
body.woocommerce-shop .pcard-img > img,
body.tax-product_cat .pcard-img > img,
body.post-type-archive-product .pcard-img > img,
body.woocommerce-shop .plist-thumb > img,
body.tax-product_cat .plist-thumb > img,
body.post-type-archive-product .plist-thumb > img{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 12px !important;
  display: block;
  border-radius: inherit;
  background: transparent !important;
}

.hg-product-media-img--dark{
  opacity: 0;
  pointer-events: none;
}
html[data-hg-theme="dark"] .hg-product-media.has-dark .hg-product-media-img--light{
  opacity: 0;
}
html[data-hg-theme="dark"] .hg-product-media.has-dark .hg-product-media-img--dark{
  opacity: 1;
}

.hg-product-media-fallback{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hg-product-media-fallback svg{
  width: 42px;
  height: 42px;
  stroke: rgba(148,163,184,.8);
}

body.woocommerce-shop .pcard-save-wrap,
body.tax-product_cat .pcard-save-wrap,
body.post-type-archive-product .pcard-save-wrap{
  left: 10px !important;
  right: 10px !important;
  bottom: 10px !important;
  padding: 0 !important;
  background: transparent !important;
}

body.woocommerce-shop .pcard-body,
body.tax-product_cat .pcard-body,
body.post-type-archive-product .pcard-body{
  padding: 12px 2px 2px !important;
}

body.woocommerce-shop .pcard-buy,
body.tax-product_cat .pcard-buy,
body.post-type-archive-product .pcard-buy,
body.woocommerce-shop .plist-buy,
body.tax-product_cat .plist-buy,
body.post-type-archive-product .plist-buy{
  border-radius: 12px !important;
}

body.woocommerce-shop .plist-link,
body.tax-product_cat .plist-link,
body.post-type-archive-product .plist-link{
  gap: 14px !important;
  padding: 14px 16px !important;
  border-radius: var(--hg-shop-radius-xl) !important;
}

body.woocommerce-shop .plist-actions,
body.tax-product_cat .plist-actions,
body.post-type-archive-product .plist-actions{
  gap: 10px !important;
}

/* Dark mode cleanup */
html[data-hg-theme="dark"] body.woocommerce-shop .shop-topbar,
html[data-hg-theme="dark"] body.tax-product_cat .shop-topbar,
html[data-hg-theme="dark"] body.post-type-archive-product .shop-topbar{
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(10,15,28,.95)) !important;
  border-color: rgba(120,140,180,.14) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.26) !important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .view-toggle,
html[data-hg-theme="dark"] body.tax-product_cat .view-toggle,
html[data-hg-theme="dark"] body.post-type-archive-product .view-toggle{
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.08) !important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .product-card,
html[data-hg-theme="dark"] body.tax-product_cat .product-card,
html[data-hg-theme="dark"] body.post-type-archive-product .product-card,
html[data-hg-theme="dark"] body.woocommerce-shop .plist-item,
html[data-hg-theme="dark"] body.tax-product_cat .plist-item,
html[data-hg-theme="dark"] body.post-type-archive-product .plist-item{
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(10,15,28,.95)) !important;
  border-color: rgba(120,140,180,.14) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.24) !important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .pcard-img,
html[data-hg-theme="dark"] body.tax-product_cat .pcard-img,
html[data-hg-theme="dark"] body.post-type-archive-product .pcard-img,
html[data-hg-theme="dark"] body.woocommerce-shop .plist-thumb,
html[data-hg-theme="dark"] body.tax-product_cat .plist-thumb,
html[data-hg-theme="dark"] body.post-type-archive-product .plist-thumb{
  background: linear-gradient(180deg, rgba(19,28,47,.96), rgba(11,18,32,.98)) !important;
  border-color: rgba(120,140,180,.12) !important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .pcard-img *,
html[data-hg-theme="dark"] body.tax-product_cat .pcard-img *,
html[data-hg-theme="dark"] body.post-type-archive-product .pcard-img *,
html[data-hg-theme="dark"] body.woocommerce-shop .plist-thumb *,
html[data-hg-theme="dark"] body.tax-product_cat .plist-thumb *,
html[data-hg-theme="dark"] body.post-type-archive-product .plist-thumb *{
  background: transparent !important;
}

@media (max-width: 768px){
  body.woocommerce-shop .shop-topbar,
  body.tax-product_cat .shop-topbar,
  body.post-type-archive-product .shop-topbar{
    border-radius: 20px !important;
    padding: 12px 14px !important;
  }

  body.woocommerce-shop .product-card,
  body.tax-product_cat .product-card,
  body.post-type-archive-product .product-card,
  body.woocommerce-shop .plist-item,
  body.tax-product_cat .plist-item,
  body.post-type-archive-product .plist-item{
    border-radius: 20px !important;
  }

  body.woocommerce-shop .pcard-img,
  body.tax-product_cat .pcard-img,
  body.post-type-archive-product .pcard-img{
    min-height: 158px !important;
    border-radius: 16px !important;
  }

  body.woocommerce-shop .plist-thumb,
  body.tax-product_cat .plist-thumb,
  body.post-type-archive-product .plist-thumb{
    min-height: 72px !important;
    border-radius: 14px !important;
  }

  .hg-product-media-img,
  body.woocommerce-shop .pcard-img > img,
  body.tax-product_cat .pcard-img > img,
  body.post-type-archive-product .pcard-img > img,
  body.woocommerce-shop .plist-thumb > img,
  body.tax-product_cat .plist-thumb > img,
  body.post-type-archive-product .plist-thumb > img{
    padding: 10px !important;
  }
}


/* v126 — shop dark color sync + smarter image fit */
body.woocommerce-shop .shop-topbar,
body.tax-product_cat .shop-topbar,
body.post-type-archive-product .shop-topbar,
body.woocommerce-shop .product-card,
body.tax-product_cat .product-card,
body.post-type-archive-product .product-card,
body.woocommerce-shop .plist-item,
body.tax-product_cat .plist-item,
body.post-type-archive-product .plist-item{
  background: var(--hg-shop-card) !important;
  color: var(--hg-shop-ink) !important;
  border: 1px solid var(--hg-shop-line) !important;
  box-shadow: var(--hg-shop-shadow) !important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .shop-topbar,
html[data-hg-theme="dark"] body.tax-product_cat .shop-topbar,
html[data-hg-theme="dark"] body.post-type-archive-product .shop-topbar,
html[data-hg-theme="dark"] body.woocommerce-shop .product-card,
html[data-hg-theme="dark"] body.tax-product_cat .product-card,
html[data-hg-theme="dark"] body.post-type-archive-product .product-card,
html[data-hg-theme="dark"] body.woocommerce-shop .plist-item,
html[data-hg-theme="dark"] body.tax-product_cat .plist-item,
html[data-hg-theme="dark"] body.post-type-archive-product .plist-item{
  background: var(--hg-shop-card) !important;
  border-color: var(--hg-shop-line) !important;
  box-shadow: var(--hg-shop-shadow) !important;
}

body.woocommerce-shop .view-toggle,
body.tax-product_cat .view-toggle,
body.post-type-archive-product .view-toggle{
  background: var(--hg-shop-card-2) !important;
  border: 1px solid var(--hg-shop-line-soft) !important;
}
html[data-hg-theme="dark"] body.woocommerce-shop .view-toggle,
html[data-hg-theme="dark"] body.tax-product_cat .view-toggle,
html[data-hg-theme="dark"] body.post-type-archive-product .view-toggle{
  background: var(--hg-shop-card-2) !important;
  border-color: var(--hg-shop-line-soft) !important;
}

body.woocommerce-shop .pcard-img,
body.tax-product_cat .pcard-img,
body.post-type-archive-product .pcard-img,
body.woocommerce-shop .plist-thumb,
body.tax-product_cat .plist-thumb,
body.post-type-archive-product .plist-thumb{
  background: linear-gradient(145deg,var(--hg-shop-card-2),var(--hg-shop-card-3)) !important;
  border-color: var(--hg-shop-line-soft) !important;
}
html[data-hg-theme="dark"] body.woocommerce-shop .pcard-img,
html[data-hg-theme="dark"] body.tax-product_cat .pcard-img,
html[data-hg-theme="dark"] body.post-type-archive-product .pcard-img,
html[data-hg-theme="dark"] body.woocommerce-shop .plist-thumb,
html[data-hg-theme="dark"] body.tax-product_cat .plist-thumb,
html[data-hg-theme="dark"] body.post-type-archive-product .plist-thumb{
  background: linear-gradient(145deg,var(--hg-shop-card-2),var(--hg-shop-card-3)) !important;
  border-color: var(--hg-shop-line-soft) !important;
}

/* Keep corners consistently rounded */
body.woocommerce-shop .product-card,
body.tax-product_cat .product-card,
body.post-type-archive-product .product-card{
  border-radius: 24px !important;
  overflow: hidden !important;
}
body.woocommerce-shop .plist-item,
body.tax-product_cat .plist-item,
body.post-type-archive-product .plist-item,
body.woocommerce-shop .plist-link,
body.tax-product_cat .plist-link,
body.post-type-archive-product .plist-link{
  border-radius: 22px !important;
  overflow: hidden !important;
}
body.woocommerce-shop .pcard-img,
body.tax-product_cat .pcard-img,
body.post-type-archive-product .pcard-img{
  border-radius: 20px !important;
}
body.woocommerce-shop .plist-thumb,
body.tax-product_cat .plist-thumb,
body.post-type-archive-product .plist-thumb{
  border-radius: 18px !important;
}

/* Better image fitting: show full image, do not shrink more than necessary */
.hg-product-media{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
}

.hg-product-media-img,
body.woocommerce-shop .pcard-img > img,
body.tax-product_cat .pcard-img > img,
body.post-type-archive-product .pcard-img > img,
body.woocommerce-shop .plist-thumb > img,
body.tax-product_cat .plist-thumb > img,
body.post-type-archive-product .plist-thumb > img{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 8px) !important;
  max-height: calc(100% - 8px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  border-radius: inherit !important;
  background: transparent !important;
}

body.woocommerce-shop .pcard-img,
body.tax-product_cat .pcard-img,
body.post-type-archive-product .pcard-img{
  min-height: 210px !important;
}
body.woocommerce-shop .plist-thumb,
body.tax-product_cat .plist-thumb,
body.post-type-archive-product .plist-thumb{
  min-height: 96px !important;
}

.hg-product-media.has-dark .hg-product-media-img--dark{opacity:0;pointer-events:none;}
html[data-hg-theme="dark"] .hg-product-media.has-dark .hg-product-media-img--light{opacity:0;}
html[data-hg-theme="dark"] .hg-product-media.has-dark .hg-product-media-img--dark{opacity:1;}

/* Remove extra hardcoded blue look from previous patch */
html[data-hg-theme="dark"] body.woocommerce-shop .pcard-img *,
html[data-hg-theme="dark"] body.tax-product_cat .pcard-img *,
html[data-hg-theme="dark"] body.post-type-archive-product .pcard-img *,
html[data-hg-theme="dark"] body.woocommerce-shop .plist-thumb *,
html[data-hg-theme="dark"] body.tax-product_cat .plist-thumb *,
html[data-hg-theme="dark"] body.post-type-archive-product .plist-thumb *{
  background: transparent !important;
}

@media (max-width: 768px){
  body.woocommerce-shop .pcard-img,
  body.tax-product_cat .pcard-img,
  body.post-type-archive-product .pcard-img{
    min-height: 168px !important;
    border-radius: 16px !important;
  }
  body.woocommerce-shop .plist-thumb,
  body.tax-product_cat .plist-thumb,
  body.post-type-archive-product .plist-thumb{
    min-height: 78px !important;
    border-radius: 14px !important;
  }
  .hg-product-media-img,
  body.woocommerce-shop .pcard-img > img,
  body.tax-product_cat .pcard-img > img,
  body.post-type-archive-product .pcard-img > img,
  body.woocommerce-shop .plist-thumb > img,
  body.tax-product_cat .plist-thumb > img,
  body.post-type-archive-product .plist-thumb > img{
    max-width: calc(100% - 6px) !important;
    max-height: calc(100% - 6px) !important;
  }
}


/* ═══════════════════════════════════════
   HastiGem v127 — shop archive dark color sync + product image fit repair
   Scope: WooCommerce shop/category archive only.
═══════════════════════════════════════ */
html[data-hg-theme="dark"]{
    --hg-shop-page-bg:#0d1015!important;
    --hg-shop-bg-soft:#10141b!important;
    --hg-shop-card:rgba(26,31,40,.72)!important;
    --hg-shop-card-2:rgba(31,37,47,.65)!important;
    --hg-shop-card-3:rgba(255,255,255,.06)!important;
    --hg-shop-ink:#eef2f7!important;
    --hg-shop-muted:#a2adba!important;
    --hg-shop-muted-2:#748294!important;
    --hg-shop-line:rgba(255,255,255,.09)!important;
    --hg-shop-line-soft:rgba(255,255,255,.05)!important;
    --hg-shop-primary:#eef2f7!important;
    --hg-shop-primary-text:#11161d!important;
    --hg-shop-green:#3ddc84!important;
    --hg-shop-green-bg:rgba(61,220,132,.14)!important;
    --hg-shop-orange:#fbbf24!important;
    --hg-shop-orange-bg:rgba(251,191,36,.14)!important;
    --hg-shop-shadow:0 24px 64px rgba(0,0,0,.28)!important;
    --hg-shop-shadow-soft:0 10px 26px rgba(0,0,0,.22)!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop,
html[data-hg-theme="dark"] body.tax-product_cat,
html[data-hg-theme="dark"] body.post-type-archive-product{
    background:
        radial-gradient(circle at 82% 0%, rgba(98,110,128,.15), transparent 32%),
        radial-gradient(circle at 14% 88%, rgba(98,110,128,.10), transparent 24%),
        linear-gradient(180deg,#10141b,#0d1015)!important;
    background-color:#0d1015!important;
    color:#eef2f7!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .site-main,
html[data-hg-theme="dark"] body.tax-product_cat .site-main,
html[data-hg-theme="dark"] body.post-type-archive-product .site-main,
html[data-hg-theme="dark"] body.woocommerce-shop .shop-container,
html[data-hg-theme="dark"] body.tax-product_cat .shop-container,
html[data-hg-theme="dark"] body.post-type-archive-product .shop-container,
html[data-hg-theme="dark"] body.woocommerce-shop .shop-main,
html[data-hg-theme="dark"] body.tax-product_cat .shop-main,
html[data-hg-theme="dark"] body.post-type-archive-product .shop-main{
    background:transparent!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .cat-hero-inner,
html[data-hg-theme="dark"] body.tax-product_cat .cat-hero-inner,
html[data-hg-theme="dark"] body.post-type-archive-product .cat-hero-inner,
html[data-hg-theme="dark"] body.woocommerce-shop .cat-sort-bar,
html[data-hg-theme="dark"] body.tax-product_cat .cat-sort-bar,
html[data-hg-theme="dark"] body.post-type-archive-product .cat-sort-bar,
html[data-hg-theme="dark"] body.woocommerce-shop .shop-topbar,
html[data-hg-theme="dark"] body.tax-product_cat .shop-topbar,
html[data-hg-theme="dark"] body.post-type-archive-product .shop-topbar,
html[data-hg-theme="dark"] body.woocommerce-shop .sidebar-card,
html[data-hg-theme="dark"] body.tax-product_cat .sidebar-card,
html[data-hg-theme="dark"] body.post-type-archive-product .sidebar-card,
html[data-hg-theme="dark"] body.woocommerce-shop .sidebar-section,
html[data-hg-theme="dark"] body.tax-product_cat .sidebar-section,
html[data-hg-theme="dark"] body.post-type-archive-product .sidebar-section,
html[data-hg-theme="dark"] body.woocommerce-shop .price-range-wrap,
html[data-hg-theme="dark"] body.tax-product_cat .price-range-wrap,
html[data-hg-theme="dark"] body.post-type-archive-product .price-range-wrap,
html[data-hg-theme="dark"] body.woocommerce-shop .product-card,
html[data-hg-theme="dark"] body.tax-product_cat .product-card,
html[data-hg-theme="dark"] body.post-type-archive-product .product-card,
html[data-hg-theme="dark"] body.woocommerce-shop .plist-item,
html[data-hg-theme="dark"] body.tax-product_cat .plist-item,
html[data-hg-theme="dark"] body.post-type-archive-product .plist-item{
    background:rgba(26,31,40,.72)!important;
    border-color:rgba(255,255,255,.09)!important;
    color:#eef2f7!important;
    box-shadow:0 24px 64px rgba(0,0,0,.28)!important;
    backdrop-filter:blur(18px) saturate(170%)!important;
    -webkit-backdrop-filter:blur(18px) saturate(170%)!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .view-toggle,
html[data-hg-theme="dark"] body.tax-product_cat .view-toggle,
html[data-hg-theme="dark"] body.post-type-archive-product .view-toggle,
html[data-hg-theme="dark"] body.woocommerce-shop .cat-sort-select,
html[data-hg-theme="dark"] body.tax-product_cat .cat-sort-select,
html[data-hg-theme="dark"] body.post-type-archive-product .cat-sort-select,
html[data-hg-theme="dark"] body.woocommerce-shop .sort-select,
html[data-hg-theme="dark"] body.tax-product_cat .sort-select,
html[data-hg-theme="dark"] body.post-type-archive-product .sort-select,
html[data-hg-theme="dark"] body.woocommerce-shop .price-input,
html[data-hg-theme="dark"] body.tax-product_cat .price-input,
html[data-hg-theme="dark"] body.post-type-archive-product .price-input{
    background:rgba(31,37,47,.65)!important;
    border-color:rgba(255,255,255,.08)!important;
    color:#eef2f7!important;
    box-shadow:none!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .pcard-img,
html[data-hg-theme="dark"] body.tax-product_cat .pcard-img,
html[data-hg-theme="dark"] body.post-type-archive-product .pcard-img,
html[data-hg-theme="dark"] body.woocommerce-shop .plist-thumb,
html[data-hg-theme="dark"] body.tax-product_cat .plist-thumb,
html[data-hg-theme="dark"] body.post-type-archive-product .plist-thumb{
    background:rgba(255,255,255,.06)!important;
    border-color:rgba(255,255,255,.07)!important;
}

/* Product card corners */
body.woocommerce-shop .product-card,
body.tax-product_cat .product-card,
body.post-type-archive-product .product-card{
    border-radius:24px!important;
    overflow:hidden!important;
    padding:10px!important;
}
body.woocommerce-shop .pcard-img,
body.tax-product_cat .pcard-img,
body.post-type-archive-product .pcard-img{
    aspect-ratio:1/1!important;
    height:auto!important;
    min-height:0!important;
    border-radius:22px!important;
    overflow:hidden!important;
    padding:0!important;
}
body.woocommerce-shop .plist-item,
body.tax-product_cat .plist-item,
body.post-type-archive-product .plist-item,
body.woocommerce-shop .plist-link,
body.tax-product_cat .plist-link,
body.post-type-archive-product .plist-link{
    border-radius:22px!important;
    overflow:hidden!important;
}
body.woocommerce-shop .plist-thumb,
body.tax-product_cat .plist-thumb,
body.post-type-archive-product .plist-thumb{
    width:76px!important;
    height:76px!important;
    min-width:76px!important;
    min-height:0!important;
    flex:0 0 76px!important;
    border-radius:18px!important;
    overflow:hidden!important;
    padding:0!important;
}

/* Product images: fill the square naturally. Square uploads stay complete and rounded. */
.hg-product-media{
    position:relative!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    display:block!important;
    border-radius:inherit!important;
    overflow:hidden!important;
    background:transparent!important;
}
.hg-product-media-img,
body.woocommerce-shop .pcard-img > img,
body.tax-product_cat .pcard-img > img,
body.post-type-archive-product .pcard-img > img,
body.woocommerce-shop .plist-thumb > img,
body.tax-product_cat .plist-thumb > img,
body.post-type-archive-product .plist-thumb > img{
    position:absolute!important;
    inset:0!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    transform:none!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    padding:0!important;
    margin:0!important;
    object-fit:cover!important;
    object-position:center center!important;
    border-radius:inherit!important;
    background:transparent!important;
    filter:none!important;
}
.hg-product-media-img--dark{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
}
html[data-hg-theme="dark"] .hg-product-media.has-dark .hg-product-media-img--light{
    opacity:0!important;
    visibility:hidden!important;
}
html[data-hg-theme="dark"] .hg-product-media.has-dark .hg-product-media-img--dark{
    opacity:1!important;
    visibility:visible!important;
}

.hg-product-media-fallback{
    position:absolute!important;
    inset:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:transparent!important;
}
.hg-product-media-fallback svg{
    width:42px!important;
    height:42px!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .pcard-img img,
html[data-hg-theme="dark"] body.tax-product_cat .pcard-img img,
html[data-hg-theme="dark"] body.post-type-archive-product .pcard-img img,
html[data-hg-theme="dark"] body.woocommerce-shop .plist-thumb img,
html[data-hg-theme="dark"] body.tax-product_cat .plist-thumb img,
html[data-hg-theme="dark"] body.post-type-archive-product .plist-thumb img{
    filter:none!important;
}

@media(max-width:768px){
    body.woocommerce-shop .product-card,
    body.tax-product_cat .product-card,
    body.post-type-archive-product .product-card{
        border-radius:22px!important;
        padding:8px!important;
    }
    body.woocommerce-shop .pcard-img,
    body.tax-product_cat .pcard-img,
    body.post-type-archive-product .pcard-img{
        border-radius:16px!important;
    }
    body.woocommerce-shop .plist-thumb,
    body.tax-product_cat .plist-thumb,
    body.post-type-archive-product .plist-thumb{
        width:66px!important;
        height:66px!important;
        min-width:66px!important;
        flex-basis:66px!important;
        border-radius:14px!important;
    }
}


/* ═══════════════════════════════════════
   HastiGem v128 — product category header/sort/topbar alignment
   Scope: shop archive and product category pages.
═══════════════════════════════════════ */
body.woocommerce-shop .cat-hero,
body.tax-product_cat .cat-hero,
body.post-type-archive-product .cat-hero{
    padding-inline:0!important;
    background:transparent!important;
    border-bottom:0!important;
}

body.woocommerce-shop .cat-hero-inner,
body.tax-product_cat .cat-hero-inner,
body.post-type-archive-product .cat-hero-inner,
body.woocommerce-shop .cat-sort-bar,
body.tax-product_cat .cat-sort-bar,
body.post-type-archive-product .cat-sort-bar{
    width:min(100% - 32px, 1280px)!important;
    margin-inline:auto!important;
    box-sizing:border-box!important;
}

body.woocommerce-shop .cat-hero-inner,
body.tax-product_cat .cat-hero-inner,
body.post-type-archive-product .cat-hero-inner{
    justify-content:space-between!important;
    padding:clamp(18px,2.6vw,28px)!important;
    border-radius:28px!important;
}

body.woocommerce-shop .shop-container,
body.tax-product_cat .shop-container,
body.post-type-archive-product .shop-container{
    width:min(100% - 32px, 1280px)!important;
    margin-inline:auto!important;
    box-sizing:border-box!important;
}

body.woocommerce-shop .shop-topbar,
body.tax-product_cat .shop-topbar,
body.post-type-archive-product .shop-topbar{
    width:100%!important;
    box-sizing:border-box!important;
    margin-inline:0!important;
}

body.woocommerce-shop .cat-sort-bar,
body.tax-product_cat .cat-sort-bar,
body.post-type-archive-product .cat-sort-bar{
    border-radius:22px!important;
    margin-top:12px!important;
    margin-bottom:12px!important;
    padding:12px 14px!important;
}

@media (max-width:768px){
    body.woocommerce-shop .cat-hero,
    body.tax-product_cat .cat-hero,
    body.post-type-archive-product .cat-hero{
        padding-top:10px!important;
        padding-bottom:0!important;
    }

    body.woocommerce-shop .cat-hero-inner,
    body.tax-product_cat .cat-hero-inner,
    body.post-type-archive-product .cat-hero-inner,
    body.woocommerce-shop .cat-sort-bar,
    body.tax-product_cat .cat-sort-bar,
    body.post-type-archive-product .cat-sort-bar,
    body.woocommerce-shop .shop-container,
    body.tax-product_cat .shop-container,
    body.post-type-archive-product .shop-container{
        width:calc(100% - 24px)!important;
        max-width:none!important;
        margin-inline:auto!important;
    }

    body.woocommerce-shop .cat-hero-inner,
    body.tax-product_cat .cat-hero-inner,
    body.post-type-archive-product .cat-hero-inner{
        min-height:96px!important;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        text-align:center!important;
        padding:20px 18px!important;
        border-radius:24px!important;
    }

    body.woocommerce-shop .cat-hero-text,
    body.tax-product_cat .cat-hero-text,
    body.post-type-archive-product .cat-hero-text{
        flex:0 1 auto!important;
        width:100%!important;
        text-align:center!important;
    }

    body.woocommerce-shop .cat-hero-title,
    body.tax-product_cat .cat-hero-title,
    body.post-type-archive-product .cat-hero-title{
        width:100%!important;
        margin:0 auto!important;
        text-align:center!important;
        justify-content:center!important;
    }

    body.woocommerce-shop .cat-hero-meta,
    body.tax-product_cat .cat-hero-meta,
    body.post-type-archive-product .cat-hero-meta,
    body.woocommerce-shop .cat-hero-count,
    body.tax-product_cat .cat-hero-count,
    body.post-type-archive-product .cat-hero-count{
        display:none!important;
    }

    body.woocommerce-shop .cat-sort-bar,
    body.tax-product_cat .cat-sort-bar,
    body.post-type-archive-product .cat-sort-bar{
        display:flex!important;
        align-items:center!important;
        justify-content:space-between!important;
        gap:12px!important;
        min-height:54px!important;
        border-radius:22px!important;
        margin-top:10px!important;
        margin-bottom:10px!important;
    }

    body.woocommerce-shop .shop-container,
    body.tax-product_cat .shop-container,
    body.post-type-archive-product .shop-container{
        padding-inline:0!important;
        padding-top:0!important;
    }

    body.woocommerce-shop .shop-topbar,
    body.tax-product_cat .shop-topbar,
    body.post-type-archive-product .shop-topbar{
        min-height:62px!important;
        border-radius:22px!important;
        margin-bottom:12px!important;
    }
}


/* ═══════════════════════════════════════
   HastiGem v129 — desktop category hero alignment
   Scope: product archive/category desktop only. Keeps v128 mobile alignment intact.
═══════════════════════════════════════ */
@media (min-width: 769px){
    body.woocommerce-shop .cat-hero,
    body.tax-product_cat .cat-hero,
    body.post-type-archive-product .cat-hero{
        width:min(100% - 32px, 1280px)!important;
        max-width:none!important;
        margin:34px auto 32px!important;
        padding:0!important;
        box-sizing:border-box!important;
    }

    body.woocommerce-shop .cat-hero-inner,
    body.tax-product_cat .cat-hero-inner,
    body.post-type-archive-product .cat-hero-inner,
    html[data-hg-theme="dark"] body.woocommerce-shop .cat-hero-inner,
    html[data-hg-theme="dark"] body.tax-product_cat .cat-hero-inner,
    html[data-hg-theme="dark"] body.post-type-archive-product .cat-hero-inner{
        width:100%!important;
        min-height:118px!important;
        display:flex!important;
        flex-direction:row!important;
        align-items:center!important;
        justify-content:space-between!important;
        gap:24px!important;
        padding:28px 34px!important;
        box-sizing:border-box!important;
    }

    body.woocommerce-shop .cat-hero-text,
    body.tax-product_cat .cat-hero-text,
    body.post-type-archive-product .cat-hero-text{
        flex:1 1 auto!important;
        min-width:0!important;
        display:flex!important;
        align-items:center!important;
        justify-content:flex-start!important;
        text-align:right!important;
    }

    body.woocommerce-shop .cat-hero-title,
    body.tax-product_cat .cat-hero-title,
    body.post-type-archive-product .cat-hero-title{
        width:auto!important;
        max-width:100%!important;
        margin:0!important;
        text-align:right!important;
        line-height:1.25!important;
    }

    body.woocommerce-shop .cat-hero-meta,
    body.tax-product_cat .cat-hero-meta,
    body.post-type-archive-product .cat-hero-meta{
        flex:0 0 auto!important;
        min-width:max-content!important;
        margin-inline-start:auto!important;
        display:flex!important;
        align-items:center!important;
        justify-content:flex-end!important;
    }

    body.woocommerce-shop .cat-hero-count,
    body.tax-product_cat .cat-hero-count,
    body.post-type-archive-product .cat-hero-count{
        display:inline-flex!important;
    }
}


/* ═══════════════════════════════════════
   HastiGem v130 — exact desktop category hero + 9-per-page polish + rounded sort control
   Scope: product archive/category pages.
═══════════════════════════════════════ */
@media (min-width: 1025px){
    body.woocommerce-shop .cat-hero,
    body.tax-product_cat .cat-hero,
    body.post-type-archive-product .cat-hero{
        width:min(100% - 32px, 1280px)!important;
        margin:34px auto 30px!important;
        padding-inline:clamp(1rem,4vw,2rem)!important;
        box-sizing:border-box!important;
    }

    body.woocommerce-shop .cat-hero-inner,
    body.tax-product_cat .cat-hero-inner,
    body.post-type-archive-product .cat-hero-inner,
    html[data-hg-theme="dark"] body.woocommerce-shop .cat-hero-inner,
    html[data-hg-theme="dark"] body.tax-product_cat .cat-hero-inner,
    html[data-hg-theme="dark"] body.post-type-archive-product .cat-hero-inner{
        width:100%!important;
        min-height:96px!important;
        padding:0 28px!important;
        display:flex!important;
        align-items:center!important;
        justify-content:space-between!important;
        gap:22px!important;
        border-radius:28px!important;
        box-sizing:border-box!important;
    }

    body.woocommerce-shop .cat-hero-text,
    body.tax-product_cat .cat-hero-text,
    body.post-type-archive-product .cat-hero-text{
        display:flex!important;
        align-items:center!important;
        justify-content:flex-start!important;
        flex:1 1 auto!important;
        min-width:0!important;
        text-align:right!important;
    }

    body.woocommerce-shop .cat-hero-title,
    body.tax-product_cat .cat-hero-title,
    body.post-type-archive-product .cat-hero-title{
        margin:0!important;
        font-size:clamp(25px,2.05vw,31px)!important;
        line-height:1.25!important;
        text-align:right!important;
        white-space:normal!important;
    }

    body.woocommerce-shop .cat-hero-meta,
    body.tax-product_cat .cat-hero-meta,
    body.post-type-archive-product .cat-hero-meta{
        flex:0 0 auto!important;
        margin:0!important;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
    }

    body.woocommerce-shop .cat-hero-count,
    body.tax-product_cat .cat-hero-count,
    body.post-type-archive-product .cat-hero-count{
        min-height:36px!important;
        padding:0 18px!important;
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        border-radius:999px!important;
        white-space:nowrap!important;
    }
}

/* Rounded custom sorting dropdown; native select remains hidden for logic only. */
body.woocommerce-shop .sidebar-card,
body.tax-product_cat .sidebar-card,
body.post-type-archive-product .sidebar-card,
body.woocommerce-shop .sidebar-section,
body.tax-product_cat .sidebar-section,
body.post-type-archive-product .sidebar-section{
    overflow:visible!important;
}

body.woocommerce-shop #sortSelect.hg-sort-native,
body.tax-product_cat #sortSelect.hg-sort-native,
body.post-type-archive-product #sortSelect.hg-sort-native{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    opacity:0!important;
    pointer-events:none!important;
    overflow:hidden!important;
}

body.woocommerce-shop .hg-sort-picker,
body.tax-product_cat .hg-sort-picker,
body.post-type-archive-product .hg-sort-picker{
    position:relative!important;
    z-index:30!important;
    width:100%!important;
}

body.woocommerce-shop .hg-sort-button,
body.tax-product_cat .hg-sort-button,
body.post-type-archive-product .hg-sort-button{
    width:100%!important;
    min-height:42px!important;
    padding:0 14px!important;
    border:1px solid var(--hg-shop-line-soft)!important;
    border-radius:16px!important;
    background:var(--hg-shop-card-2)!important;
    color:var(--hg-shop-ink)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    font-family:inherit!important;
    font-size:12px!important;
    font-weight:800!important;
    cursor:pointer!important;
    box-shadow:none!important;
}

body.woocommerce-shop .hg-sort-button-icon,
body.tax-product_cat .hg-sort-button-icon,
body.post-type-archive-product .hg-sort-button-icon{
    width:24px!important;
    height:24px!important;
    border-radius:10px!important;
    display:grid!important;
    place-items:center!important;
    color:var(--hg-shop-muted)!important;
    background:var(--hg-shop-card)!important;
    border:1px solid var(--hg-shop-line-soft)!important;
}

body.woocommerce-shop .hg-sort-button-icon svg,
body.tax-product_cat .hg-sort-button-icon svg,
body.post-type-archive-product .hg-sort-button-icon svg{
    width:15px!important;
    height:15px!important;
    stroke:currentColor!important;
    stroke-width:2!important;
    fill:none!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
    transition:transform .18s ease!important;
}

body.woocommerce-shop .hg-sort-picker.is-open .hg-sort-button-icon svg,
body.tax-product_cat .hg-sort-picker.is-open .hg-sort-button-icon svg,
body.post-type-archive-product .hg-sort-picker.is-open .hg-sort-button-icon svg{
    transform:rotate(180deg)!important;
}

body.woocommerce-shop .hg-sort-menu,
body.tax-product_cat .hg-sort-menu,
body.post-type-archive-product .hg-sort-menu{
    position:absolute!important;
    inset-inline:0!important;
    top:calc(100% + 8px)!important;
    z-index:999!important;
    padding:7px!important;
    border-radius:18px!important;
    background:var(--hg-shop-card)!important;
    border:1px solid var(--hg-shop-line)!important;
    box-shadow:0 18px 42px rgba(15,23,42,.14)!important;
    overflow:hidden!important;
}

body.woocommerce-shop .hg-sort-option,
body.tax-product_cat .hg-sort-option,
body.post-type-archive-product .hg-sort-option{
    width:100%!important;
    min-height:36px!important;
    padding:0 12px!important;
    border:0!important;
    border-radius:12px!important;
    background:transparent!important;
    color:var(--hg-shop-muted)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    text-align:right!important;
    font-family:inherit!important;
    font-size:12px!important;
    font-weight:800!important;
    cursor:pointer!important;
}

body.woocommerce-shop .hg-sort-option:hover,
body.tax-product_cat .hg-sort-option:hover,
body.post-type-archive-product .hg-sort-option:hover{
    background:var(--hg-shop-card-2)!important;
    color:var(--hg-shop-ink)!important;
}

body.woocommerce-shop .hg-sort-option.is-active,
body.tax-product_cat .hg-sort-option.is-active,
body.post-type-archive-product .hg-sort-option.is-active{
    background:var(--hg-shop-primary)!important;
    color:var(--hg-shop-primary-text)!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .hg-sort-button,
html[data-hg-theme="dark"] body.tax-product_cat .hg-sort-button,
html[data-hg-theme="dark"] body.post-type-archive-product .hg-sort-button{
    background:rgba(255,255,255,.045)!important;
    border-color:rgba(255,255,255,.075)!important;
    color:#eef2f7!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .hg-sort-button-icon,
html[data-hg-theme="dark"] body.tax-product_cat .hg-sort-button-icon,
html[data-hg-theme="dark"] body.post-type-archive-product .hg-sort-button-icon{
    background:rgba(255,255,255,.045)!important;
    border-color:rgba(255,255,255,.075)!important;
    color:#aeb8c6!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .hg-sort-menu,
html[data-hg-theme="dark"] body.tax-product_cat .hg-sort-menu,
html[data-hg-theme="dark"] body.post-type-archive-product .hg-sort-menu{
    background:#111821!important;
    border-color:rgba(255,255,255,.09)!important;
    box-shadow:0 22px 48px rgba(0,0,0,.32)!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .hg-sort-option,
html[data-hg-theme="dark"] body.tax-product_cat .hg-sort-option,
html[data-hg-theme="dark"] body.post-type-archive-product .hg-sort-option{
    color:#aeb8c6!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .hg-sort-option:hover,
html[data-hg-theme="dark"] body.tax-product_cat .hg-sort-option:hover,
html[data-hg-theme="dark"] body.post-type-archive-product .hg-sort-option:hover{
    background:rgba(255,255,255,.055)!important;
    color:#eef2f7!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .hg-sort-option.is-active,
html[data-hg-theme="dark"] body.tax-product_cat .hg-sort-option.is-active,
html[data-hg-theme="dark"] body.post-type-archive-product .hg-sort-option.is-active{
    background:#eef2f7!important;
    color:#11161d!important;
}


/* ═══════════════════════════════════════
   HastiGem v131 — sidebar radius and clean RTL pagination
   Scope: product archive/category desktop and pagination.
═══════════════════════════════════════ */

/* Sidebar filter: remove rectangular feeling and keep all internal surfaces rounded/transparent. */
/* z-index: سایدبار sticky باید بالاتر از فوتر (z-index:auto) رندر شود تا منوی مرتب‌سازی باز زیر فوتر نرود؛ هدر 200 است. */
body.woocommerce-shop .sidebar,
body.tax-product_cat .sidebar,
body.post-type-archive-product .sidebar{
    background:transparent!important;
    z-index:50!important;
}

body.woocommerce-shop .sidebar-card,
body.tax-product_cat .sidebar-card,
body.post-type-archive-product .sidebar-card,
html[data-hg-theme="dark"] body.woocommerce-shop .sidebar-card,
html[data-hg-theme="dark"] body.tax-product_cat .sidebar-card,
html[data-hg-theme="dark"] body.post-type-archive-product .sidebar-card{
    position:relative!important;
    isolation:isolate!important;
    overflow:visible!important;
    border-radius:24px!important;
    background:var(--hg-shop-card)!important;
    border:1px solid var(--hg-shop-line)!important;
    box-shadow:var(--hg-shop-shadow-soft)!important;
}

body.woocommerce-shop .sidebar-card::before,
body.tax-product_cat .sidebar-card::before,
body.post-type-archive-product .sidebar-card::before{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    z-index:-1!important;
    border-radius:inherit!important;
    background:var(--hg-shop-card)!important;
    pointer-events:none!important;
}

body.woocommerce-shop .sidebar-section,
body.tax-product_cat .sidebar-section,
body.post-type-archive-product .sidebar-section,
html[data-hg-theme="dark"] body.woocommerce-shop .sidebar-section,
html[data-hg-theme="dark"] body.tax-product_cat .sidebar-section,
html[data-hg-theme="dark"] body.post-type-archive-product .sidebar-section{
    background:transparent!important;
    box-shadow:none!important;
    border-color:var(--hg-shop-line-soft)!important;
}

body.woocommerce-shop .sidebar-section:first-child,
body.tax-product_cat .sidebar-section:first-child,
body.post-type-archive-product .sidebar-section:first-child{
    border-radius:24px 24px 0 0!important;
}

body.woocommerce-shop .sidebar-section:last-child,
body.tax-product_cat .sidebar-section:last-child,
body.post-type-archive-product .sidebar-section:last-child{
    border-radius:0 0 24px 24px!important;
}

body.woocommerce-shop .price-range-wrap,
body.tax-product_cat .price-range-wrap,
body.post-type-archive-product .price-range-wrap,
body.woocommerce-shop .price-inputs-row,
body.tax-product_cat .price-inputs-row,
body.post-type-archive-product .price-inputs-row,
body.woocommerce-shop .price-field,
body.tax-product_cat .price-field,
body.post-type-archive-product .price-field{
    background:transparent!important;
}

body.woocommerce-shop .price-input,
body.tax-product_cat .price-input,
body.post-type-archive-product .price-input{
    border-radius:13px!important;
    min-height:34px!important;
}

body.woocommerce-shop .btn-price-apply,
body.tax-product_cat .btn-price-apply,
body.post-type-archive-product .btn-price-apply{
    border-radius:13px!important;
    min-height:34px!important;
}

/* Force native select to stay hidden so browser's square dropdown never appears. */
body.woocommerce-shop select.hg-sort-native,
body.tax-product_cat select.hg-sort-native,
body.post-type-archive-product select.hg-sort-native,
body.woocommerce-shop select#sortSelect.hg-sort-native,
body.tax-product_cat select#sortSelect.hg-sort-native,
body.post-type-archive-product select#sortSelect.hg-sort-native{
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    height:0!important;
    min-width:0!important;
    min-height:0!important;
    opacity:0!important;
    pointer-events:none!important;
    position:absolute!important;
    inset:auto!important;
}

body.woocommerce-shop .hg-sort-picker,
body.tax-product_cat .hg-sort-picker,
body.post-type-archive-product .hg-sort-picker{
    position:relative!important;
    width:100%!important;
    z-index:80!important;
    background:transparent!important;
}

body.woocommerce-shop .hg-sort-button,
body.tax-product_cat .hg-sort-button,
body.post-type-archive-product .hg-sort-button,
html[data-hg-theme="dark"] body.woocommerce-shop .hg-sort-button,
html[data-hg-theme="dark"] body.tax-product_cat .hg-sort-button,
html[data-hg-theme="dark"] body.post-type-archive-product .hg-sort-button{
    border-radius:16px!important;
    background:var(--hg-shop-card-2)!important;
    border:1px solid var(--hg-shop-line-soft)!important;
    color:var(--hg-shop-ink)!important;
    min-height:42px!important;
    box-shadow:none!important;
}

body.woocommerce-shop .hg-sort-button-icon,
body.tax-product_cat .hg-sort-button-icon,
body.post-type-archive-product .hg-sort-button-icon,
html[data-hg-theme="dark"] body.woocommerce-shop .hg-sort-button-icon,
html[data-hg-theme="dark"] body.tax-product_cat .hg-sort-button-icon,
html[data-hg-theme="dark"] body.post-type-archive-product .hg-sort-button-icon{
    border-radius:999px!important;
    background:var(--hg-shop-card)!important;
    border:1px solid var(--hg-shop-line-soft)!important;
    color:var(--hg-shop-muted)!important;
}

body.woocommerce-shop .hg-sort-menu,
body.tax-product_cat .hg-sort-menu,
body.post-type-archive-product .hg-sort-menu,
html[data-hg-theme="dark"] body.woocommerce-shop .hg-sort-menu,
html[data-hg-theme="dark"] body.tax-product_cat .hg-sort-menu,
html[data-hg-theme="dark"] body.post-type-archive-product .hg-sort-menu{
    border-radius:18px!important;
    overflow:hidden!important;
    background:var(--hg-shop-card)!important;
    border:1px solid var(--hg-shop-line)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.22)!important;
}

body.woocommerce-shop .hg-sort-option,
body.tax-product_cat .hg-sort-option,
body.post-type-archive-product .hg-sort-option{
    border-radius:12px!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop .hg-sort-option.is-active,
html[data-hg-theme="dark"] body.tax-product_cat .hg-sort-option.is-active,
html[data-hg-theme="dark"] body.post-type-archive-product .hg-sort-option.is-active{
    background:var(--hg-shop-primary)!important;
    color:var(--hg-shop-primary-text)!important;
}

/* Pagination: prevent the <ul class="page-numbers"> from becoming an invisible extra button. */
body.woocommerce-shop nav.pagination,
body.tax-product_cat nav.pagination,
body.post-type-archive-product nav.pagination,
body.woocommerce-shop .woocommerce-pagination,
body.tax-product_cat .woocommerce-pagination,
body.post-type-archive-product .woocommerce-pagination{
    width:100%!important;
    margin:30px 0 10px!important;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    direction:ltr!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}

body.woocommerce-shop nav.pagination ul.page-numbers,
body.tax-product_cat nav.pagination ul.page-numbers,
body.post-type-archive-product nav.pagination ul.page-numbers,
body.woocommerce-shop .woocommerce-pagination ul.page-numbers,
body.tax-product_cat .woocommerce-pagination ul.page-numbers,
body.post-type-archive-product .woocommerce-pagination ul.page-numbers{
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    padding:4px!important;
    margin:0!important;
    list-style:none!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    direction:ltr!important;
    border:1px solid var(--hg-shop-line-soft)!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.08)!important;
    box-shadow:none!important;
    overflow:hidden!important;
}

body.woocommerce-shop nav.pagination ul.page-numbers > li,
body.tax-product_cat nav.pagination ul.page-numbers > li,
body.post-type-archive-product nav.pagination ul.page-numbers > li,
body.woocommerce-shop .woocommerce-pagination ul.page-numbers > li,
body.tax-product_cat .woocommerce-pagination ul.page-numbers > li,
body.post-type-archive-product .woocommerce-pagination ul.page-numbers > li{
    display:flex!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}

body.woocommerce-shop nav.pagination ul.page-numbers > li > .page-numbers,
body.tax-product_cat nav.pagination ul.page-numbers > li > .page-numbers,
body.post-type-archive-product nav.pagination ul.page-numbers > li > .page-numbers,
body.woocommerce-shop .woocommerce-pagination ul.page-numbers > li > .page-numbers,
body.tax-product_cat .woocommerce-pagination ul.page-numbers > li > .page-numbers,
body.post-type-archive-product .woocommerce-pagination ul.page-numbers > li > .page-numbers{
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
    margin:0!important;
    border-radius:999px!important;
    border:1px solid var(--hg-shop-line-soft)!important;
    background:var(--hg-shop-card)!important;
    color:var(--hg-shop-muted)!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    font-size:13px!important;
    font-weight:800!important;
    line-height:1!important;
    text-decoration:none!important;
    box-shadow:none!important;
    direction:ltr!important;
}

body.woocommerce-shop nav.pagination ul.page-numbers > li > .page-numbers.current,
body.tax-product_cat nav.pagination ul.page-numbers > li > .page-numbers.current,
body.post-type-archive-product nav.pagination ul.page-numbers > li > .page-numbers.current,
body.woocommerce-shop .woocommerce-pagination ul.page-numbers > li > .page-numbers.current,
body.tax-product_cat .woocommerce-pagination ul.page-numbers > li > .page-numbers.current,
body.post-type-archive-product .woocommerce-pagination ul.page-numbers > li > .page-numbers.current{
    background:var(--hg-shop-primary)!important;
    border-color:transparent!important;
    color:var(--hg-shop-primary-text)!important;
}

body.woocommerce-shop nav.pagination ul.page-numbers > li > a.page-numbers:hover,
body.tax-product_cat nav.pagination ul.page-numbers > li > a.page-numbers:hover,
body.post-type-archive-product nav.pagination ul.page-numbers > li > a.page-numbers:hover,
body.woocommerce-shop .woocommerce-pagination ul.page-numbers > li > a.page-numbers:hover,
body.tax-product_cat .woocommerce-pagination ul.page-numbers > li > a.page-numbers:hover,
body.post-type-archive-product .woocommerce-pagination ul.page-numbers > li > a.page-numbers:hover{
    background:var(--hg-shop-card-2)!important;
    color:var(--hg-shop-ink)!important;
}

body.woocommerce-shop nav.pagination ul.page-numbers > li > a.next,
body.tax-product_cat nav.pagination ul.page-numbers > li > a.next,
body.post-type-archive-product nav.pagination ul.page-numbers > li > a.next,
body.woocommerce-shop nav.pagination ul.page-numbers > li > a.prev,
body.tax-product_cat nav.pagination ul.page-numbers > li > a.prev,
body.post-type-archive-product nav.pagination ul.page-numbers > li > a.prev{
    color:var(--hg-shop-muted)!important;
}

body.woocommerce-shop nav.pagination ul.page-numbers > li > a.next svg,
body.tax-product_cat nav.pagination ul.page-numbers > li > a.next svg,
body.post-type-archive-product nav.pagination ul.page-numbers > li > a.next svg,
body.woocommerce-shop nav.pagination ul.page-numbers > li > a.prev svg,
body.tax-product_cat nav.pagination ul.page-numbers > li > a.prev svg,
body.post-type-archive-product nav.pagination ul.page-numbers > li > a.prev svg{
    width:16px!important;
    height:16px!important;
    display:block!important;
    stroke:currentColor!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop nav.pagination ul.page-numbers,
html[data-hg-theme="dark"] body.tax-product_cat nav.pagination ul.page-numbers,
html[data-hg-theme="dark"] body.post-type-archive-product nav.pagination ul.page-numbers{
    background:rgba(255,255,255,.035)!important;
    border-color:rgba(255,255,255,.08)!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop nav.pagination ul.page-numbers > li > .page-numbers,
html[data-hg-theme="dark"] body.tax-product_cat nav.pagination ul.page-numbers > li > .page-numbers,
html[data-hg-theme="dark"] body.post-type-archive-product nav.pagination ul.page-numbers > li > .page-numbers{
    background:var(--hg-shop-card)!important;
    border-color:var(--hg-shop-line-soft)!important;
    color:var(--hg-shop-muted)!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop nav.pagination ul.page-numbers > li > .page-numbers.current,
html[data-hg-theme="dark"] body.tax-product_cat nav.pagination ul.page-numbers > li > .page-numbers.current,
html[data-hg-theme="dark"] body.post-type-archive-product nav.pagination ul.page-numbers > li > .page-numbers.current{
    background:var(--hg-shop-primary)!important;
    color:var(--hg-shop-primary-text)!important;
}

/* Keep desktop category header exact but not oversized. */
@media (min-width:1025px){
    body.woocommerce-shop .cat-hero,
    body.tax-product_cat .cat-hero,
    body.post-type-archive-product .cat-hero{
        width:min(100% - 32px, 1280px)!important;
        margin:32px auto 28px!important;
        padding-inline:clamp(1rem,4vw,2rem)!important;
    }

    body.woocommerce-shop .cat-hero-inner,
    body.tax-product_cat .cat-hero-inner,
    body.post-type-archive-product .cat-hero-inner{
        min-height:94px!important;
        padding:0 30px!important;
    }
}


/* ═══════════════════════════════════════
   HastiGem v132 — Persian RTL pagination order
   Scope: product archive/category pagination only.
═══════════════════════════════════════ */
body.woocommerce-shop nav.pagination,
body.tax-product_cat nav.pagination,
body.post-type-archive-product nav.pagination,
body.woocommerce-shop .woocommerce-pagination,
body.tax-product_cat .woocommerce-pagination,
body.post-type-archive-product .woocommerce-pagination{
    direction:rtl!important;
}

body.woocommerce-shop nav.pagination ul.page-numbers,
body.tax-product_cat nav.pagination ul.page-numbers,
body.post-type-archive-product nav.pagination ul.page-numbers,
body.woocommerce-shop .woocommerce-pagination ul.page-numbers,
body.tax-product_cat .woocommerce-pagination ul.page-numbers,
body.post-type-archive-product .woocommerce-pagination ul.page-numbers{
    direction:rtl!important;
    flex-direction:row!important;
    gap:7px!important;
    padding:5px!important;
    overflow:visible!important;
}

body.woocommerce-shop nav.pagination ul.page-numbers > li,
body.tax-product_cat nav.pagination ul.page-numbers > li,
body.post-type-archive-product nav.pagination ul.page-numbers > li,
body.woocommerce-shop .woocommerce-pagination ul.page-numbers > li,
body.tax-product_cat .woocommerce-pagination ul.page-numbers > li,
body.post-type-archive-product .woocommerce-pagination ul.page-numbers > li{
    order:10!important;
    flex:0 0 auto!important;
}

body.woocommerce-shop nav.pagination ul.page-numbers > li.hg-page-arrow,
body.tax-product_cat nav.pagination ul.page-numbers > li.hg-page-arrow,
body.post-type-archive-product nav.pagination ul.page-numbers > li.hg-page-arrow,
body.woocommerce-shop nav.pagination ul.page-numbers > li:has(> a.prev.page-numbers),
body.tax-product_cat nav.pagination ul.page-numbers > li:has(> a.prev.page-numbers),
body.post-type-archive-product nav.pagination ul.page-numbers > li:has(> a.prev.page-numbers),
body.woocommerce-shop nav.pagination ul.page-numbers > li:has(> a.next.page-numbers),
body.tax-product_cat nav.pagination ul.page-numbers > li:has(> a.next.page-numbers),
body.post-type-archive-product nav.pagination ul.page-numbers > li:has(> a.next.page-numbers){
    order:20!important;
}

body.woocommerce-shop nav.pagination ul.page-numbers > li > .page-numbers,
body.tax-product_cat nav.pagination ul.page-numbers > li > .page-numbers,
body.post-type-archive-product nav.pagination ul.page-numbers > li > .page-numbers,
body.woocommerce-shop .woocommerce-pagination ul.page-numbers > li > .page-numbers,
body.tax-product_cat .woocommerce-pagination ul.page-numbers > li > .page-numbers,
body.post-type-archive-product .woocommerce-pagination ul.page-numbers > li > .page-numbers{
    direction:ltr!important;
    unicode-bidi:isolate!important;
}

body.woocommerce-shop nav.pagination ul.page-numbers > li.hg-page-arrow > a,
body.tax-product_cat nav.pagination ul.page-numbers > li.hg-page-arrow > a,
body.post-type-archive-product nav.pagination ul.page-numbers > li.hg-page-arrow > a{
    opacity:.92!important;
}

html[data-hg-theme="dark"] body.woocommerce-shop nav.pagination ul.page-numbers,
html[data-hg-theme="dark"] body.tax-product_cat nav.pagination ul.page-numbers,
html[data-hg-theme="dark"] body.post-type-archive-product nav.pagination ul.page-numbers{
    background:rgba(255,255,255,.045)!important;
}


/* HastiGem v134 — single product day/night image switch */
body.single-product .main-image{
  isolation:isolate!important;
}

body.single-product .main-image .hg-product-single-theme-media{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  z-index:1!important;
  border-radius:inherit!important;
  overflow:hidden!important;
}

body.single-product .main-image .hg-product-media-img,
body.single-product .main-image .hg-product-media-img--light,
body.single-product .main-image .hg-product-media-img--dark{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:inherit!important;
  background:transparent!important;
  transition:opacity .24s ease, visibility .24s ease!important;
}

body.single-product .main-image .hg-product-media-img--light{
  opacity:1!important;
  visibility:visible!important;
}

body.single-product .main-image .hg-product-media-img--dark{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

html[data-hg-theme="dark"] body.single-product .main-image .hg-product-media.has-dark .hg-product-media-img--light{
  opacity:0!important;
  visibility:hidden!important;
}

html[data-hg-theme="dark"] body.single-product .main-image .hg-product-media.has-dark .hg-product-media-img--dark{
  opacity:1!important;
  visibility:visible!important;
}

body.single-product .main-image .hg-product-media-fallback{
  position:absolute!important;
  inset:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  z-index:1!important;
}

body.single-product .main-image::after{
  z-index:2!important;
}

body.single-product .main-image .img-badges{
  z-index:4!important;
}

body.single-product .related-section .rel-img{
  position:relative!important;
  border-radius:18px!important;
  overflow:hidden!important;
}

body.single-product .related-section .rel-img .hg-related-theme-media{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  border-radius:inherit!important;
  overflow:hidden!important;
}

body.single-product .related-section .rel-img .hg-product-media-img{
  object-fit:cover!important;
  border-radius:inherit!important;
}

body.single-product .related-section .rel-sale-badge{
  position:absolute!important;
  z-index:4!important;
}


/* ═══════════════════════════════════════
   HastiGem v135 — single product reviews and rating section
   Scope: Single product page. Review form is visible only after login.
═══════════════════════════════════════ */
.single-product .hg-product-reviews-section{
    width:min(1180px,calc(100% - 32px));
    margin:clamp(24px,4vw,46px) auto;
    padding:clamp(18px,2.4vw,28px);
    border-radius:32px;
    border:1px solid rgba(17,24,39,.08);
    background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(246,246,241,.90));
    box-shadow:0 24px 56px rgba(15,23,42,.07);
    direction:rtl;
}

.single-product .hg-product-reviews-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) 210px;
    gap:18px;
    align-items:stretch;
    margin-bottom:18px;
}

.single-product .hg-product-reviews-kicker{
    display:inline-flex;
    align-items:center;
    width:max-content;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(31,41,55,.06);
    color:#667085;
    font-size:12px;
    font-weight:900;
    margin-bottom:10px;
}

.single-product .hg-product-reviews-head h2{
    margin:0;
    color:#171923;
    font-size:clamp(22px,2.2vw,32px);
    font-weight:1000;
    letter-spacing:-.03em;
}

.single-product .hg-product-reviews-head p{
    margin:8px 0 0;
    color:#667085;
    font-size:13px;
    line-height:2;
}

.single-product .hg-product-review-score-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-height:150px;
    border-radius:26px;
    border:1px solid rgba(17,24,39,.08);
    background:rgba(255,255,255,.72);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}

.single-product .hg-product-review-score-card strong{
    color:#171923;
    font-size:42px;
    font-weight:1000;
    line-height:1;
}

.single-product .hg-product-review-score-card > span,
.single-product .hg-product-review-score-card em{
    color:#667085;
    font-size:12px;
    font-style:normal;
    font-weight:800;
}

.single-product .hg-review-stars{
    display:inline-flex;
    align-items:center;
    gap:2px;
    color:#cfd4dc;
    line-height:1;
}

.single-product .hg-review-stars i{
    font-style:normal;
    font-size:18px;
}

.single-product .hg-review-stars i.is-filled{
    color:#f5b642;
    text-shadow:0 6px 16px rgba(245,182,66,.24);
}

.single-product .hg-review-stars.is-small i{
    font-size:14px;
}

.single-product .hg-product-reviews-grid{
    display:grid;
    grid-template-columns:minmax(260px,340px) minmax(0,1fr);
    gap:18px;
    align-items:start;
}

.single-product .hg-product-rating-breakdown,
.single-product .hg-review-form-card,
.single-product .hg-review-login-card,
.single-product .hg-product-review-list{
    border-radius:26px;
    border:1px solid rgba(17,24,39,.08);
    background:rgba(255,255,255,.66);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}

.single-product .hg-product-rating-breakdown{
    padding:16px;
    display:grid;
    gap:12px;
}

.single-product .hg-rating-row{
    display:grid;
    grid-template-columns:46px minmax(0,1fr) 28px;
    gap:10px;
    align-items:center;
    color:#667085;
    font-size:12px;
    font-weight:900;
}

.single-product .hg-rating-track{
    height:9px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(17,24,39,.07);
}

.single-product .hg-rating-track i{
    display:block;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,#f5b642,#ffe2a4);
}

.single-product .hg-product-review-action{
    min-width:0;
}

.single-product .hg-review-login-card{
    min-height:100%;
    padding:20px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:10px;
}

.single-product .hg-review-login-icon{
    width:46px;
    height:46px;
    border-radius:18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#171923;
    background:rgba(255,255,255,.72);
    border:1px solid rgba(17,24,39,.08);
}

.single-product .hg-review-login-icon svg{
    width:22px;
    height:22px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
}

.single-product .hg-review-login-card strong{
    color:#171923;
    font-size:17px;
    font-weight:1000;
}

.single-product .hg-review-login-card p{
    margin:0;
    color:#667085;
    line-height:2;
    font-size:13px;
}

.single-product .hg-review-login-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:4px;
}

.single-product .hg-review-login-actions a,
.single-product .hg-review-form .form-submit button{
    height:42px;
    padding:0 18px;
    border-radius:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    text-decoration:none;
    cursor:pointer;
    background:#171923;
    color:#fff;
    font-size:13px;
    font-weight:1000;
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.single-product .hg-review-login-actions a:hover,
.single-product .hg-review-form .form-submit button:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 26px rgba(15,23,42,.16);
}

.single-product .hg-review-login-actions a.is-ghost{
    background:rgba(17,24,39,.06);
    color:#171923;
}

.single-product .hg-review-form-card{
    padding:18px;
}

.single-product .hg-review-form-head{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:14px;
}

.single-product .hg-review-form-head strong{
    color:#171923;
    font-size:17px;
    font-weight:1000;
}

.single-product .hg-review-form-head span{
    color:#667085;
    font-size:12px;
    font-weight:800;
}

.single-product .hg-review-form{
    margin:0;
}

.single-product .hg-review-rating-field{
    display:grid;
    gap:10px;
    margin:0 0 14px;
}

.single-product .hg-review-rating-field > span,
.single-product .hg-review-comment-field label{
    color:#475467;
    font-size:12px;
    font-weight:1000;
}

.single-product .hg-review-rating-input{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.single-product .hg-review-rating-input input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.single-product .hg-review-rating-input label{
    min-height:38px;
    padding:0 13px;
    border-radius:999px;
    border:1px solid rgba(17,24,39,.08);
    background:rgba(255,255,255,.78);
    color:#667085;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-size:12px;
    font-weight:1000;
    transition:.18s ease;
}

.single-product .hg-review-rating-input input:checked + label{
    background:#171923;
    border-color:#171923;
    color:#fff;
    box-shadow:0 12px 24px rgba(15,23,42,.16);
}

.single-product .hg-review-comment-field{
    display:grid;
    gap:8px;
    margin:0;
}

.single-product .hg-review-comment-field textarea{
    width:100%;
    min-height:128px;
    resize:vertical;
    border-radius:20px;
    border:1px solid rgba(17,24,39,.08);
    background:rgba(255,255,255,.84);
    color:#171923;
    padding:14px 16px;
    font:inherit;
    line-height:2;
    outline:0;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}

.single-product .hg-review-comment-field textarea:focus{
    border-color:rgba(23,25,35,.28);
    box-shadow:0 0 0 4px rgba(17,24,39,.06);
}

.single-product .hg-review-submit{
    margin:14px 0 0;
}

.single-product .hg-product-review-list{
    margin-top:18px;
    padding:18px;
}

.single-product .hg-product-review-list-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}

.single-product .hg-product-review-list-head h3{
    margin:0;
    color:#171923;
    font-size:18px;
    font-weight:1000;
}

.single-product .hg-product-review-list-head span{
    color:#667085;
    font-size:12px;
    font-weight:900;
}

.single-product .hg-review-cards{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.single-product .hg-review-card,
.single-product .hg-review-empty{
    border-radius:22px;
    border:1px solid rgba(17,24,39,.07);
    background:rgba(255,255,255,.70);
    padding:16px;
}

.single-product .hg-review-card-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}

.single-product .hg-review-card-top strong{
    display:block;
    color:#171923;
    font-size:14px;
    font-weight:1000;
}

.single-product .hg-review-card-top span{
    display:block;
    color:#98a2b3;
    font-size:11px;
    font-weight:800;
    margin-top:4px;
}

.single-product .hg-review-verified{
    width:max-content;
    display:inline-flex;
    margin:10px 0 0;
    padding:5px 9px;
    border-radius:999px;
    background:rgba(34,197,94,.10);
    color:#15803d;
    font-size:11px;
    font-weight:1000;
}

.single-product .hg-review-content{
    margin-top:10px;
    color:#475467;
    font-size:13px;
    line-height:2;
}

.single-product .hg-review-content p{
    margin:0;
}

.single-product .hg-review-empty{
    text-align:center;
    color:#667085;
    padding:28px 18px;
}

.single-product .hg-review-empty strong{
    display:block;
    color:#171923;
    font-size:16px;
    font-weight:1000;
    margin-bottom:6px;
}

.single-product .hg-review-empty p{
    margin:0;
    line-height:2;
    font-size:13px;
}

html[data-hg-theme="dark"] .single-product .hg-product-reviews-section{
    background:linear-gradient(145deg,rgba(19,23,31,.94),rgba(15,19,26,.94));
    border-color:rgba(255,255,255,.08);
    box-shadow:0 24px 56px rgba(0,0,0,.24);
}

html[data-hg-theme="dark"] .single-product .hg-product-reviews-kicker,
html[data-hg-theme="dark"] .single-product .hg-review-login-actions a.is-ghost{
    background:rgba(255,255,255,.06);
    color:#d0d5dd;
}

html[data-hg-theme="dark"] .single-product .hg-product-reviews-head h2,
html[data-hg-theme="dark"] .single-product .hg-product-review-score-card strong,
html[data-hg-theme="dark"] .single-product .hg-review-login-card strong,
html[data-hg-theme="dark"] .single-product .hg-review-form-head strong,
html[data-hg-theme="dark"] .single-product .hg-product-review-list-head h3,
html[data-hg-theme="dark"] .single-product .hg-review-card-top strong,
html[data-hg-theme="dark"] .single-product .hg-review-empty strong{
    color:#f2f4f7;
}

html[data-hg-theme="dark"] .single-product .hg-product-reviews-head p,
html[data-hg-theme="dark"] .single-product .hg-product-review-score-card > span,
html[data-hg-theme="dark"] .single-product .hg-product-review-score-card em,
html[data-hg-theme="dark"] .single-product .hg-review-login-card p,
html[data-hg-theme="dark"] .single-product .hg-review-form-head span,
html[data-hg-theme="dark"] .single-product .hg-product-review-list-head span,
html[data-hg-theme="dark"] .single-product .hg-review-content,
html[data-hg-theme="dark"] .single-product .hg-review-empty,
html[data-hg-theme="dark"] .single-product .hg-rating-row,
html[data-hg-theme="dark"] .single-product .hg-review-rating-field > span,
html[data-hg-theme="dark"] .single-product .hg-review-comment-field label{
    color:#a8b3c2;
}

html[data-hg-theme="dark"] .single-product .hg-product-review-score-card,
html[data-hg-theme="dark"] .single-product .hg-product-rating-breakdown,
html[data-hg-theme="dark"] .single-product .hg-review-form-card,
html[data-hg-theme="dark"] .single-product .hg-review-login-card,
html[data-hg-theme="dark"] .single-product .hg-product-review-list,
html[data-hg-theme="dark"] .single-product .hg-review-card,
html[data-hg-theme="dark"] .single-product .hg-review-empty{
    background:rgba(255,255,255,.045);
    border-color:rgba(255,255,255,.08);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

html[data-hg-theme="dark"] .single-product .hg-review-login-icon,
html[data-hg-theme="dark"] .single-product .hg-review-rating-input label,
html[data-hg-theme="dark"] .single-product .hg-review-comment-field textarea{
    background:rgba(255,255,255,.055);
    border-color:rgba(255,255,255,.08);
    color:#e4e7ec;
}

html[data-hg-theme="dark"] .single-product .hg-review-rating-input input:checked + label,
html[data-hg-theme="dark"] .single-product .hg-review-login-actions a,
html[data-hg-theme="dark"] .single-product .hg-review-form .form-submit button{
    background:#f2f4f7;
    color:#101828;
    border-color:#f2f4f7;
}

html[data-hg-theme="dark"] .single-product .hg-rating-track{
    background:rgba(255,255,255,.08);
}

html[data-hg-theme="dark"] .single-product .hg-review-comment-field textarea:focus{
    border-color:rgba(255,255,255,.22);
    box-shadow:0 0 0 4px rgba(255,255,255,.06);
}

@media(max-width:900px){
    .single-product .hg-product-reviews-head,
    .single-product .hg-product-reviews-grid{
        grid-template-columns:1fr;
    }

    .single-product .hg-product-review-score-card{
        min-height:auto;
        padding:18px;
    }

    .single-product .hg-review-cards{
        grid-template-columns:1fr;
    }
}

@media(max-width:640px){
    .single-product .hg-product-reviews-section{
        width:calc(100% - 20px);
        margin:22px auto;
        padding:14px;
        border-radius:24px;
    }

    .single-product .hg-product-reviews-head h2{
        font-size:22px;
    }

    .single-product .hg-review-login-actions,
    .single-product .hg-review-rating-input{
        width:100%;
    }

    .single-product .hg-review-login-actions a,
    .single-product .hg-review-rating-input label{
        flex:1 1 auto;
    }
}


/* ═══════════════════════════════════════
   HastiGem v136 — product reviews compact drawer + popup + load more
   Scope: Single product reviews section.
═══════════════════════════════════════ */
.single-product .hg-product-reviews-section.hg-product-reviews-compact{
    width:min(1180px,calc(100% - 32px))!important;
    margin:clamp(24px,4vw,44px) auto!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    direction:rtl;
}

.single-product .hg-reviews-drawer-trigger{
    width:100%;
    min-height:118px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 170px auto;
    align-items:center;
    gap:18px;
    padding:20px 22px;
    border-radius:28px;
    border:1px solid var(--hg-shop-line);
    background:linear-gradient(145deg,var(--hg-shop-card),var(--hg-shop-card-2));
    box-shadow:var(--hg-shop-shadow-soft);
    color:var(--hg-shop-ink);
    cursor:pointer;
    text-align:right;
    font:inherit;
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.single-product .hg-reviews-drawer-trigger:hover{
    transform:translateY(-2px);
    border-color:rgba(245,182,66,.32);
    box-shadow:var(--hg-shop-shadow);
}

.single-product .hg-reviews-trigger-copy{
    display:grid;
    justify-items:start;
    gap:6px;
    min-width:0;
}

.single-product .hg-reviews-trigger-copy strong{
    color:var(--hg-shop-ink);
    font-size:clamp(20px,2vw,28px);
    font-weight:1000;
    letter-spacing:-.03em;
}

.single-product .hg-reviews-trigger-copy em{
    color:var(--hg-shop-muted);
    font-style:normal;
    font-size:13px;
    font-weight:800;
    line-height:1.9;
}

.single-product .hg-product-reviews-kicker{
    background:var(--hg-shop-card-3)!important;
    color:var(--hg-shop-muted)!important;
    border:1px solid var(--hg-shop-line-soft)!important;
}

.single-product .hg-reviews-trigger-score{
    min-height:78px;
    border-radius:22px;
    border:1px solid var(--hg-shop-line-soft);
    background:rgba(255,255,255,.42);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
}

.single-product .hg-reviews-trigger-score b{
    color:var(--hg-shop-ink);
    font-size:30px;
    font-weight:1000;
    line-height:1;
}

.single-product .hg-reviews-trigger-score small{
    color:var(--hg-shop-muted);
    font-size:11px;
    font-weight:900;
}

.single-product .hg-reviews-trigger-action{
    height:44px;
    padding:0 16px;
    border-radius:16px;
    background:var(--hg-shop-primary);
    color:var(--hg-shop-primary-text);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    white-space:nowrap;
    font-size:13px;
    font-weight:1000;
}

.single-product .hg-reviews-trigger-action svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:transform .18s ease;
}

.single-product .hg-reviews-drawer-trigger[aria-expanded="true"] .hg-reviews-trigger-action svg{
    transform:rotate(180deg);
}

.hg-reviews-modal-overlay[hidden],
.hg-reviews-modal[hidden]{
    display:none!important;
}

.hg-reviews-modal-overlay{
    position:fixed;
    inset:0;
    z-index:99990;
    background:rgba(12,15,20,.36);
    -webkit-backdrop-filter:blur(16px) saturate(130%);
    backdrop-filter:blur(16px) saturate(130%);
    opacity:0;
    transition:opacity .18s ease;
}

.hg-reviews-modal-overlay.is-open{
    opacity:1;
}

.hg-reviews-modal{
    position:fixed;
    inset:0;
    z-index:99991;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    pointer-events:none;
    opacity:0;
    transition:opacity .18s ease;
    direction:rtl;
}

.hg-reviews-modal.is-open{
    opacity:1;
    pointer-events:auto;
}

.hg-reviews-modal-panel{
    width:min(1120px,100%);
    max-height:min(86vh,880px);
    overflow:auto;
    overscroll-behavior:contain;
    padding:22px;
    border-radius:32px;
    border:1px solid var(--hg-shop-line);
    background:
        radial-gradient(circle at 78% 0%,rgba(245,182,66,.08),transparent 34%),
        linear-gradient(145deg,var(--hg-shop-card),var(--hg-shop-bg-soft));
    box-shadow:0 34px 90px rgba(0,0,0,.24);
    color:var(--hg-shop-ink);
    transform:translateY(28px) scale(.985);
    transition:transform .22s cubic-bezier(.2,.8,.2,1);
    outline:0;
}

.hg-reviews-modal.is-open .hg-reviews-modal-panel{
    transform:translateY(0) scale(1);
}

body.hg-reviews-modal-open{
    overflow:hidden!important;
}

.single-product .hg-reviews-modal-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:18px;
    padding-bottom:16px;
    border-bottom:1px solid var(--hg-shop-line-soft);
}

.single-product .hg-reviews-modal-head h2{
    margin:0;
    color:var(--hg-shop-ink);
    font-size:clamp(22px,2.2vw,32px);
    font-weight:1000;
    letter-spacing:-.03em;
}

.single-product .hg-reviews-modal-head p{
    margin:8px 0 0;
    color:var(--hg-shop-muted);
    font-size:13px;
    line-height:2;
    font-weight:700;
}

.single-product .hg-reviews-modal-close{
    width:42px;
    height:42px;
    flex:0 0 auto;
    border-radius:16px;
    border:1px solid var(--hg-shop-line-soft);
    background:var(--hg-shop-card-2);
    color:var(--hg-shop-ink);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.18s ease;
}

.single-product .hg-reviews-modal-close:hover{
    transform:translateY(-1px);
    background:var(--hg-shop-card-3);
}

.single-product .hg-reviews-modal-close svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
}

.single-product .hg-reviews-modal .hg-product-reviews-head{
    display:grid!important;
    grid-template-columns:220px minmax(0,1fr)!important;
    gap:16px!important;
    align-items:stretch!important;
    margin:0 0 16px!important;
}

.single-product .hg-reviews-modal .hg-product-review-score-card,
.single-product .hg-reviews-modal .hg-product-rating-breakdown,
.single-product .hg-reviews-modal .hg-review-form-card,
.single-product .hg-reviews-modal .hg-review-login-card,
.single-product .hg-reviews-modal .hg-product-review-list,
.single-product .hg-reviews-modal .hg-review-card,
.single-product .hg-reviews-modal .hg-review-empty{
    border:1px solid var(--hg-shop-line-soft)!important;
    background:rgba(255,255,255,.50)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.46)!important;
}

.single-product .hg-reviews-modal .hg-product-review-score-card{
    min-height:150px!important;
}

.single-product .hg-reviews-modal .hg-product-review-score-card strong,
.single-product .hg-reviews-modal .hg-review-login-card strong,
.single-product .hg-reviews-modal .hg-review-form-head strong,
.single-product .hg-reviews-modal .hg-product-review-list-head h3,
.single-product .hg-reviews-modal .hg-review-card-top strong,
.single-product .hg-reviews-modal .hg-review-empty strong{
    color:var(--hg-shop-ink)!important;
}

.single-product .hg-reviews-modal .hg-product-review-score-card > span,
.single-product .hg-reviews-modal .hg-product-review-score-card em,
.single-product .hg-reviews-modal .hg-review-login-card p,
.single-product .hg-reviews-modal .hg-review-form-head span,
.single-product .hg-reviews-modal .hg-product-review-list-head span,
.single-product .hg-reviews-modal .hg-review-content,
.single-product .hg-reviews-modal .hg-review-empty,
.single-product .hg-reviews-modal .hg-rating-row,
.single-product .hg-reviews-modal .hg-review-rating-field > span,
.single-product .hg-reviews-modal .hg-review-comment-field label{
    color:var(--hg-shop-muted)!important;
}

.single-product .hg-reviews-modal .hg-product-reviews-grid{
    display:grid!important;
    grid-template-columns:minmax(320px,.92fr) minmax(0,1.08fr)!important;
    gap:16px!important;
    align-items:start!important;
}

.single-product .hg-reviews-modal .hg-product-review-list{
    margin-top:0!important;
    padding:18px!important;
}

.single-product .hg-reviews-modal .hg-review-form-card{
    padding:18px!important;
}

.single-product .hg-reviews-modal .hg-review-cards{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
}

.single-product .hg-review-card.is-hidden{
    display:none!important;
}

.single-product .hg-review-load-more{
    width:100%;
    min-height:44px;
    margin-top:14px;
    border:1px solid var(--hg-shop-line-soft);
    border-radius:16px;
    background:var(--hg-shop-card-2);
    color:var(--hg-shop-ink);
    font:inherit;
    font-size:13px;
    font-weight:1000;
    cursor:pointer;
    transition:.18s ease;
}

.single-product .hg-review-load-more:hover{
    background:var(--hg-shop-card-3);
    transform:translateY(-1px);
}

.single-product .hg-reviews-modal .hg-review-rating-input label,
.single-product .hg-reviews-modal .hg-review-comment-field textarea,
.single-product .hg-reviews-modal .hg-review-login-icon{
    background:var(--hg-shop-card)!important;
    border-color:var(--hg-shop-line-soft)!important;
    color:var(--hg-shop-ink)!important;
}

.single-product .hg-reviews-modal .hg-review-comment-field textarea{
    min-height:132px!important;
}

.single-product .hg-reviews-modal .hg-review-rating-input input:checked + label,
.single-product .hg-reviews-modal .hg-review-login-actions a,
.single-product .hg-reviews-modal .hg-review-form .form-submit button{
    background:var(--hg-shop-primary)!important;
    color:var(--hg-shop-primary-text)!important;
    border-color:var(--hg-shop-primary)!important;
}

.single-product .hg-reviews-modal .hg-review-login-actions a.is-ghost{
    background:var(--hg-shop-card-2)!important;
    color:var(--hg-shop-ink)!important;
    border:1px solid var(--hg-shop-line-soft)!important;
}

.single-product .hg-review-stars i.is-filled,
.single-product .hg-reviews-modal .hg-review-stars i.is-filled{
    color:#f5b642!important;
}

.single-product .hg-reviews-modal .hg-rating-track{
    background:var(--hg-shop-card-3)!important;
}

.single-product .hg-reviews-modal .hg-rating-track i{
    background:linear-gradient(90deg,#f5b642,#ffd27a)!important;
}

html[data-hg-theme="dark"] .hg-reviews-modal-overlay{
    background:rgba(4,6,10,.56);
}

html[data-hg-theme="dark"] .single-product .hg-reviews-trigger-score,
html[data-hg-theme="dark"] .single-product .hg-reviews-modal .hg-product-review-score-card,
html[data-hg-theme="dark"] .single-product .hg-reviews-modal .hg-product-rating-breakdown,
html[data-hg-theme="dark"] .single-product .hg-reviews-modal .hg-review-form-card,
html[data-hg-theme="dark"] .single-product .hg-reviews-modal .hg-review-login-card,
html[data-hg-theme="dark"] .single-product .hg-reviews-modal .hg-product-review-list,
html[data-hg-theme="dark"] .single-product .hg-reviews-modal .hg-review-card,
html[data-hg-theme="dark"] .single-product .hg-reviews-modal .hg-review-empty{
    background:rgba(255,255,255,.045)!important;
    border-color:var(--hg-shop-line-soft)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}

html[data-hg-theme="dark"] .single-product .hg-reviews-modal-panel{
    background:
        radial-gradient(circle at 78% 0%,rgba(251,191,36,.07),transparent 34%),
        linear-gradient(145deg,var(--hg-shop-card),var(--hg-shop-page-bg));
    box-shadow:0 34px 90px rgba(0,0,0,.46);
}

html[data-hg-theme="dark"] .single-product .hg-reviews-drawer-trigger{
    background:linear-gradient(145deg,var(--hg-shop-card),var(--hg-shop-bg-soft));
}

html[data-hg-theme="dark"] .single-product .hg-product-reviews-kicker{
    background:rgba(255,255,255,.045)!important;
    color:var(--hg-shop-muted)!important;
}

@media(max-width:900px){
    .single-product .hg-reviews-drawer-trigger{
        grid-template-columns:1fr;
        justify-items:stretch;
        gap:14px;
    }

    .single-product .hg-reviews-trigger-score{
        min-height:auto;
        padding:14px;
    }

    .single-product .hg-reviews-trigger-action{
        width:100%;
    }

    .single-product .hg-reviews-modal{
        padding:14px;
        align-items:flex-end;
    }

    .single-product .hg-reviews-modal-panel{
        max-height:88vh;
        border-radius:28px 28px 0 0;
        padding:16px;
    }

    .single-product .hg-reviews-modal .hg-product-reviews-head,
    .single-product .hg-reviews-modal .hg-product-reviews-grid{
        grid-template-columns:1fr!important;
    }
}

@media(max-width:640px){
    .single-product .hg-product-reviews-section.hg-product-reviews-compact{
        width:calc(100% - 20px)!important;
        margin:22px auto!important;
    }

    .single-product .hg-reviews-drawer-trigger{
        min-height:auto;
        padding:16px;
        border-radius:22px;
    }

    .single-product .hg-reviews-trigger-copy strong{
        font-size:20px;
    }

    .single-product .hg-reviews-modal{
        padding:0;
    }

    .single-product .hg-reviews-modal-panel{
        width:100%;
        max-height:92vh;
        border-radius:26px 26px 0 0;
        padding:14px;
    }

    .single-product .hg-reviews-modal-head{
        gap:12px;
    }

    .single-product .hg-review-login-actions,
    .single-product .hg-review-rating-input{
        width:100%;
    }

    .single-product .hg-review-login-actions a,
    .single-product .hg-review-rating-input label{
        flex:1 1 auto;
    }
}

/* ═══════════════════════════════════════
   HastiGem v137 — full product page redesign
   Scope: WooCommerce single product only.
═══════════════════════════════════════ */
body.single-product{
    --hg-v137-bg:#f6f6f2;
    --hg-v137-bg-2:#eeeee7;
    --hg-v137-card:#fffdf8;
    --hg-v137-card-2:#f7f4eb;
    --hg-v137-card-3:#ffffff;
    --hg-v137-text:#171a20;
    --hg-v137-muted:#667085;
    --hg-v137-soft:#8b93a0;
    --hg-v137-line:rgba(17,24,39,.12);
    --hg-v137-line-2:rgba(17,24,39,.18);
    --hg-v137-gold:#c9973a;
    --hg-v137-gold-2:#f0ce72;
    --hg-v137-green:#14a256;
    --hg-v137-danger:#ef4444;
    --hg-v137-shadow:0 26px 80px rgba(17,24,39,.10);
    --hg-v137-radius:28px;
    background:radial-gradient(circle at 8% -12%,rgba(201,151,58,.13),transparent 36%),linear-gradient(180deg,var(--hg-v137-bg),var(--hg-v137-bg-2))!important;
}
html[data-hg-theme="dark"] body.single-product{
    --hg-v137-bg:#0f131a;
    --hg-v137-bg-2:#111821;
    --hg-v137-card:rgba(255,255,255,.055);
    --hg-v137-card-2:rgba(255,255,255,.038);
    --hg-v137-card-3:rgba(255,255,255,.07);
    --hg-v137-text:#f7f8fb;
    --hg-v137-muted:rgba(245,247,251,.70);
    --hg-v137-soft:rgba(245,247,251,.46);
    --hg-v137-line:rgba(255,255,255,.105);
    --hg-v137-line-2:rgba(255,255,255,.18);
    --hg-v137-shadow:0 30px 90px rgba(0,0,0,.38);
    background:radial-gradient(circle at 8% -12%,rgba(201,151,58,.09),transparent 36%),linear-gradient(180deg,var(--hg-v137-bg),var(--hg-v137-bg-2))!important;
}
body.single-product .hg-v137-product-page,
body.single-product .hg-v137-product-page *{
    box-sizing:border-box;
}
body.single-product .hg-v137-product-page{
    max-width:1180px;
    margin:0 auto;
    padding:30px clamp(14px,3vw,18px) 78px;
    color:var(--hg-v137-text);
    direction:rtl;
}
body.single-product .hg-v137-product-page a{
    color:inherit;
    text-decoration:none;
}
body.single-product .hg-v137-breadcrumb{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0 0 16px;
    color:var(--hg-v137-soft);
    font-size:12px;
    font-weight:800;
}
body.single-product .hg-v137-breadcrumb b{
    color:var(--hg-v137-muted);
}
body.single-product .hg-v137-panel{
    background:var(--hg-v137-card);
    border:1px solid var(--hg-v137-line);
    border-radius:var(--hg-v137-radius);
    box-shadow:var(--hg-v137-shadow);
}
body.single-product .hg-v137-product-shell{
    display:flex;
    gap:22px;
    align-items:stretch;
    padding:22px;
    overflow:hidden;
    position:relative;
}
body.single-product .hg-v137-product-shell::before{
    content:"";
    position:absolute;
    inset:-120px auto auto -160px;
    width:360px;
    height:360px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(201,151,58,.16),transparent 68%);
    pointer-events:none;
}
body.single-product .hg-v137-media-side{
    flex:0 0 390px;
    position:relative;
    z-index:1;
    order:-1;
}
body.single-product .hg-v137-content-side{
    flex:1;
    min-width:0;
    display:grid;
    grid-template-rows:auto 1fr;
    gap:18px;
    position:relative;
    z-index:1;
}
body.single-product .hg-v137-media-box{
    height:100%;
    min-height:520px;
    border-radius:25px;
    background:linear-gradient(145deg,var(--hg-v137-card-2),rgba(201,151,58,.08));
    border:1px solid var(--hg-v137-line);
    padding:22px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:16px;
}
body.single-product .hg-v137-img-stage{
    aspect-ratio:1/1;
    border-radius:22px;
    background:#fff;
    border:1px solid rgba(255,255,255,.22);
    display:grid;
    place-items:center;
    overflow:hidden;
    position:relative;
}
html[data-hg-theme="dark"] body.single-product .hg-v137-img-stage{
    background:rgba(255,255,255,.94);
}
body.single-product .hg-v137-theme-media,
body.single-product .hg-v137-img-stage > .hg-product-media{
    width:100%;
    height:100%;
    position:relative;
    display:grid;
    place-items:center;
}
body.single-product .hg-v137-img-stage img,
body.single-product .hg-v137-theme-media img{
    width:88%!important;
    height:88%!important;
    object-fit:contain!important;
    filter:drop-shadow(0 26px 42px rgba(0,0,0,.16));
}
body.single-product .hg-v137-media-badge,
body.single-product .hg-v137-sale-badge{
    position:absolute;
    top:14px;
    right:14px;
    z-index:4;
    border-radius:999px;
    padding:6px 12px;
    font-size:12px;
    font-weight:1000;
    line-height:1.3;
}
body.single-product .hg-v137-media-badge{
    background:rgba(20,162,86,.12);
    border:1px solid rgba(20,162,86,.24);
    color:var(--hg-v137-green);
}
body.single-product .hg-v137-sale-badge{
    top:52px;
    background:rgba(239,68,68,.12);
    border:1px solid rgba(239,68,68,.22);
    color:var(--hg-v137-danger);
}
body.single-product .hg-v137-thumb-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}
body.single-product .hg-v137-thumb-row span{
    min-height:72px;
    padding:12px;
    border-radius:18px;
    border:1px solid var(--hg-v137-line);
    background:var(--hg-v137-card);
    display:grid;
    place-items:center;
    text-align:center;
    color:var(--hg-v137-muted);
    font-size:11px;
    font-weight:900;
}
body.single-product .hg-v137-title-card{
    padding:24px;
    border-radius:25px;
    background:linear-gradient(145deg,var(--hg-v137-card-2),transparent);
    border:1px solid var(--hg-v137-line);
}
body.single-product .hg-v137-chip-row{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:12px;
}
body.single-product .hg-v137-chip{
    display:inline-flex;
    align-items:center;
    gap:6px;
    border-radius:999px;
    border:1px solid var(--hg-v137-line);
    background:var(--hg-v137-card);
    color:var(--hg-v137-muted);
    padding:5px 11px;
    font-size:12px;
    font-weight:1000;
}
body.single-product .hg-v137-chip.is-gold{
    color:var(--hg-v137-gold);
    border-color:rgba(201,151,58,.28);
    background:rgba(201,151,58,.10);
}
body.single-product .hg-v137-chip.is-green{
    color:var(--hg-v137-green);
    border-color:rgba(20,162,86,.24);
    background:rgba(20,162,86,.10);
}
body.single-product .hg-v137-prod-title{
    margin:0 0 12px;
    color:var(--hg-v137-text);
    font-size:clamp(30px,4vw,44px);
    line-height:1.28;
    letter-spacing:-1px;
    font-weight:1000;
}
body.single-product .hg-v137-prod-sub{
    margin:0;
    max-width:610px;
    color:var(--hg-v137-muted);
    font-size:14px;
    line-height:2;
    font-weight:650;
}
body.single-product .hg-v137-rating-strip{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top:18px;
}
body.single-product .hg-v137-rating-strip strong{
    color:var(--hg-v137-gold);
    font-size:22px;
    font-weight:1000;
}
body.single-product .hg-v137-stars{
    color:var(--hg-v137-soft);
    letter-spacing:1px;
    direction:ltr;
    display:inline-flex;
    gap:1px;
}
body.single-product .hg-v137-stars .is-filled{
    color:#f5b642;
}
body.single-product .hg-v137-rating-strip small{
    color:var(--hg-v137-soft);
    font-weight:800;
}
body.single-product .hg-v137-ghost-btn{
    border:1px solid var(--hg-v137-line);
    background:var(--hg-v137-card-2);
    border-radius:999px;
    color:var(--hg-v137-muted);
    padding:8px 13px;
    font-size:12px;
    font-weight:1000;
    cursor:pointer;
    transition:.18s ease;
    font-family:inherit;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
}
body.single-product .hg-v137-ghost-btn:hover{
    color:var(--hg-v137-gold);
    border-color:rgba(201,151,58,.36);
    transform:translateY(-1px);
}
body.single-product .hg-v137-buy-layout{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(290px,.85fr);
    gap:16px;
}
body.single-product .hg-v137-options-card,
body.single-product .hg-v137-checkout-card{
    border:1px solid var(--hg-v137-line);
    background:var(--hg-v137-card-2);
    border-radius:25px;
    padding:20px;
}
body.single-product .hg-v137-mini-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:16px;
}
body.single-product .hg-v137-mini-head span{
    color:var(--hg-v137-soft);
    font-size:11px;
    font-weight:1000;
}
body.single-product .hg-v137-mini-head strong{
    display:block;
    margin-top:2px;
    color:var(--hg-v137-text);
    font-size:18px;
    font-weight:1000;
}
body.single-product .hg-v137-var-group{
    margin:0 0 15px!important;
    display:block!important;
}
body.single-product .hg-v137-var-label{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:9px;
    color:var(--hg-v137-text);
    font-size:13px;
    font-weight:1000;
}
body.single-product .hg-v137-var-label em{
    color:var(--hg-v137-gold);
    font-style:normal;
    font-size:12px;
    font-weight:1000;
}
body.single-product .hg-v137-option-grid{
    display:grid!important;
    grid-template-columns:repeat(2,1fr)!important;
    gap:9px!important;
}
body.single-product .hg-v137-option{
    min-height:62px!important;
    padding:12px 13px!important;
    border:1.5px solid var(--hg-v137-line)!important;
    border-radius:18px!important;
    background:var(--hg-v137-card)!important;
    color:var(--hg-v137-text)!important;
    text-align:right!important;
    cursor:pointer!important;
    transition:.18s ease!important;
    position:relative!important;
    box-shadow:none!important;
    font-family:inherit!important;
}
body.single-product .hg-v137-option:hover{
    transform:translateY(-1px);
    border-color:rgba(201,151,58,.34)!important;
}
body.single-product .hg-v137-option.active{
    background:rgba(201,151,58,.12)!important;
    border-color:rgba(201,151,58,.58)!important;
}
body.single-product .hg-v137-option.active::before{
    content:"✓";
    position:absolute;
    top:10px;
    left:10px;
    width:22px;
    height:22px;
    border-radius:999px;
    background:var(--hg-v137-gold);
    color:#17120a;
    display:grid;
    place-items:center;
    font-size:13px;
    font-weight:1000;
}
body.single-product .hg-v137-option strong{
    display:block;
    color:var(--hg-v137-text);
    font-size:14px;
    font-weight:1000;
}
body.single-product .hg-v137-option small{
    display:block;
    margin-top:3px;
    color:var(--hg-v137-soft);
    font-size:10px;
    font-weight:800;
}
body.single-product .hg-v137-simple-note{
    min-height:160px;
    padding:20px;
    border-radius:20px;
    border:1px dashed var(--hg-v137-line-2);
    background:var(--hg-v137-card);
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:8px;
    color:var(--hg-v137-muted);
}
body.single-product .hg-v137-simple-note strong{
    color:var(--hg-v137-text);
    font-size:16px;
}
body.single-product .hg-v137-price-card{
    border:1px solid rgba(201,151,58,.24);
    background:linear-gradient(135deg,rgba(201,151,58,.14),rgba(201,151,58,.045));
    border-radius:24px;
    padding:18px;
    margin-bottom:14px;
}
body.single-product .hg-v137-price-card > span{
    display:block;
    color:var(--hg-v137-muted);
    font-size:11px;
    font-weight:1000;
}
body.single-product .hg-v137-price-line{
    display:flex;
    align-items:flex-end;
    gap:7px;
    margin-top:4px;
}
body.single-product .hg-v137-price-line strong{
    color:var(--hg-v137-gold);
    font-size:32px;
    line-height:1.25;
    font-weight:1000;
    letter-spacing:-.8px;
}
body.single-product .hg-v137-price-line small{
    margin-bottom:7px;
    color:var(--hg-v137-muted);
    font-size:12px;
    font-weight:900;
}
body.single-product .hg-v137-selected-summary{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:8px;
    min-height:24px;
}
body.single-product .hg-v137-selected-summary b{
    border-radius:999px;
    border:1px solid var(--hg-v137-line);
    background:var(--hg-v137-card);
    color:var(--hg-v137-muted);
    padding:3px 8px;
    font-size:10px;
    font-weight:1000;
}
body.single-product .hg-v137-notice{
    border:1px solid rgba(239,68,68,.22);
    background:rgba(239,68,68,.08);
    color:var(--hg-v137-danger);
    border-radius:16px;
    padding:10px 12px;
    font-size:12px;
    font-weight:1000;
    margin-bottom:12px;
}
body.single-product .hg-v137-buy-offers{
    min-height:24px;
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-bottom:10px;
}
body.single-product .hg-v137-cta{
    width:100%;
    min-height:50px;
    border:0!important;
    border-radius:18px!important;
    background:linear-gradient(135deg,var(--hg-v137-gold-2),var(--hg-v137-gold))!important;
    color:#17120a!important;
    padding:15px 18px!important;
    font-size:15px!important;
    font-weight:1000!important;
    cursor:pointer;
    box-shadow:0 18px 35px rgba(201,151,58,.24)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    transition:.18s ease!important;
}
body.single-product .hg-v137-cta:not(:disabled):hover{
    transform:translateY(-2px);
    box-shadow:0 24px 45px rgba(201,151,58,.33)!important;
}
body.single-product .hg-v137-cta:disabled{
    opacity:.45!important;
    cursor:not-allowed!important;
    box-shadow:none!important;
}
body.single-product .hg-v137-cta.is-added{
    background:#14783d!important;
    color:#fff!important;
}
body.single-product .hg-v137-safe-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:9px;
    margin-top:15px;
}
body.single-product .hg-v137-safe-row div{
    border:1px solid var(--hg-v137-line);
    background:var(--hg-v137-card);
    border-radius:17px;
    padding:10px;
    text-align:center;
}
body.single-product .hg-v137-safe-row i{
    display:block;
    margin-bottom:3px;
    color:var(--hg-v137-gold);
    font-style:normal;
    font-weight:1000;
}
body.single-product .hg-v137-safe-row strong{
    display:block;
    color:var(--hg-v137-text);
    font-size:11px;
    font-weight:1000;
}
body.single-product .hg-v137-safe-row span{
    display:block;
    color:var(--hg-v137-soft);
    font-size:10px;
    font-weight:800;
}
body.single-product .hg-v137-hint{
    margin:13px 0 0;
    color:var(--hg-v137-soft);
    font-size:11px;
    text-align:center;
    font-weight:800;
}
body.single-product .hg-v137-below-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-top:22px;
}
body.single-product .hg-v137-info-panel{
    padding:22px;
}
body.single-product .hg-v137-section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}
body.single-product .hg-v137-section-head h2{
    margin:0;
    color:var(--hg-v137-text);
    font-size:20px;
    font-weight:1000;
}
body.single-product .hg-v137-copy{
    color:var(--hg-v137-muted);
    font-size:13px;
    line-height:2.05;
    font-weight:650;
}
body.single-product .hg-v137-copy h1,
body.single-product .hg-v137-copy h2,
body.single-product .hg-v137-copy h3{
    color:var(--hg-v137-text);
    font-size:16px;
    margin:16px 0 7px;
    font-weight:1000;
}
body.single-product .hg-v137-check-list{
    display:grid;
    gap:9px;
    margin-top:14px;
}
body.single-product .hg-v137-check-list div{
    display:flex;
    align-items:flex-start;
    gap:9px;
    color:var(--hg-v137-muted);
}
body.single-product .hg-v137-check-list i{
    width:22px;
    height:22px;
    flex:0 0 22px;
    border-radius:9px;
    background:rgba(20,162,86,.10);
    color:var(--hg-v137-green);
    display:grid;
    place-items:center;
    font-style:normal;
    font-weight:1000;
}
body.single-product .hg-v137-review-line{
    display:grid;
    grid-template-columns:126px 1fr;
    gap:14px;
    align-items:center;
}
body.single-product .hg-v137-score-box{
    border:1px solid var(--hg-v137-line);
    background:var(--hg-v137-card-2);
    border-radius:21px;
    text-align:center;
    padding:15px;
}
body.single-product .hg-v137-score-box strong{
    display:block;
    color:var(--hg-v137-gold);
    font-size:30px;
    line-height:1.2;
    font-weight:1000;
}
body.single-product .hg-v137-score-box span{
    color:var(--hg-v137-muted);
    font-size:12px;
    font-weight:900;
}
body.single-product .hg-v137-review-summary{
    border:1px dashed var(--hg-v137-line-2);
    border-radius:20px;
    background:var(--hg-v137-card-2);
    padding:16px;
    color:var(--hg-v137-muted);
    font-size:13px;
    font-weight:800;
    line-height:2;
}
body.single-product .hg-v137-related{
    margin-top:24px;
}
body.single-product .hg-v137-related-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}
body.single-product .hg-v137-rel-card{
    display:block;
    overflow:hidden;
    transition:.18s ease;
}
body.single-product .hg-v137-rel-card:hover{
    transform:translateY(-2px);
    border-color:rgba(201,151,58,.34);
}
body.single-product .hg-v137-rel-img{
    height:150px;
    background:var(--hg-v137-card-2);
    display:grid;
    place-items:center;
    position:relative;
    overflow:hidden;
}
body.single-product .hg-v137-rel-img .hg-product-media{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
}
body.single-product .hg-v137-rel-img img{
    width:82%!important;
    height:82%!important;
    object-fit:contain!important;
}
body.single-product .hg-v137-rel-body{
    padding:14px;
}
body.single-product .hg-v137-rel-body span{
    display:block;
    color:var(--hg-v137-soft);
    font-size:11px;
    margin-bottom:4px;
    font-weight:800;
}
body.single-product .hg-v137-rel-body strong{
    display:block;
    color:var(--hg-v137-text);
    font-size:13px;
    line-height:1.7;
    font-weight:1000;
    min-height:44px;
}
body.single-product .hg-v137-rel-body b{
    display:block;
    margin-top:7px;
    color:var(--hg-v137-gold);
    font-size:12px;
    font-weight:1000;
}
body.single-product .hg-v137-rel-body b del,
body.single-product .hg-v137-rel-body b ins{
    background:none!important;
}
body.single-product .hg-v137-rel-body b del{
    color:var(--hg-v137-soft)!important;
    font-size:11px;
}
body.single-product .hg-v137-modal-backdrop[hidden],
body.single-product .hg-v137-modal[hidden]{
    display:none!important;
}
body.single-product .hg-v137-modal-backdrop{
    position:fixed;
    inset:0;
    z-index:99980;
    background:rgba(12,15,20,.40);
    -webkit-backdrop-filter:blur(16px) saturate(130%);
    backdrop-filter:blur(16px) saturate(130%);
    opacity:0;
    transition:.18s ease;
}
body.single-product .hg-v137-modal-backdrop.is-open{
    opacity:1;
}
body.single-product .hg-v137-modal{
    position:fixed;
    top:50%;
    left:50%;
    z-index:99981;
    width:min(680px,calc(100% - 28px));
    max-height:82vh;
    overflow:auto;
    border-radius:28px;
    border:1px solid var(--hg-v137-line);
    background:var(--hg-v137-card);
    color:var(--hg-v137-text);
    box-shadow:0 34px 90px rgba(0,0,0,.28);
    transform:translate(-50%,-45%) scale(.985);
    opacity:0;
    pointer-events:none;
    transition:.2s ease;
    direction:rtl;
}
body.single-product .hg-v137-modal.is-open{
    transform:translate(-50%,-50%) scale(1);
    opacity:1;
    pointer-events:auto;
}
body.single-product .hg-v137-modal-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:18px 20px;
    border-bottom:1px solid var(--hg-v137-line);
}
body.single-product .hg-v137-modal-head h3{
    margin:0;
    font-size:18px;
    font-weight:1000;
    color:var(--hg-v137-text);
}
body.single-product .hg-v137-modal-close{
    width:38px;
    height:38px;
    border-radius:15px;
    border:1px solid var(--hg-v137-line);
    background:var(--hg-v137-card-2);
    color:var(--hg-v137-text);
    font-size:22px;
    line-height:1;
    font-family:inherit;
    cursor:pointer;
}
body.single-product .hg-v137-modal-body{
    padding:20px;
}
body.single-product.hg-v137-modal-open,
body.single-product.hg-reviews-modal-open{
    overflow:hidden!important;
}
body.single-product .hg-v137-reviews-modal .hg-reviews-modal-panel{
    background:var(--hg-v137-card)!important;
    border-color:var(--hg-v137-line)!important;
    color:var(--hg-v137-text)!important;
}
body.single-product .hg-v137-reviews-modal .hg-product-review-score-card,
body.single-product .hg-v137-reviews-modal .hg-product-rating-breakdown,
body.single-product .hg-v137-reviews-modal .hg-review-form-card,
body.single-product .hg-v137-reviews-modal .hg-review-login-card,
body.single-product .hg-v137-reviews-modal .hg-product-review-list,
body.single-product .hg-v137-reviews-modal .hg-review-card,
body.single-product .hg-v137-reviews-modal .hg-review-empty{
    background:var(--hg-v137-card-2)!important;
    border-color:var(--hg-v137-line)!important;
}
body.single-product .hg-v137-reviews-modal .hg-reviews-modal-head h2,
body.single-product .hg-v137-reviews-modal .hg-product-review-score-card strong,
body.single-product .hg-v137-reviews-modal .hg-review-login-card strong,
body.single-product .hg-v137-reviews-modal .hg-review-card-top strong,
body.single-product .hg-v137-reviews-modal .hg-product-review-list-head h3{
    color:var(--hg-v137-text)!important;
}
body.single-product .hg-v137-reviews-modal .hg-reviews-modal-head p,
body.single-product .hg-v137-reviews-modal .hg-product-review-score-card em,
body.single-product .hg-v137-reviews-modal .hg-review-login-card p,
body.single-product .hg-v137-reviews-modal .hg-review-content,
body.single-product .hg-v137-reviews-modal .hg-rating-row,
body.single-product .hg-v137-reviews-modal .hg-review-empty{
    color:var(--hg-v137-muted)!important;
}
body.single-product .hg-v137-reviews-modal .hg-review-login-actions a,
body.single-product .hg-v137-reviews-modal .hg-review-form .form-submit button{
    background:linear-gradient(135deg,var(--hg-v137-gold-2),var(--hg-v137-gold))!important;
    color:#17120a!important;
    border-color:transparent!important;
}
body.single-product .hg-v137-reviews-modal .hg-review-login-actions a.is-ghost{
    background:var(--hg-v137-card)!important;
    color:var(--hg-v137-text)!important;
    border:1px solid var(--hg-v137-line)!important;
}
@media(max-width:1080px){
    body.single-product .hg-v137-product-shell{
        flex-direction:column;
    }
    body.single-product .hg-v137-media-side{
        flex:0 0 auto;
        order:0;
    }
    body.single-product .hg-v137-media-box{
        min-height:auto;
    }
    body.single-product .hg-v137-img-stage{
        max-width:520px;
        width:100%;
        margin:0 auto;
    }
}
@media(max-width:860px){
    body.single-product .hg-v137-buy-layout,
    body.single-product .hg-v137-below-grid,
    body.single-product .hg-v137-related-grid{
        grid-template-columns:1fr;
    }
    body.single-product .hg-v137-product-page{
        padding-bottom:96px;
    }
}
@media(max-width:640px){
    body.single-product .hg-v137-product-page{
        padding:18px 10px 96px;
    }
    body.single-product .hg-v137-product-shell{
        padding:12px;
        border-radius:24px;
        gap:14px;
    }
    body.single-product .hg-v137-title-card,
    body.single-product .hg-v137-options-card,
    body.single-product .hg-v137-checkout-card,
    body.single-product .hg-v137-info-panel{
        padding:16px;
        border-radius:22px;
    }
    body.single-product .hg-v137-media-box{
        padding:12px;
        border-radius:22px;
    }
    body.single-product .hg-v137-thumb-row,
    body.single-product .hg-v137-safe-row{
        grid-template-columns:1fr;
    }
    body.single-product .hg-v137-option-grid{
        grid-template-columns:1fr!important;
    }
    body.single-product .hg-v137-review-line{
        grid-template-columns:1fr;
    }
    body.single-product .hg-v137-prod-title{
        font-size:28px;
    }
    body.single-product .hg-v137-price-line strong{
        font-size:28px;
    }
    body.single-product .hg-v137-modal{
        width:100%;
        max-height:88vh;
        border-radius:26px 26px 0 0;
        top:auto;
        bottom:0;
        left:0;
        transform:translateY(100%);
    }
    body.single-product .hg-v137-modal.is-open{
        transform:translateY(0);
    }
}


/* ===== HastiGem v138 uploaded product template styles (scoped) ===== */

.hg-v138-product-page *,.hg-v138-product-page *::before,.hg-v138-product-page *::after{box-sizing:border-box;margin:0;padding:0}
.hg-v138-product-page{
  --bg:#09090f;
  --surface:rgba(255,255,255,0.025);
  --border:rgba(139,92,246,0.12);
  --border-mid:rgba(139,92,246,0.2);
  --border-hi:rgba(139,92,246,0.35);
  --purple:#8b5cf6;
  --purple-light:#a78bfa;
  --blue:#3b82f6;
  --amber:#f59e0b;
  --green:#22c55e;
  --text:rgba(255,255,255,0.9);
  --text-muted:rgba(255,255,255,0.5);
  --text-dim:rgba(255,255,255,0.28);
}
.hg-v138-product-page{scroll-behavior:smooth}
.hg-v138-product-page{font-family:"Vazirmatn","Tahoma",sans-serif;background:var(--bg);color:var(--text);min-height:100vh;direction:rtl}

.hg-v138-product-page a{text-decoration:none;color:inherit}
.hg-v138-product-page button{font-family:inherit;cursor:pointer;border:none;background:none}
.hg-v138-product-page img{max-width:100%}

/* ═══════════════════════════════
   HEADER
═══════════════════════════════ */
.hg-v138-product-page .hdr{
  background:rgba(9,9,15,0.92);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(20px);
  position:sticky;top:0;z-index:100;
}
.hg-v138-product-page .hdr-inner{
  max-width:1200px;margin:0 auto;padding:0 28px;
  height:62px;display:flex;align-items:center;justify-content:space-between;
}
.hg-v138-product-page .logo{display:flex;align-items:center;gap:10px}
.hg-v138-product-page .logo-gem{
  width:34px;height:34px;border-radius:9px;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 20px rgba(139,92,246,0.4);
}
.hg-v138-product-page .logo-text{
  font-size:17px;font-weight:900;
  background:linear-gradient(135deg,var(--purple-light),#60a5fa);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.hg-v138-product-page .nav{display:flex;gap:30px}
.hg-v138-product-page .nav a{font-size:14px;color:var(--text-dim);font-weight:500;transition:color .15s}
.hg-v138-product-page .nav a:hover{color:rgba(255,255,255,0.85)}
.hg-v138-product-page .hdr-right{display:flex;align-items:center;gap:8px}
.hg-v138-product-page .icon-btn{
  width:36px;height:36px;border-radius:9px;
  border:1px solid rgba(255,255,255,0.08);background:rgba(255,255,255,0.04);
  color:rgba(255,255,255,0.45);display:flex;align-items:center;justify-content:center;transition:all .15s;
}
.hg-v138-product-page .icon-btn:hover{background:rgba(255,255,255,0.08);color:#fff}
.hg-v138-product-page .cart-btn{
  display:flex;align-items:center;gap:7px;padding:8px 14px;border-radius:9px;
  border:1px solid rgba(139,92,246,0.3);background:rgba(139,92,246,0.1);
  font-size:13px;font-weight:700;color:var(--purple-light);transition:all .18s;
}
.hg-v138-product-page .cart-btn:hover{background:rgba(139,92,246,0.18);border-color:rgba(139,92,246,0.5)}
.hg-v138-product-page .cart-badge{
  background:linear-gradient(135deg,var(--purple),var(--blue));color:#fff;
  border-radius:8px;font-size:11px;font-weight:800;padding:1px 6px;
  min-width:18px;text-align:center;display:none;
}

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hg-v138-product-page .hero{
  position:relative;overflow:hidden;
  background:linear-gradient(160deg,#0d0820 0%,var(--bg) 50%,#0a0d1a 100%);
  border-bottom:1px solid var(--border);
}
.hg-v138-product-page .hero-bg{
  position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%,rgba(59,130,246,.12) 0%,transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 50%,rgba(139,92,246,.1) 0%,transparent 70%);
}
.hg-v138-product-page .hero-grid{
  position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(139,92,246,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(139,92,246,.04) 1px,transparent 1px);
  background-size:60px 60px;
}
.hg-v138-product-page .hero-inner{
  max-width:1200px;margin:0 auto;padding:52px 28px 48px;
  display:grid;grid-template-columns:1fr 340px;gap:48px;
  align-items:center;position:relative;z-index:1;
}
.hg-v138-product-page .bc{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-dim);margin-bottom:18px}
.hg-v138-product-page .bc-sep{opacity:.4;font-size:10px}
.hg-v138-product-page .cat-badge{
  display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;
  padding:4px 12px;border-radius:20px;margin-bottom:16px;
  background:linear-gradient(135deg,rgba(139,92,246,.15),rgba(59,130,246,.1));
  border:1px solid rgba(139,92,246,.25);color:var(--purple-light);
}
.hg-v138-product-page .prod-title{font-size:38px;font-weight:900;line-height:1.18;letter-spacing:-.8px;margin-bottom:12px}
.hg-v138-product-page .prod-title span{
  background:linear-gradient(135deg,var(--purple-light),#60a5fa);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;display:block;
}
.hg-v138-product-page .rating-row{display:flex;align-items:center;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.hg-v138-product-page .rating-num{font-size:18px;font-weight:900;color:var(--amber)}
.hg-v138-product-page .rating-count{font-size:12px;color:var(--text-dim)}
.hg-v138-product-page .stars-row{display:inline-flex;gap:2px}
.hg-v138-product-page .short-desc{font-size:14px;color:var(--text-muted);line-height:1.85;margin-bottom:22px;max-width:520px}
.hg-v138-product-page .chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:24px}
.hg-v138-product-page .chip{
  display:flex;align-items:center;gap:5px;padding:5px 12px;border-radius:20px;
  border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);
  font-size:12px;color:var(--text-muted);
}
.hg-v138-product-page .chip::before{content:"";width:5px;height:5px;border-radius:50%;background:linear-gradient(135deg,var(--purple),var(--blue));flex-shrink:0}
.hg-v138-product-page .trust-bar{display:flex;gap:20px;flex-wrap:wrap}
.hg-v138-product-page .trust-item{display:flex;align-items:center;gap:8px}
.hg-v138-product-page .trust-icon{
  width:32px;height:32px;border-radius:8px;
  background:rgba(139,92,246,.1);border:1px solid rgba(139,92,246,.2);
  display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0;
}
.hg-v138-product-page .trust-lbl{font-size:12px;font-weight:700}
.hg-v138-product-page .trust-sub{font-size:10px;color:var(--text-dim)}

/* Image card */
.hg-v138-product-page .img-card{
  background:linear-gradient(145deg,rgba(139,92,246,.08),rgba(59,130,246,.05));
  border:1px solid rgba(139,92,246,.18);border-radius:24px;padding:36px 28px;
  display:flex;flex-direction:column;align-items:center;gap:18px;
  position:relative;overflow:hidden;
}
.hg-v138-product-page .img-card::before{
  content:"";position:absolute;top:-60px;left:50%;transform:translateX(-50%);
  width:200px;height:200px;border-radius:50%;
  background:radial-gradient(circle,rgba(139,92,246,.18) 0%,transparent 70%);pointer-events:none;
}
.hg-v138-product-page .gpt-orb{
  width:120px;height:120px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,rgba(139,92,246,.15),rgba(59,130,246,.08));
  border:1px solid rgba(139,92,246,.2);
  display:flex;align-items:center;justify-content:center;
  position:relative;box-shadow:0 0 40px rgba(139,92,246,.15);
}
.hg-v138-product-page .orb-ring1{position:absolute;inset:-10px;border-radius:50%;border:1px dashed rgba(139,92,246,.2);animation:spin 12s linear infinite}
.hg-v138-product-page .orb-ring2{position:absolute;inset:-20px;border-radius:50%;border:1px solid rgba(59,130,246,.1);animation:spin 20s linear infinite reverse}
@keyframes spin{to{transform:rotate(360deg)}}
.hg-v138-product-page .img-badge{
  background:linear-gradient(135deg,var(--purple),var(--blue));color:#fff;
  font-size:12px;font-weight:800;padding:6px 18px;border-radius:20px;
  box-shadow:0 4px 16px rgba(139,92,246,.35);
}
.hg-v138-product-page .sold-row{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--text-dim)}
.hg-v138-product-page .sold-dot{width:6px;height:6px;border-radius:50%;background:var(--green);flex-shrink:0;box-shadow:0 0 6px rgba(34,197,94,.5)}
.hg-v138-product-page .img-lbl{font-size:11px;color:var(--text-dim);text-align:center}

/* ═══════════════════════════════
   PURCHASE STRIP
═══════════════════════════════ */
.hg-v138-product-page .purchase-strip{
  background:rgba(255,255,255,.025);
  border-bottom:1px solid var(--border);
  position:relative;
}
.hg-v138-product-page .purchase-strip::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(139,92,246,.03),transparent);
}
.hg-v138-product-page .ps-inner{
  max-width:1200px;margin:0 auto;padding:24px 28px;
  display:flex;gap:20px;align-items:flex-end;flex-wrap:wrap;position:relative;
}
.hg-v138-product-page .ps-group{display:flex;flex-direction:column;gap:8px}
.hg-v138-product-page .ps-label{font-size:10px;font-weight:700;color:var(--text-dim);text-transform:uppercase;letter-spacing:.8px}
.hg-v138-product-page .ps-btns{display:flex;gap:6px;flex-wrap:wrap}
.hg-v138-product-page .ps-btn{
  padding:9px 16px;border-radius:10px;border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);color:var(--text-muted);
  font-size:13px;font-weight:600;transition:all .18s;white-space:nowrap;
}
.hg-v138-product-page .ps-btn:hover{background:rgba(255,255,255,.07);color:rgba(255,255,255,.8)}
.hg-v138-product-page .ps-btn.active{
  background:linear-gradient(135deg,rgba(139,92,246,.2),rgba(59,130,246,.15));
  border-color:rgba(139,92,246,.4);color:#c4b5fd;
}
.hg-v138-product-page .ps-badge{
  display:inline-block;background:linear-gradient(135deg,var(--purple),var(--blue));
  color:#fff;font-size:8px;font-weight:800;padding:2px 5px;border-radius:4px;
  margin-right:4px;vertical-align:middle;
}
.hg-v138-product-page .strip-sep{width:1px;background:rgba(255,255,255,.07);align-self:stretch;flex-shrink:0;margin:4px 0}
.hg-v138-product-page .price-group{display:flex;flex-direction:column;gap:2px;min-width:130px}
.hg-v138-product-page .price-lbl{font-size:10px;color:var(--text-dim);font-weight:600}
.hg-v138-product-page .price-val{font-size:26px;font-weight:900;color:var(--amber);letter-spacing:-.4px;line-height:1.1}
.hg-v138-product-page .price-unit{font-size:11px;color:var(--text-dim)}
.hg-v138-product-page .add-btn{
  padding:14px 32px;border-radius:12px;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  color:#fff;font-size:15px;font-weight:800;
  display:flex;align-items:center;gap:8px;white-space:nowrap;
  transition:all .2s;box-shadow:0 4px 24px rgba(139,92,246,.35);
  margin-right:auto;
}
.hg-v138-product-page .add-btn:hover{transform:translateY(-2px);box-shadow:0 8px 32px rgba(139,92,246,.5)}
.hg-v138-product-page .add-btn:disabled{opacity:.35;cursor:not-allowed;transform:none;box-shadow:none}
.hg-v138-product-page .add-btn.success{background:linear-gradient(135deg,var(--green),#16a34a);box-shadow:0 4px 24px rgba(34,197,94,.3)}

/* ═══════════════════════════════
   TABS
═══════════════════════════════ */
.hg-v138-product-page .tabs-section{max-width:1200px;margin:0 auto;padding:0 28px}
.hg-v138-product-page .tabs-bar{
  display:flex;border-bottom:1px solid rgba(255,255,255,.06);
  overflow-x:auto;scrollbar-width:none;
}
.hg-v138-product-page .tabs-bar::-webkit-scrollbar{display:none}
.hg-v138-product-page .tab-btn{
  flex-shrink:0;padding:16px 24px;background:none;border:none;
  color:var(--text-dim);font-size:14px;font-weight:600;
  border-bottom:2px solid transparent;margin-bottom:-1px;
  transition:all .18s;white-space:nowrap;
}
.hg-v138-product-page .tab-btn.active{color:var(--purple-light);border-bottom-color:var(--purple)}
.hg-v138-product-page .tab-btn:hover:not(.active){color:rgba(255,255,255,.6)}
.hg-v138-product-page .tab-panel{display:none;padding:36px 0 60px}
.hg-v138-product-page .tab-panel.active{display:block}

/* Description */
.hg-v138-product-page .desc-grid{display:grid;grid-template-columns:1fr 280px;gap:40px}
.hg-v138-product-page .desc-prose{font-size:14px;color:var(--text-muted);line-height:2}
.hg-v138-product-page .desc-prose h3{font-size:16px;font-weight:800;color:rgba(255,255,255,.85);margin:24px 0 10px}
.hg-v138-product-page .desc-prose h3:first-child{margin-top:0}
.hg-v138-product-page .desc-prose p{margin-bottom:12px}
.hg-v138-product-page .desc-prose ul{padding-right:18px;margin-bottom:14px}
.hg-v138-product-page .desc-prose li{margin-bottom:8px}
.hg-v138-product-page .desc-prose strong{color:rgba(255,255,255,.75)}
.hg-v138-product-page .spec-card{
  background:rgba(139,92,246,.04);border:1px solid rgba(139,92,246,.12);
  border-radius:16px;padding:18px;margin-bottom:12px;
}
.hg-v138-product-page .spec-card h4{font-size:11px;font-weight:700;color:var(--text-dim);margin-bottom:12px;text-transform:uppercase;letter-spacing:.6px}
.hg-v138-product-page .spec-row{display:flex;justify-content:space-between;align-items:center;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.04);font-size:12px}
.hg-v138-product-page .spec-row:last-child{border-bottom:none}
.hg-v138-product-page .spec-key{color:var(--text-dim)}
.hg-v138-product-page .spec-val{color:rgba(255,255,255,.75);font-weight:600}
.hg-v138-product-page .spec-check{color:var(--green);font-weight:700}

/* Reviews */
.hg-v138-product-page .rev-grid{display:grid;grid-template-columns:240px 1fr;gap:32px}
.hg-v138-product-page .rating-box{
  background:linear-gradient(145deg,rgba(139,92,246,.06),rgba(59,130,246,.04));
  border:1px solid rgba(139,92,246,.14);border-radius:18px;padding:24px;
  text-align:center;height:fit-content;position:sticky;top:80px;
}
.hg-v138-product-page .big-num{font-size:56px;font-weight:900;color:var(--amber);line-height:1;margin-bottom:8px}
.hg-v138-product-page .rev-total{font-size:11px;color:var(--text-dim);margin:6px 0 18px}
.hg-v138-product-page .dist-row{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.hg-v138-product-page .dist-lbl{font-size:10px;color:var(--text-dim);width:22px;text-align:right;flex-shrink:0}
.hg-v138-product-page .dist-track{flex:1;height:5px;background:rgba(255,255,255,.06);border-radius:3px;overflow:hidden}
.hg-v138-product-page .dist-fill{height:100%;background:linear-gradient(90deg,var(--amber),#f97316);border-radius:3px}
.hg-v138-product-page .dist-pct{font-size:10px;color:rgba(255,255,255,.25);width:22px}
.hg-v138-product-page .reviews-list{display:flex;flex-direction:column;gap:12px}
.hg-v138-product-page .rev-card{
  background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.06);
  border-radius:14px;padding:18px;transition:border-color .15s;
}
.hg-v138-product-page .rev-card:hover{border-color:rgba(139,92,246,.2)}
.hg-v138-product-page .rev-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}
.hg-v138-product-page .rev-left{display:flex;align-items:center;gap:10px}
.hg-v138-product-page .avatar{
  width:38px;height:38px;border-radius:50%;
  background:linear-gradient(135deg,rgba(139,92,246,.3),rgba(59,130,246,.2));
  border:1.5px solid rgba(139,92,246,.25);
  display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:800;color:#c4b5fd;flex-shrink:0;
}
.hg-v138-product-page .rev-name{font-size:13.5px;font-weight:700}
.hg-v138-product-page .rev-meta{display:flex;align-items:center;gap:6px;margin-top:3px}
.hg-v138-product-page .verified{font-size:10px;color:rgba(34,197,94,.9);background:rgba(34,197,94,.08);border:1px solid rgba(34,197,94,.15);padding:1px 7px;border-radius:6px;font-weight:600}
.hg-v138-product-page .rev-date{font-size:10px;color:var(--text-dim)}
.hg-v138-product-page .rev-title{font-size:13px;font-weight:700;color:rgba(255,255,255,.8);margin-bottom:6px}
.hg-v138-product-page .rev-text{font-size:13px;color:var(--text-muted);line-height:1.75}
.hg-v138-product-page .write-box{
  background:linear-gradient(145deg,rgba(139,92,246,.05),rgba(59,130,246,.03));
  border:1px solid rgba(139,92,246,.14);border-radius:16px;padding:22px;margin-top:14px;
}
.hg-v138-product-page .write-title{font-size:15px;font-weight:800;margin-bottom:14px}
.hg-v138-product-page .star-row{display:flex;gap:6px;margin-bottom:12px;align-items:center}
.hg-v138-product-page .star-pick{background:none;border:none;padding:2px;transition:transform .1s;line-height:1}
.hg-v138-product-page .star-pick:hover{transform:scale(1.2)}
.hg-v138-product-page .rating-lbl{font-size:12px;color:var(--amber);font-weight:700;margin-right:4px}
.hg-v138-product-page .review-ta{
  width:100%;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  border-radius:10px;padding:12px 14px;color:#fff;font-family:inherit;font-size:13px;
  resize:none;outline:none;transition:border-color .15s;min-height:80px;
}
.hg-v138-product-page .review-ta:focus{border-color:rgba(139,92,246,.35)}
.hg-v138-product-page .review-ta::placeholder{color:var(--text-dim)}
.hg-v138-product-page .submit-btn{
  margin-top:10px;padding:10px 24px;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  color:#fff;border-radius:9px;font-size:13px;font-weight:800;
  transition:all .2s;
}
.hg-v138-product-page .submit-btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(139,92,246,.35)}
.hg-v138-product-page .submit-btn:disabled{opacity:.35;cursor:not-allowed;transform:none;box-shadow:none}
.hg-v138-product-page .success-msg{
  background:rgba(34,197,94,.07);border:1px solid rgba(34,197,94,.18);
  border-radius:10px;padding:12px 16px;font-size:13px;color:rgba(34,197,94,.9);font-weight:600;
}

/* FAQ */
.hg-v138-product-page .faq-list{max-width:740px}
.hg-v138-product-page .faq-item{
  border:1px solid rgba(255,255,255,.06);border-radius:12px;overflow:hidden;
  margin-bottom:8px;background:rgba(255,255,255,.02);transition:border-color .15s;
}
.hg-v138-product-page .faq-item.open{border-color:rgba(139,92,246,.25)}
.hg-v138-product-page .faq-q{
  width:100%;padding:16px 20px;background:none;border:none;
  font-size:14px;font-weight:700;color:rgba(255,255,255,.8);
  display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:right;
}
.hg-v138-product-page .faq-arrow{color:var(--text-dim);flex-shrink:0;transition:transform .2s,color .2s;font-size:18px;line-height:1}
.hg-v138-product-page .faq-item.open .faq-arrow{transform:rotate(180deg);color:var(--purple)}
.hg-v138-product-page .faq-a{padding:0 20px 16px;font-size:13px;color:var(--text-muted);line-height:1.8;display:none}
.hg-v138-product-page .faq-item.open .faq-a{display:block}

/* ═══════════════════════════════
   RELATED PRODUCTS
═══════════════════════════════ */
.hg-v138-product-page .related-section{
  max-width:1200px;margin:0 auto;padding:48px 28px 80px;
  border-top:1px solid rgba(255,255,255,.05);
}
.hg-v138-product-page .related-hdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.hg-v138-product-page .related-title{font-size:20px;font-weight:900}
.hg-v138-product-page .related-title span{background:linear-gradient(135deg,var(--purple-light),#60a5fa);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.hg-v138-product-page .related-all{font-size:13px;color:var(--purple-light);font-weight:600;opacity:.8;display:flex;align-items:center;gap:4px;transition:opacity .15s}
.hg-v138-product-page .related-all:hover{opacity:1}
.hg-v138-product-page .related-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.hg-v138-product-page .rel-card{
  background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.06);
  border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:all .22s;
}
.hg-v138-product-page .rel-card:hover{border-color:rgba(139,92,246,.3);transform:translateY(-3px);box-shadow:0 12px 32px rgba(139,92,246,.12)}
.hg-v138-product-page .rel-top{padding:18px 16px 12px;display:flex;gap:12px;align-items:flex-start}
.hg-v138-product-page .rel-icon{
  width:44px;height:44px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  font-size:17px;font-weight:900;color:#fff;flex-shrink:0;
}
.hg-v138-product-page .rel-cat{font-size:9.5px;color:var(--text-dim);font-weight:600;margin-bottom:3px}
.hg-v138-product-page .rel-name{font-size:13.5px;font-weight:800;line-height:1.3}
.hg-v138-product-page .rel-badge{display:inline-block;font-size:8.5px;font-weight:800;padding:2px 7px;border-radius:5px;margin-top:5px}
.hg-v138-product-page .rel-footer{margin-top:auto;padding:12px 16px;border-top:1px solid rgba(255,255,255,.05);display:flex;align-items:center;justify-content:space-between}
.hg-v138-product-page .rel-stars{display:flex;align-items:center;gap:4px;margin-bottom:4px}
.hg-v138-product-page .rel-rnum{font-size:11px;font-weight:700;color:var(--amber)}
.hg-v138-product-page .rel-rcnt{font-size:9px;color:var(--text-dim)}
.hg-v138-product-page .rel-price{font-size:13px;font-weight:900;color:rgba(255,255,255,.8)}
.hg-v138-product-page .rel-unit{font-size:9px;color:var(--text-dim)}
.hg-v138-product-page .rel-btn{
  padding:6px 12px;border-radius:8px;border:1px solid rgba(139,92,246,.25);
  background:rgba(139,92,246,.08);color:var(--purple-light);
  font-size:11px;font-weight:700;transition:all .15s;white-space:nowrap;
}
.hg-v138-product-page .rel-btn:hover{background:rgba(139,92,246,.16);border-color:rgba(139,92,246,.4)}

/* ═══════════════════════════════
   FLOAT BAR (mobile)
═══════════════════════════════ */
.hg-v138-product-page .float-bar{
  display:none;position:fixed;bottom:0;right:0;left:0;z-index:200;
  background:rgba(9,9,15,.97);border-top:1px solid rgba(139,92,246,.15);
  backdrop-filter:blur(20px);padding:10px 16px 20px;
}
.hg-v138-product-page .float-inner{display:flex;align-items:center;gap:10px}
.hg-v138-product-page .float-price{display:flex;flex-direction:column;min-width:90px}
.hg-v138-product-page .float-lbl{font-size:9px;color:var(--text-dim)}
.hg-v138-product-page .float-num{font-size:19px;font-weight:900;color:var(--amber);line-height:1.1}
.hg-v138-product-page .float-unit{font-size:10px;color:var(--text-dim)}
.hg-v138-product-page .float-btn{
  flex:1;padding:13px;border-radius:12px;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  color:#fff;font-size:14px;font-weight:800;
  display:flex;align-items:center;justify-content:center;gap:7px;
  transition:all .2s;box-shadow:0 4px 18px rgba(139,92,246,.35);
}
.hg-v138-product-page .float-btn:disabled{opacity:.35;cursor:not-allowed}
.hg-v138-product-page .float-btn.success{background:linear-gradient(135deg,var(--green),#16a34a);box-shadow:0 4px 18px rgba(34,197,94,.3)}

/* ═══════════════════════════════
   CART POPUP
═══════════════════════════════ */
.hg-v138-product-page .popup-overlay{
  position:fixed;inset:0;z-index:999;
  background:rgba(0,0,0,.65);backdrop-filter:blur(6px);
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  animation:fadein .25s ease;
}
.hg-v138-product-page .popup-overlay.out{animation:fadeout .35s ease forwards}
@keyframes fadein{from{opacity:0}to{opacity:1}}
@keyframes fadeout{from{opacity:1}to{opacity:0}}
.hg-v138-product-page .popup-card{
  background:linear-gradient(160deg,#111128 0%,#0d0d1f 100%);
  border:1px solid rgba(139,92,246,.3);
  border-radius:24px;padding:36px 32px 28px;
  max-width:380px;width:100%;text-align:center;
  position:relative;overflow:hidden;
  box-shadow:0 24px 80px rgba(0,0,0,.5),0 0 0 1px rgba(139,92,246,.12);
  animation:popup-in .35s cubic-bezier(.34,1.56,.64,1);
}
.hg-v138-product-page .popup-overlay.out .popup-card{animation:popup-out .3s ease forwards}
@keyframes popup-in{from{transform:scale(.8) translateY(20px);opacity:0}to{transform:scale(1) translateY(0);opacity:1}}
@keyframes popup-out{from{transform:scale(1) translateY(0);opacity:1}to{transform:scale(.9) translateY(10px);opacity:0}}
.hg-v138-product-page .popup-card::before{
  content:"";position:absolute;top:-60px;left:50%;transform:translateX(-50%);
  width:260px;height:260px;border-radius:50%;
  background:radial-gradient(circle,rgba(139,92,246,.16) 0%,transparent 70%);pointer-events:none;
}
.hg-v138-product-page .check-wrap{
  width:72px;height:72px;border-radius:50%;margin:0 auto 18px;
  background:linear-gradient(135deg,rgba(139,92,246,.15),rgba(59,130,246,.1));
  border:1.5px solid rgba(139,92,246,.35);
  display:flex;align-items:center;justify-content:center;position:relative;
}
.hg-v138-product-page .check-ring{
  position:absolute;inset:-8px;border-radius:50%;
  border:1.5px solid rgba(139,92,246,.2);
  animation:ring-pulse 1.8s ease infinite;
}
@keyframes ring-pulse{0%,100%{transform:scale(1);opacity:.6}50%{transform:scale(1.08);opacity:.15}}
.hg-v138-product-page .check-icon{animation:check-pop .4s .15s cubic-bezier(.34,1.56,.64,1) both}
@keyframes check-pop{from{transform:scale(0) rotate(-30deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}
.hg-v138-product-page .popup-title{
  font-size:20px;font-weight:900;margin-bottom:8px;letter-spacing:-.3px;
  background:linear-gradient(135deg,#fff 60%,#c4b5fd);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.hg-v138-product-page .popup-price-row{display:flex;align-items:baseline;justify-content:center;gap:5px;margin-bottom:20px}
.hg-v138-product-page .popup-price{font-size:22px;font-weight:900;color:var(--amber)}
.hg-v138-product-page .popup-price-unit{font-size:12px;color:var(--text-dim)}
.hg-v138-product-page .popup-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-bottom:18px}
.hg-v138-product-page .popup-chip{
  padding:4px 11px;border-radius:8px;
  background:rgba(139,92,246,.1);border:1px solid rgba(139,92,246,.2);
  font-size:11px;color:#c4b5fd;font-weight:600;
}
.hg-v138-product-page .progress-track{height:4px;background:rgba(255,255,255,.06);border-radius:2px;overflow:hidden;margin-bottom:16px}
.hg-v138-product-page .progress-fill{
  height:100%;border-radius:2px;width:0;
  background:linear-gradient(90deg,var(--purple),var(--blue),var(--purple-light));
  background-size:200% 100%;
  animation:shimmer 1.5s linear infinite;
  transition:width .08s linear;
}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
.hg-v138-product-page .loading-row{
  display:flex;align-items:center;justify-content:center;gap:8px;
  font-size:13px;color:var(--text-muted);min-height:22px;
}
.hg-v138-product-page .spinner{
  width:16px;height:16px;border-radius:50%;
  border:2px solid rgba(139,92,246,.2);border-top-color:var(--purple);
  animation:spin .7s linear infinite;flex-shrink:0;
}
.hg-v138-product-page .dots span{display:inline-block;animation:dot 1.2s ease infinite;opacity:0}
.hg-v138-product-page .dots span:nth-child(2){animation-delay:.2s}
.hg-v138-product-page .dots span:nth-child(3){animation-delay:.4s}
@keyframes dot{0%,80%,100%{opacity:0}40%{opacity:1}}
.hg-v138-product-page .popup-close{
  position:absolute;top:14px;left:14px;
  width:28px;height:28px;border-radius:8px;
  background:rgba(255,255,255,.05);color:rgba(255,255,255,.3);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;line-height:1;transition:all .15s;
}
.hg-v138-product-page .popup-close:hover{background:rgba(255,255,255,.1);color:rgba(255,255,255,.7)}
.hg-v138-product-page .popup-success-text{color:rgba(34,197,94,.75);font-weight:700;font-size:12px}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width:900px){
  .hg-v138-product-page .hero-inner{grid-template-columns:1fr;gap:28px;padding:36px 20px 32px}
  .hg-v138-product-page .img-card{flex-direction:row;padding:20px 24px;gap:20px}
  .hg-v138-product-page .gpt-orb{width:80px;height:80px;flex-shrink:0}
  .hg-v138-product-page .orb-ring1{inset:-7px}.hg-v138-product-page .orb-ring2{inset:-14px}
  .hg-v138-product-page .ps-inner{gap:14px}
  .hg-v138-product-page .desc-grid{grid-template-columns:1fr}
  .hg-v138-product-page .rev-grid{grid-template-columns:1fr}
  .hg-v138-product-page .rating-box{position:static}
  .hg-v138-product-page .nav{display:none}
  .hg-v138-product-page .related-grid{grid-template-columns:repeat(2,1fr)}
  .hg-v138-product-page .tabs-section{padding:0 20px}
  .hg-v138-product-page .strip-sep{display:none}
  .hg-v138-product-page .add-btn{margin-right:0}
}
@media (max-width:600px){
  .hg-v138-product-page .hdr-inner{padding:0 14px;height:50px}
  .hg-v138-product-page .logo-text{font-size:15px}
  .hg-v138-product-page .cart-text{display:none}
  .hg-v138-product-page .cart-btn{padding:7px 10px;gap:4px}
  .hg-v138-product-page .hero-inner{padding:24px 14px 22px}
  .hg-v138-product-page .prod-title{font-size:24px}
  .hg-v138-product-page .bc{display:none}
  .hg-v138-product-page .img-card{border-radius:14px;padding:16px 18px}
  .hg-v138-product-page .ps-inner{padding:18px 14px;gap:10px;flex-wrap:wrap}
  .hg-v138-product-page .ps-btn{padding:8px 12px;font-size:12px}
  .hg-v138-product-page .price-val{font-size:22px}
  .hg-v138-product-page .add-btn{display:none}
  .hg-v138-product-page .float-bar{display:flex}
  .hg-v138-product-page .tabs-section{padding:0 14px}
  .hg-v138-product-page .tab-btn{padding:13px 16px;font-size:13px}
  .hg-v138-product-page .tab-panel{padding:24px 0 40px}
  .hg-v138-product-page .desc-grid{grid-template-columns:1fr}
  .hg-v138-product-page .rev-grid{grid-template-columns:1fr}
  .hg-v138-product-page .faq-list{max-width:100%}
  .hg-v138-product-page .related-section{padding:28px 0 110px;border-top:1px solid rgba(255,255,255,.05)}
  .hg-v138-product-page .related-hdr{padding:0 14px}
  .hg-v138-product-page .related-title{font-size:17px}
  .hg-v138-product-page .related-grid{
    display:flex;overflow-x:auto;flex-wrap:nowrap;
    gap:12px;padding:4px 14px 12px;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;
  }
  .hg-v138-product-page .related-grid::-webkit-scrollbar{display:none}
  .hg-v138-product-page .rel-card{min-width:168px;flex-shrink:0;scroll-snap-align:start;border-radius:13px}
  .hg-v138-product-page .rel-top{padding:14px 13px 10px;gap:10px}
  .hg-v138-product-page .rel-icon{width:38px;height:38px;font-size:15px;border-radius:9px}
  .hg-v138-product-page .rel-name{font-size:12.5px}
  .hg-v138-product-page .rel-footer{padding:10px 13px}
  .hg-v138-product-page .strip-sep{display:none}
}


/* ═══════════════════════════════
   HastiGem v138 — exact uploaded product-page template integration
   Scoped to WooCommerce single product only.
════════════════════════════════ */
body.single-product .hg-v138-product-page{
  margin:0;
  isolation:isolate;
  font-family:var(--hg-font, 'Vazirmatn','Tahoma',sans-serif);
  --bg:#f6f6f2;
  --surface:rgba(255,255,255,.78);
  --border:rgba(15,23,42,.10);
  --border-mid:rgba(15,23,42,.16);
  --border-hi:rgba(217,161,66,.38);
  --purple:#d9a142;
  --purple-light:#c58b25;
  --blue:#b47b22;
  --amber:#c58b25;
  --green:#16a34a;
  --text:rgba(20,24,31,.92);
  --text-muted:rgba(40,48,61,.66);
  --text-dim:rgba(51,65,85,.42);
  background:var(--bg);
  color:var(--text);
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page{
  --bg:#09090f;
  --surface:rgba(255,255,255,0.025);
  --border:rgba(139,92,246,0.12);
  --border-mid:rgba(139,92,246,0.2);
  --border-hi:rgba(139,92,246,0.35);
  --purple:#8b5cf6;
  --purple-light:#a78bfa;
  --blue:#3b82f6;
  --amber:#f59e0b;
  --green:#22c55e;
  --text:rgba(255,255,255,0.9);
  --text-muted:rgba(255,255,255,0.5);
  --text-dim:rgba(255,255,255,0.28);
}
body.single-product .hg-v138-product-page .hero{background:linear-gradient(160deg,#f6f2e8 0%,var(--bg) 50%,#edf2f6 100%);}
body.single-product .hg-v138-product-page .purchase-strip{background:rgba(255,255,255,.58);}
body.single-product .hg-v138-product-page .float-bar{background:rgba(246,246,242,.97);}
body.single-product .hg-v138-product-page .popup-card{background:linear-gradient(160deg,#fffaf0 0%,#f8f5ef 100%);}
body.single-product .hg-v138-product-page .prod-title,
body.single-product .hg-v138-product-page .desc-prose h3,
body.single-product .hg-v138-product-page .spec-val,
body.single-product .hg-v138-product-page .rev-title,
body.single-product .hg-v138-product-page .rel-price,
body.single-product .hg-v138-product-page .faq-q,
body.single-product .hg-v138-product-page .popup-title{-webkit-text-fill-color:initial;color:var(--text);}
body.single-product .hg-v138-product-page .prod-title span,
body.single-product .hg-v138-product-page .related-title span,
body.single-product .hg-v138-product-page .logo-text,
body.single-product .hg-v138-product-page .popup-title{
  background:linear-gradient(135deg,var(--purple-light),var(--blue));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
body.single-product .hg-v138-product-page .review-ta{color:var(--text);}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hero{background:linear-gradient(160deg,#0d0820 0%,var(--bg) 50%,#0a0d1a 100%);}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .purchase-strip{background:rgba(255,255,255,.025);}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .float-bar{background:rgba(9,9,15,.97);}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .popup-card{background:linear-gradient(160deg,#111128 0%,#0d0d1f 100%);}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .prod-title,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .desc-prose h3,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .spec-val,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .rev-title,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .rel-price,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .faq-q{color:rgba(255,255,255,.85);}
body.single-product .hg-v138-product-page .gpt-orb.hg-v138-image-orb{width:178px;height:178px;border-radius:30px;overflow:hidden;background:rgba(255,255,255,.8)}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .gpt-orb.hg-v138-image-orb{background:radial-gradient(circle at 35% 35%,rgba(139,92,246,.15),rgba(59,130,246,.08));}
body.single-product .hg-v138-product-page .gpt-orb .hg-product-media{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:2}
body.single-product .hg-v138-product-page .gpt-orb .hg-product-media img,
body.single-product .hg-v138-product-page .gpt-orb .hg-product-media-fallback{width:100%;height:100%;object-fit:cover;display:block;border-radius:0;}
body.single-product .hg-v138-product-page .gpt-orb .hg-product-media-fallback{display:flex;align-items:center;justify-content:center;color:var(--text-dim)}
body.single-product .hg-v138-product-page .gpt-orb .hg-product-media-img--dark{display:none;}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .gpt-orb .hg-product-media.has-dark .hg-product-media-img--light{display:none;}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .gpt-orb .hg-product-media.has-dark .hg-product-media-img--dark{display:block;}
body.single-product .hg-v138-product-page .hg-v138-empty{border:1px dashed var(--border-mid);border-radius:14px;padding:18px;color:var(--text-muted);font-size:13px;line-height:1.8;background:rgba(255,255,255,.035)}
body.single-product .hg-v138-product-page .hg-v138-login-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
body.single-product .hg-v138-product-page .hg-v138-login-actions a{padding:9px 15px;border-radius:9px;background:linear-gradient(135deg,var(--purple),var(--blue));color:#fff;font-size:12px;font-weight:800}
body.single-product .hg-v138-product-page .hg-v138-login-actions a.is-ghost{background:rgba(255,255,255,.05);color:var(--purple-light);border:1px solid var(--border-mid)}
body.single-product .hg-v138-product-page .ps-btn .var-selected-label{display:none}
body.single-product .hg-v138-product-page .ps-btn.active::before{content:'✓';display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;margin-left:6px;border-radius:50%;background:linear-gradient(135deg,var(--purple),var(--blue));color:#fff;font-size:10px;font-weight:900;vertical-align:1px}
body.single-product .hg-v138-product-page .unavailable-note{font-size:11px;color:#ef4444;font-weight:700;margin-top:4px;display:none}
body.single-product .hg-v138-product-page .buy-offers{display:flex;gap:7px;flex-wrap:wrap;margin-top:6px}
body.single-product .hg-v138-product-page .buy-offers span{font-size:10px;border-radius:8px;padding:3px 8px;background:rgba(245,158,11,.1);border:1px solid rgba(245,158,11,.22);color:var(--amber);font-weight:700}
body.single-product .hg-v138-product-page .rel-icon .hg-product-media{width:100%;height:100%;display:block;overflow:hidden;border-radius:inherit}
body.single-product .hg-v138-product-page .rel-icon .hg-product-media img{width:100%;height:100%;object-fit:cover;display:block}
body.single-product .hg-v138-product-page .rel-icon .hg-product-media-img--dark{display:none}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .rel-icon .hg-product-media.has-dark .hg-product-media-img--light{display:none}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .rel-icon .hg-product-media.has-dark .hg-product-media-img--dark{display:block}
body.single-product .hg-v138-product-page .comment-form .comment-reply-title{display:none}
body.single-product .hg-v138-product-page .comment-form p{margin:0}
body.single-product .hg-v138-product-page .comment-form label{font-size:11px;color:var(--text-dim);display:block;margin-bottom:8px}
body.single-product .hg-v138-product-page .comment-form textarea{width:100%;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:12px 14px;color:var(--text);font-family:inherit;font-size:13px;resize:none;outline:none;min-height:86px}
body.single-product .hg-v138-product-page .comment-form .submit{margin-top:10px;padding:10px 24px;background:linear-gradient(135deg,var(--purple),var(--blue));color:#fff;border-radius:9px;font-size:13px;font-weight:800;transition:all .2s}
body.single-product .hg-v138-product-page .hg-review-rating-input{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
body.single-product .hg-v138-product-page .hg-review-rating-input input{position:absolute;opacity:0;pointer-events:none}
body.single-product .hg-v138-product-page .hg-review-rating-input label{margin:0;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:var(--text-muted);font-size:12px;cursor:pointer}
body.single-product .hg-v138-product-page .hg-review-rating-input input:checked + label{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.28);color:var(--amber)}
body.single-product.hg-v138-cart-popup-open{overflow:hidden}
body.single-product .hg-v138-product-page .popup-overlay[hidden]{display:none!important}
@media(max-width:600px){
  body.single-product .hg-v138-product-page{padding-bottom:86px}
  body.single-product .hg-v138-product-page .gpt-orb.hg-v138-image-orb{width:86px;height:86px;border-radius:18px;}
}

/* ═══════════════════════════════════════
   HastiGem v139 — product template color sync + mobile buy bar clearance
   Scope: WooCommerce single product v138 template only.
═══════════════════════════════════════ */
body.single-product .hg-v138-product-page{
  --hg-product-accent:#d9a142;
  --hg-product-accent-2:#b8862f;
  --hg-product-accent-soft:rgba(217,161,66,.12);
  --hg-product-accent-border:rgba(217,161,66,.28);
  --purple:var(--hg-product-accent)!important;
  --purple-light:#e3b75d!important;
  --blue:var(--hg-product-accent-2)!important;
  --amber:var(--hg-product-accent)!important;
  --green:#16a34a!important;
  --border:rgba(15,23,42,.10)!important;
  --border-mid:rgba(15,23,42,.16)!important;
  --border-hi:rgba(217,161,66,.34)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page{
  --bg:#0f131a!important;
  --surface:rgba(255,255,255,.045)!important;
  --border:rgba(255,255,255,.085)!important;
  --border-mid:rgba(255,255,255,.13)!important;
  --border-hi:rgba(217,161,66,.34)!important;
  --purple:#d9a142!important;
  --purple-light:#f0c15c!important;
  --blue:#b8862f!important;
  --amber:#d9a142!important;
  --green:#22c55e!important;
  --text:rgba(244,247,250,.93)!important;
  --text-muted:rgba(214,220,228,.62)!important;
  --text-dim:rgba(214,220,228,.36)!important;
}
body.single-product .hg-v138-product-page .hero{
  background:linear-gradient(160deg,#f7f4ec 0%,#f6f6f2 52%,#edf1f4 100%)!important;
  border-bottom-color:var(--border)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hero{
  background:linear-gradient(160deg,#151a22 0%,#0f131a 54%,#0b1018 100%)!important;
}
body.single-product .hg-v138-product-page .hero-bg{
  background:
    radial-gradient(ellipse 62% 78% at 100% 46%,rgba(217,161,66,.13) 0%,transparent 70%),
    radial-gradient(ellipse 52% 64% at 0% 54%,rgba(15,23,42,.055) 0%,transparent 70%)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hero-bg{
  background:
    radial-gradient(ellipse 62% 78% at 100% 46%,rgba(217,161,66,.11) 0%,transparent 70%),
    radial-gradient(ellipse 52% 64% at 0% 54%,rgba(255,255,255,.035) 0%,transparent 70%)!important;
}
body.single-product .hg-v138-product-page .hero-grid{
  background-image:
    linear-gradient(rgba(217,161,66,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(217,161,66,.045) 1px,transparent 1px)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hero-grid{
  background-image:
    linear-gradient(rgba(217,161,66,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(217,161,66,.035) 1px,transparent 1px)!important;
}
body.single-product .hg-v138-product-page .cat-badge,
body.single-product .hg-v138-product-page .ps-btn.active,
body.single-product .hg-v138-product-page .spec-card,
body.single-product .hg-v138-product-page .rating-box,
body.single-product .hg-v138-product-page .write-box,
body.single-product .hg-v138-product-page .popup-chip,
body.single-product .hg-v138-product-page .hg-v138-empty,
body.single-product .hg-v138-product-page .hg-review-rating-input input:checked + label{
  background:rgba(217,161,66,.10)!important;
  border-color:rgba(217,161,66,.25)!important;
  color:var(--purple-light)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .cat-badge,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-btn.active,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .spec-card,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .rating-box,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .write-box,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hg-v138-empty,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hg-review-rating-input input:checked + label{
  background:rgba(217,161,66,.075)!important;
  border-color:rgba(217,161,66,.22)!important;
}
body.single-product .hg-v138-product-page .prod-title span,
body.single-product .hg-v138-product-page .related-title span,
body.single-product .hg-v138-product-page .logo-text,
body.single-product .hg-v138-product-page .popup-title{
  background:linear-gradient(135deg,var(--purple-light),var(--blue))!important;
  -webkit-background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
}
body.single-product .hg-v138-product-page .logo-gem,
body.single-product .hg-v138-product-page .cart-badge,
body.single-product .hg-v138-product-page .chip::before,
body.single-product .hg-v138-product-page .img-badge,
body.single-product .hg-v138-product-page .ps-badge,
body.single-product .hg-v138-product-page .add-btn,
body.single-product .hg-v138-product-page .float-btn,
body.single-product .hg-v138-product-page .submit-btn,
body.single-product .hg-v138-product-page .comment-form .submit,
body.single-product .hg-v138-product-page .hg-v138-login-actions a,
body.single-product .hg-v138-product-page .ps-btn.active::before{
  background:linear-gradient(135deg,var(--purple),var(--blue))!important;
  box-shadow:0 10px 28px rgba(217,161,66,.18)!important;
}
body.single-product .hg-v138-product-page .cart-btn,
body.single-product .hg-v138-product-page .rel-btn{
  border-color:rgba(217,161,66,.24)!important;
  background:rgba(217,161,66,.08)!important;
  color:var(--purple-light)!important;
}
body.single-product .hg-v138-product-page .cart-btn:hover,
body.single-product .hg-v138-product-page .rel-btn:hover{
  border-color:rgba(217,161,66,.36)!important;
  background:rgba(217,161,66,.13)!important;
}
body.single-product .hg-v138-product-page .trust-icon,
body.single-product .hg-v138-product-page .img-card,
body.single-product .hg-v138-product-page .gpt-orb{
  background:linear-gradient(145deg,rgba(217,161,66,.09),rgba(255,255,255,.04))!important;
  border-color:rgba(217,161,66,.20)!important;
  box-shadow:0 18px 48px rgba(15,23,42,.045)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .trust-icon,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .img-card,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .gpt-orb{
  background:linear-gradient(145deg,rgba(217,161,66,.075),rgba(255,255,255,.035))!important;
  border-color:rgba(217,161,66,.18)!important;
  box-shadow:0 20px 60px rgba(0,0,0,.18)!important;
}
body.single-product .hg-v138-product-page .img-card::before{
  background:radial-gradient(circle,rgba(217,161,66,.16) 0%,transparent 70%)!important;
}
body.single-product .hg-v138-product-page .orb-ring1,
body.single-product .hg-v138-product-page .orb-ring2{
  border-color:rgba(217,161,66,.22)!important;
}
body.single-product .hg-v138-product-page .purchase-strip{
  background:rgba(255,255,255,.62)!important;
  border-bottom-color:var(--border)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .purchase-strip{
  background:rgba(255,255,255,.035)!important;
}
body.single-product .hg-v138-product-page .purchase-strip::before{
  background:linear-gradient(90deg,transparent,rgba(217,161,66,.045),transparent)!important;
}
body.single-product .hg-v138-product-page .tab-btn.active{
  color:var(--purple-light)!important;
  border-bottom-color:var(--purple)!important;
}
body.single-product .hg-v138-product-page .dist-fill,
body.single-product .hg-v138-product-page .progress-fill{
  background:linear-gradient(90deg,var(--purple),var(--blue),var(--purple-light))!important;
}
body.single-product .hg-v138-product-page .avatar,
body.single-product .hg-v138-product-page .check-wrap,
body.single-product .hg-v138-product-page .rel-icon[style]{
  background:linear-gradient(135deg,rgba(217,161,66,.28),rgba(184,134,47,.18))!important;
  border-color:rgba(217,161,66,.25)!important;
  color:var(--purple-light)!important;
}
body.single-product .hg-v138-product-page .rel-badge[style]{
  background:rgba(217,161,66,.10)!important;
  border-color:rgba(217,161,66,.24)!important;
  color:var(--purple-light)!important;
}
body.single-product .hg-v138-product-page #checkGrad stop:first-child{stop-color:#d9a142!important;}
body.single-product .hg-v138-product-page #checkGrad stop:last-child{stop-color:#b8862f!important;}
body.single-product .hg-v138-product-page .popup-card{
  border-color:rgba(217,161,66,.28)!important;
  box-shadow:0 24px 80px rgba(0,0,0,.28),0 0 0 1px rgba(217,161,66,.11)!important;
}
body.single-product .hg-v138-product-page .popup-card::before{
  background:radial-gradient(circle,rgba(217,161,66,.14) 0%,transparent 70%)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .popup-card{
  background:linear-gradient(160deg,#171c24 0%,#10151d 100%)!important;
}

@media(max-width:600px){
  body.single-product .hg-v138-product-page{
    padding-bottom:calc(max(var(--hg-mobile-nav-real,0px), var(--mobile-nav,68px)) + 118px + env(safe-area-inset-bottom,0px))!important;
  }
  body.single-product .hg-v138-product-page .float-bar{
    right:max(10px,env(safe-area-inset-right,0px))!important;
    left:max(10px,env(safe-area-inset-left,0px))!important;
    bottom:calc(max(var(--hg-mobile-nav-real,0px), var(--mobile-nav,68px)) + 10px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;
    border-radius:22px!important;
    padding:10px!important;
    z-index:190!important;
    background:rgba(246,246,242,.94)!important;
    border:1px solid rgba(15,23,42,.10)!important;
    box-shadow:0 18px 48px rgba(15,23,42,.12)!important;
  }
  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .float-bar{
    background:rgba(15,19,26,.94)!important;
    border-color:rgba(255,255,255,.09)!important;
    box-shadow:0 18px 48px rgba(0,0,0,.32)!important;
  }
  body.single-product .hg-v138-product-page .float-inner{
    min-height:58px!important;
  }
  body.single-product .hg-v138-product-page .float-btn{
    min-height:50px!important;
    border-radius:16px!important;
  }
}

/* ═══════════════════════════════════════
   HastiGem v140 — neutral product palette, no yellow/purple
   Scope: WooCommerce single product v138 template only.
═══════════════════════════════════════ */
body.single-product .hg-v138-product-page{
  --hg-product-accent:#17181b;
  --hg-product-accent-2:#4b5563;
  --hg-product-accent-3:#6f757b;
  --hg-product-accent-soft:rgba(23,24,27,.065);
  --hg-product-accent-soft-2:rgba(23,24,27,.04);
  --hg-product-accent-border:rgba(23,24,27,.14);
  --hg-product-accent-border-2:rgba(23,24,27,.09);
  --hg-product-success:#14783d;
  --hg-product-success-soft:rgba(20,120,61,.10);
  --hg-product-rating:#17181b;
  --hg-product-star-empty:rgba(23,24,27,.16);
  --hg-product-price:#17181b;
  --hg-product-cta-bg:#17181b;
  --hg-product-cta-bg-2:#333a43;
  --hg-product-cta-text:#ffffff;
  --hg-product-check-start:#17181b;
  --hg-product-check-end:#4b5563;
  --purple:var(--hg-product-accent)!important;
  --purple-light:var(--hg-product-accent-2)!important;
  --blue:var(--hg-product-accent-3)!important;
  --amber:var(--hg-product-price)!important;
  --green:var(--hg-product-success)!important;
  --border:rgba(23,24,27,.09)!important;
  --border-mid:rgba(23,24,27,.13)!important;
  --border-hi:rgba(23,24,27,.20)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page{
  --bg:#0f131a!important;
  --surface:rgba(255,255,255,.045)!important;
  --hg-product-accent:#eef2f7;
  --hg-product-accent-2:#cfd6df;
  --hg-product-accent-3:#a2adba;
  --hg-product-accent-soft:rgba(255,255,255,.060);
  --hg-product-accent-soft-2:rgba(255,255,255,.035);
  --hg-product-accent-border:rgba(255,255,255,.13);
  --hg-product-accent-border-2:rgba(255,255,255,.085);
  --hg-product-success:#54e28a;
  --hg-product-success-soft:rgba(84,226,138,.12);
  --hg-product-rating:#e8edf4;
  --hg-product-star-empty:rgba(238,242,247,.18);
  --hg-product-price:#eef2f7;
  --hg-product-cta-bg:#eef2f7;
  --hg-product-cta-bg-2:#a2adba;
  --hg-product-cta-text:#11161d;
  --hg-product-check-start:#eef2f7;
  --hg-product-check-end:#a2adba;
  --purple:var(--hg-product-accent)!important;
  --purple-light:var(--hg-product-accent-2)!important;
  --blue:var(--hg-product-accent-3)!important;
  --amber:var(--hg-product-price)!important;
  --green:var(--hg-product-success)!important;
  --border:rgba(255,255,255,.085)!important;
  --border-mid:rgba(255,255,255,.13)!important;
  --border-hi:rgba(255,255,255,.18)!important;
  --text:rgba(244,247,250,.93)!important;
  --text-muted:rgba(214,220,228,.62)!important;
  --text-dim:rgba(214,220,228,.36)!important;
}
body.single-product .hg-v138-product-page .hero{
  background:linear-gradient(160deg,#f6f6f2 0%,#f8f8f4 52%,#eef1f3 100%)!important;
  border-bottom-color:var(--border)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hero{
  background:linear-gradient(160deg,#151a22 0%,#0f131a 54%,#0b1018 100%)!important;
}
body.single-product .hg-v138-product-page .hero-bg{
  background:
    radial-gradient(ellipse 62% 78% at 100% 46%,rgba(23,24,27,.070) 0%,transparent 70%),
    radial-gradient(ellipse 52% 64% at 0% 54%,rgba(84,98,112,.055) 0%,transparent 70%)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hero-bg{
  background:
    radial-gradient(ellipse 62% 78% at 100% 46%,rgba(255,255,255,.052) 0%,transparent 70%),
    radial-gradient(ellipse 52% 64% at 0% 54%,rgba(84,226,138,.045) 0%,transparent 70%)!important;
}
body.single-product .hg-v138-product-page .hero-grid{
  background-image:
    linear-gradient(rgba(23,24,27,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(23,24,27,.035) 1px,transparent 1px)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hero-grid{
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px)!important;
}
body.single-product .hg-v138-product-page .cat-badge,
body.single-product .hg-v138-product-page .ps-btn.active,
body.single-product .hg-v138-product-page .spec-card,
body.single-product .hg-v138-product-page .rating-box,
body.single-product .hg-v138-product-page .write-box,
body.single-product .hg-v138-product-page .popup-chip,
body.single-product .hg-v138-product-page .hg-v138-empty,
body.single-product .hg-v138-product-page .hg-review-rating-input input:checked + label{
  background:var(--hg-product-accent-soft)!important;
  border-color:var(--hg-product-accent-border)!important;
  color:var(--hg-product-accent-2)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .cat-badge,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-btn.active,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .spec-card,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .rating-box,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .write-box,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hg-v138-empty,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hg-review-rating-input input:checked + label{
  background:var(--hg-product-accent-soft)!important;
  border-color:var(--hg-product-accent-border)!important;
}
body.single-product .hg-v138-product-page .prod-title span,
body.single-product .hg-v138-product-page .related-title span,
body.single-product .hg-v138-product-page .logo-text,
body.single-product .hg-v138-product-page .popup-title{
  background:linear-gradient(135deg,var(--hg-product-accent),var(--hg-product-accent-3))!important;
  -webkit-background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
}
body.single-product .hg-v138-product-page .logo-gem,
body.single-product .hg-v138-product-page .cart-badge,
body.single-product .hg-v138-product-page .chip::before,
body.single-product .hg-v138-product-page .img-badge,
body.single-product .hg-v138-product-page .ps-badge,
body.single-product .hg-v138-product-page .add-btn,
body.single-product .hg-v138-product-page .float-btn,
body.single-product .hg-v138-product-page .submit-btn,
body.single-product .hg-v138-product-page .comment-form .submit,
body.single-product .hg-v138-product-page .hg-v138-login-actions a,
body.single-product .hg-v138-product-page .ps-btn.active::before{
  background:linear-gradient(135deg,var(--hg-product-cta-bg),var(--hg-product-cta-bg-2))!important;
  color:var(--hg-product-cta-text)!important;
  box-shadow:0 10px 28px rgba(15,23,42,.13)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .logo-gem,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .cart-badge,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .chip::before,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .img-badge,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-badge,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .add-btn,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .float-btn,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .submit-btn,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .comment-form .submit,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hg-v138-login-actions a,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-btn.active::before{
  box-shadow:0 12px 34px rgba(0,0,0,.22)!important;
}
body.single-product .hg-v138-product-page .cart-btn,
body.single-product .hg-v138-product-page .rel-btn{
  border-color:var(--hg-product-accent-border)!important;
  background:var(--hg-product-accent-soft)!important;
  color:var(--hg-product-accent-2)!important;
}
body.single-product .hg-v138-product-page .cart-btn:hover,
body.single-product .hg-v138-product-page .rel-btn:hover{
  border-color:var(--hg-product-accent-border)!important;
  background:rgba(23,24,27,.10)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .cart-btn:hover,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .rel-btn:hover{
  background:rgba(255,255,255,.085)!important;
}
body.single-product .hg-v138-product-page .trust-icon,
body.single-product .hg-v138-product-page .img-card,
body.single-product .hg-v138-product-page .gpt-orb{
  background:linear-gradient(145deg,var(--hg-product-accent-soft),rgba(255,255,255,.05))!important;
  border-color:var(--hg-product-accent-border)!important;
  box-shadow:0 18px 48px rgba(15,23,42,.045)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .trust-icon,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .img-card,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .gpt-orb{
  background:linear-gradient(145deg,var(--hg-product-accent-soft),rgba(255,255,255,.025))!important;
  border-color:var(--hg-product-accent-border)!important;
  box-shadow:0 20px 60px rgba(0,0,0,.18)!important;
}
body.single-product .hg-v138-product-page .img-card::before{
  background:radial-gradient(circle,rgba(23,24,27,.10) 0%,transparent 70%)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .img-card::before{
  background:radial-gradient(circle,rgba(255,255,255,.08) 0%,transparent 70%)!important;
}
body.single-product .hg-v138-product-page .orb-ring1,
body.single-product .hg-v138-product-page .orb-ring2{
  border-color:var(--hg-product-accent-border)!important;
}
body.single-product .hg-v138-product-page .purchase-strip{
  background:rgba(255,255,255,.62)!important;
  border-bottom-color:var(--border)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .purchase-strip{
  background:rgba(255,255,255,.035)!important;
}
body.single-product .hg-v138-product-page .purchase-strip::before{
  background:linear-gradient(90deg,transparent,rgba(23,24,27,.030),transparent)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .purchase-strip::before{
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.035),transparent)!important;
}
body.single-product .hg-v138-product-page .tab-btn.active{
  color:var(--hg-product-accent)!important;
  border-bottom-color:var(--hg-product-accent)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .tab-btn.active{
  color:var(--hg-product-accent)!important;
  border-bottom-color:var(--hg-product-accent)!important;
}
body.single-product .hg-v138-product-page .rating-num,
body.single-product .hg-v138-product-page .price-val,
body.single-product .hg-v138-product-page .big-num,
body.single-product .hg-v138-product-page .rel-rnum,
body.single-product .hg-v138-product-page .float-num,
body.single-product .hg-v138-product-page .popup-price,
body.single-product .hg-v138-product-page .rating-lbl{
  color:var(--hg-product-price)!important;
}
body.single-product .hg-v138-product-page .stars-row svg polygon{
  fill:var(--hg-product-star-empty)!important;
}
body.single-product .hg-v138-product-page .stars-row svg polygon[fill="#f59e0b"],
body.single-product .hg-v138-product-page .stars-row svg polygon[fill="var(--hg-product-rating, currentColor)"],
body.single-product .hg-v138-product-page .rel-stars svg[fill="#f59e0b"],
body.single-product .hg-v138-product-page .rel-stars svg[fill="var(--hg-product-rating, currentColor)"]{
  fill:var(--hg-product-rating)!important;
}
body.single-product .hg-v138-product-page .rel-stars svg[fill="#f59e0b"] polygon,
body.single-product .hg-v138-product-page .rel-stars svg[fill="var(--hg-product-rating, currentColor)"] polygon{
  fill:var(--hg-product-rating)!important;
}
body.single-product .hg-v138-product-page .dist-fill,
body.single-product .hg-v138-product-page .progress-fill{
  background:linear-gradient(90deg,var(--hg-product-accent),var(--hg-product-accent-3))!important;
}
body.single-product .hg-v138-product-page .avatar,
body.single-product .hg-v138-product-page .check-wrap,
body.single-product .hg-v138-product-page .rel-icon,
body.single-product .hg-v138-product-page .rel-icon[style]{
  background:linear-gradient(135deg,var(--hg-product-accent-soft),var(--hg-product-accent-soft-2))!important;
  border-color:var(--hg-product-accent-border)!important;
  color:var(--hg-product-accent-2)!important;
}
body.single-product .hg-v138-product-page .rel-badge,
body.single-product .hg-v138-product-page .rel-badge[style]{
  background:var(--hg-product-success-soft)!important;
  border:1px solid rgba(20,120,61,.20)!important;
  color:var(--hg-product-success)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .rel-badge,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .rel-badge[style]{
  border-color:rgba(84,226,138,.24)!important;
}
body.single-product .hg-v138-product-page #checkGrad stop:first-child{stop-color:var(--hg-product-check-start)!important;}
body.single-product .hg-v138-product-page #checkGrad stop:last-child{stop-color:var(--hg-product-check-end)!important;}
body.single-product .hg-v138-product-page .popup-card{
  border-color:var(--hg-product-accent-border)!important;
  box-shadow:0 24px 80px rgba(0,0,0,.24),0 0 0 1px var(--hg-product-accent-border-2)!important;
}
body.single-product .hg-v138-product-page .popup-card::before{
  background:radial-gradient(circle,rgba(23,24,27,.10) 0%,transparent 70%)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .popup-card{
  background:linear-gradient(160deg,#171c24 0%,#10151d 100%)!important;
}
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .popup-card::before{
  background:radial-gradient(circle,rgba(255,255,255,.075) 0%,transparent 70%)!important;
}
@media(max-width:600px){
  body.single-product .hg-v138-product-page .float-bar{
    background:rgba(246,246,242,.96)!important;
    border-color:rgba(15,23,42,.10)!important;
    box-shadow:0 18px 48px rgba(15,23,42,.12)!important;
  }
  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .float-bar{
    background:rgba(15,19,26,.96)!important;
    border-color:rgba(255,255,255,.09)!important;
    box-shadow:0 18px 48px rgba(0,0,0,.32)!important;
  }
}

/* ═══════════════════════════════════════
   HastiGem v141 — product page cleanup + desktop variation selector polish
   Scope: redesigned single product template.
═══════════════════════════════════════ */
body.single-product .hg-v138-product-page .prod-title span,
body.single-product .hg-v138-product-page .chips,
body.single-product .hg-v138-product-page .trust-bar,
body.single-product .hg-v138-product-page .sold-row,
body.single-product .hg-v138-product-page .img-lbl,
body.single-product .hg-v138-product-page .ps-badge,
body.single-product .hg-v138-product-page .var-selected-label{
    display:none!important;
}

body.single-product .hg-v138-product-page .short-desc{
    margin-bottom:0!important;
    max-width:640px!important;
}

body.single-product .hg-v138-product-page .img-card{
    gap:14px!important;
    padding-bottom:30px!important;
}

body.single-product .hg-v138-product-page .purchase-strip{
    padding:22px 0!important;
    background:transparent!important;
    border-bottom:1px solid var(--border)!important;
}

body.single-product .hg-v138-product-page .purchase-strip::before{
    display:none!important;
}

body.single-product .hg-v138-product-page .ps-inner{
    max-width:1200px!important;
    margin:0 auto!important;
    padding:0 28px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(300px,360px)!important;
    gap:16px!important;
    align-items:stretch!important;
}

body.single-product .hg-v138-product-page .ps-inner.is-simple{
    grid-template-columns:minmax(300px,380px)!important;
    justify-content:end!important;
}

body.single-product .hg-v138-product-page .hg-variation-panel,
body.single-product .hg-v138-product-page .hg-buy-panel{
    position:relative!important;
    border:1px solid rgba(17,24,39,.09)!important;
    background:rgba(255,255,255,.64)!important;
    box-shadow:0 18px 42px rgba(15,23,42,.055)!important;
    border-radius:22px!important;
}

html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hg-variation-panel,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .hg-buy-panel{
    border-color:rgba(255,255,255,.08)!important;
    background:rgba(255,255,255,.035)!important;
    box-shadow:0 22px 60px rgba(0,0,0,.22)!important;
}

body.single-product .hg-v138-product-page .hg-variation-panel{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(178px,1fr))!important;
    gap:10px!important;
    padding:12px!important;
}

body.single-product .hg-v138-product-page .hg-buy-panel{
    display:flex!important;
    flex-direction:column!important;
    justify-content:space-between!important;
    gap:14px!important;
    padding:16px!important;
}

body.single-product .hg-v138-product-page .strip-sep{
    display:none!important;
}

body.single-product .hg-v138-product-page .ps-group{
    min-width:0!important;
    gap:10px!important;
    padding:12px!important;
    border-radius:17px!important;
    border:1px solid rgba(17,24,39,.075)!important;
    background:rgba(246,246,242,.70)!important;
}

html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-group{
    border-color:rgba(255,255,255,.075)!important;
    background:rgba(255,255,255,.028)!important;
}

body.single-product .hg-v138-product-page .ps-label{
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.5!important;
    letter-spacing:0!important;
    text-transform:none!important;
    color:rgba(17,24,39,.68)!important;
}

html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-label{
    color:rgba(238,242,247,.70)!important;
}

body.single-product .hg-v138-product-page .ps-btns{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
}

body.single-product .hg-v138-product-page .ps-btn{
    width:100%!important;
    min-height:40px!important;
    padding:9px 10px!important;
    border-radius:13px!important;
    border:1px solid rgba(17,24,39,.09)!important;
    background:rgba(255,255,255,.58)!important;
    color:rgba(17,24,39,.70)!important;
    font-size:13px!important;
    font-weight:800!important;
    text-align:center!important;
    justify-content:center!important;
    box-shadow:none!important;
}

html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-btn{
    border-color:rgba(255,255,255,.085)!important;
    background:rgba(255,255,255,.035)!important;
    color:rgba(238,242,247,.68)!important;
}

body.single-product .hg-v138-product-page .ps-btn:hover{
    transform:none!important;
    border-color:rgba(17,24,39,.16)!important;
    background:rgba(255,255,255,.86)!important;
    color:#111827!important;
}

html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-btn:hover{
    border-color:rgba(255,255,255,.17)!important;
    background:rgba(255,255,255,.07)!important;
    color:#f7f9fb!important;
}

body.single-product .hg-v138-product-page .ps-btn.active,
html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-btn.active{
    border-color:var(--hg-product-accent-border)!important;
    background:var(--hg-product-accent-soft)!important;
    color:var(--hg-product-accent)!important;
    box-shadow:inset 0 0 0 1px var(--hg-product-accent-border-2)!important;
}

body.single-product .hg-v138-product-page .ps-btn.active::before{
    display:none!important;
}

body.single-product .hg-v138-product-page .price-group{
    min-width:0!important;
    gap:4px!important;
    padding:0!important;
}

body.single-product .hg-v138-product-page .price-lbl{
    font-size:12px!important;
    font-weight:800!important;
    color:rgba(17,24,39,.52)!important;
}

html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .price-lbl{
    color:rgba(238,242,247,.48)!important;
}

body.single-product .hg-v138-product-page .price-val{
    font-size:25px!important;
    letter-spacing:-.2px!important;
}

body.single-product .hg-v138-product-page .price-unit{
    font-size:12px!important;
}

body.single-product .hg-v138-product-page .add-btn{
    width:100%!important;
    min-height:48px!important;
    margin:0!important;
    justify-content:center!important;
    border-radius:15px!important;
    padding:13px 18px!important;
}

@media(max-width:900px){
    body.single-product .hg-v138-product-page .ps-inner,
    body.single-product .hg-v138-product-page .ps-inner.is-simple{
        grid-template-columns:1fr!important;
        justify-content:stretch!important;
        padding:0 20px!important;
    }
}

@media(max-width:600px){
    body.single-product .hg-v138-product-page .purchase-strip{
        padding:16px 0!important;
    }
    body.single-product .hg-v138-product-page .ps-inner{
        padding:0 14px!important;
        gap:12px!important;
    }
    body.single-product .hg-v138-product-page .hg-variation-panel,
    body.single-product .hg-v138-product-page .hg-buy-panel{
        border-radius:18px!important;
    }
    body.single-product .hg-v138-product-page .hg-variation-panel{
        grid-template-columns:1fr!important;
        padding:10px!important;
    }
    body.single-product .hg-v138-product-page .ps-group{
        padding:11px!important;
    }
    body.single-product .hg-v138-product-page .ps-btns{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    body.single-product .hg-v138-product-page .hg-buy-panel .add-btn{
        display:none!important;
    }
}

/* ═══════════════════════════════════════
   HastiGem v142 — inline purchase strip like uploaded reference
   Scope: redesigned single product template desktop/tablet strip.
═══════════════════════════════════════ */
@media (min-width:901px){
  body.single-product .hg-v138-product-page .purchase-strip{
    padding:0!important;
    min-height:112px!important;
    display:flex!important;
    align-items:center!important;
    background:rgba(246,246,242,.74)!important;
    border-top:1px solid rgba(17,24,39,.055)!important;
    border-bottom:1px solid rgba(17,24,39,.085)!important;
    box-shadow:none!important;
  }

  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .purchase-strip{
    background:rgba(10,12,18,.70)!important;
    border-top-color:rgba(255,255,255,.055)!important;
    border-bottom-color:rgba(255,255,255,.085)!important;
  }

  body.single-product .hg-v138-product-page .purchase-strip::before{
    display:block!important;
    background:linear-gradient(90deg,transparent,rgba(17,24,39,.024),transparent)!important;
  }

  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .purchase-strip::before{
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.030),transparent)!important;
  }

  body.single-product .hg-v138-product-page .ps-inner,
  body.single-product .hg-v138-product-page .ps-inner.is-variable,
  body.single-product .hg-v138-product-page .ps-inner.is-simple{
    width:100%!important;
    max-width:1320px!important;
    min-height:112px!important;
    margin:0 auto!important;
    padding:0 28px!important;
    display:flex!important;
    flex-direction:row!important;
    direction:rtl!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:20px!important;
    overflow:visible!important;
  }

  body.single-product .hg-v138-product-page .hg-variation-panel,
  body.single-product .hg-v138-product-page .hg-buy-panel{
    display:contents!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:0!important;
    padding:0!important;
  }

  body.single-product .hg-v138-product-page .ps-group{
    flex:0 0 auto!important;
    min-width:0!important;
    max-width:none!important;
    padding:0 0 0 20px!important;
    border:0!important;
    border-left:1px solid rgba(17,24,39,.08)!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:0!important;
    gap:9px!important;
    align-self:center!important;
  }

  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-group{
    border-left-color:rgba(255,255,255,.085)!important;
    background:transparent!important;
  }

  body.single-product .hg-v138-product-page .ps-label{
    margin:0 0 7px!important;
    padding:0!important;
    display:block!important;
    font-size:11px!important;
    line-height:1.2!important;
    font-weight:800!important;
    letter-spacing:0!important;
    text-transform:none!important;
    text-align:right!important;
    color:rgba(17,24,39,.38)!important;
  }

  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-label{
    color:rgba(238,242,247,.34)!important;
  }

  body.single-product .hg-v138-product-page .ps-btns{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    gap:7px!important;
    align-items:center!important;
    justify-content:flex-start!important;
  }

  body.single-product .hg-v138-product-page .ps-btn{
    width:auto!important;
    min-width:78px!important;
    min-height:40px!important;
    height:40px!important;
    padding:8px 15px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    white-space:nowrap!important;
    border-radius:10px!important;
    border:1px solid rgba(17,24,39,.09)!important;
    background:rgba(17,24,39,.035)!important;
    color:rgba(17,24,39,.58)!important;
    font-size:13px!important;
    font-weight:850!important;
    line-height:1!important;
    box-shadow:none!important;
    transform:none!important;
  }

  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-btn{
    border-color:rgba(255,255,255,.085)!important;
    background:rgba(255,255,255,.040)!important;
    color:rgba(238,242,247,.58)!important;
  }

  body.single-product .hg-v138-product-page .ps-btn:hover{
    border-color:rgba(17,24,39,.17)!important;
    background:rgba(17,24,39,.065)!important;
    color:rgba(17,24,39,.82)!important;
  }

  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-btn:hover{
    border-color:rgba(255,255,255,.18)!important;
    background:rgba(255,255,255,.065)!important;
    color:rgba(255,255,255,.88)!important;
  }

  body.single-product .hg-v138-product-page .ps-btn.active,
  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .ps-btn.active{
    border-color:var(--hg-product-accent-border)!important;
    background:var(--hg-product-accent-soft)!important;
    color:var(--hg-product-accent)!important;
    box-shadow:inset 0 0 0 1px var(--hg-product-accent-border-2)!important;
  }

  body.single-product .hg-v138-product-page .ps-btn.active::before{
    content:""!important;
    width:6px!important;
    height:6px!important;
    display:inline-block!important;
    flex:0 0 auto!important;
    border-radius:999px!important;
    background:currentColor!important;
    box-shadow:none!important;
  }

  body.single-product .hg-v138-product-page .price-group{
    flex:0 0 132px!important;
    min-width:132px!important;
    padding:0 0 0 20px!important;
    margin:0!important;
    align-self:center!important;
    border-left:1px solid rgba(17,24,39,.08)!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    gap:3px!important;
  }

  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .price-group{
    border-left-color:rgba(255,255,255,.085)!important;
  }

  body.single-product .hg-v138-product-page .price-lbl{
    font-size:10px!important;
    font-weight:800!important;
    line-height:1.2!important;
    color:rgba(17,24,39,.34)!important;
  }

  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .price-lbl{
    color:rgba(238,242,247,.32)!important;
  }

  body.single-product .hg-v138-product-page .price-val{
    font-size:28px!important;
    line-height:1.05!important;
    font-weight:950!important;
    letter-spacing:-.45px!important;
    color:var(--hg-product-price)!important;
  }

  body.single-product .hg-v138-product-page .price-unit{
    font-size:11px!important;
    font-weight:600!important;
    color:rgba(17,24,39,.42)!important;
  }

  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .price-unit{
    color:rgba(238,242,247,.38)!important;
  }

  body.single-product .hg-v138-product-page .buy-offers,
  body.single-product .hg-v138-product-page .unavailable-note{
    position:absolute!important;
    transform:translateY(34px)!important;
    justify-content:center!important;
    width:132px!important;
    margin:0!important;
  }

  body.single-product .hg-v138-product-page .add-btn{
    flex:0 0 176px!important;
    width:176px!important;
    min-width:176px!important;
    height:52px!important;
    min-height:52px!important;
    margin:0!important;
    margin-inline-start:auto!important;
    padding:0 24px!important;
    border-radius:12px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    font-size:15px!important;
    font-weight:900!important;
    letter-spacing:-.1px!important;
    background:linear-gradient(135deg,var(--hg-product-cta-bg),var(--hg-product-cta-bg-2))!important;
    color:var(--hg-product-cta-text)!important;
    box-shadow:0 14px 34px rgba(17,24,39,.14)!important;
  }

  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .add-btn{
    box-shadow:0 16px 42px rgba(0,0,0,.30)!important;
  }

  body.single-product .hg-v138-product-page .add-btn:hover{
    transform:translateY(-1px)!important;
    box-shadow:0 18px 42px rgba(17,24,39,.18)!important;
  }

  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .add-btn:hover{
    box-shadow:0 20px 48px rgba(0,0,0,.36)!important;
  }

  body.single-product .hg-v138-product-page .tabs-section{
    border-top:0!important;
  }

  body.single-product .hg-v138-product-page .tabs-bar{
    min-height:58px!important;
    justify-content:center!important;
    gap:46px!important;
    border-bottom-color:rgba(17,24,39,.08)!important;
  }

  html[data-hg-theme="dark"] body.single-product .hg-v138-product-page .tabs-bar{
    border-bottom-color:rgba(255,255,255,.07)!important;
  }

  body.single-product .hg-v138-product-page .tab-btn{
    padding:18px 6px 16px!important;
    font-size:13px!important;
  }
}

@media (max-width:900px){
  body.single-product .hg-v138-product-page .hg-variation-panel{
    display:grid!important;
  }
  body.single-product .hg-v138-product-page .hg-buy-panel{
    display:flex!important;
  }
}

/* HastiGem v165 — product page background and hero grid offset */
body.single-product,
html[data-hg-theme="light"] body.single-product,
html[data-hg-theme="dark"] body.single-product{
  background:var(--hg-shop-page-bg,#f6f6f2)!important;
  background-color:var(--hg-shop-page-bg,#f6f6f2)!important;
  overflow-x:hidden!important;
}
html[data-hg-theme="dark"] body.single-product{
  background:var(--hg-shop-page-bg,#0f131a)!important;
  background-color:var(--hg-shop-page-bg,#0f131a)!important;
}
body.single-product .pp,
body.single-product .pv{
  background:var(--hg-shop-page-bg,#f6f6f2)!important;
  background-color:var(--hg-shop-page-bg,#f6f6f2)!important;
}
html[data-hg-theme="dark"] body.single-product .pp,
html[data-hg-theme="dark"] body.single-product .pv{
  background:var(--hg-shop-page-bg,#0f131a)!important;
  background-color:var(--hg-shop-page-bg,#0f131a)!important;
}
body.single-product .pp-hero,
body.single-product .pv-hero{
  background:transparent!important;
  background-color:transparent!important;
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
body.single-product .pp-hero::before,
body.single-product .pv-hero::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:92px 0 0!important;
  opacity:.80!important;
  pointer-events:none!important;
  background-image:linear-gradient(rgba(15,19,26,.024) 1px,transparent 1px),linear-gradient(90deg,rgba(15,19,26,.024) 1px,transparent 1px)!important;
  background-size:52px 52px!important;
}
html[data-hg-theme="dark"] body.single-product .pp-hero::before,
html[data-hg-theme="dark"] body.single-product .pv-hero::before{
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px)!important;
}
body.single-product .pp-hero .pp-container,
body.single-product .pv-hero .pv-container{
  position:relative!important;
  z-index:1!important;
}
@media(max-width:781px){
  body.single-product .pp-hero::before,
  body.single-product .pv-hero::before{
    inset:74px 0 0!important;
  }
}


/* HastiGem v166 — product page and hero fallback */
body.single-product .pp,
body.single-product .pv{
  background:var(--hg-shop-page-bg,#f6f6f2)!important;
  background-color:var(--hg-shop-page-bg,#f6f6f2)!important;
}
html[data-hg-theme="dark"] body.single-product .pp,
html[data-hg-theme="dark"] body.single-product .pv{
  background:var(--hg-shop-page-bg,#0f131a)!important;
  background-color:var(--hg-shop-page-bg,#0f131a)!important;
}
body.single-product .pp-hero,
body.single-product .pv-hero{
  background:transparent!important;
  background-color:transparent!important;
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
body.single-product .pp-hero::before,
body.single-product .pv-hero::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:92px 0 0!important;
  opacity:.80!important;
  pointer-events:none!important;
  background-image:linear-gradient(rgba(15,19,26,.024) 1px,transparent 1px),linear-gradient(90deg,rgba(15,19,26,.024) 1px,transparent 1px)!important;
  background-size:52px 52px!important;
}
html[data-hg-theme="dark"] body.single-product .pp-hero::before,
html[data-hg-theme="dark"] body.single-product .pv-hero::before{
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px)!important;
}
body.single-product .pp-hero .pp-container,
body.single-product .pv-hero .pv-container{
  position:relative!important;
  z-index:1!important;
}
@media(max-width:781px){
  body.single-product .pp-hero::before,
  body.single-product .pv-hero::before{
    inset:74px 0 0!important;
  }
}

/* HastiGem v171 — day/night product images inside custom product page orb */
body.single-product .pp-orb-card .hg-product-orb-media,
body.single-product .pv-orb-card .hg-product-orb-media,
body.single-product .pp-rel-img .hg-product-rel-media,
body.single-product .pv-rel-img .hg-product-rel-media{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:block!important;
  border-radius:inherit!important;
  overflow:hidden!important;
  background:transparent!important;
}
body.single-product .pp-orb-card .hg-product-media-img,
body.single-product .pv-orb-card .hg-product-media-img,
body.single-product .pp-rel-img .hg-product-media-img,
body.single-product .pv-rel-img .hg-product-media-img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:inherit!important;
  background:transparent!important;
  display:block!important;
  transition:opacity .22s ease, visibility .22s ease!important;
}
body.single-product .pp-orb-card .hg-product-media-img--light,
body.single-product .pv-orb-card .hg-product-media-img--light,
body.single-product .pp-rel-img .hg-product-media-img--light,
body.single-product .pv-rel-img .hg-product-media-img--light{
  opacity:1!important;
  visibility:visible!important;
}
body.single-product .pp-orb-card .hg-product-media-img--dark,
body.single-product .pv-orb-card .hg-product-media-img--dark,
body.single-product .pp-rel-img .hg-product-media-img--dark,
body.single-product .pv-rel-img .hg-product-media-img--dark{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
html[data-hg-theme="dark"] body.single-product .pp-orb-card .hg-product-media.has-dark .hg-product-media-img--light,
html[data-hg-theme="dark"] body.single-product .pv-orb-card .hg-product-media.has-dark .hg-product-media-img--light,
html[data-hg-theme="dark"] body.single-product .pp-rel-img .hg-product-media.has-dark .hg-product-media-img--light,
html[data-hg-theme="dark"] body.single-product .pv-rel-img .hg-product-media.has-dark .hg-product-media-img--light{
  opacity:0!important;
  visibility:hidden!important;
}
html[data-hg-theme="dark"] body.single-product .pp-orb-card .hg-product-media.has-dark .hg-product-media-img--dark,
html[data-hg-theme="dark"] body.single-product .pv-orb-card .hg-product-media.has-dark .hg-product-media-img--dark,
html[data-hg-theme="dark"] body.single-product .pp-rel-img .hg-product-media.has-dark .hg-product-media-img--dark,
html[data-hg-theme="dark"] body.single-product .pv-rel-img .hg-product-media.has-dark .hg-product-media-img--dark{
  opacity:1!important;
  visibility:visible!important;
}
body.single-product .pp-orb-card .hg-product-media-fallback,
body.single-product .pv-orb-card .hg-product-media-fallback,
body.single-product .pp-rel-img .hg-product-media-fallback,
body.single-product .pv-rel-img .hg-product-media-fallback{
  position:absolute!important;
  inset:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}


/* HastiGem v172 — prevent day/night product media from escaping its box */
.pcard-img .hg-product-media,
.plist-thumb .hg-product-media,
body.single-product .pp-orb-card .hg-product-media,
body.single-product .pv-orb-card .hg-product-media,
body.single-product .pp-rel-img .hg-product-media,
body.single-product .pv-rel-img .hg-product-media{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  min-width:0!important;
  min-height:0!important;
  display:block!important;
  overflow:hidden!important;
  border-radius:inherit!important;
  contain:layout paint!important;
  transform:none!important;
}
.plist-thumb .hg-product-media{
  position:relative!important;
  inset:auto!important;
}
.pcard-img .hg-product-media-img,
.plist-thumb .hg-product-media-img,
body.single-product .pp-orb-card .hg-product-media-img,
body.single-product .pv-orb-card .hg-product-media-img,
body.single-product .pp-rel-img .hg-product-media-img,
body.single-product .pv-rel-img .hg-product-media-img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  display:block!important;
  overflow:hidden!important;
  border-radius:inherit!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  background-size:cover!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:none!important;
}
body.single-product .pp-orb-card,
body.single-product .pv-orb-card,
body.single-product .pp-rel-img,
body.single-product .pv-rel-img,
.pcard-img,
.plist-thumb{
  overflow:hidden!important;
  contain:layout paint!important;
}
body.single-product .pp-orb-card > img.hg-product-media-img,
body.single-product .pv-orb-card > img.hg-product-media-img,
body.single-product img.hg-product-media-img{
  max-width:100%!important;
  max-height:100%!important;
  transform:none!important;
}
.hg-product-media-img--light{
  opacity:1!important;
  visibility:visible!important;
}
.hg-product-media-img--dark{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
html[data-hg-theme="dark"] .hg-product-media.has-dark .hg-product-media-img--light{
  opacity:0!important;
  visibility:hidden!important;
}
html[data-hg-theme="dark"] .hg-product-media.has-dark .hg-product-media-img--dark{
  opacity:1!important;
  visibility:visible!important;
}


/* HastiGem v173 — day/night image background restore after old transparent background rules */
.pcard-img,
.plist-thumb,
body.single-product .pp-orb-card,
body.single-product .pv-orb-card,
body.single-product .pp-rel-img,
body.single-product .pv-rel-img{
  position:relative!important;
  overflow:hidden!important;
  contain:layout paint!important;
}
.pcard-img .hg-product-media,
.plist-thumb .hg-product-media,
body.single-product .pp-orb-card .hg-product-media,
body.single-product .pv-orb-card .hg-product-media,
body.single-product .pp-rel-img .hg-product-media,
body.single-product .pv-rel-img .hg-product-media{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  min-width:0!important;
  min-height:0!important;
  display:block!important;
  overflow:hidden!important;
  border-radius:inherit!important;
  background:transparent!important;
  transform:none!important;
}
.pcard-img .hg-product-media-img,
.plist-thumb .hg-product-media-img,
body.single-product .pp-orb-card .hg-product-media-img,
body.single-product .pv-orb-card .hg-product-media-img,
body.single-product .pp-rel-img .hg-product-media-img,
body.single-product .pv-rel-img .hg-product-media-img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  display:block!important;
  overflow:hidden!important;
  border-radius:inherit!important;
  background-color:transparent!important;
  background-image:var(--hg-product-media-bg)!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  background-size:cover!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:none!important;
}
.hg-product-media-img--light{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:none!important;
}
.hg-product-media-img--dark{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
html[data-hg-theme="dark"] .hg-product-media.has-dark .hg-product-media-img--light{
  opacity:0!important;
  visibility:hidden!important;
}
html[data-hg-theme="dark"] .hg-product-media.has-dark .hg-product-media-img--dark{
  opacity:1!important;
  visibility:visible!important;
}
html:not([data-hg-theme="dark"]) .hg-product-media.has-dark .hg-product-media-img--light{
  opacity:1!important;
  visibility:visible!important;
}
html:not([data-hg-theme="dark"]) .hg-product-media.has-dark .hg-product-media-img--dark{
  opacity:0!important;
  visibility:hidden!important;
}
body.single-product img.hg-product-media-img{
  max-width:100%!important;
  max-height:100%!important;
  transform:none!important;
}


/* HastiGem v174 — reliable day/night media and transparent product orb */
.pcard-img .hg-product-media,
.plist-thumb .hg-product-media,
body.single-product .pp-orb-card .hg-product-media,
body.single-product .pv-orb-card .hg-product-media,
body.single-product .pp-rel-img .hg-product-media,
body.single-product .pv-rel-img .hg-product-media{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  display:block!important;
  overflow:hidden!important;
  border-radius:inherit!important;
  background:transparent!important;
  contain:layout paint!important;
}
.plist-thumb .hg-product-media{position:relative!important;inset:auto!important;}
.pcard-img .hg-product-media-img,
.plist-thumb .hg-product-media-img,
body.single-product .pp-orb-card .hg-product-media-img,
body.single-product .pv-orb-card .hg-product-media-img,
body.single-product .pp-rel-img .hg-product-media-img,
body.single-product .pv-rel-img .hg-product-media-img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  min-width:0!important;
  min-height:0!important;
  display:block!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:inherit!important;
  background-color:transparent!important;
  background-image:var(--hg-product-media-bg)!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  background-size:cover!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:none!important;
  transition:opacity .18s ease, visibility .18s ease!important;
}
.hg-product-media-img--light{opacity:1!important;visibility:visible!important;display:block!important;z-index:1!important;pointer-events:none!important;}
.hg-product-media-img--dark{opacity:0!important;visibility:hidden!important;display:block!important;z-index:2!important;pointer-events:none!important;}
html[data-hg-theme="dark"] .hg-product-media.has-dark .hg-product-media-img--light,
.hg-product-media.has-dark[data-hg-active-theme="dark"] .hg-product-media-img--light{opacity:0!important;visibility:hidden!important;display:block!important;}
html[data-hg-theme="dark"] .hg-product-media.has-dark .hg-product-media-img--dark,
.hg-product-media.has-dark[data-hg-active-theme="dark"] .hg-product-media-img--dark{opacity:1!important;visibility:visible!important;display:block!important;}
html:not([data-hg-theme="dark"]) .hg-product-media.has-dark .hg-product-media-img--light,
.hg-product-media.has-dark[data-hg-active-theme="light"] .hg-product-media-img--light{opacity:1!important;visibility:visible!important;display:block!important;}
html:not([data-hg-theme="dark"]) .hg-product-media.has-dark .hg-product-media-img--dark,
.hg-product-media.has-dark[data-hg-active-theme="light"] .hg-product-media-img--dark{opacity:0!important;visibility:hidden!important;display:block!important;}
body.single-product .pp-orb-card.hg-orb-clean,
body.single-product .pv-orb-card.hg-orb-clean{
  background:transparent!important;
  background-color:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body.single-product .pp-orb-card.hg-orb-clean .hg-product-media,
body.single-product .pv-orb-card.hg-orb-clean .hg-product-media{
  overflow:visible!important;
  contain:none!important;
}
body.single-product .pp-orb-card.hg-orb-clean .hg-product-media-img,
body.single-product .pv-orb-card.hg-orb-clean .hg-product-media-img{
  background-size:contain!important;
  border-radius:0!important;
  filter:drop-shadow(0 18px 34px rgba(var(--pp-accent-rgb,103,232,249),.18));
}


/* HastiGem v175 — definitive archive/product day-night media */
.hg-product-media-bg{
  background-image:var(--hg-product-media-light)!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  background-size:contain!important;
  background-color:transparent!important;
}
html[data-hg-theme="dark"] .hg-product-media-bg.has-dark,
.hg-product-media-bg.has-dark[data-hg-active-theme="dark"]{
  background-image:var(--hg-product-media-dark)!important;
}
html:not([data-hg-theme="dark"]) .hg-product-media-bg.has-dark,
.hg-product-media-bg.has-dark[data-hg-active-theme="light"]{
  background-image:var(--hg-product-media-light)!important;
}

/* archive/shop/category cards: no forced square behind transparent PNG/WebP */
.pcard-img.hg-card-media-shell,
.plist-thumb.hg-card-media-shell,
.pcard-img:has(.hg-product-media-bg),
.plist-thumb:has(.hg-product-media-bg){
  position:relative!important;
  overflow:hidden!important;
  background:transparent!important;
  background-color:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  contain:layout paint!important;
}
.pcard-img.hg-card-media-shell .hg-product-media-bg,
.plist-thumb.hg-card-media-shell .hg-product-media-bg,
.pcard-img:has(.hg-product-media-bg) .hg-product-media-bg,
.plist-thumb:has(.hg-product-media-bg) .hg-product-media-bg{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  display:block!important;
  background-size:contain!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  z-index:1!important;
}
.plist-thumb.hg-card-media-shell .hg-product-media-bg,
.plist-thumb:has(.hg-product-media-bg) .hg-product-media-bg{
  position:absolute!important;
  inset:0!important;
}

/* product page transparent PNG/WebP: remove inner square/frame around orb media only */
body.single-product .hg-product-orb-shell,
body.single-product .pp-orb-card.hg-product-orb-shell,
body.single-product .pv-orb-card.hg-product-orb-shell,
body.single-product .pp-orb-card:has(.hg-product-media-bg),
body.single-product .pv-orb-card:has(.hg-product-media-bg){
  background:transparent!important;
  background-color:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body.single-product .hg-product-orb-shell .hg-product-media-bg,
body.single-product .pp-orb-card:has(.hg-product-media-bg) .hg-product-media-bg,
body.single-product .pv-orb-card:has(.hg-product-media-bg) .hg-product-media-bg{
  background-size:contain!important;
}

/* active image layers, kept for browsers that prefer the layer instead of wrapper bg */
.hg-product-media-bg .hg-product-media-img{
  background-image:var(--hg-product-media-bg)!important;
  background-size:contain!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  background-color:transparent!important;
}
.hg-product-media-bg .hg-product-media-img--light{
  opacity:1!important;
  visibility:visible!important;
  z-index:1!important;
}
.hg-product-media-bg .hg-product-media-img--dark{
  opacity:0!important;
  visibility:hidden!important;
  z-index:2!important;
}
html[data-hg-theme="dark"] .hg-product-media-bg.has-dark .hg-product-media-img--light,
.hg-product-media-bg.has-dark[data-hg-active-theme="dark"] .hg-product-media-img--light{
  opacity:0!important;
  visibility:hidden!important;
}
html[data-hg-theme="dark"] .hg-product-media-bg.has-dark .hg-product-media-img--dark,
.hg-product-media-bg.has-dark[data-hg-active-theme="dark"] .hg-product-media-img--dark{
  opacity:1!important;
  visibility:visible!important;
}
html:not([data-hg-theme="dark"]) .hg-product-media-bg.has-dark .hg-product-media-img--light,
.hg-product-media-bg.has-dark[data-hg-active-theme="light"] .hg-product-media-img--light{
  opacity:1!important;
  visibility:visible!important;
}
html:not([data-hg-theme="dark"]) .hg-product-media-bg.has-dark .hg-product-media-img--dark,
.hg-product-media-bg.has-dark[data-hg-active-theme="light"] .hg-product-media-img--dark{
  opacity:0!important;
  visibility:hidden!important;
}


/* HastiGem v176 — Standalone Categories Page */@media(max-width:768px){

  .mobile-nav-inner{justify-content:space-between}

  .mnav-item{flex:1;min-width:0;padding:7px 6px}

  .mnav-item svg{width:20px;height:20px}

  .mnav-label{font-size:9.5px}
}


/* HastiGem v177 — categories page sync with uploaded reference */

/* v1.1.262 — بلاکِ هدرِ مخصوصِ صفحهٔ دسته‌بندی (v177) حذف شد؛ هدر از استایلِ عمومی استفاده می‌کند. */

/* mobile layout matched closer to uploaded page */


/* HastiGem v178 — closer to uploaded dark categories reference */

/* v1.1.262 — بلاکِ هدرِ مخصوصِ صفحهٔ دسته‌بندی (v178) حذف شد؛ هدر از استایلِ عمومی استفاده می‌کند. */

/* Hero */

/* Feature strip */

/* Section */

/* Category grid/cards */

/* CTA */

/* Mobile matching uploaded reference */

/* bottom mobile nav on the categories page */


/* HastiGem v180 — fix categories day/night colors and use only the existing search box */

/* v1.1.262 — بلاکِ هدرِ مخصوصِ صفحهٔ دسته‌بندی (v180) حذف شد؛ هدر از استایلِ عمومی استفاده می‌کند. */

/* light mode visual details */

/* remove the extra v179 search card completely if cache leaves markup behind */

/* single existing product search box inside the toolbar */

/* bottom mobile nav also follows theme */


/* HastiGem v181 — category page uses theme teal/cyan, no purple, no footer rectangle */

/* remove page/blog leftovers that created the rectangle/gap below footer */

/* active desktop/mobile menu in theme colors */

/* teal/cyan overrides for all previously-purple category UI */


/* HastiGem v182 — remove top rectangle and use homepage dark colors */

/* Light mode remains HastiGem neutral/green */

/* Dark mode copied from homepage palette: neutral black/gray + green accent, no blue/cyan/purple */

/* v1.1.262 — بلاکِ هدرِ مخصوصِ صفحهٔ دسته‌بندی (v182) حذف شد؛ هدر از استایلِ عمومی استفاده می‌کند. */

/* Main category visuals: all accents neutral/green */

/* Hero should be clean; no rectangular strip immediately after it */

/* Footer and bottom area: no extra rectangle/gap */


/* HastiGem v183 — final: top rectangle is removed from template, keep CSS fallback */

/* colors from homepage: dark = neutral black/gray + green accent, not cyan/blue */

/* remove blue/cyan visual residue in buttons, tags, arrows, hover rings */

/* v1.1.262 — بلاکِ هدرِ v183 حذف شد (هدر از استایلِ عمومی)؛ فقط تنظیمِ فوترِ زیر نگه داشته شد. */


/* HastiGem v184 — real fix for the top rectangle: the full-width site-header shell is removed */
/* v1.1.262 — بلاکِ هدرِ v184 حذف شد. این بلاک `.site-header` را absolute/شفاف و `.header-inner`
   را کادرِ شیشه‌ایِ مستطیلی (backdrop:blur18) می‌کرد = ریشهٔ اصلیِ «کادرِ دورِ هدر». حالا هدر پیش‌فرض است. */

/* v184 restores the section that was removed, but without a full-width rectangle */

/* keep dark page colors aligned with the homepage: black/gray + green, no cyan/blue */


/* HastiGem v185 — polish categories toolbar + support CTA */

/* Header of category grid: cleaner spacing between title, search, and tabs */

/* Product search: make it feel like part of the same glass/pill system */

/* Sort tabs: one unified segmented control instead of separate buttons */

/* CTA: remove the generic box feel and turn it into a branded support panel */

/* Mobile polish */


/* HastiGem v186 — desktop responsive search/toolbar fix */


/* Cart component colors aligned with the shared site theme. */
html[data-hg-theme="light"] body.woocommerce-cart .hcart-title-row h1,
html[data-hg-theme="light"] body.woocommerce-cart .hg-cart-title{
  color:#17181b!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .hcart-title-row p,
html[data-hg-theme="light"] body.woocommerce-cart .hg-cart-subtitle{
  color:#687078!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .hcart-item,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-summary,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-empty{
  background:rgba(255,255,255,.76)!important;
  border-color:rgba(23,24,27,.075)!important;
  box-shadow:0 16px 42px rgba(20,23,28,.055)!important;
  color:#17181b!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .hcart-summary{
  background:rgba(255,255,255,.72)!important;
  backdrop-filter:blur(18px) saturate(1.04)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.04)!important;
  border-color:rgba(255,255,255,.92)!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .hcart-thumb,
html[data-hg-theme="light"] body.woocommerce-cart .hg-item-img{
  background:linear-gradient(145deg,#fffef8,#f0f5ef)!important;
  border-color:rgba(15,118,110,.10)!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .hcart-name,
html[data-hg-theme="light"] body.woocommerce-cart .hg-item-title,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-summary-head h2,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-summary-line strong,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-line-total,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-line-total .amount,
html[data-hg-theme="light"] body.woocommerce-cart .wc-block-components-product-name{
  color:#17181b!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .hcart-unit-price,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-unit-price ins,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-total-box strong,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-discount strong,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-trust{
  color:#0f766e!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .hcart-chip,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-meta .variation > *,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-summary-head span{
  background:rgba(255,255,255,.70)!important;
  border-color:rgba(23,24,27,.075)!important;
  color:#687078!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .hcart-chip-green{
  background:rgba(15,118,110,.085)!important;
  border-color:rgba(15,118,110,.14)!important;
  color:#0f766e!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .hcart-qty-control,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-qty-input,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-coupon input{
  background:rgba(255,255,255,.78)!important;
  border-color:rgba(23,24,27,.095)!important;
  color:#17181b!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .hcart-qty-btn,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-back-shop{
  background:rgba(255,255,255,.68)!important;
  color:#17181b!important;
  border-color:rgba(23,24,27,.08)!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .hcart-qty-btn:hover,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-coupon button,
html[data-hg-theme="light"] body.woocommerce-cart .hcart-update{
  background:rgba(15,118,110,.095)!important;
  border-color:rgba(15,118,110,.16)!important;
  color:#0f766e!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .hcart-total-box{
  background:linear-gradient(145deg,rgba(15,118,110,.095),rgba(255,255,255,.58))!important;
  border-color:rgba(15,118,110,.14)!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .hcart-checkout,
html[data-hg-theme="light"] body.woocommerce-cart .wc-block-cart__submit-button,
html[data-hg-theme="light"] body.woocommerce-cart .wc-block-components-button{
  background:linear-gradient(145deg,#17181b,#24272c)!important;
  color:#fff!important;
  border-color:rgba(23,24,27,.08)!important;
}

/* Keep dark cart components on the shared black/green system. */
html[data-hg-theme="dark"] body.woocommerce-cart .hcart-item,
html[data-hg-theme="dark"] body.woocommerce-cart .hcart-summary,
html[data-hg-theme="dark"] body.woocommerce-cart .hcart-empty{
  background:linear-gradient(145deg,rgba(26,31,40,.86),rgba(18,23,31,.86))!important;
  border-color:rgba(255,255,255,.10)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.30)!important;
}
html[data-hg-theme="dark"] body.woocommerce-cart .hcart-checkout,
html[data-hg-theme="dark"] body.woocommerce-cart .wc-block-cart__submit-button,
html[data-hg-theme="dark"] body.woocommerce-cart .wc-block-components-button{
  background:linear-gradient(145deg,#2c3949,#222d3b)!important;
  color:#f4f7fb!important;
  border:1px solid rgba(255,255,255,.08)!important;
}

/* Woo Cart Block fallback — when the block renderer appears instead of the custom cart */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wp-block-woocommerce-cart *{
  font-family:'Vazirmatn',system-ui,sans-serif!important;
}
html[data-hg-theme="light"] body.woocommerce-cart .wp-block-woocommerce-cart,
html[data-hg-theme="light"] body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar,
html[data-hg-theme="light"] body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items,
html[data-hg-theme="light"] body.woocommerce-cart .wc-block-components-totals-wrapper{
  background:transparent!important;
  color:#17181b!important;
}
html[data-hg-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-cart,
html[data-hg-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar,
html[data-hg-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items,
html[data-hg-theme="dark"] body.woocommerce-cart .wc-block-components-totals-wrapper{
  background:transparent!important;
  color:#eef2f7!important;
}
@media(max-width:781px){
  body.woocommerce-cart .hcart-container{
    padding-bottom:calc(var(--hg-mobile-nav-real,68px) + env(safe-area-inset-bottom,0px) + 34px)!important;
  }
}


/* Checkout page background: body owns the page surface; full-page wrappers stay transparent. */
body.woocommerce-checkout,
body.woocommerce-checkout.hastigem-theme{
  --hco-bg:#f6f6f2;
  --hco-bg-2:#f6f6f2;
  --hco-surface:rgba(255,255,255,.68);
  --hco-surface-2:rgba(255,255,255,.50);
  --hco-surface-3:rgba(255,255,255,.34);
  --hco-ink:#17181b;
  --hco-muted:#6d7277;
  --hco-line:rgba(23,24,27,.08);
  --hco-line-soft:rgba(23,24,27,.05);
  --hco-shadow:0 22px 56px rgba(20,23,28,.06);
  --hco-shadow-soft:0 10px 24px rgba(20,23,28,.045);
  --hco-solid:#17181b;
  --hco-solid-text:#fff;
  --hco-accent:#34c759;
  --hco-accent-deep:#17823f;
  --hco-highlight:rgba(23,24,27,.08);
  background:#f6f6f2!important;
  color:var(--hco-ink)!important;
}
html[data-hg-theme="dark"] body.woocommerce-checkout{
  --hco-bg:#0d1015;
  --hco-bg-2:#10141b;
  --hco-surface:rgba(26,31,40,.72);
  --hco-surface-2:rgba(31,37,47,.65);
  --hco-surface-3:rgba(255,255,255,.06);
  --hco-ink:#eef2f7;
  --hco-muted:#a2adba;
  --hco-line:rgba(255,255,255,.09);
  --hco-line-soft:rgba(255,255,255,.05);
  --hco-shadow:0 24px 64px rgba(0,0,0,.28);
  --hco-shadow-soft:0 10px 26px rgba(0,0,0,.22);
  --hco-solid:#eef2f7;
  --hco-solid-text:#11161d;
  --hco-accent:#3ddc84;
  --hco-accent-deep:#3ddc84;
  --hco-highlight:rgba(255,255,255,.10);
  background:#0f131a!important;
  color:var(--hco-ink)!important;
}
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .hastigem-checkout-page,
body.woocommerce-checkout .wc-page-wrap,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout .woocommerce{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  color:var(--hco-ink)!important;
}
body.woocommerce-checkout .hastigem-checkout-page{
  position:relative;
  overflow:hidden;
  min-height:calc(100vh - var(--header-h,72px));
}
body.woocommerce-checkout .hcheckout-container{
  position:relative;
  z-index:1;
  background:transparent;
}
body.woocommerce-checkout .hcheckout-head h1,
body.woocommerce-checkout .hcheckout-card-head h2,
body.woocommerce-checkout .hcheckout-summary-head h2,
body.woocommerce-checkout .hcheckout-order-name,
body.woocommerce-checkout .hcheckout-summary-line strong,
body.woocommerce-checkout .hcheckout-empty h1,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-Price-amount{
  color:var(--hco-ink)!important;
}
body.woocommerce-checkout .hcheckout-head p,
body.woocommerce-checkout .hcheckout-card-head p,
body.woocommerce-checkout .hcheckout-form-grid label,
body.woocommerce-checkout .hcheckout-order-meta,
body.woocommerce-checkout .hcheckout-summary-line,
body.woocommerce-checkout .hcheckout-terms-note,
body.woocommerce-checkout .hcheckout-order-data,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
body.woocommerce-checkout .woocommerce-privacy-policy-text,
body.woocommerce-checkout .hcheckout-empty p{
  color:var(--hco-muted)!important;
}
body.woocommerce-checkout .hcheckout-steps,
body.woocommerce-checkout .hcheckout-card,
body.woocommerce-checkout .hcheckout-summary,
body.woocommerce-checkout .hcheckout-empty,
body.woocommerce-checkout .woocommerce-form-login,
body.woocommerce-checkout .woocommerce-form-coupon{
  background:var(--hco-surface)!important;
  border:1px solid var(--hco-line)!important;
  box-shadow:var(--hco-shadow)!important;
  color:var(--hco-ink)!important;
  backdrop-filter:blur(18px) saturate(180%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(180%)!important;
}
body.woocommerce-checkout .hcheckout-card-icon,
body.woocommerce-checkout .hcheckout-step.active,
body.woocommerce-checkout .hcheckout-empty-icon{
  background:rgba(52,199,89,.12)!important;
  color:var(--hco-accent)!important;
  border:1px solid rgba(52,199,89,.16)!important;
}
body.woocommerce-checkout .hcheckout-step,
body.woocommerce-checkout .hcheckout-summary-head span,
body.woocommerce-checkout .hcheckout-digital-box > span{
  background:var(--hco-surface-2)!important;
  color:var(--hco-muted)!important;
  border:1px solid var(--hco-line-soft)!important;
}
body.woocommerce-checkout .hcheckout-step.done{
  color:var(--hco-ink)!important;
}
body.woocommerce-checkout .hcheckout-step.done span{
  background:var(--hco-solid)!important;
  color:var(--hco-solid-text)!important;
}
body.woocommerce-checkout .hcheckout-step.active span{
  background:var(--hco-accent)!important;
  color:var(--hco-solid-text)!important;
}
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-step.active span,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-card:hover .hcheckout-card-icon{
  color:#11161d!important;
}
body.woocommerce-checkout .hcheckout-form-grid input.input-text,
body.woocommerce-checkout .hcheckout-form-grid input[type="text"],
body.woocommerce-checkout .hcheckout-form-grid input[type="email"],
body.woocommerce-checkout .hcheckout-form-grid input[type="tel"],
body.woocommerce-checkout .hcheckout-form-grid input[type="number"],
body.woocommerce-checkout .hcheckout-form-grid input[type="password"],
body.woocommerce-checkout .hcheckout-form-grid input[type="url"],
body.woocommerce-checkout .hcheckout-form-grid textarea,
body.woocommerce-checkout .hcheckout-form-grid select,
body.woocommerce-checkout .select2-container .select2-selection--single,
body.woocommerce-checkout .hcheckout-coupon input,
body.woocommerce-checkout .input-text,
body.woocommerce-checkout textarea,
body.woocommerce-checkout select{
  background:var(--hco-bg-2)!important;
  border:1px solid var(--hco-line)!important;
  color:var(--hco-ink)!important;
  box-shadow:none!important;
}
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid input.input-text,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid input[type="text"],
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid input[type="email"],
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid input[type="tel"],
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid input[type="number"],
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid input[type="password"],
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid input[type="url"],
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid textarea,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid select,
html[data-hg-theme="dark"] body.woocommerce-checkout .select2-container .select2-selection--single,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-coupon input,
html[data-hg-theme="dark"] body.woocommerce-checkout .input-text,
html[data-hg-theme="dark"] body.woocommerce-checkout textarea,
html[data-hg-theme="dark"] body.woocommerce-checkout select{
  background:rgba(16,20,27,.78)!important;
  border-color:var(--hco-line)!important;
  color:var(--hco-ink)!important;
}
body.woocommerce-checkout .hcheckout-form-grid input:focus,
body.woocommerce-checkout .hcheckout-form-grid textarea:focus,
body.woocommerce-checkout .hcheckout-form-grid select:focus,
body.woocommerce-checkout .select2-container--open .select2-selection--single,
body.woocommerce-checkout .hcheckout-coupon input:focus{
  border-color:rgba(52,199,89,.38)!important;
  box-shadow:0 0 0 4px rgba(52,199,89,.10)!important;
}
body.woocommerce-checkout .hcheckout-form-grid ::placeholder,
body.woocommerce-checkout .input-text::placeholder,
body.woocommerce-checkout textarea::placeholder{
  color:color-mix(in srgb,var(--hco-muted) 62%, transparent)!important;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered{
  color:var(--hco-ink)!important;
}
body.woocommerce-checkout .hcheckout-digital-box,
body.woocommerce-checkout .hcheckout-total-box,
body.woocommerce-checkout .hcheckout-payment-inside #payment ul.payment_methods li:has(input:checked),
body.woocommerce-checkout .hcheckout-payment-inside #payment ul.payment_methods li.wc_payment_method.payment_method_selected{
  background:linear-gradient(145deg,rgba(52,199,89,.10),var(--hco-surface-2))!important;
  border-color:rgba(52,199,89,.18)!important;
  color:var(--hco-ink)!important;
}
body.woocommerce-checkout .hcheckout-digital-box h3,
body.woocommerce-checkout .hcheckout-total-box strong,
body.woocommerce-checkout .hcheckout-trust,
body.woocommerce-checkout .hcheckout-discount strong,
body.woocommerce-checkout .hcheckout-discount strong a,
body.woocommerce-checkout .hcheckout-form-grid label .required{
  color:var(--hco-accent-deep)!important;
}
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-digital-box h3,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-total-box strong,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-trust,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-discount strong,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-discount strong a,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid label .required{
  color:var(--hco-accent)!important;
}
body.woocommerce-checkout .hcheckout-order-item,
body.woocommerce-checkout .hcheckout-payment-inside #payment ul.payment_methods li,
body.woocommerce-checkout .hcheckout-payment-inside #payment div.payment_box{
  background:var(--hco-surface-2)!important;
  border-color:var(--hco-line)!important;
  color:var(--hco-muted)!important;
}
body.woocommerce-checkout .hcheckout-order-img{
  background:linear-gradient(145deg,var(--hco-bg-2),var(--hco-surface-2))!important;
  border-color:rgba(52,199,89,.14)!important;
}
body.woocommerce-checkout .hcheckout-summary-line,
body.woocommerce-checkout .hcheckout-card-footer,
body.woocommerce-checkout .hcheckout-order-item + .hcheckout-order-item{
  border-color:var(--hco-line)!important;
}
body.woocommerce-checkout .hcheckout-payment-inside #payment ul.payment_methods li > label,
body.woocommerce-checkout .hcheckout-payment-inside #payment label,
body.woocommerce-checkout .woocommerce-checkout-payment label{
  color:var(--hco-ink)!important;
}
body.woocommerce-checkout .hcheckout-payment-inside #payment ul.payment_methods li > input{
  accent-color:var(--hco-accent)!important;
}
body.woocommerce-checkout .hcheckout-payment-inside #place_order,
body.woocommerce-checkout .hcheckout-mobile-submit,
body.woocommerce-checkout .hcheckout-empty a,
body.woocommerce-checkout .hcheckout-coupon button,
body.woocommerce-checkout button.button,
body.woocommerce-checkout .button.alt{
  background:var(--hco-solid)!important;
  color:var(--hco-solid-text)!important;
  border:1px solid var(--hco-line)!important;
  box-shadow:var(--hco-shadow-soft)!important;
}
body.woocommerce-checkout .hcheckout-coupon button,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message{
  background:rgba(52,199,89,.10)!important;
  border-color:rgba(52,199,89,.18)!important;
  color:var(--hco-accent-deep)!important;
}
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-coupon button,
html[data-hg-theme="dark"] body.woocommerce-checkout .woocommerce-info,
html[data-hg-theme="dark"] body.woocommerce-checkout .woocommerce-message{
  color:var(--hco-accent)!important;
}
body.woocommerce-checkout .hcheckout-mobile-paybar{
  background:var(--hco-surface)!important;
  border-color:var(--hco-line)!important;
  box-shadow:var(--hco-shadow)!important;
  backdrop-filter:blur(24px) saturate(180%)!important;
  -webkit-backdrop-filter:blur(24px) saturate(180%)!important;
}
body.woocommerce-checkout .hcheckout-mobile-paybar span{color:var(--hco-muted)!important;}
body.woocommerce-checkout .hcheckout-mobile-paybar strong,
body.woocommerce-checkout .hcheckout-mobile-paybar .woocommerce-Price-amount{color:var(--hco-accent-deep)!important;}
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-mobile-paybar strong,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-mobile-paybar .woocommerce-Price-amount{color:var(--hco-accent)!important;}
/* Woo block/classic fallback on checkout */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-checkout-step,
body.woocommerce-checkout .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-panel,
body.woocommerce-checkout .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-components-order-summary__content{
  background:transparent!important;
  color:var(--hco-ink)!important;
  border-color:var(--hco-line)!important;
}
@media(max-width:760px){
  body.woocommerce-checkout .hcheckout-container{
    padding-bottom:calc(var(--hg-mobile-nav-real,68px) + env(safe-area-inset-bottom,0px) + 38px)!important;
  }
}

/* Keep success/active colors on controls only; do not let notices become a wide green background wash */
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-error{
  background:rgba(255,255,255,.62)!important;
  border-color:rgba(23,24,27,.08)!important;
  color:var(--hco-ink)!important;
  box-shadow:0 10px 24px rgba(20,23,28,.045)!important;
}
html[data-hg-theme="dark"] body.woocommerce-checkout .woocommerce-info,
html[data-hg-theme="dark"] body.woocommerce-checkout .woocommerce-message,
html[data-hg-theme="dark"] body.woocommerce-checkout .woocommerce-error{
  background:rgba(26,31,40,.72)!important;
  border-color:rgba(255,255,255,.09)!important;
  color:var(--hco-ink)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.20)!important;
}


/* Cards and forms use homepage surfaces, not standalone tinted backgrounds */
body.woocommerce-checkout .hcheckout-steps,
body.woocommerce-checkout .hcheckout-card,
body.woocommerce-checkout .hcheckout-summary,
body.woocommerce-checkout .hcheckout-empty,
body.woocommerce-checkout .woocommerce-form-login,
body.woocommerce-checkout .woocommerce-form-coupon{
  background:var(--hco-surface)!important;
  border-color:var(--hco-line)!important;
  box-shadow:var(--hco-shadow)!important;
  color:var(--hco-ink)!important;
}
body.woocommerce-checkout .hcheckout-digital-box,
body.woocommerce-checkout .hcheckout-total-box,
body.woocommerce-checkout .hcheckout-order-item,
body.woocommerce-checkout .hcheckout-payment-inside #payment ul.payment_methods li,
body.woocommerce-checkout .hcheckout-payment-inside #payment div.payment_box{
  background:var(--hco-surface-2)!important;
  border-color:var(--hco-line)!important;
  color:var(--hco-ink)!important;
}
body.woocommerce-checkout .hcheckout-step.active,
body.woocommerce-checkout .hcheckout-payment-inside #payment ul.payment_methods li:has(input:checked),
body.woocommerce-checkout .hcheckout-payment-inside #payment ul.payment_methods li.wc_payment_method.payment_method_selected{
  background:var(--hco-surface-2)!important;
  border-color:var(--hco-line)!important;
}
body.woocommerce-checkout .hcheckout-step.active span,
body.woocommerce-checkout .hcheckout-card-icon,
body.woocommerce-checkout .hcheckout-empty-icon{
  background:var(--hco-solid)!important;
  color:var(--hco-solid-text)!important;
}
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-step.active span,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-card-icon,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-empty-icon{
  background:var(--hco-solid)!important;
  color:var(--hco-solid-text)!important;
}

/* Keep green as a tiny accent only, not background wash */
body.woocommerce-checkout .hcheckout-trust,
body.woocommerce-checkout .hcheckout-discount strong,
body.woocommerce-checkout .hcheckout-discount strong a,
body.woocommerce-checkout .hcheckout-form-grid label .required{
  color:var(--hco-accent-deep)!important;
}
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-trust,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-discount strong,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-discount strong a,
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-form-grid label .required{
  color:var(--hco-accent)!important;
}
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-error{
  background:var(--hco-surface)!important;
  border-color:var(--hco-line)!important;
  color:var(--hco-ink)!important;
}


/* HastiGem v194 — custom checkout login redirect card */
body.woocommerce-checkout .hcheckout-auth-redirect{
  width:100%;
  margin:0 0 18px;
  padding:16px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:rgba(255,255,255,.68);
  border:1px solid rgba(23,24,27,.085);
  box-shadow:0 14px 34px rgba(20,23,28,.055);
  color:var(--hco-text,#17181b);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-auth-redirect{
  background:rgba(22,27,35,.66);
  border-color:rgba(255,255,255,.09);
  box-shadow:0 18px 42px rgba(0,0,0,.24);
  color:var(--hco-text,#edf2f7);
}
body.woocommerce-checkout .hcheckout-auth-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
body.woocommerce-checkout .hcheckout-auth-copy strong{
  font-size:14px;
  font-weight:950;
  color:inherit;
}
body.woocommerce-checkout .hcheckout-auth-copy span{
  font-size:12.5px;
  font-weight:700;
  line-height:1.8;
  color:var(--hco-muted,#6f757b);
}
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-auth-copy span{
  color:var(--hco-muted,#a7b0bc);
}
body.woocommerce-checkout .hcheckout-auth-btn{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 18px;
  border-radius:14px;
  color:#fff!important;
  background:var(--hco-accent,#0f766e)!important;
  text-decoration:none!important;
  font-size:13px;
  font-weight:950;
  box-shadow:0 10px 22px rgba(15,118,110,.18);
}
html[data-hg-theme="dark"] body.woocommerce-checkout .hcheckout-auth-btn{
  color:#11161d!important;
  background:var(--hco-accent,#3ddc84)!important;
}
body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout form.woocommerce-form-login.login{
  display:none!important;
}
@media(max-width:680px){
  body.woocommerce-checkout .hcheckout-auth-redirect{
    flex-direction:column;
    align-items:stretch;
    padding:14px;
    border-radius:20px;
  }
  body.woocommerce-checkout .hcheckout-auth-btn{
    width:100%;
  }
}


/* HastiGem v195 — checkout auth fallback card */
.hcheckout-auth-required{
  width:min(760px,100%);
  margin:22px auto 42px!important;
  padding:24px!important;
  border-radius:24px!important;
  border:1px solid rgba(23,24,27,.10)!important;
  background:rgba(255,255,255,.72)!important;
  box-shadow:0 18px 50px rgba(23,24,27,.08)!important;
  display:grid!important;
  gap:10px!important;
  text-align:right!important;
}
.hcheckout-auth-required strong{font-size:18px!important;color:#17181b!important;font-weight:900!important;}
.hcheckout-auth-required span{font-size:13px!important;color:#667085!important;line-height:1.8!important;}
.hcheckout-auth-required a{
  width:max-content!important;
  max-width:100%!important;
  margin-top:6px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:46px!important;
  padding:0 18px!important;
  border-radius:15px!important;
  background:#15171b!important;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:900!important;
}
html[data-hg-theme="dark"] .hcheckout-auth-required{
  border-color:rgba(255,255,255,.10)!important;
  background:rgba(21,24,31,.78)!important;
  box-shadow:0 22px 70px rgba(0,0,0,.30)!important;
}
html[data-hg-theme="dark"] .hcheckout-auth-required strong{color:#f6f7f8!important;}
html[data-hg-theme="dark"] .hcheckout-auth-required span{color:#aab2bd!important;}
html[data-hg-theme="dark"] .hcheckout-auth-required a{background:#f6f7f8!important;color:#111318!important;}
@media(max-width:680px){.hcheckout-auth-required{padding:18px!important;border-radius:20px!important}.hcheckout-auth-required a{width:100%!important}}

/* Hierarchical WooCommerce category drilldown.
   Background ownership lives in categories.css. */
body.hg-product-cat-archive .hasti-categories-nav-link,
body.hg-product-cat-archive .hasti-categories-menu-item > a{
  color:#0f766e!important;
  background:rgba(15,118,110,.10)!important;
}
html[data-hg-theme="dark"] body.hg-product-cat-archive .hasti-categories-nav-link,
html[data-hg-theme="dark"] body.hg-product-cat-archive .hasti-categories-menu-item > a{
  color:#7dd3c7!important;
  background:rgba(20,184,166,.12)!important;
}

/* ═══════════════════════════════════════
   v1.1.200 — Category day/night image
   دو تگ img کنار هم رندر می‌شوند؛ با data-hg-theme روی <html>
   یکی‌شان نمایش داده می‌شود (همان مکانیزم تصاویر روز/شب محصولات).
   ═══════════════════════════════════════ */
/* v1.1.201: کلاس تکرار شده تا specificity از قوانین ۳کلاسه‌ی قدیمی
   (مثل .hg-cat-page.hgcat-v196 .hgtax-orb img{display:block!important})
   بالاتر برود؛ وگرنه تصویر شب در حالت روز هم display:block می‌گیرد. */

/* v1.1.262 — بلاک‌های v251/v253 (که هدر و پیلِ منوی دسکتاپِ صفحهٔ دسته‌بندی را دستی به
   «استاندارد» برمی‌گرداندند) حذف شدند. حالا که همهٔ بلاک‌های مخرّبِ هدر (v177–v184) حذف شده‌اند،
   هدرِ این صفحه به‌طور طبیعی از قانونِ عمومیِ `.site-header` (همان بقیهٔ صفحات) استفاده می‌کند و
   دیگر نیازی به override نیست. */
