/* Darex Catalog 1.4.10 — theme-aware catalog directory. */
.dc-directory,.dc-wrap{
 --dc-primary:var(--darex-primary,var(--darex-color-primary,var(--dx-primary,#80253e)));
 --dc-surface:var(--darex-surface,var(--darex-bg-card,var(--dx-surface,#fff)));
 --dc-soft:var(--darex-muted,var(--darex-bg-soft,var(--dx-surface-soft,#f7f4f6)));
 --dc-border:var(--darex-border,var(--darex-border-color,var(--dx-border,#e9e3e7)));
 --dc-radius-lg:var(--darex-radius-lg,var(--dx-radius-lg,20px));
 --dc-radius-md:var(--darex-radius-md,var(--dx-radius-md,14px));
 --dc-shadow:var(--darex-shadow,0 2px 14px rgba(48,32,48,.05));
 --dc-tint:color-mix(in srgb,var(--dc-primary) 8%,transparent);
}

/* Layout */
.dc-directory{max-width:1400px;margin:0 auto;padding:24px 16px;direction:rtl;line-height:1.8;color:var(--darex-text,var(--darex-color-text,var(--dx-text,inherit)))}
.dc-wrap{max-width:1400px;margin:auto;padding:20px;color:inherit;line-height:1.8;font-family:var(--darex-font-family,var(--darex-font,inherit))}
.dc-directory>.dc-wrap{padding:8px 0 20px}
.dc-wrap *{box-sizing:border-box}
.dc-wrap [hidden],.dc-directory [hidden]{display:none!important}

/* Fonts: inherit from the Vazir font provider (no bundled files). */
html body .dc-directory{font-family:var(--darex-font-family,'Vazir',Tahoma,Arial,sans-serif)!important}
html body .dc-directory :is(h2,h3,h4,a,span,small,p,label,button,input,select,textarea,table,th,td){font-family:inherit!important}
.dc-wrap :is(button,input,select,textarea){font-family:inherit}

/* Section header + search */
.dc-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.dc-head h2{margin:0;font-size:24px;font-weight:800}
.dc-head form{display:flex;flex-wrap:wrap;gap:8px}
.dc-search,.dc-head input[type=search]{font:inherit;width:min(100%,340px);border:1px solid var(--dc-border);border-radius:999px;padding:11px 20px;background:var(--dc-surface);color:inherit;transition:border-color .15s,box-shadow .15s}
.dc-search:focus,.dc-head input[type=search]:focus{outline:0;border-color:var(--dc-primary);box-shadow:0 0 0 4px var(--dc-tint)}
.dc-head button{font:inherit;font-weight:700;cursor:pointer;border:0;background:var(--dc-primary);color:#fff;border-radius:999px;padding:11px 24px}
.dc-head button:hover{filter:brightness(1.08)}
.dc-wrap :is(a,button):focus-visible,.dc-tabs a:focus-visible{outline:2px solid var(--dc-primary);outline-offset:3px}
/* Tabs (segmented control) */
.dc-tabs{display:inline-flex;gap:4px;padding:5px;margin-bottom:22px;background:var(--dc-soft);border:1px solid var(--dc-border);border-radius:16px}
.dc-tabs a{min-height:42px;display:inline-flex;align-items:center;justify-content:center;padding:6px 26px;color:inherit;text-decoration:none;font-weight:600;border-radius:12px;transition:background .15s}
.dc-tabs a:hover{background:var(--dc-tint)}
.dc-tabs a[aria-current]{background:var(--dc-primary);color:#fff;box-shadow:0 3px 10px color-mix(in srgb,var(--dc-primary) 35%,transparent)}


/* Category groups */
.dc-group{background:var(--dc-surface);border:1px solid var(--dc-border);border-radius:var(--dc-radius-lg);padding:24px;margin-bottom:24px;box-shadow:var(--dc-shadow)}
.dc-group-heading{display:flex;align-items:center;gap:18px;margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid var(--dc-border);flex-wrap:wrap}
.dc-group-icon{flex-shrink:0;width:84px;height:84px;display:flex;align-items:center;justify-content:center;background:var(--dc-soft);border-radius:22px;overflow:hidden;font-size:34px;color:var(--dc-primary)}
.dc-group-icon img{width:100%;height:100%;object-fit:contain;padding:8px}
.dc-group-title{min-width:0}
.dc-group-heading h3{margin:0;font-size:22px;font-weight:800;line-height:1.5}
.dc-group-meta{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 0}
.dc-group-meta span{font-size:12.5px;padding:2px 12px;border-radius:999px;background:var(--dc-tint);color:var(--dc-primary);font-weight:600}
.dc-group-all{margin-inline-start:auto;font-size:14px;font-weight:700;text-decoration:none;color:var(--dc-primary);border:1.5px solid var(--dc-primary);border-radius:999px;padding:7px 20px;white-space:nowrap;transition:background .15s,color .15s}
.dc-group-all:hover{background:var(--dc-primary);color:#fff}

/* Grid and tiles */
.dc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;align-items:stretch}
.dc-tile{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;height:100%;padding:14px 10px 12px;border-radius:var(--dc-radius-md);background:var(--dc-surface);border:1px solid var(--dc-border);color:inherit;text-decoration:none;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;animation:dc-card-enter-0 .72s cubic-bezier(.2,.75,.25,1) backwards;animation-delay:var(--dc-card-delay,0ms)}
/* Animated, theme-aware aurora behind every category card. */
.dc-tile::before{content:"";position:absolute;z-index:0;inset:0;pointer-events:none;border-radius:inherit;opacity:.72;background:radial-gradient(ellipse at 18% 22%,color-mix(in srgb,var(--dc-primary) 27%,transparent),transparent 43%),radial-gradient(ellipse at 82% 78%,color-mix(in srgb,#74cfc0 28%,transparent),transparent 42%),linear-gradient(125deg,color-mix(in srgb,var(--dc-primary) 5%,var(--dc-surface)),var(--dc-surface),color-mix(in srgb,#d8a8ff 17%,var(--dc-surface)));background-size:180% 180%;animation:dc-aurora-0 10s ease-in-out infinite alternate;animation-delay:var(--dc-bg-delay,0s);}
.dc-tile>*{position:relative;z-index:1}
.dc-tile:hover{transform:translateY(-4px);border-color:var(--dc-primary);box-shadow:0 10px 26px rgba(48,32,48,.13)}
/* Six entry and background-motion styles rotate across cards, so neighboring tiles feel distinct. */
.dc-tile[data-dc-motion="1"]{animation-name:dc-card-enter-1}
.dc-tile[data-dc-motion="2"]{animation-name:dc-card-enter-2}
.dc-tile[data-dc-motion="3"]{animation-name:dc-card-enter-3}
.dc-tile[data-dc-motion="4"]{animation-name:dc-card-enter-4}
.dc-tile[data-dc-motion="5"]{animation-name:dc-card-enter-5}
.dc-tile[data-dc-motion="1"]::before{animation-name:dc-aurora-1;animation-duration:11.5s;animation-direction:alternate-reverse;background-image:radial-gradient(ellipse at 75% 18%,color-mix(in srgb,#76b7ff 30%,transparent),transparent 43%),radial-gradient(ellipse at 20% 82%,color-mix(in srgb,var(--dc-primary) 24%,transparent),transparent 42%),linear-gradient(145deg,var(--dc-surface),color-mix(in srgb,#76b7ff 12%,var(--dc-surface)),var(--dc-surface))}
.dc-tile[data-dc-motion="2"]::before{animation-name:dc-aurora-2;animation-duration:13s;background-image:radial-gradient(ellipse at 25% 75%,color-mix(in srgb,#f0b66f 31%,transparent),transparent 43%),radial-gradient(ellipse at 85% 20%,color-mix(in srgb,var(--dc-primary) 23%,transparent),transparent 42%),linear-gradient(135deg,var(--dc-surface),color-mix(in srgb,#f0b66f 11%,var(--dc-surface)),var(--dc-surface))}
.dc-tile[data-dc-motion="3"]::before{animation-name:dc-aurora-3;animation-duration:9s;animation-direction:alternate-reverse;background-image:radial-gradient(ellipse at 80% 75%,color-mix(in srgb,#9b8cff 30%,transparent),transparent 43%),radial-gradient(ellipse at 18% 20%,color-mix(in srgb,var(--dc-primary) 24%,transparent),transparent 42%),linear-gradient(145deg,var(--dc-surface),color-mix(in srgb,#9b8cff 12%,var(--dc-surface)),var(--dc-surface))}
.dc-tile[data-dc-motion="4"]::before{animation-name:dc-aurora-4;animation-duration:12.5s;background-image:radial-gradient(ellipse at 16% 78%,color-mix(in srgb,#ff8f9c 27%,transparent),transparent 43%),radial-gradient(ellipse at 84% 20%,color-mix(in srgb,#73cdb2 25%,transparent),transparent 42%),linear-gradient(125deg,var(--dc-surface),color-mix(in srgb,#ff8f9c 10%,var(--dc-surface)),var(--dc-surface))}
.dc-tile[data-dc-motion="5"]::before{animation-name:dc-aurora-5;animation-duration:14s;animation-direction:alternate-reverse;background-image:radial-gradient(ellipse at 78% 24%,color-mix(in srgb,#6eced2 29%,transparent),transparent 43%),radial-gradient(ellipse at 22% 80%,color-mix(in srgb,#c29bff 26%,transparent),transparent 42%),linear-gradient(145deg,var(--dc-surface),color-mix(in srgb,#6eced2 10%,var(--dc-surface)),var(--dc-surface))}
@keyframes dc-aurora-0{0%{background-position:0% 0%}100%{background-position:100% 100%}}
@keyframes dc-aurora-1{0%{background-position:100% 10%}100%{background-position:0% 90%}}
@keyframes dc-aurora-2{0%{background-position:20% 100%}100%{background-position:90% 0%}}
@keyframes dc-aurora-3{0%{background-position:0% 60%}100%{background-position:100% 40%}}
@keyframes dc-aurora-4{0%{background-position:75% 0%}100%{background-position:25% 100%}}
@keyframes dc-aurora-5{0%{background-position:100% 75%}100%{background-position:0% 25%}}
@keyframes dc-card-enter-0{from{opacity:0;transform:translateY(18px) scale(.97);filter:blur(3px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes dc-card-enter-1{from{opacity:0;transform:translateX(18px) scale(.98);filter:blur(2px)}to{opacity:1;transform:translateX(0) scale(1);filter:blur(0)}}
@keyframes dc-card-enter-2{from{opacity:0;transform:translateY(-15px) scale(.96);filter:blur(2px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes dc-card-enter-3{from{opacity:0;transform:translateX(-18px) scale(.98);filter:blur(2px)}to{opacity:1;transform:translateX(0) scale(1);filter:blur(0)}}
@keyframes dc-card-enter-4{from{opacity:0;transform:scale(.86);filter:blur(4px)}to{opacity:1;transform:scale(1);filter:blur(0)}}
@keyframes dc-card-enter-5{from{opacity:0;transform:perspective(600px) rotateX(12deg) translateY(10px);filter:blur(2px)}to{opacity:1;transform:perspective(600px) rotateX(0) translateY(0);filter:blur(0)}}
.dc-tile img{width:96px;height:96px;object-fit:contain;padding:6px;border-radius:14px;background:var(--dc-soft);flex-shrink:0}
.dc-placeholder{width:96px;height:96px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:var(--dc-soft);color:var(--dc-primary);font-size:36px;flex-shrink:0}
.dc-tile-name{font-size:14.5px;font-weight:700;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dc-tile-meta{margin-top:auto;display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.dc-tile small{font-size:12px;padding:1px 12px;border-radius:999px;background:var(--dc-soft);white-space:nowrap}
.dc-tile small.dc-tile-sub{background:var(--dc-tint);color:var(--dc-primary);font-weight:600}
.dc-level{scroll-margin-top:90px}
.dc-level .dc-group-heading{margin-bottom:16px;padding-bottom:14px}
.dc-level .dc-group-heading h3{font-size:18px}
.dc-tile.is-selected{background:var(--dc-tint);border-color:var(--dc-primary);box-shadow:0 0 0 1px var(--dc-primary)}
.dc-tile.is-selected::before{opacity:.95}
.dc-tile.is-selected::after{content:"";position:absolute;bottom:-9px;left:50%;width:14px;height:14px;background:var(--dc-primary);transform:translateX(-50%) rotate(45deg);border-radius:2px}
.dc-tile.has-children{border-color:color-mix(in srgb,var(--dc-primary) 28%,var(--dc-border))}
.dc-empty{grid-column:1/-1;text-align:center;padding:20px;opacity:.75;margin:0}
.dc-path{font-size:12px;opacity:.75;line-height:1.7;color:var(--dc-primary)}
.dc-no-categories{text-align:center;padding:28px;opacity:.8}

/* Product list */
.dc-count{margin:0 0 12px;font-weight:600;opacity:.75}
.dc-active-category{display:inline-flex;align-items:center;gap:10px;margin:0 0 16px;padding:6px 16px;background:var(--dc-tint);border-radius:999px;font-size:14px}
.dc-active-category a{color:var(--dc-primary);font-weight:700}
.dc-subcats{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 16px}
.dc-subcats>span{font-size:14px;opacity:.7}
.dc-subcats a{display:inline-flex;gap:6px;align-items:center;font-size:14px;color:inherit;padding:5px 14px;border:1px solid var(--dc-border);border-radius:999px;background:var(--dc-surface)}
.dc-subcats a:hover{border-color:var(--dc-primary);color:var(--dc-primary)}
.dc-subcats small{opacity:.6}
.dc-table-scroll{overflow-x:auto;border:1px solid var(--dc-border);border-radius:var(--dc-radius-lg);box-shadow:var(--dc-shadow);background:var(--dc-surface)}
.dc-table{width:100%;border-collapse:collapse;min-width:600px}
.dc-table th,.dc-table td{padding:14px 16px;border-bottom:1px solid var(--dc-border);text-align:right;vertical-align:middle}
.dc-table th{background:var(--dc-soft);font-size:13.5px;font-weight:700;white-space:nowrap}
.dc-table tbody tr:last-child td{border-bottom:0}
.dc-table tbody tr:hover{background:var(--dc-soft)}
.dc-product-name{display:flex;align-items:center;gap:14px;color:inherit;text-decoration:none;font-weight:700}
.dc-product-name img{width:60px;height:60px;object-fit:contain;padding:4px;border-radius:12px;background:var(--dc-soft);flex-shrink:0}
.dc-product-name:hover span{color:var(--dc-primary)}
.dc-price{font-weight:700;white-space:nowrap}
.dc-stock{display:inline-block;font-size:12.5px;font-weight:700;padding:2px 12px;border-radius:999px}
.dc-in{background:#e5f4ea;color:#17703f}
.dc-out{background:#fdeceb;color:#a8322b}
.dc-btn{display:inline-block;font-size:13.5px;font-weight:700;text-decoration:none;color:var(--dc-primary);border:1.5px solid var(--dc-primary);border-radius:999px;padding:5px 16px;white-space:nowrap;transition:background .15s,color .15s}
.dc-btn:hover{background:var(--dc-primary);color:#fff}
.dc-pagination{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px;align-items:center}
.dc-pagination a{min-width:40px;text-align:center;padding:6px 14px;color:inherit;text-decoration:none;border:1px solid var(--dc-border);border-radius:999px;background:var(--dc-surface)}
.dc-pagination a:hover{border-color:var(--dc-primary)}
.dc-pagination [aria-current]{background:var(--dc-primary);border-color:var(--dc-primary);color:#fff;font-weight:700}

@media(max-width:700px){
 .dc-directory{padding:14px 10px}
 .dc-wrap{padding:10px}
 .dc-head h2{font-size:21px}
 .dc-search,.dc-head input[type=search],.dc-head form{width:100%}
 .dc-head form input[type=search]{flex:1;min-width:0}
 .dc-tabs{display:flex}
 .dc-tabs a{flex:1;padding:6px 10px}
 .dc-group{padding:16px;border-radius:18px}
 .dc-group-heading{gap:14px;padding-bottom:16px;margin-bottom:16px}
 .dc-group-icon{width:64px;height:64px;border-radius:18px}
 .dc-group-heading h3{font-size:18px}
 .dc-group-all{width:100%;margin:0;text-align:center}
 .dc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .dc-tile img,.dc-placeholder{width:80px;height:80px}
 /* product table becomes stacked cards */
 .dc-table,.dc-table tbody,.dc-table tr,.dc-table td{display:block}
 .dc-table{min-width:0}
 .dc-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .dc-table tr{padding:12px 14px;border-bottom:1px solid var(--dc-border)}
 .dc-table tbody tr:last-child{border-bottom:0}
 .dc-table td{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 0;border:0}
 .dc-table td[data-label]::before{content:attr(data-label);font-size:13px;opacity:.6}
 .dc-table td:first-child{display:block}
}
@media(prefers-reduced-motion:reduce){.dc-wrap *,.dc-directory *{transition:none!important;animation:none!important;scroll-behavior:auto!important}.dc-tile::before{transform:none!important}}

/* Theme-proof links: some themes underline every link inside content. */
.dc-directory a,.dc-wrap a{text-decoration:none!important}
.dc-active-category a.dc-clear{text-decoration:underline!important;margin-inline-start:6px}

/* 1.4.10: clearer section titles, discreet close controls and lower-motion rendering. */
.dc-head{
 position:relative;
 padding:15px 18px;
 border:1px solid color-mix(in srgb,var(--dc-primary) 17%,var(--dc-border));
 border-radius:16px;
 background:linear-gradient(115deg,color-mix(in srgb,var(--dc-primary) 10%,var(--dc-surface)),color-mix(in srgb,#8fcfc1 10%,var(--dc-surface)) 58%,var(--dc-surface));
 box-shadow:0 5px 18px color-mix(in srgb,var(--dc-primary) 6%,transparent);
}
.dc-head h2{position:relative;padding-inline-start:13px}
.dc-head h2::before{content:"";position:absolute;inset-inline-start:0;top:18%;bottom:18%;width:4px;border-radius:99px;background:var(--dc-primary)}
.dc-group-heading{
 position:relative;
 gap:12px;
 padding:14px 16px;
 margin:0 0 18px;
 border:1px solid color-mix(in srgb,var(--dc-primary) 17%,var(--dc-border));
 border-bottom:1px solid color-mix(in srgb,var(--dc-primary) 17%,var(--dc-border));
 border-radius:15px;
 background:linear-gradient(115deg,color-mix(in srgb,var(--dc-primary) 10%,var(--dc-surface)),color-mix(in srgb,#b8dcd3 12%,var(--dc-surface)) 62%,var(--dc-surface));
 box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
.dc-group-title{flex:1 1 180px;padding-inline-start:8px}
.dc-group-heading h3{position:relative;font-weight:850}
.dc-group-close{
 flex:0 0 34px;
 width:34px;height:34px;
 display:inline-flex;align-items:center;justify-content:center;
 padding:0;margin:0;
 border:1px solid color-mix(in srgb,var(--dc-primary) 22%,var(--dc-border));
 border-radius:50%;
 background:var(--dc-surface);
 color:var(--dc-primary);
 font:inherit;font-size:23px;line-height:1;
 cursor:pointer;
 box-shadow:0 2px 7px rgba(32,20,32,.06);
 transition:background .16s ease,color .16s ease,transform .16s ease,border-color .16s ease;
}
.dc-group-close:hover{background:var(--dc-primary);color:#fff;border-color:var(--dc-primary);transform:rotate(90deg)}
.dc-group-close:focus-visible{outline:2px solid var(--dc-primary);outline-offset:3px}
.dc-categories{position:relative;transition:opacity .16s ease}
.dc-categories.dc-is-loading{opacity:.68;pointer-events:none}
.dc-categories.dc-is-loading::after{
 content:"";position:absolute;z-index:30;inset-block-start:9px;inset-inline-start:9px;
 width:20px;height:20px;border:3px solid var(--dc-border);border-top-color:var(--dc-primary);
 border-radius:50%;animation:dc-loading-spin .65s linear infinite;
}
@keyframes dc-loading-spin{to{transform:rotate(360deg)}}
.dc-tile::before{animation-play-state:paused}
.dc-tile.dc-in-view::before{animation-play-state:running}
@media(max-width:700px){
 .dc-head{padding:13px 14px;gap:12px}
 .dc-group-heading{padding:12px;gap:10px}
 .dc-group-title{flex-basis:calc(100% - 52px)}
 .dc-group-close{flex-basis:32px;width:32px;height:32px}
 .dc-group-all{flex-basis:100%;width:100%}
}
@media(prefers-reduced-motion:reduce){
 .dc-categories,.dc-group-close{transition:none!important}
 .dc-categories.dc-is-loading::after{animation:none!important}
 .dc-tile::before{animation:none!important}
}

/* 1.4.10: readable close action at the end of the RTL heading. */
.dc-group-heading{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;border-radius:var(--dc-radius-md)}
.dc-group-heading .dc-group-title{min-width:0;padding-inline-start:0}
.dc-group-heading .dc-group-all{width:auto;margin:0;max-width:100%;white-space:normal}
.dc-group-heading .dc-group-close{width:auto;min-width:104px;min-height:44px;height:auto;gap:8px;padding:8px 12px;border-radius:var(--dc-radius-md);font-size:13px;font-weight:600;line-height:1.5;white-space:nowrap;transform:none}
.dc-group-close span[aria-hidden]{font:400 24px/1 Arial,sans-serif}
.dc-group-close:hover{transform:none}
@media(max-width:900px){
 .dc-group-heading{grid-template-columns:minmax(0,1fr) auto}
 .dc-group-heading .dc-group-close{grid-column:2;grid-row:1}
 .dc-group-heading .dc-group-all{grid-column:1 / -1;grid-row:2;text-align:center}
}

/* 1.4.11: wider directory and visible parent/child hierarchy. */
body.darex-catalog-page .dc-directory{
 box-sizing:border-box;
 width:min(1680px,calc(100vw - 64px));
 max-width:none;
 margin-inline:calc(50% - min(840px,calc(50vw - 32px)));
 padding-inline:0;
}
.dc-directory>.dc-wrap{width:100%;max-width:none;box-sizing:border-box}
.dc-level-root{background:linear-gradient(135deg,var(--dc-tint),var(--dc-surface) 65%);border-top:3px solid var(--dc-primary);box-shadow:var(--dc-shadow)}
.dc-root-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--dc-border)}
.dc-root-heading h3{margin:0;font-size:20px;color:var(--dc-primary)}
.dc-root-heading>span{font-size:13px;opacity:.75}
.dc-level-child{background:var(--dc-soft);border-inline-start:3px solid color-mix(in srgb,var(--dc-primary) 40%,var(--dc-border));box-shadow:none}
.dc-level-child .dc-group-heading{background:var(--dc-surface);box-shadow:none;border-color:var(--dc-border)}
.dc-depth-label{display:inline-block;padding:2px 9px;margin-bottom:6px;border-radius:999px;background:var(--dc-tint);color:var(--dc-primary);font-size:12px;font-weight:600}
.dc-level-child .dc-tile::before{opacity:.3}
.dc-level-child .dc-tile.is-selected::before{opacity:.65}
@media(max-width:700px){
 body.darex-catalog-page .dc-directory{width:calc(100vw - 32px);margin-inline:calc(50% - 50vw + 16px)}
 .dc-root-heading h3{font-size:18px}
 .dc-root-heading>span{font-size:12px}
 .dc-level-child{padding:14px}
}

/* 1.4.12: consistent counts, compact levels and readable product rows. */
.dc-tile-meta{flex-wrap:nowrap;width:100%;align-items:center;gap:4px;min-height:25px}
.dc-tile small{padding:2px 5px;font-size:11px}
.dc-tile-name{min-height:3.4em}
.dc-tile img{width:108px;height:108px;padding:2px;background:transparent}
.dc-level-root{background:linear-gradient(135deg,color-mix(in srgb,var(--dc-primary) 14%,var(--dc-surface)),var(--dc-surface))}
.dc-level-child{background:var(--dc-soft)}
.dc-level-compact{padding-block:14px}
.dc-level-compact .dc-tile{padding-block:8px;gap:4px}
.dc-level-compact .dc-tile img{height:88px;width:100px}
.dc-depth-label{white-space:normal;border-radius:8px}
.dc-products .dc-head form{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:0 1 700px}
.dc-products .dc-head input[type=search]{flex:1 1 200px;min-width:140px;width:auto}
.dc-filter-label{flex:0 1 210px;min-width:0}
.dc-filter-label select{width:100%;max-width:100%;padding:10px;border:1px solid var(--dc-border);border-radius:12px;background:var(--dc-surface);color:inherit}
.dc-products .dc-head button{flex:0 0 auto;margin:0}
.dc-table{table-layout:fixed}
.dc-table th:nth-child(2){width:240px}
.dc-table th:nth-child(3){width:110px}
.dc-table th:nth-child(4){width:160px}
.dc-product-name{font-size:15px;line-height:1.8}
.dc-product-name img{width:72px;height:72px;padding:0}
.dc-product-name span{overflow-wrap:anywhere}
.dc-price{white-space:normal;font-size:14px}
.dc-price del,.dc-price ins{display:inline-block}
.dc-table-scroll{max-height:70vh;overflow:auto}
.dc-table thead th{position:sticky;top:0;z-index:2;background:var(--dc-soft)}
.dc-directory.dc-is-loading{opacity:.7;cursor:progress}
@media(max-width:700px){
 .dc-tile img{width:90px;height:90px}
 .dc-tile small{font-size:10px;padding-inline:3px}
 .dc-products .dc-head form{flex-basis:100%}
 .dc-filter-label{flex-basis:100%}
 .dc-table-scroll{max-height:none}
 .dc-table{table-layout:auto}
}

/* 1.4.13: balanced page width and compact category rows. */
body.darex-catalog-page .dc-directory{width:min(1512px,calc(90vw - 58px));margin-inline:calc(50% - min(756px,calc(45vw - 29px)))}
.dc-categories .dc-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.dc-categories .dc-tile{padding:10px 8px;gap:5px}
.dc-categories .dc-tile img{height:92px;width:100px}
.dc-categories .dc-tile-name{font-size:14px;line-height:1.6;min-height:3.2em}
.dc-categories .dc-tile-meta{min-height:24px}
.dc-level-compact .dc-tile img{height:80px;width:90px}
.dc-products .dc-table-scroll{box-sizing:border-box;width:100%;max-width:none;margin-inline:0}
.dc-table thead th{background:color-mix(in srgb,var(--dc-primary) 12%,var(--dc-surface));font-size:14px;padding-block:12px}
.dc-table th:nth-child(2){width:230px}
.dc-table th:nth-child(3){width:110px}
.dc-table th:nth-child(4){width:160px}
@media(min-width:701px) and (max-width:1050px){
 .dc-categories .dc-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .dc-table th:nth-child(2){width:180px}
 .dc-table th:nth-child(3){width:85px}
 .dc-table th:nth-child(4){width:140px}
}
@media(max-width:700px){
 body.darex-catalog-page .dc-directory{width:calc(100vw - 32px);margin-inline:calc(50% - 50vw + 16px)}
 .dc-categories .dc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .dc-categories .dc-tile img{height:82px;width:90px}
}

/* Scoped layout guard against theme/UI width constraints. */
html body .dc-products.dc-products-aligned > .dc-head,
html body .dc-products.dc-products-aligned > .dc-table-scroll{
 box-sizing:border-box!important;
 display:block!important;
 width:100%!important;
 inline-size:100%!important;
 max-width:none!important;
 max-inline-size:none!important;
 min-width:0!important;
 margin-inline:0!important;
 justify-self:stretch!important;
 align-self:stretch!important;
 float:none!important;
}
html body .dc-products.dc-products-aligned > .dc-head{display:flex!important}
html body .dc-products.dc-products-aligned > .dc-table-scroll > .dc-table{
 width:100%!important;
 max-width:none!important;
 margin-inline:0!important;
}

/* 1.4.16: category beside the title; search at the opposite end. */
html body .dc-products.dc-products-aligned > .dc-head .dc-product-toolbar{
 display:grid!important;
 grid-template-columns:auto minmax(180px,240px) minmax(0,1fr);
 align-items:center;
 column-gap:18px;
 row-gap:12px;
 width:100%;
 min-width:0;
 margin:0;
 flex:1 1 100%;
}
.dc-product-toolbar h2{white-space:nowrap}
.dc-product-toolbar .dc-filter-label{width:100%;min-width:0;margin:0}
.dc-product-search{display:flex;align-items:center;gap:10px;justify-self:end;width:100%;max-width:440px;min-width:0}
.dc-products .dc-product-search input[type=search]{width:100%;min-width:0;flex:1 1 0}
html body .dc-products.dc-products-aligned > .dc-table-scroll{
 height:auto!important;
 max-height:none!important;
 block-size:auto!important;
 max-block-size:none!important;
 overflow-x:auto;
 overflow-y:visible;
}
@media(max-width:900px){
 html body .dc-products.dc-products-aligned > .dc-head .dc-product-toolbar{grid-template-columns:auto minmax(0,1fr)}
 .dc-product-toolbar .dc-filter-label{max-width:300px}
 .dc-product-search{grid-column:1 / -1;max-width:none;justify-self:stretch}
}
@media(max-width:480px){
 html body .dc-products.dc-products-aligned > .dc-head .dc-product-toolbar{column-gap:10px}
 .dc-product-toolbar h2{font-size:18px}
 .dc-product-toolbar .dc-filter-label select{font-size:12px;padding:8px}
}

/* 1.4.17: group title and filter on one shared vertical center. */
html body .dc-products.dc-products-aligned > .dc-head .dc-product-toolbar{grid-template-columns:minmax(0,auto) minmax(0,1fr)}
html body .dc-products .dc-toolbar-heading{display:flex;align-items:center;gap:16px;min-width:0;margin:0;padding:0}
html body .dc-products .dc-toolbar-heading h2{display:flex;align-items:center;flex:0 0 auto;min-height:48px;margin:0!important;padding-block:0!important;line-height:1.4!important}
html body .dc-products .dc-toolbar-heading .dc-filter-label{display:flex;align-items:center;flex:0 1 240px;width:240px;min-width:0;height:48px;margin:0!important;padding:0!important;line-height:normal!important;vertical-align:middle}
html body .dc-products .dc-toolbar-heading select{box-sizing:border-box;display:block;width:100%;height:48px;min-height:48px;margin:0!important;padding-block:0!important;padding-inline:12px 28px;line-height:normal!important;vertical-align:middle;font-family:inherit}
.dc-toolbar-heading .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){
 html body .dc-products.dc-products-aligned > .dc-head .dc-product-toolbar{grid-template-columns:minmax(0,1fr)}
 .dc-product-search{grid-column:1;grid-row:2}
}
@media(max-width:480px){
 html body .dc-products .dc-toolbar-heading{gap:10px}
 html body .dc-products .dc-toolbar-heading .dc-filter-label{flex:1 1 0;width:auto}
}
