.dxh-home{--dxh-accent:#8b0e1a;--dxh-ink:#2d2d31;--dxh-muted:#747276;--dxh-line:#ece8e4;--dxh-soft:#f5f4f0;width:min(1320px,100%);margin:0 auto;padding:20px 16px 48px;color:var(--dxh-ink);font-family:inherit;line-height:1.8;text-align:right;box-sizing:border-box;isolation:isolate}.dxh-home *{box-sizing:border-box}.dxh-home :where(a):not(:where(.darex-product-card *)){text-decoration:none;color:inherit}.dxh-home :where(button):not(:where(.darex-product-card *)){font:inherit;cursor:pointer}.dxh-home :where(h1,h2,h3,p):not(:where(.darex-product-card *)){margin:0}.dxh-home h2:not(:where(.darex-product-card *)){font-size:clamp(19px,2vw,25px);font-weight:800;line-height:1.6}.dxh-home h3:not(:where(.darex-product-card *)){font-size:16px;line-height:1.8}.dxh-home .dxh-box{position:relative;background:#fff;border:1px solid var(--dxh-line);border-radius:24px;padding:28px;margin-bottom:24px;scroll-margin-top:110px;min-width:0}.dxh-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.dxh-heading p{font-size:13px;color:var(--dxh-muted);margin-top:5px}.dxh-more{font-size:13px;color:var(--dxh-accent)!important;white-space:nowrap}.dxh-eyebrow{font-size:12px;letter-spacing:.3px;color:var(--dxh-accent);display:block;margin-bottom:16px;font-weight:700}.dxh-home .dxh-button{display:inline-flex;align-items:center;justify-content:center;gap:24px;background:var(--dxh-accent);color:#fff;border:0;border-radius:12px;padding:12px 22px;font-size:14px;font-weight:700;min-height:46px}.dxh-home .dxh-button:hover{background:#6f0b15}.dxh-home a:focus-visible,.dxh-home button:focus-visible{outline:3px solid #b65f69;outline-offset:4px}.dxh-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}.dxh-product{min-width:0}.dxh-product[hidden]{display:none!important}.dxh-product>.darex-product-card{max-width:100%;width:100%}.dxh-fallback{border:1px solid var(--dxh-line);border-radius:16px;padding:16px;background:#fff;display:flex;flex-direction:column;gap:16px;height:100%}.dxh-fallback img{width:100%;height:185px;object-fit:contain}.dxh-fallback h3{min-height:58px;font-size:14px}.dxh-price{font-size:15px;color:var(--dxh-accent);font-weight:700}.dxh-price del{font-size:12px;color:var(--dxh-muted);display:block}.dxh-price ins{text-decoration:none}.dxh-home .dxh-button-small{padding:9px 12px;font-size:12px}.dxh-home img{max-width:100%}.dxh-home [hidden]{display:none!important}@media(max-width:1024px){.dxh-products{grid-template-columns:repeat(3,minmax(0,1fr))}.dxh-home .dxh-box{padding:22px}}@media(max-width:767px){.dxh-home{padding:12px 10px 28px}.dxh-home .dxh-box{padding:18px 14px;border-radius:18px;margin-bottom:16px}.dxh-heading{align-items:flex-start;gap:10px;margin-bottom:18px}.dxh-heading p{font-size:11px}.dxh-more{font-size:11px}.dxh-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dxh-fallback{padding:10px}.dxh-fallback img{height:135px}.dxh-fallback h3{font-size:12px}.dxh-price{font-size:12px}}@media(prefers-reduced-motion:reduce){.dxh-home *{scroll-behavior:auto!important;transition:none!important}}

.dxh-rank-tabs{display:flex;gap:8px;overflow-x:auto;padding:10px 0 16px;scrollbar-width:thin}.dxh-rank-tab{white-space:nowrap;border:1px solid var(--dxh-line,#ddd);background:transparent;color:inherit;border-radius:30px;padding:8px 15px;cursor:pointer;font:inherit}.dxh-rank-tab[aria-selected="true"]{background:var(--dxh-accent,#763b8c);color:#fff}.dxh-rank-panel[hidden]{display:none!important}.dxh-rank-panel .dxh-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.dxh-rank-panel .dxh-product{min-width:0}.dxh-archive{max-width:1280px;margin:auto;padding:24px 16px}.dxh-archive .dxh-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.dxh-archive .dxh-pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.dxh-archive .dxh-pagination a{border:1px solid #ddd;border-radius:8px;padding:8px 12px}.dxh-archive .dxh-pagination .current{font-weight:700}.dxh-archive-nav{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}@media(max-width:767px){.dxh-rank-panel .dxh-products,.dxh-archive .dxh-products{grid-template-columns:repeat(2,minmax(0,1fr))}}

.dxh-rank-empty{border:1px dashed var(--dxh-line,#ddd);border-radius:12px;padding:24px;text-align:center;color:var(--dxh-muted,#777);background:var(--dxh-soft,#fafafa);margin:8px 0 0}

/* Archive v1.4.16: scoped layout, inheriting site font and UI tokens */
.dxh-home.dxh-archive{width:100%;max-width:none;margin:0 auto 48px;position:static;left:auto;transform:none;padding:20px 16px 48px;--dxh-accent:var(--darex-primary,var(--dx-ui-primary,var(--dxh-accent,#8b0e1a)));--dxh-line:var(--darex-border,var(--dx-ui-border,#ece8e4));font-family:inherit;}
.dxh-archive-header{background:var(--darex-surface,var(--dx-ui-surface,#fff));border:1px solid var(--dxh-line);border-radius:20px;padding:22px 26px;margin-bottom:16px}
.dxh-archive-header h1{font-size:clamp(22px,2.4vw,30px);font-weight:800;line-height:1.5;margin:0}
.dxh-archive-header p{font-size:13px;color:var(--dxh-muted);margin:5px 0 0}
.dxh-archive .dxh-rank-tabs,.dxh-archive-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:12px 0;overflow:visible}
.dxh-archive .dxh-rank-tab,.dxh-archive-nav a{display:inline-flex;align-items:center;min-height:38px;padding:7px 16px;border:1px solid var(--dxh-line);border-radius:999px;background:var(--darex-surface,#fff);font-size:13px;font-weight:600}
.dxh-archive .dxh-rank-tab.is-active,.dxh-archive-nav a.is-active{background:var(--dxh-accent);border-color:var(--dxh-accent);color:#fff}
.dxh-archive-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:var(--darex-surface,#fff);border:1px solid var(--dxh-line);border-radius:16px;padding:14px 18px;margin:0 0 20px}
.dxh-archive-count{font-size:13px;color:var(--dxh-muted)}
.dxh-archive-filter{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0}
.dxh-archive-filter label{font-size:13px;font-weight:700}
.dxh-archive-filter select{min-width:200px;max-width:100%;height:42px;padding:6px 12px;border:1px solid var(--dxh-line);border-radius:10px;background:var(--darex-surface,#fff);font:inherit}
.dxh-archive-filter button{min-height:42px;padding:8px 18px;border:0;border-radius:10px;background:var(--dxh-accent);color:#fff;font:inherit;font-size:13px;font-weight:700}
.dxh-archive .dxh-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch;width:100%;}
.dxh-archive .dxh-product{min-width:0;display:flex;flex-direction:column}
.dxh-archive .dxh-product>.darex-product-card,.dxh-archive .dxh-product>.dxh-fallback{height:100%;width:100%;max-width:none;min-width:0}
.dxh-archive .dxh-product .darex-product-card :is(.darex-product-title,.dpc-title,.dxpc-title,.product-title){font-size:12px!important;line-height:1.65!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3.3em;max-height:3.3em;overflow-wrap:anywhere}
.dxh-archive .dxh-fallback h3{font-size:12px;line-height:1.65;min-height:3.3em;max-height:3.3em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dxh-archive .dxh-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin:28px auto 12px}
.dxh-archive .dxh-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:7px 12px;border:1px solid var(--dxh-line);border-radius:10px;background:var(--darex-surface,#fff);font-weight:600;font-size:13px}
.dxh-archive .dxh-pagination a.current{background:var(--dxh-accent);border-color:var(--dxh-accent);color:#fff}
.dxh-page-ellipsis{padding:0 5px;color:var(--dxh-muted)}
.dxh-archive-footer{display:flex;justify-content:center;margin-top:24px}
@media(max-width:1100px){.dxh-archive .dxh-products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.dxh-home.dxh-archive{width:calc(100vw - 16px);padding:12px 8px 28px}.dxh-archive .dxh-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dxh-archive-header{padding:16px}.dxh-archive-toolbar{padding:12px}.dxh-archive-filter{width:100%}.dxh-archive-filter select{flex:1;min-width:0}.dxh-archive .dxh-rank-tabs,.dxh-archive-nav{flex-wrap:nowrap;overflow-x:auto}}
@media(max-width:420px){.dxh-archive .dxh-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}

/* v1.4.17 — defer title sizing to Product Card; keep grid cells equally tall. */
.dxh-home :is(.dxh-products,.dxh-rank-panel .dxh-products,.dxh-archive .dxh-products){align-items:stretch}
.dxh-home .dxh-product{display:flex;flex-direction:column;min-width:0}
.dxh-home .dxh-product>.darex-product-card{height:100%;flex:1 1 auto;min-width:0}
.dxh-home .dxh-product .darex-product-card .dpc-heading-box .dpc-title{font-size:inherit}
.dxh-archive .dxh-product .darex-product-card .dpc-title{display:block!important;min-height:3em!important;max-height:3em!important}
.dxh-archive .dxh-product .darex-product-card .dpc-title a{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}

/* v1.4.18 — archive design integration: font provider + Darex UI tokens */
.dxh-home.dxh-archive{font-family:var(--dx-font-family,var(--darex-font-family,'Vazir',Tahoma,sans-serif))!important;color:var(--dx-text,#242b35);--dxh-accent:var(--dx-primary,var(--darex-ui-accent,#b02121));--dxh-line:var(--dx-border-subtle,#e3e8ef);--dxh-muted:var(--dx-muted,#697587);background:transparent;box-sizing:border-box;max-width:1320px;width:calc(100% - 32px);left:auto;transform:none;margin:0 auto 48px;padding:24px 0 48px}
.dxh-archive :is(h1,h2,h3,p,a,button,label,select,input,span){font-family:inherit}
.dxh-archive :is(.dxh-archive-header,.dxh-archive-toolbar,.dxh-archive-nav,.dxh-rank-tabs){box-sizing:border-box}
.dxh-archive-header{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,var(--dx-surface,#fff) 0%,var(--dx-surface-hover,#f8fafc) 78%,rgba(176,33,33,.055) 100%);border:1px solid var(--dxh-line);border-radius:var(--dx-radius-lg,20px);padding:24px 28px;box-shadow:var(--dx-shadow,0 8px 26px rgba(15,23,42,.045));margin-bottom:16px}

.dxh-archive-header h1{font-size:clamp(23px,2.2vw,29px);line-height:1.65;font-weight:800;color:var(--dx-text,#242b35)}
.dxh-archive-header p{font-size:13px;line-height:1.9;color:var(--dxh-muted)}
.dxh-archive .dxh-archive-nav,.dxh-archive .dxh-rank-tabs{background:var(--dx-surface,#fff);border:1px solid var(--dxh-line);border-radius:16px;padding:12px 14px;margin:0 0 16px;box-shadow:0 5px 18px rgba(15,23,42,.035);gap:10px}
.dxh-archive .dxh-rank-tab,.dxh-archive-nav a{background:var(--dx-surface-hover,#f8fafc);border-color:var(--dxh-line);color:var(--dx-text,#242b35);text-decoration:none;transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease,border-color .2s ease}
.dxh-archive .dxh-rank-tab:hover,.dxh-archive-nav a:hover{transform:translateY(-2px);border-color:var(--dxh-accent);box-shadow:0 6px 15px rgba(15,23,42,.08)}
.dxh-archive-toolbar{min-height:94px;background:linear-gradient(135deg,var(--dx-surface,#fff),var(--dx-surface-hover,#f8fafc));border-color:var(--dxh-line);border-radius:16px;box-shadow:0 6px 22px rgba(15,23,42,.045);padding:16px 20px;margin-bottom:20px}
.dxh-archive-filter select{background:var(--dx-surface,#fff);color:var(--dx-text,#242b35);border-color:var(--dxh-line)}
.dxh-archive-filter button{background:var(--dxh-accent);border-radius:var(--dx-primary-button-radius,11px)}
.dxh-archive .dxh-products{justify-content:stretch;justify-items:stretch;align-items:stretch;grid-auto-flow:row;direction:rtl}
.dxh-archive .dxh-product{width:100%;max-width:none;min-width:0}
.dxh-archive .dxh-pagination a{background:var(--dx-surface,#fff);color:var(--dx-text,#242b35);border-color:var(--dxh-line);transition:transform .2s ease,box-shadow .2s ease}
.dxh-archive .dxh-pagination a:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(15,23,42,.1)}
@media(prefers-reduced-motion:no-preference){.dxh-archive-header,.dxh-archive-toolbar,.dxh-archive .dxh-products{animation:dxh-archive-reveal .5s both}.dxh-archive-toolbar{animation-delay:.07s}.dxh-archive .dxh-products{animation-delay:.13s}}
@keyframes dxh-archive-reveal{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
@media(max-width:767px){.dxh-home.dxh-archive{width:calc(100% - 20px);padding:14px 0 32px}.dxh-archive-header{padding:18px}.dxh-archive-toolbar{min-height:0;padding:14px}.dxh-archive .dxh-archive-nav,.dxh-archive .dxh-rank-tabs{overflow-x:auto;flex-wrap:nowrap}}
@media(prefers-reduced-motion:reduce){.dxh-archive *{animation:none!important;transition:none!important}}

/* v1.4.19: distinct archive panels, responsive toolbar and RTL card alignment */
.dxh-home.dxh-archive{--dxh-gold:rgba(205,159,73,.18);--dxh-violet:rgba(108,86,176,.12)}
.dxh-archive .dxh-archive-header{background:radial-gradient(ellipse at 8% 10%,var(--dxh-gold),transparent 40%),radial-gradient(ellipse at 94% 80%,var(--dxh-violet),transparent 42%),var(--dx-surface,#fff);border:1px solid var(--dxh-line);box-shadow:0 9px 30px rgba(58,48,82,.07);padding-inline-start:34px}
.dxh-archive 
.dxh-archive 
.dxh-archive .dxh-rank-tabs,.dxh-archive .dxh-archive-nav{background:linear-gradient(105deg,rgba(113,90,172,.105),rgba(243,239,255,.7),var(--dx-surface,#fff));border:1px solid rgba(113,90,172,.18);padding:15px 18px;min-height:70px;align-items:center;box-shadow:0 8px 25px rgba(72,52,112,.045)}
.dxh-archive .dxh-rank-tabs:before{content:'انتخاب نشان';font-size:12px;font-weight:700;color:var(--dx-text,#333);margin-inline-end:10px}
.dxh-archive .dxh-archive-nav:before{content:'انتخاب بخش';font-size:12px;font-weight:700;color:var(--dx-text,#333);margin-inline-end:10px}
.dxh-archive .dxh-rank-tab,.dxh-archive .dxh-archive-nav a{background:var(--dx-surface,#fff);box-shadow:0 2px 6px rgba(28,24,54,.035)}
.dxh-archive .dxh-archive-toolbar{display:grid;grid-template-columns:1fr;gap:14px;min-height:0;background:linear-gradient(125deg,var(--dx-surface,#fff),rgba(226,233,244,.37));padding:18px 20px}
.dxh-archive .dxh-toolbar-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}
.dxh-archive .dxh-toolbar-heading strong{font-size:14px;font-weight:800}
.dxh-archive .dxh-archive-count{margin:0;font-size:12px}
.dxh-archive .dxh-archive-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;grid-template-rows:auto 44px;gap:6px 12px;align-items:center;width:100%;direction:rtl}
.dxh-archive .dxh-archive-filter label{font-size:12px;align-self:end}
.dxh-archive .dxh-archive-filter label[for="dxh-archive-category"]{grid-column:1;grid-row:1}
.dxh-archive .dxh-archive-filter label[for="dxh-archive-sort"]{grid-column:2;grid-row:1}
.dxh-archive .dxh-archive-filter #dxh-archive-category{grid-column:1;grid-row:2}
.dxh-archive .dxh-archive-filter #dxh-archive-sort{grid-column:2;grid-row:2}
.dxh-archive .dxh-archive-filter select{width:100%;min-width:0;height:44px;box-sizing:border-box}
.dxh-archive .dxh-archive-filter button{grid-column:3;grid-row:2;align-self:stretch;white-space:nowrap;cursor:pointer}
.dxh-archive .dxh-products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;justify-items:stretch!important;justify-content:start!important;direction:rtl;gap:18px}
.dxh-archive .dxh-products>.dxh-product{width:100%;max-width:none;margin:0;justify-self:stretch}
@media(min-width:1101px){.dxh-archive .dxh-products{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(min-width:761px) and (max-width:1100px){.dxh-archive .dxh-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){.dxh-archive .dxh-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}.dxh-archive .dxh-archive-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 44px auto}.dxh-archive .dxh-archive-filter button{grid-column:1/-1;grid-row:3;margin-top:5px}.dxh-archive .dxh-archive-header{padding:20px}.dxh-archive .dxh-archive-nav,.dxh-archive .dxh-rank-tabs{padding:12px}}
@media(prefers-reduced-motion:no-preference){.dxh-archive .dxh-archive .dxh-rank-tabs,.dxh-archive .dxh-archive-nav{animation:dxh-archive-reveal .55s .07s both}.dxh-archive .dxh-rank-tab{transition:background-color .25s,transform .25s,box-shadow .25s}}
@keyframes dxh-ambient{from{transform:translate(-12px,0);opacity:.5}to{transform:translate(18px,10px);opacity:1}}
@media(prefers-reduced-motion:reduce){.dxh-archive }

/* v1.4.20: three intentionally contrasting archive panels */
.dxh-home.dxh-archive .dxh-archive-header{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(115deg,#142238 0%,#1b3150 62%,#263b59 100%)!important;border:1px solid #304563!important;box-shadow:0 12px 32px rgba(15,31,55,.19)!important;color:#fff!important;padding:27px 32px!important}
.dxh-home.dxh-archive .dxh-archive-header h1{color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.2)}
.dxh-home.dxh-archive .dxh-archive-header p{color:#d6e2f0!important}


.dxh-home.dxh-archive .dxh-rank-tabs,.dxh-home.dxh-archive .dxh-archive-nav{background:linear-gradient(110deg,#4b2b81 0%,#624098 55%,#7352a6 100%)!important;border:1px solid #6c4aa0!important;box-shadow:0 9px 25px rgba(67,37,116,.19)!important;color:#fff!important}
.dxh-home.dxh-archive .dxh-rank-tabs:before,.dxh-home.dxh-archive .dxh-archive-nav:before{color:#f6e8ff!important}
.dxh-home.dxh-archive .dxh-rank-tab,.dxh-home.dxh-archive .dxh-archive-nav a{background:rgba(255,255,255,.94)!important;color:#4b2b81!important;border-color:rgba(255,255,255,.6)!important;transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease!important}
.dxh-home.dxh-archive .dxh-rank-tab.is-active,.dxh-home.dxh-archive .dxh-archive-nav a.is-active{background:#f5ce77!important;border-color:#f5ce77!important;color:#382451!important;box-shadow:0 3px 12px rgba(12,7,29,.2)!important}
.dxh-home.dxh-archive .dxh-rank-tab:hover,.dxh-home.dxh-archive .dxh-archive-nav a:hover{transform:translateY(-3px)!important;box-shadow:0 7px 15px rgba(17,9,38,.22)!important}
.dxh-home.dxh-archive .dxh-archive-toolbar{background:linear-gradient(120deg,#e3f5f1 0%,#d8f0eb 55%,#eaf9f5 100%)!important;border:1px solid #acdcd3!important;box-shadow:0 8px 25px rgba(20,116,101,.09)!important;color:#175e55!important}
.dxh-home.dxh-archive .dxh-toolbar-heading strong{color:#155e57!important}
.dxh-home.dxh-archive .dxh-archive-count{color:#38786e!important}
.dxh-home.dxh-archive .dxh-archive-filter select{background:#fff!important;border-color:#a4d5cd!important;color:#254f4b!important;transition:border-color .18s ease,box-shadow .18s ease!important}
.dxh-home.dxh-archive .dxh-archive-filter select:focus{border-color:#168a79!important;box-shadow:0 0 0 3px rgba(22,138,121,.15)!important;outline:none}
.dxh-home.dxh-archive .dxh-archive-filter button{background:#137d70!important;color:#fff!important;transition:background-color .18s ease,transform .18s ease,box-shadow .18s ease!important}
.dxh-home.dxh-archive .dxh-archive-filter button:hover{background:#0b665c!important;transform:translateY(-2px);box-shadow:0 5px 12px rgba(13,108,93,.2)}
@media(prefers-reduced-motion:no-preference){.dxh-home.dxh-archive .dxh-rank-tabs,.dxh-home.dxh-archive .dxh-archive-nav{animation:dxh-purple-appear .32s ease-out both}.dxh-home.dxh-archive .dxh-archive-toolbar{animation:dxh-teal-appear .36s ease-out both}}
@keyframes dxh-gold-line{from{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}
@keyframes dxh-gem-flash{from{opacity:0;transform:scale(.82) rotate(-8deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@keyframes dxh-purple-appear{from{opacity:.4;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes dxh-teal-appear{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:767px){.dxh-home.dxh-archive .dxh-archive-header{padding:20px!important}}
@media(prefers-reduced-motion:reduce){.dxh-home.dxh-archive .dxh-archive-header:before,.dxh-home.dxh-archive .dxh-archive-header:after,.dxh-home.dxh-archive .dxh-rank-tabs,.dxh-home.dxh-archive .dxh-archive-nav,.dxh-home.dxh-archive .dxh-archive-toolbar{animation:none!important;transition:none!important}}

/* v1.4.21: restrained palette coordinated with burgundy Darex header */
.dxh-home.dxh-archive .dxh-archive-header{background:linear-gradient(112deg,#3b1729 0%,#60273b 56%,#782c43 100%)!important;border-color:#87485a!important;box-shadow:0 12px 28px rgba(82,26,44,.15)!important}

.dxh-home.dxh-archive .dxh-rank-tabs,.dxh-home.dxh-archive .dxh-archive-nav{background:linear-gradient(105deg,#f6e9e7,#eee2ed,#f8f3f5)!important;border-color:#e1cbd6!important;color:#5b2c44!important;box-shadow:0 6px 18px rgba(90,37,60,.07)!important}
.dxh-home.dxh-archive .dxh-rank-tabs:before,.dxh-home.dxh-archive .dxh-archive-nav:before{color:#65364d!important}
.dxh-home.dxh-archive .dxh-rank-tab,.dxh-home.dxh-archive .dxh-archive-nav a{background:#fff!important;color:#66344d!important;border-color:#e3ced6!important}
.dxh-home.dxh-archive .dxh-rank-tab.is-active,.dxh-home.dxh-archive .dxh-archive-nav a.is-active{background:#80283d!important;color:#fff!important;border-color:#80283d!important}
.dxh-home.dxh-archive .dxh-archive-toolbar{background:linear-gradient(115deg,#f6f3ed,#edeae5,#f8f6f2)!important;border-color:#ded6ca!important;color:#51453e!important;box-shadow:0 7px 20px rgba(72,50,40,.055)!important}
.dxh-home.dxh-archive .dxh-toolbar-heading strong,.dxh-home.dxh-archive .dxh-archive-count{color:#654a46!important}
.dxh-home.dxh-archive .dxh-archive-filter select{border-color:#d6cbc5!important;color:#4c4041!important}
.dxh-home.dxh-archive .dxh-archive-filter select:focus{border-color:#9e455b!important;box-shadow:0 0 0 3px rgba(140,45,68,.13)!important}
.dxh-home.dxh-archive .dxh-archive-filter button{background:#8d3046!important;color:#fff!important}
.dxh-home.dxh-archive .dxh-archive-filter button:hover{background:#6d2037!important}
.dxh-home.dxh-archive .dxh-rank-tabs,.dxh-home.dxh-archive .dxh-archive-nav,.dxh-home.dxh-archive .dxh-archive-toolbar{animation:none!important}
@media(prefers-reduced-motion:no-preference){
 .dxh-home.dxh-archive .dxh-rank-tabs.dxh-tab-updated .dxh-rank-tab.is-active{animation:dxh-tab-confirm .28s ease-out both}
 .dxh-home.dxh-archive .dxh-rank-tab{transition:background .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease!important}
 .dxh-home.dxh-archive .dxh-archive-filter button:active{transform:scale(.97)}
}
@keyframes dxh-tab-confirm{0%{box-shadow:0 0 0 0 rgba(128,40,61,.3)}60%{box-shadow:0 0 0 5px rgba(128,40,61,.12)}100%{box-shadow:0 0 0 0 transparent}}

/* v1.4.22: unobstructed title ornament and visible, accessible motion */
.dxh-home.dxh-archive .dxh-archive-header{padding-inline-start:120px!important;min-height:116px;display:flex;flex-direction:column;justify-content:center}
.dxh-home.dxh-archive .dxh-archive-header h1,.dxh-home.dxh-archive .dxh-archive-header p{position:relative;z-index:2;max-width:100%;margin-inline:0}


@media(prefers-reduced-motion:no-preference){
 
 
 .dxh-home.dxh-archive .dxh-rank-tab,.dxh-home.dxh-archive .dxh-archive-nav a{transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease!important}
 .dxh-home.dxh-archive .dxh-rank-tabs.dxh-tab-updated .dxh-rank-tab.is-active{animation:dxh-tab-confirm .28s ease-out both!important}
}
@keyframes dxh-star-breathe{0%,100%{transform:scale(1) rotate(0);box-shadow:0 0 0 rgba(240,196,99,0);opacity:.8}50%{transform:scale(1.09) rotate(8deg);box-shadow:0 0 20px rgba(240,196,99,.25);opacity:1}}
@keyframes dxh-line-shine{0%,100%{transform:scaleX(.48);opacity:.65}55%{transform:scaleX(1);opacity:1}}
@media(max-width:767px){.dxh-home.dxh-archive .dxh-archive-header{padding-inline-start:82px!important}}
@media(prefers-reduced-motion:reduce){.dxh-home.dxh-archive .dxh-archive-header:after,}

/* v1.4.23: scoped archive fixes, without changing the Product Card plugin */
.dxh-home.dxh-archive .dxh-products .darex-product-card a, .dxh-home.dxh-archive .dxh-products .darex-product-card button{text-decoration:none!important;text-decoration-line:none!important}
.dxh-home.dxh-archive .dxh-products .darex-product-card a:after{ text-decoration:none!important }
.dxh-home.dxh-archive .dxh-category-tabs:before{content:'انتخاب دسته‌بندی اصلی'!important}
.dxh-home.dxh-archive .dxh-full-archive-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:12px;padding:10px 22px;background:#842b44;color:white!important;text-decoration:none!important;font-weight:700;box-shadow:0 5px 14px rgba(85,22,43,.13)}
.dxh-home.dxh-archive .dxh-full-archive-link:hover{background:#692039;color:#fff!important}


/* v1.4.32: selection pages take their width from the Darex UI Engine tokens (--dx-page-max / --dx-page-gutter)
   and are centered with symmetric inline margins (RTL-safe, no left/transform, no horizontal scroll).
   Applies only to selections; no overrides on product cards. */
@media(min-width:821px){
  html body .dxh-home.dxh-archive[data-dx-page]{box-sizing:border-box;--dxh-page-w:min(var(--dx-page-max,1480px),calc(100vw - 2*var(--dx-page-gutter,20px)));width:var(--dxh-page-w);max-width:none;position:static;left:auto;right:auto;transform:none;margin-inline:calc(50% - var(--dxh-page-w)/2);padding-inline:16px}
  .dxh-home.dxh-archive .dxh-products{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
}
@media(min-width:821px) and (max-width:1199px){.dxh-home.dxh-archive .dxh-products{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:820px){html body .dxh-home.dxh-archive[data-dx-page]{box-sizing:border-box;width:100%;max-width:100%;margin-inline:auto;position:static;left:auto;right:auto;transform:none}}
/* The homepage star and gold line are separate elements. Gold-line motion is owned by UI. */
.dxh-home.dxh-archive .dxh-archive-header{position:relative;padding-inline-start:110px;min-height:108px}
.dxh-home.dxh-archive .dxh-archive-header::after{content:'✦';position:absolute;inset:16px auto auto 22px;width:56px;height:56px;display:grid;place-items:center;background:rgba(255,255,255,.07);border:1px solid rgba(240,196,99,.28);border-radius:16px;font-size:30px;color:#efc66e;pointer-events:none}
@media(max-width:767px){.dxh-home.dxh-archive .dxh-archive-header{padding-inline-start:78px}.dxh-home.dxh-archive .dxh-archive-header::after{width:42px;height:42px;font-size:23px;left:14px;top:16px}}

/* v1.4.34: the promo banner is the first cell of the product grid, so it always has the exact height of the first row of cards. */
.dxh-products.dxh-has-promo>.dx-promo-side{position:relative;align-self:stretch;min-width:0;min-height:0}
@media(min-width:1200px){html body .dxh-products.dxh-has-promo{grid-template-columns:minmax(0,.8fr) repeat(4,minmax(0,1fr))!important}}
@media(min-width:1025px) and (max-width:1199px){html body .dxh-products.dxh-has-promo{grid-template-columns:minmax(0,.8fr) repeat(3,minmax(0,1fr))!important}}
@media(max-width:1024px){.dxh-products.dxh-has-promo>.dx-promo-side{grid-column:1/-1}}

/* v1.4.35: the banner geometry is also owned here, so it stays aligned with the cards even when the
   UI Engine stylesheet is older or cached: it fills exactly the grid cell (= the first row of cards). */
.dxh-products.dxh-has-promo>.dx-promo-side{position:relative;align-self:stretch;height:auto;min-height:0;margin:0!important;padding:0!important}
.dxh-products.dxh-has-promo>.dx-promo-side>.dx-promo{position:absolute!important;inset:0!important;top:0!important;margin:0!important;height:auto!important;min-height:0!important;max-height:none!important}
.dxh-products.dxh-has-promo>.dx-promo-side>.dx-promo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@media(max-width:1024px){.dxh-products.dxh-has-promo>.dx-promo-side>.dx-promo{position:relative!important;inset:auto!important;aspect-ratio:16/6;height:auto!important}}

/* v1.4.36: tighter gap between product cards (desktop/tablet). */
@media(min-width:768px){html body .dxh-home .dxh-products{gap:10px!important}}

/* 1.4.45: give top-20 cards about 5% more room when the viewport allows it. */
@media(min-width:1200px){
 html body .dxh-home.dxh-archive[data-dx-page]{--dxh-page-w:min(calc(var(--dx-page-max,1480px) * 1.05),calc(100vw - 2*var(--dx-page-gutter,20px)))}
 html body .dxh-home.dxh-archive .darex-product-card.dpc-mode-standard .dpc-image{aspect-ratio:1/1!important}
}

/* 1.4.48: independent sidebar and four-column product grid on selections pages. */
html body .dxh-home.dxh-archive .dxh-selection-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,4fr);gap:16px;align-items:start;direction:rtl;overflow:visible}
html body .dxh-home.dxh-archive .dxh-selection-products{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;min-width:0}
html body .dxh-home.dxh-archive .dxh-selection-banner{position:sticky;top:var(--dxh-sticky-top,96px);align-self:start;min-width:0;height:min(650px,calc(100vh - var(--dxh-sticky-top,96px) - 16px));height:min(650px,calc(100dvh - var(--dxh-sticky-top,96px) - 16px))}
html body .dxh-home.dxh-archive .dxh-selection-banner>.dx-promo-side{position:relative!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important}
html body .dxh-home.dxh-archive .dxh-selection-banner .dx-promo{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;box-sizing:border-box;overflow:auto}
@media(max-width:1199px){
 html body .dxh-home.dxh-archive .dxh-selection-layout{grid-template-columns:minmax(0,1fr)}
 html body .dxh-home.dxh-archive .dxh-selection-banner{position:relative;top:auto;height:240px}
 html body .dxh-home.dxh-archive .dxh-selection-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:760px){html body .dxh-home.dxh-archive .dxh-selection-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}html body .dxh-home.dxh-archive .dxh-selection-banner{height:200px}}

/* 1.4.55: show the badge icon alongside each Special tab label. */
.dxh-rank-tabs .dxh-rank-tab{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.dxh-rank-tabs .dxh-rank-tab .dxh-special-tab-icon{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;min-width:17px;font-size:17px;line-height:1;object-fit:contain;vertical-align:middle}

/* 1.4.56: visible icons inside special badge tabs. */
.dxh-rank-tabs .dxh-rank-tab{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.dxh-rank-tabs .dxh-rank-tab .dxh-special-tab-icon{display:inline-block!important;flex:0 0 17px!important;width:17px!important;height:17px!important;visibility:visible!important;opacity:1!important}
.dxh-rank-tabs .dxh-rank-tab svg.dxh-special-tab-icon{stroke:currentColor;fill:none;overflow:visible}

/* 1.4.57: use actual badge icon from the product badge provider. */
.dxh-rank-tab .dxh-special-tab-icon{vertical-align:middle;object-fit:contain}

/* 1.4.58: badge's own glyph, image or icon font */
.dxh-rank-tabs .dxh-special-emoji{display:inline-flex!important;font-family:inherit!important;line-height:1!important;font-size:17px!important;width:auto!important;min-width:17px;max-width:none!important;}

/* 1.4.59: icon from badge provider icon_data() */
.dxh-rank-tabs .dxh-rank-tab .dashicons.dxh-special-tab-icon{font-family:dashicons!important;font-size:17px!important;line-height:17px!important}

/* 1.4.60: white icon on the active (dark) tab */
.dxh-rank-tabs .dxh-rank-tab[aria-selected="true"] .dxh-special-tab-icon,.dxh-rank-tabs .dxh-rank-tab.is-active .dxh-special-tab-icon{color:#fff!important}
.dxh-rank-tabs .dxh-rank-tab[aria-selected="true"] img.dxh-special-tab-icon,.dxh-rank-tabs .dxh-rank-tab.is-active img.dxh-special-tab-icon{filter:brightness(0) invert(1)}

/* 1.4.61: outline SVG badge icon identical to the product card */
.dxh-rank-tabs .dxh-rank-tab svg.dxh-special-svg{fill:none!important;stroke:currentColor!important;width:18px!important;height:18px!important;flex:0 0 18px!important}

/* 1.4.62: provider-managed icon class, no synthetic SVG. */
.dxh-rank-tabs .dxh-rank-tab .dxh-special-tab-icon.dashicons{font-family:dashicons!important;}

/* Badge provider owns the tab-icon colour, including selected and hovered states. */
.dxh-rank-tabs .dxh-rank-tab .dxh-special-tab-icon,
.dxh-rank-tabs .dxh-rank-tab[aria-selected="true"] .dxh-special-tab-icon,
.dxh-rank-tabs .dxh-rank-tab.is-active .dxh-special-tab-icon{color:var(--dxh-badge-color,#475569)!important;-webkit-text-fill-color:var(--dxh-badge-color,#475569)!important;}
.dxh-rank-tabs .dxh-rank-tab img.dxh-special-tab-icon{filter:none!important;}

/* 1.4.64: light icon and label on selected Special tabs; preserve source badge colour at rest. */
.dxh-rank-tabs .dxh-rank-tab:is([aria-selected="true"],.is-active){color:#fff8f0!important;-webkit-text-fill-color:#fff8f0!important;}
.dxh-rank-tabs .dxh-rank-tab:is([aria-selected="true"],.is-active) .dxh-special-tab-icon,
.dxh-rank-tabs .dxh-rank-tab:is([aria-selected="true"],.is-active) .dxh-special-tab-icon *{color:#fff8f0!important;-webkit-text-fill-color:#fff8f0!important;stroke:currentColor!important;}
.dxh-rank-tabs .dxh-rank-tab:is([aria-selected="true"],.is-active) img.dxh-special-tab-icon{filter:grayscale(1) brightness(0) invert(1) sepia(.08)!important;}
.dxh-rank-tabs .dxh-rank-tab:not([aria-selected="true"]):not(.is-active):hover{background:#fff6f4!important;border-color:#c9a9ad!important;}
.dxh-rank-tabs .dxh-rank-tab:not([aria-selected="true"]):not(.is-active):hover .dxh-special-tab-icon{filter:brightness(1.18);}

/* v1.4.65: unify all homepage section outer edges with the full-width top sections.
   Scope excludes archive/ranking pages, inner product grids and card widths. */
@media (min-width:768px) {
  html body .dxh-home:not(.dxh-archive) > .dxh-box {
    box-sizing:border-box;
    width:calc(100vw - 32px)!important;
    max-width:none!important;
    margin-inline:calc(50% - 50vw + 16px)!important;
  }
}
@media (max-width:767px) {
  html body .dxh-home:not(.dxh-archive) > .dxh-box {
    box-sizing:border-box;
    width:100%!important;
    max-width:100%!important;
    margin-inline:0!important;
  }
}

/* v1.4.66: shared viewport-width wrapper. All direct sections use precisely the same
   containing block; avoids per-section viewport/margin computations and RTL drift. */
@media (min-width:768px) {
 html body .dxh-home:not(.dxh-archive) {
  box-sizing:border-box!important; width:calc(100vw - 32px)!important;
  max-width:none!important; position:relative!important;
  left:50%!important; right:auto!important; transform:translateX(-50%)!important;
  margin:0 0 48px!important; padding:20px 0 48px!important;
 }
 html body .dxh-home:not(.dxh-archive) > .dxh-box {
  box-sizing:border-box!important; width:100%!important; max-width:100%!important;
  min-width:0!important; margin-left:0!important; margin-right:0!important;
 }
}
@media (max-width:767px) {
 html body .dxh-home:not(.dxh-archive) {box-sizing:border-box!important;width:100%!important;max-width:100%!important;}
 html body .dxh-home:not(.dxh-archive) > .dxh-box {width:100%!important;max-width:100%!important;margin-inline:0!important;}
}

/* v1.4.67: quiet, differentiated surfaces for merchandise sections.
   Do not change their widths, inner product cards or archive layouts. */
html body .dxh-home:not(.dxh-archive) > .dxh-box:is(.dxh-box-06){background:#fffaf1!important;border-color:#f1e8d8!important;}
html body .dxh-home:not(.dxh-archive) > .dxh-box:is(.dxh-box-08){background:#f2f9ff!important;border-color:#dfeef9!important;}
html body .dxh-home:not(.dxh-archive) > .dxh-box:is(.dxh-box-10){background:#f6f7f9!important;border-color:#e8eaf0!important;}
html body .dxh-home:not(.dxh-archive) > .dxh-box:is(.dxh-box-12){background:#f8f4ff!important;border-color:#ebe4f8!important;}
html body .dxh-home:not(.dxh-archive) > .dxh-box:is(.dxh-box-11){background:#fff9e9!important;border-color:#f1e7c6!important;}
/* Cards remain white to preserve text, prices, photos and CTA legibility. */
html body .dxh-home:not(.dxh-archive) > .dxh-box:is(.dxh-box-06,.dxh-box-08,.dxh-box-10,.dxh-box-12,.dxh-box-11) .dxh-product-card,
html body .dxh-home:not(.dxh-archive) > .dxh-box:is(.dxh-box-06,.dxh-box-08,.dxh-box-10,.dxh-box-12,.dxh-box-11) .dxh-product {background:#fff;}

/* Pilot: reserved area avoids layout shift while a below-fold box is fetched. */
.dxh-pilot-placeholder{min-height:340px;display:flex;align-items:center;justify-content:center;contain:layout style;}
.dxh-pilot-status{text-align:center;padding:28px;opacity:.7;}
@media(max-width:640px){.dxh-pilot-placeholder{min-height:310px}}
