.sun-hp{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;opacity:0!important;pointer-events:none}
.sun-auth{max-width:410px;margin:auto;text-align:center}.sun-auth input{width:100%;border:1px solid #dce2ec;border-radius:11px;padding:12px;margin:8px 0;direction:ltr;text-align:center}.sun-auth button{width:100%;margin-top:8px}.sun-auth label{display:block;text-align:right}.sun-auth-feedback{padding:10px;min-height:24px}
.sun-badges{position:absolute;right:10px;top:10px;display:flex;flex-direction:column;gap:5px;z-index:3;align-items:flex-start}.sun-badge{display:inline-block;border-radius:18px;padding:1px 10px;font-size:11px;font-weight:700;color:#fff;background:#6b7385;line-height:1.9}
.sun-badge-sale{background:var(--sun-primary,#ef394e)}.sun-badge-new{background:#16a765}.sun-badge-out{background:#8a92a3}.sun-badge-custom{background:#2a5db0}
.woocommerce ul.products li.product,.woocommerce div.product div.images{position:relative}
.sun-call-price{color:var(--sun-primary,#ef394e);font-weight:700}.sun-call-box{background:#fff6f7;border:1px dashed var(--sun-primary,#ef394e);border-radius:14px;padding:14px;margin:12px 0}
.sun-meta-line{display:flex;flex-wrap:wrap;gap:8px 18px;color:#5b6477;font-size:13px;margin-bottom:8px}.sun-meta-line span{display:inline-flex;align-items:center;gap:4px}.sun-meta-line em{font-style:normal;color:#8a92a3}
.sun-countdown{background:#fff3e0;color:#a14b00;border-radius:12px;padding:8px 14px;margin:10px 0;display:inline-block}.sun-cd-digits{font-weight:800;font-size:17px;margin-right:6px}
.sun-low-stock{color:#c4570c;font-weight:700;display:flex;gap:4px;align-items:center}
.sun-trust{list-style:none;margin:14px 0;padding:0;display:grid;gap:8px}.sun-trust li{display:flex;gap:8px;align-items:center;color:#46506a}.sun-trust .sun-ico{color:#16a765;flex:none}
.sun-share{display:flex;align-items:center;gap:8px;margin:12px 0;color:#5b6477}.sun-share a,.sun-share button{border:1px solid #e1e5ee;background:#fff;border-radius:10px;width:36px;height:36px;display:grid;place-items:center;color:#46506a}
.sun-datasheet{display:flex;gap:8px;flex-wrap:wrap}
.sun-list-btn{border:1px solid #e1e5ee;background:#fff;color:#5b6477;border-radius:10px;min-width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 9px;cursor:pointer}.sun-list-btn:hover{color:var(--sun-primary,#ef394e)}.sun-list-btn.is-active{color:#fff;background:var(--sun-primary,#ef394e);border-color:var(--sun-primary,#ef394e)}.sun-single-tools{display:flex;gap:8px;margin:12px 0}.sun-loop-tools{display:flex;gap:6px;justify-content:center;margin-top:8px}
.sun-compare-wrap{overflow-x:auto}.sun-compare{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;min-width:560px}.sun-compare th,.sun-compare td{border:1px solid #e8ebf2;padding:12px;text-align:center;vertical-align:top}.sun-compare th{background:#f5f7fb;width:130px}.sun-compare td img{max-width:140px;display:block;margin:0 auto 8px}.sun-compare-remove{float:left;border:0;background:#f1f3f8;border-radius:50%;width:26px;height:26px;cursor:pointer}
.sun-notify{background:#f3f7ff;border:1px solid #cfe0ff;border-radius:14px;padding:14px;margin:12px 0}.sun-notify strong{display:flex;gap:6px;align-items:center}.sun-notify-row{display:flex;gap:8px}.sun-notify-row input{flex:1;border:1px solid #cfd6e6;border-radius:10px;padding:9px;text-align:center}.sun-notify-msg.ok{color:#16a765}.sun-notify-msg.bad,.sun-form-msg.bad{color:#d92747}.sun-form-msg.ok{color:#16a765}
.sun-freeship{background:#effaf4;border:1px solid #c6ecd6;border-radius:12px;padding:10px 14px;margin:0 0 14px;font-size:13px}.sun-freeship p{margin:0 0 6px}.sun-freeship-bar{height:8px;background:#d9efe3;border-radius:8px;overflow:hidden}.sun-freeship-bar span{display:block;height:100%;background:#16a765;border-radius:8px;transition:width .4s}
.sun-sticky-atc{position:fixed;bottom:0;left:0;right:0;z-index:95;background:#fff;box-shadow:0 -6px 24px #0002;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 20px}.sun-sticky-atc[hidden]{display:none}.sun-sticky-info{display:flex;gap:10px;align-items:center;min-width:0}.sun-sticky-info img{width:44px;height:44px;object-fit:contain}.sun-sticky-info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46vw}
@media(max-width:600px){.sun-sticky-atc{bottom:62px;padding:8px 12px}}
.sun-form-box{max-width:720px;background:#fff;border-radius:16px;padding:20px;display:grid;gap:12px}.sun-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sun-form-box label{display:grid;gap:4px;font-weight:600}.sun-form-box input,.sun-form-box textarea{border:1px solid #dce2ec;border-radius:10px;padding:10px;font:inherit}@media(max-width:600px){.sun-form-grid{grid-template-columns:1fr}}
.sun-c2c-card{background:#f5f7fb;border-radius:12px;padding:12px;display:grid;gap:4px;margin:8px 0}.sun-c2c-card strong{font-size:19px;letter-spacing:1px}
.sun-c2c-card-visual{background:linear-gradient(135deg,var(--sun-c2c-bg,#17345d),#0d203f);color:#fff;border-radius:18px;padding:16px;gap:14px;box-shadow:0 16px 36px rgba(0,0,0,.16);overflow:hidden;position:relative}
.sun-c2c-head{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.sun-c2c-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700}
.sun-c2c-copy{border:0;background:var(--sun-c2c-accent,#ef394e);color:#fff;border-radius:999px;padding:8px 14px;cursor:pointer;font:inherit;font-size:12px;font-weight:700}
.sun-c2c-media img{display:block;width:100%;max-width:320px;border-radius:14px;object-fit:cover;background:#ffffff10}.sun-c2c-body{display:grid;gap:8px}.sun-c2c-label{font-size:12px;opacity:.82}
.sun-c2c-body strong{font-size:26px;line-height:1.6;color:#fff}.sun-c2c-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13px;opacity:.95}.sun-c2c-meta span{display:inline-flex;align-items:center;gap:4px}
.woocommerce-checkout #ship-to-different-address,.woocommerce-checkout .shipping_address{display:none!important}.woocommerce-billing-fields,.woocommerce-additional-fields{background:#fff;border:1px solid #e8ebf2;border-radius:16px;padding:18px;margin-bottom:16px}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.woocommerce-checkout .form-row-wide{grid-column:1/-1}.woocommerce-checkout .form-row-first,.woocommerce-checkout .form-row-last{width:100%;float:none}
.woocommerce-checkout .form-row{margin-bottom:12px}.woocommerce-checkout .input-text,.woocommerce-checkout select,.woocommerce-checkout textarea{border:1px solid #d7deea;border-radius:12px;padding:11px 12px}.woocommerce-checkout .select2-selection{border:1px solid #d7deea!important;border-radius:12px!important;min-height:44px!important;padding-top:6px}.woocommerce-checkout #order_review_heading,.woocommerce-checkout #order_review{background:#fff;border:1px solid #e8ebf2;border-radius:16px;padding:18px}.woocommerce-checkout #payment{background:#fff;border-radius:14px}
@media(max-width:782px){.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper{grid-template-columns:1fr}.sun-c2c-body strong{font-size:22px}}
.sun-tracking{background:#f3f7ff;border-radius:12px;padding:12px 16px;margin:16px 0}
.sun-float{position:fixed;bottom:22px;z-index:99;display:flex;flex-direction:column;align-items:center;gap:10px}.sun-float-left{left:20px}.sun-float-right{right:20px}.sun-float-toggle{width:54px;height:54px;border-radius:50%;border:0;background:var(--sun-primary,#ef394e);color:#fff;display:grid;place-items:center;box-shadow:0 8px 24px #0003;cursor:pointer}
.sun-float-list{display:none;flex-direction:column;gap:10px}.sun-float.open .sun-float-list{display:flex}.sun-float-list a{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#fff;box-shadow:0 6px 18px #0003}.sun-float-wa{background:#16a765}.sun-float-tg{background:#2a9bd8}.sun-float-tel{background:#182238}
@media(max-width:600px){.sun-float{bottom:84px}}
.sun-totop{position:fixed;bottom:24px;right:20px;z-index:98;width:44px;height:44px;border-radius:50%;border:0;background:#182238;color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px #0003}.sun-totop[hidden]{display:none}@media(max-width:600px){.sun-totop{bottom:84px}}
.sun-toast{position:fixed;bottom:90px;left:50%;transform:translate(-50%,20px);background:#182238;color:#fff;padding:10px 20px;border-radius:30px;opacity:0;pointer-events:none;transition:.25s;z-index:200}.sun-toast.show{opacity:1;transform:translate(-50%,0)}
.sun-recent{margin:30px 0}.sun-sr-all{font-weight:700;color:var(--sun-primary,#ef394e)}
.sun-ok{color:#16a765}.sun-bad{color:#d92747}.sun-ico{vertical-align:middle}



/* =====================================================================
   Sun Suite 2.3 — قیمت، صفحه محصول، شمارنده تعداد، دانلودها، کارت‌به‌کارت
   نکته: انتخابگرها عمداً «body.single-product div.product» هستند؛ نسخه‌های قبلی
   به یک کلاس .woocommerce داخل صفحه نیاز داشتند که در قالب وجود ندارد.
   ===================================================================== */

/* ---- متن مخصوص صفحه‌خوان ---- */
.quantity .screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden;position:absolute!important;word-wrap:normal!important}

/* ---- قیمت: ترتیب ثابت و مستقل از جهت اطراف ---- */
.woocommerce-Price-amount bdi{direction:rtl;unicode-bidi:isolate;white-space:nowrap}
.woocommerce-Price-currencySymbol{font-size:.74em;font-weight:600;opacity:.78}

/* ---- چیدمان صفحه محصول ---- */
body.single-product div.product{position:relative;display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);column-gap:32px;align-items:start;float:none!important;width:100%!important}
body.single-product div.product>*{grid-column:1/-1;min-width:0;float:none!important;clear:none!important}
body.single-product div.product>.sun-badges{position:absolute;grid-column:auto;right:12px;top:12px;z-index:5}
body.single-product div.product>.woocommerce-product-gallery{grid-column:1;grid-row:1;width:100%!important;max-width:300px;margin:0 0 24px!important;padding:12px;box-sizing:border-box;background:#fff;border:1px solid #e8ebf2;border-radius:18px;box-shadow:0 8px 26px rgba(20,33,61,.06)}
body.single-product div.product>.summary{grid-column:2;grid-row:1;width:auto!important;margin:0 0 24px!important;padding:2px 0}
body.single-product div.product .woocommerce-product-gallery__wrapper{margin:0}
body.single-product div.product .woocommerce-product-gallery__image{border-radius:12px;background:#fbfcfe;text-align:center}
body.single-product div.product .woocommerce-product-gallery__image>a{display:block;text-align:center}
body.single-product div.product .woocommerce-product-gallery__image img:not(.zoomImg){display:block;margin:0 auto;width:auto!important;height:auto!important;max-width:100%!important;max-height:250px!important;object-fit:contain}
body.single-product div.product .flex-control-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0!important;padding:0!important;list-style:none}
body.single-product div.product .flex-control-thumbs li{float:none!important;width:58px!important;height:58px;margin:0!important;padding:3px;border:1px solid #e4e8f0;border-radius:10px;background:#fff;box-sizing:border-box;overflow:hidden}
body.single-product div.product .flex-control-thumbs li img{width:100%!important;height:100%!important;object-fit:contain;margin:0!important;cursor:pointer}
body.single-product div.product .woocommerce-product-gallery__trigger{top:14px;left:14px;right:auto;width:34px;height:34px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.14)}

/* ---- عنوان و قیمت ---- */
body.single-product div.product .product_title{font-size:clamp(20px,2.1vw,26px);line-height:1.8;font-weight:800;color:#1d2740;margin:0 0 10px}
body.single-product div.product .summary>.price,
body.single-product div.product .woocommerce-variation-price .price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:12px 0 16px;padding:12px 16px;background:#fafbfd;border:1px solid #edf0f5;border-radius:14px;font-size:24px;font-weight:800;line-height:1.6;color:#111827}
body.single-product div.product .summary>.price ins{order:1;text-decoration:none;color:var(--sun-primary,#ef394e)}
body.single-product div.product .summary>.price del{order:2;font-size:15px;font-weight:500;color:#9aa3b2}
body.single-product div.product .summary>.price .sun-call-price{font-size:19px}
body.single-product div.product .woocommerce-product-details__short-description{font-size:14px;line-height:2;color:#566073;margin:10px 0 16px}

/* ---- فرم خرید: شمارنده و دکمه هم‌قد ---- */
body.single-product div.product form.cart{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;margin:16px 0 18px!important}
body.single-product div.product form.cart>table,body.single-product div.product form.cart .variations,body.single-product div.product form.cart .single_variation_wrap{width:100%}
body.single-product div.product form.cart .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;width:100%}
body.single-product div.product form.cart .variations td,body.single-product div.product form.cart .variations th{display:block;padding:0 0 6px;text-align:right}
body.single-product div.product form.cart .variations select{min-height:44px;border:1px solid #d9e0ea;border-radius:12px;padding:0 12px;width:100%;max-width:340px;background:#fff}
.quantity.sun-qty{display:inline-flex;align-items:stretch;direction:ltr;height:48px;margin:0!important;float:none!important;border:1px solid #d9e0ea;border-radius:12px;background:#fff;overflow:hidden;flex:0 0 auto}
.quantity.sun-qty input.qty{width:46px!important;min-width:0;height:100%!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;text-align:center;font-size:16px;font-weight:700;color:#1d2740;padding:0!important;margin:0!important;-moz-appearance:textfield;appearance:textfield}
.quantity.sun-qty input.qty::-webkit-outer-spin-button,.quantity.sun-qty input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.sun-qty-btn{width:38px;border:0;background:#f5f7fb;color:#38445d;cursor:pointer;display:grid;place-items:center;padding:0;transition:background .15s,color .15s}
.sun-qty-btn:hover{background:var(--sun-primary,#ef394e);color:#fff}
.sun-qty-btn:focus-visible{outline:2px solid var(--sun-primary,#ef394e);outline-offset:-2px}
body.single-product div.product form.cart:not(.sun-qty-ready) .quantity:not(.sun-qty) input.qty{height:48px;width:80px;border:1px solid #d9e0ea;border-radius:12px;text-align:center}
body.single-product div.product form.cart .single_add_to_cart_button{float:none!important;display:inline-flex!important;align-items:center;justify-content:center;gap:8px;flex:1 1 150px;max-width:300px;min-width:140px;width:auto!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0 22px!important;border:0!important;border-radius:12px!important;background:var(--sun-primary,#ef394e)!important;color:#fff!important;font-size:15px!important;font-weight:700!important;line-height:1!important;box-shadow:0 8px 18px rgba(239,57,78,.20);transition:transform .15s,box-shadow .15s,filter .15s}
body.single-product div.product form.cart .single_add_to_cart_button:hover{filter:brightness(.95);transform:translateY(-1px);box-shadow:0 11px 22px rgba(239,57,78,.28)}
body.single-product div.product form.cart .single_add_to_cart_button.disabled,body.single-product div.product form.cart .single_add_to_cart_button:disabled{opacity:.45;box-shadow:none;transform:none}
body.single-product div.product .product_meta{background:#f8fafc;border-radius:12px;padding:12px 16px;font-size:12.5px;line-height:2;color:#66728a}
body.single-product div.product .woocommerce-tabs{padding-top:6px}
body.single-product div.product .woocommerce-tabs .panel{background:#fff;border:1px solid #eef0f5;border-radius:16px;padding:20px;line-height:2}
body.single-product div.product .related,body.single-product div.product .upsells{padding-top:18px}

/* ---- کارت دانلودها (دیتاشیت، آموزش نصب ...) ---- */
.sun-downloads{margin:18px 0;background:#fff;border:1px solid #e6eaf2;border-radius:16px;overflow:hidden;box-shadow:0 4px 16px rgba(20,33,61,.04)}
.sun-dl-head{display:flex;align-items:center;gap:8px;padding:12px 16px;font-weight:800;font-size:14px;color:#1d2740;background:linear-gradient(180deg,#fafbfd,#f3f5fa);border-bottom:1px solid #edf0f5}
.sun-dl-head .sun-ico{color:var(--sun-primary,#ef394e)}
.sun-dl-list{list-style:none;margin:0;padding:0}
.sun-dl-list li+li{border-top:1px solid #f0f2f7}
.sun-dl-item{--dl:#ef394e;--dl-bg:#fff1f3;display:flex;align-items:center;gap:12px;padding:12px 16px;color:inherit;text-decoration:none;transition:background .15s}
.sun-dl-item:hover{background:#fafbfd}
.sun-dl-item[data-ext="pdf"]{--dl:#e5374b;--dl-bg:#fff1f3}
.sun-dl-item[data-ext="zip"],.sun-dl-item[data-ext="rar"],.sun-dl-item[data-ext="7z"]{--dl:#d97706;--dl-bg:#fff6e5}
.sun-dl-item[data-ext="video"],.sun-dl-item[data-ext="mp4"]{--dl:#2563eb;--dl-bg:#eaf1ff}
.sun-dl-item[data-ext="hex"],.sun-dl-item[data-ext="bin"],.sun-dl-item[data-ext="exe"]{--dl:#0f766e;--dl-bg:#e6f7f5}
.sun-dl-ico{flex:none;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--dl-bg);color:var(--dl)}
.sun-dl-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sun-dl-info strong{font-size:14px;font-weight:700;color:#1d2740;line-height:1.7}
.sun-dl-info small{font-size:11.5px;color:#8a93a5;text-align:right}
.sun-dl-btn{flex:none;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;background:var(--dl);color:#fff;font-size:13px;font-weight:700;transition:transform .15s,filter .15s}
.sun-dl-item:hover .sun-dl-btn{filter:brightness(.93);transform:translateY(-1px)}

/* ---- کارت‌به‌کارت (کلاسیک و بلوک) ---- */
.sun-c2c-block p,.sun-c2c p{margin:0 0 10px;line-height:1.9}
.sun-c2c-media img{max-width:100%}
.sun-c2c-ref{margin-top:12px;display:grid;gap:6px}
.sun-c2c-ref label{font-weight:600;font-size:13px}
.sun-c2c-ref input{border:1px solid #d7deea;border-radius:12px;padding:11px 12px;min-height:44px;width:100%;box-sizing:border-box;background:#fff}
.sun-c2c-card-visual .sun-c2c-body strong{font-family:ui-monospace,Menlo,Consolas,monospace;direction:ltr;text-align:left}

@media(max-width:760px){
  body.single-product div.product{grid-template-columns:minmax(0,1fr)}
  body.single-product div.product>.woocommerce-product-gallery,body.single-product div.product>.summary{grid-column:1;grid-row:auto}
  body.single-product div.product>.woocommerce-product-gallery{max-width:280px;margin:0 auto 18px!important}
  body.single-product div.product>.sun-badges{right:10px}
  body.single-product div.product .summary>.price{font-size:21px}
  body.single-product div.product form.cart .single_add_to_cart_button{max-width:none}
  .sun-dl-item{padding:11px 12px}.sun-dl-btn{padding:0 11px}
}

/* بدون زوم هاور روی عکس محصول؛ فقط یک جلوه ملایم و کلیک برای لایت‌باکس */
body.single-product div.product .zoomImg{display:none!important}
body.single-product div.product .woocommerce-product-gallery__image img:not(.zoomImg){transition:transform .25s ease}
body.single-product div.product .woocommerce-product-gallery__image:hover img:not(.zoomImg){transform:scale(1.03)}
body.single-product div.product .woocommerce-product-gallery__image>a{cursor:zoom-in}
