/* قیمت‌گذاری پویا — طبق طرح «طرح‌های قیمت عمده تسلاکالا» */
:root { --tkdp-ink: #060707; --tkdp-mute: #394040; --tkdp-line: #E4E9E9; --tkdp-bg: #F5F6F6; --tkdp-y: #FFD500; --tkdp-y2: #FFF6BF; --tkdp-red: #ED1C24; --tkdp-blue: #2A4ACA; --tkdp-ok: #0B6B3A; --tkdp-okbg: #EAF6EF; }
.tkdp-steps, .tkdp-side, .tkdp-card, .tkdp-lb, .tkdp-pp, .tkdp-pt, .tkdp-cb, .tkdp-pb, .tkdp-tag, .tkdp-ty, .tkdp-dlg, .tkdp-save-row { font-family: 'Estedad-FD', 'Estedad', Tahoma, sans-serif; color: var(--tkdp-ink); }
.tkdp-steps [hidden], .tkdp-card [hidden], .tkdp-bar[hidden] { display: none !important; }

/* buttons */
.tkdp-btn-dark, .tkdp-btn-gold, .tkdp-btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; font: 700 14px/1 inherit; font-family: inherit; text-decoration: none; white-space: nowrap; cursor: pointer; border-radius: 0; }
.tkdp-btn-dark { background: var(--tkdp-ink); color: #fff !important; border: 0; }
.tkdp-btn-gold { background: var(--tkdp-y); color: var(--tkdp-ink); border: 0; }
.tkdp-btn-gold:disabled { opacity: .45; cursor: not-allowed; }
.tkdp-btn-outline { background: #fff; color: var(--tkdp-ink); border: 1.5px solid var(--tkdp-ink); }
.tkdp-link, .tkdp-link-btn { color: var(--tkdp-blue); font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; font-family: inherit; font-size: 13px; cursor: pointer; }
.tkdp-badge { display: inline-block; background: var(--tkdp-red); color: #fff; font-weight: 700; font-size: 12px; padding: 1px 9px; border-radius: 100px; white-space: nowrap; }
.tkdp-badge.is-dark { background: var(--tkdp-ink); }
.tkdp-cb-muted { font-size: 13px; color: var(--tkdp-mute); line-height: 1.8; }
.tkdp-foot-note { font-size: 12px; color: var(--tkdp-mute); margin: 10px 0 0; }

/* archive steps banner */
.tkdp-steps { background: #fff; border: 1px solid var(--tkdp-line); border-radius: 16px; padding: 16px; margin: 0 0 16px; }
.tkdp-steps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.6fr); gap: 12px; align-items: stretch; }
.tkdp-step { padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-radius: 12px; line-height: 1.6; }
.tkdp-step strong { font-size: 15px; font-weight: 800; }
.tkdp-step span { font-size: 13px; color: var(--tkdp-mute); }
.tkdp-step.is-site { background: var(--tkdp-bg); }
.tkdp-step.is-wh { border: 1.5px solid var(--tkdp-ink); }
.tkdp-step.is-pr { background: var(--tkdp-y); flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
.tkdp-step.is-pr > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tkdp-step.is-pr strong { font-size: 16px; font-weight: 900; }
.tkdp-step.is-pr span { color: var(--tkdp-ink); }
.tkdp-step.is-pr .tkdp-btn-dark { border-radius: 10px; min-height: 42px; padding: 0 16px; font-size: 14px; flex-shrink: 0; }
.tkdp-steps-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.tkdp-progress-text { font-size: 14px; font-weight: 700; line-height: 1.7; }
.tkdp-view-switch { display: inline-flex; padding: 3px; gap: 2px; background: var(--tkdp-bg); border-radius: 10px; }
.tkdp-view-switch a { padding: 0 14px; min-height: 34px; display: inline-flex; align-items: center; font-size: 13px; color: var(--tkdp-mute); text-decoration: none; border-radius: 8px; white-space: nowrap; }
.tkdp-view-switch a.is-on { background: #fff; color: var(--tkdp-ink); font-weight: 700; box-shadow: 0 1px 3px rgba(6, 7, 7, .12); }
@media (max-width: 900px) {
  .tkdp-steps-grid { grid-template-columns: 1fr; }
  .tkdp-step.is-pr { flex-wrap: wrap; }
  .tkdp-steps-foot { flex-direction: column; align-items: stretch; }
  .tkdp-view-switch a { flex: 1; justify-content: center; }
}

/* progress bar */
.tkdp-bar { position: relative; margin-top: 12px; }
.tkdp-bar-track { height: 8px; background: var(--tkdp-line); border-radius: 4px; overflow: hidden; }
.tkdp-bar.is-big .tkdp-bar-track { height: 10px; border-radius: 5px; }
.tkdp-bar-fill { display: block; height: 100%; background: var(--tkdp-ink); border-radius: inherit; transition: width .3s; }
.tkdp-mark { position: absolute; top: 50%; width: 4px; height: 18px; margin-right: -2px; transform: translateY(-50%); background: var(--tkdp-y); border: 1px solid var(--tkdp-ink); border-radius: 2px; }
.tkdp-bar-labels { position: relative; height: 22px; font-size: 12px; margin-top: 6px; color: var(--tkdp-mute); }
.tkdp-bar-labels > span { position: absolute; top: 0; white-space: nowrap; }
.tkdp-bar-labels > span:first-child { right: 0; }
.tkdp-bar-l { color: var(--tkdp-ink); font-weight: 700; transform: translateX(50%); }
.tkdp-bar-l.is-q { font-weight: 800; transform: none; }

/* فیلتر «فقط دارای قیمت عمده» — داخل لیست فیلترهای WOOF */
.tkdp-side-filter { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--tkdp-y2); padding: 12px 16px; min-height: 52px; font-size: 14px; font-weight: 700; color: var(--tkdp-ink) !important; text-decoration: none !important; box-sizing: border-box; border-bottom: 1px solid var(--tkdp-line); }
.tkdp-switch { position: relative; width: 36px; height: 20px; border-radius: 10px; background: #CCD5D3; flex: none; transition: background .2s; }
.tkdp-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: right .2s; }
.tkdp-side-filter.is-on .tkdp-switch { background: var(--tkdp-ink); }
.tkdp-side-filter.is-on .tkdp-switch::after { right: 18px; }
#tkdp-wh-filter:not(.is-placed) { margin-bottom: 14px; border-radius: 12px; }

/* card (طرح الف) — داخل .tk_v3_bottom کارت V3؛ سلکتورها با .tk_v3_card تا CSS قالب رویشان ننشیند */
.tk-archive-v2 .tk_v3_card .tkdp-card, .tk_v3_card .tkdp-card { display: flex; flex-direction: column; align-items: stretch; align-self: stretch; gap: 10px; width: 100%; box-sizing: border-box; }
.tk_v3_card .tkdp-card > * { width: 100%; box-sizing: border-box; }
.tk_v3_card .tkdp-card > .tk_v3_fresh { width: auto; }
.tk_v3_card .tkdp-card .tk_v3_fresh { align-self: flex-start; }
.tk_v3_card .tkdp-pay { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; line-height: 1.4; }
.tk_v3_card .tkdp-pay-l { font-size: 14px; font-weight: 700; white-space: nowrap; }
.tk_v3_card .tkdp-pay-v { white-space: nowrap; }
.tk_v3_card .tkdp-pay-v b { font-size: 22px; font-weight: 900; }
.tk_v3_card .tkdp-pay-v small { font-size: 12px; font-weight: 500; margin-right: 4px; }
.tk_v3_card .tkdp-ref { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tkdp-mute); min-height: 22px; line-height: 1.5; }
.tk_v3_card .tkdp-ref-t del { margin-right: 4px; color: var(--tkdp-mute); }
.tk_v3_card .tkdp-tiers { border-top: 1px solid var(--tkdp-line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.tk_v3_card .tkdp-tier { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; color: var(--tkdp-ink); text-decoration: none; line-height: 1.6; }
.tk_v3_card .tkdp-tier[hidden] { display: none; }
.tk_v3_card .tkdp-tier-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tk_v3_card .tkdp-tier-t strong { font-size: 13.5px; font-weight: 800; }
.tk_v3_card .tkdp-tier-t small { font-size: 12px; font-weight: 400; color: var(--tkdp-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk_v3_card .tkdp-tier > b { font-size: 15px; font-weight: 800; white-space: nowrap; }
.tk_v3_card .tkdp-tier.is-q { background: var(--tkdp-y2); padding: 8px 10px; min-height: 48px; }
.tk_v3_card .tkdp-tier.is-q small { color: var(--tkdp-ink); }
.tk_v3_card .tkdp-tier.is-q > b { font-size: 14px; }

/* list builder (طرح ب) */
.tkdp-lb { background: #fff; padding: 16px 18px; border-radius: 12px; }
.tkdp-lb .tkdp-lb-intro { font-size: 13px !important; line-height: 1.9; margin: 0 0 8px; color: var(--tkdp-mute); }
.tkdp-lb-scroll { overflow-x: auto; }
.tkdp-lb .tkdp-lb-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 13px !important; line-height: 1.7; margin: 0; }
.tkdp-lb .tkdp-lb-table th, .tkdp-lb .tkdp-lb-table td { padding: 10px 8px !important; border: 0; border-bottom: 1px solid var(--tkdp-line); text-align: center; vertical-align: middle; font-size: 13px !important; line-height: 1.7 !important; white-space: nowrap; }
.tkdp-lb .tkdp-lb-table thead th { font-size: 12px !important; font-weight: 700; color: var(--tkdp-mute); border-bottom: 1.5px solid var(--tkdp-ink); padding: 8px !important; vertical-align: bottom; }
.tkdp-lb .tkdp-lb-table thead th small { display: block; font-weight: 400; font-size: 10.5px !important; line-height: 1.5; white-space: normal; }
.tkdp-lb .tkdp-lb-table tbody th { text-align: right; font-weight: 500; white-space: normal; min-width: 240px; }
.tkdp-lb .tkdp-lb-table tbody th a { color: var(--tkdp-ink); text-decoration: none; font-size: 13px !important; line-height: 1.7; }
.tkdp-lb .tkdp-lb-table tbody th small, .tkdp-lb .tkdp-lb-table td small { display: block; color: var(--tkdp-mute); font-size: 11px !important; font-weight: 400; }
.tkdp-lb .tkdp-lb-table td b { font-weight: 800; }
.tkdp-lb .tkdp-lb-table .tkdp-badge { display: inline-block; font-size: 10.5px !important; padding: 0 6px; line-height: 18px; margin-inline-start: 4px; }
.tkdp-lb .tkdp-lb-table .is-muted { color: var(--tkdp-mute); text-decoration: line-through; }
.tkdp-lb .tkdp-lb-table tr.is-picked { background: var(--tkdp-y2); }
.tkdp-lb .tkdp-lb-table tr.is-busy { opacity: .6; }
.tkdp-lb .tkdp-qty { display: inline-flex; align-items: center; height: 34px; border: 1px solid #CCD5D3; border-radius: 8px; overflow: hidden; background: #fff; }
.tkdp-lb .tkdp-qty button { width: 32px; height: 34px; min-height: 0; padding: 0 !important; margin: 0; border: 0; border-radius: 0; background: #F4F6F6; color: var(--tkdp-ink); font-size: 16px !important; line-height: 1; cursor: pointer; box-shadow: none; }
.tkdp-lb .tkdp-qty button:hover { background: var(--tkdp-y2); }
.tkdp-lb .tkdp-qty input { width: 40px !important; height: 34px !important; min-height: 0; padding: 0 !important; margin: 0; border: 0 !important; border-radius: 0; background: none; box-shadow: none; text-align: center; font-weight: 700; font-family: 'Estedad-FD', 'Estedad', Tahoma, sans-serif; font-size: 13px !important; }
.tkdp-lb-bar { position: sticky; bottom: 0; background: #fff; border-top: 1.5px solid var(--tkdp-ink); padding: 10px 0 4px; margin-top: 10px; }
.tkdp-lb-bar [data-tkdp-lbmsg] { font-size: 13px !important; font-weight: 700; margin-bottom: 6px; }
@media (max-width: 760px) { .tkdp-lb-bar { grid-template-columns: 1fr; } }

/* product page — داخل .tk_product_action_section_box قالب */
.tk_product_action_section_box .tkdp-pp { display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.tkdp-fresh { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--tkdp-ok); background: var(--tkdp-okbg); padding: 2px 8px; }
.tk_product_action_section_box .tkdp-pp-ref { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--tkdp-mute); }
.tk_product_action_section_box .tkdp-pp-ref del { white-space: nowrap; color: var(--tkdp-mute); }
.tk_product_action_section_box .tkdp-pp-pay { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.tk_product_action_section_box .tkdp-pp-pay b { font-size: 26px; font-weight: 900; margin-right: auto; white-space: nowrap; }
.tk_product_action_section_box .tkdp-pp-pay small { font-size: 13px; font-weight: 500; }

.tkdp-pt { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 6px; padding: 0; box-sizing: border-box; width: 100%; }
.tk_product_action_section_box > .tkdp-pt { padding: 0 16px; }
.tkdp-pt-row { border: 1.5px solid var(--tkdp-ink); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: #fff; box-sizing: border-box; }
.tkdp-pt-row.is-q { background: var(--tkdp-y); border-color: var(--tkdp-y); }
.tkdp-pt-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.5; }
.tkdp-pt-h strong { font-size: 15px; font-weight: 900; }
.tkdp-pt-h b { margin-right: auto; font-size: 17px; font-weight: 900; white-space: nowrap; }
.tkdp-pt-h b small { font-size: 12px; font-weight: 500; }
.tkdp-pt-row p { font-size: 13px; line-height: 1.9; margin: 0; }
.tkdp-pt-actions { display: flex; gap: 8px; margin-top: 4px; }
.tkdp-pt-actions > * { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; }
.tkdp-pt .tkdp-foot-note { font-size: 12px; line-height: 1.8; color: var(--tkdp-mute); margin: 0; padding: 0 2px; }
@media (max-width: 360px) { .tkdp-pt-actions { flex-direction: column; } }

/* cart / checkout */
.tkdp-cb { background: #fff; padding: 18px 22px; margin: 0 0 16px; }
.tkdp-cb.is-ok { border-right: 4px solid var(--tkdp-ok); }
.tkdp-cb.is-warn { border-right: 4px solid var(--tkdp-red); }
.tkdp-cb-title { font-size: 18px; font-weight: 900; }
.tkdp-cb-sub { font-size: 14px; margin-top: 4px; line-height: 1.8; }
.tkdp-pb { background: var(--tkdp-y); padding: 18px 22px; margin: 0 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; line-height: 1.9; }
.tkdp-pb.is-ok { background: var(--tkdp-okbg); }
.tkdp-pb.is-warn { background: var(--tkdp-y2); }
.tkdp-pb-t { font-size: 18px; font-weight: 900; }
.tkdp-pb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tkdp-code { white-space: nowrap; }
.tkdp-code button { border: 1px solid currentColor; background: none; font-family: inherit; font-size: 12px; padding: 1px 8px; cursor: pointer; }
.tkdp-tag { font-size: 12px; color: var(--tkdp-mute); margin-top: 3px; }
.tkdp-tag.is-on { color: var(--tkdp-ink); font-weight: 700; }
.tkdp-tag.is-warn { color: var(--tkdp-red); }
.tkdp-save-row.is-save th, .tkdp-save-row.is-save td { font-weight: 800; color: var(--tkdp-ok); }

/* thank you */
.tkdp-ty { background: #fff; border: 1px solid var(--tkdp-line); padding: 22px; margin: 0 0 18px; text-align: center; line-height: 1.9; }
.tkdp-ty-ic { width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 50%; background: var(--tkdp-y); font-size: 26px; font-weight: 900; display: grid; place-items: center; }
.tkdp-ty h2 { font-size: 20px; margin: 0 0 6px; }
.tkdp-ty p { margin: 2px 0; font-size: 14px; }

/* dialogs */
.tkdp-dlg { width: min(520px, calc(100vw - 32px)); border: 0; padding: 22px; direction: rtl; }
.tkdp-dlg::backdrop { background: rgba(6, 7, 7, .5); }
.tkdp-dlg h2 { font-size: 19px; font-weight: 900; margin: 0 0 6px; }
.tkdp-dlg-x { position: absolute; top: 8px; left: 10px; margin: 0; }
.tkdp-dlg-x button { width: 44px; height: 44px; border: 0; background: none; font-size: 26px; cursor: pointer; }
.tkdp-dlg form[data-tkdp-form] { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.tkdp-dlg label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.tkdp-dlg label small { font-weight: 400; color: var(--tkdp-mute); }
.tkdp-dlg input, .tkdp-dlg textarea { border: 1px solid #CCD5D3; padding: 10px; font-family: inherit; font-size: 14px; border-radius: 0; }
.tkdp-form-msg { font-size: 14px; font-weight: 700; }
.tkdp-form-msg.is-err { color: var(--tkdp-red); }
.tkdp-form-msg.is-ok { color: var(--tkdp-ok); }


/* =========================================================================
   صفحه‌ی محصول — جدول پله‌ها (Figma Product Page 2026-11)
   دسکتاپ: باکس ۱۴/۱۲، ردیف ۳۶، قیمت ۱۶، ردیف بزرگ ۱۸/۶۰۰ — موبایل یک پله کوچک‌تر
   ========================================================================= */
.tkdp-v4--pdp { display: flex; flex-direction: column; align-items: stretch; gap: 16px; width: 100%; direction: rtl; font-family: 'Estedad-FD'; }
.tkdp-v4--pdp .tkdp-v4-fresh { display: inline-flex; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 4px; align-self: flex-end; padding: 0 4px 0 6px; background: none; font-size: 14px; font-weight: 500; line-height: 140%; color: #04724D; }
.tkdp-v4--pdp .tkdp-v4-fresh img { width: 20px; height: 20px; }
.tkdp-v4--pdp .tkdp-v4-panel { display: flex; flex-direction: column; gap: 12px; padding: 14px 12px 12px; background: #FFFFFF; border-radius: 4px; box-shadow: 0 5px 15px -3px rgba(6, 7, 7, .1), 0 0 1px #394040; }
.tkdp-v4--pdp .tkdp-v4-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; line-height: 140%; color: #060707; }
.tkdp-v4--pdp .tkdp-v4-cart { flex: none; order: -1; }
.tkdp-v4--pdp .tkdp-v4-box { display: flex; flex-direction: column; gap: 1px; background: #F5F6F6; border-radius: 4px; overflow: hidden; }
.tkdp-v4--pdp .tkdp-v4-row { display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; padding: 8px 4px; background: #FFFFFF; font-size: 14px; font-weight: 500; line-height: 140%; color: #060707; }
.tkdp-v4--pdp .tkdp-v4-row.is-big { align-items: flex-start; padding: 4px 4px 6px; }
.tkdp-v4--pdp .tkdp-v4-label { flex: 1 1 auto; min-width: 0; padding-top: 2px; text-align: right; }
.tkdp-v4--pdp .tkdp-v4-num { font-size: 16px; font-weight: 500; }
.tkdp-v4--pdp .tkdp-v4-row.is-big .tkdp-v4-num { font-size: 18px; font-weight: 600; }
.tkdp-v4--pdp .tkdp-v4-pricecol { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: none; }
.tkdp-v4--pdp .tkdp-v4-price { display: flex; flex-direction: row-reverse; align-items: center; gap: 2px; }
.tkdp-v4--pdp .tkdp-v4-price .tkdp-v4-pct { margin-left: 6px; }
.tkdp-v4--pdp .tkdp-v4-price small { font-size: 12px; font-weight: 500; color: #394040; }
.tkdp-v4--pdp .tkdp-v4-ref { font-size: 12px; font-weight: 400; color: #7E928F; text-decoration: line-through; }
.tkdp-v4--pdp .tkdp-v4-pct { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 18px; min-width: 23px; padding: 1px 2px 0; border-radius: 4px; background: #FFFFFF; box-shadow: 0 0 1px #ED1C24; font-size: 14px; font-weight: 500; line-height: 18px; color: #394040; }
.tkdp-v4--pdp .tkdp-v4-pct.is-empty { visibility: hidden; }
.tkdp-v4--pdp .tkdp-v4-call { display: flex; flex-direction: row-reverse; align-items: center; justify-content: center; gap: 4px; height: 48px; padding: 6px 16px 6px 20px; background: #F5F6F6; border-radius: 2px; font-size: 14px; font-weight: 500; color: #060707; text-decoration: none; }
.tkdp-v4--pdp .tkdp-v4-call:hover { background: #E4E9E9; }
@media (max-width: 767px) {
  .tkdp-v4--pdp .tkdp-v4-fresh { font-size: 13px; }
  .tkdp-v4--pdp .tkdp-v4-fresh img { width: 16px; height: 16px; }
  .tkdp-v4--pdp .tkdp-v4-panel { gap: 8px; padding: 10px 8px 8px; }
  .tkdp-v4--pdp .tkdp-v4-head { font-size: 13px; font-weight: 400; }
  .tkdp-v4--pdp .tkdp-v4-row { padding: 8px 4px; font-size: 13px; }
  .tkdp-v4--pdp .tkdp-v4-num { font-size: 13px; }
  .tkdp-v4--pdp .tkdp-v4-row.is-big .tkdp-v4-num { font-size: 16px; }
  .tkdp-v4--pdp .tkdp-v4-price small { font-size: 11px; }
  .tkdp-v4--pdp .tkdp-v4-pct { height: 16px; min-width: 21px; font-size: 12px; line-height: 16px; }
  .tkdp-v4--pdp .tkdp-v4-call { height: 40px; font-size: 13px; }
}
