/* ZarinMarket 3.9.37 – Category Browser. Scoped, light palette; dark tokens reserved. */
.zm-category-browser{--zm-cb-accent:#e9004b;--zm-cb-surface:#fff;--zm-cb-text:#172033;--zm-cb-muted:#717d91;--zm-cb-line:#e5eaf1;--zm-cb-soft:#f6f7fa;position:fixed;inset:0;z-index:2147482000;font-family:inherit;color:var(--zm-cb-text)}
.zm-category-browser[hidden],.zm-category-browser [hidden]{display:none!important}
body.zm-category-browser-open{overflow:hidden!important}
.zm-category-browser__backdrop{position:absolute;inset:0;background:rgba(17,24,39,.6);opacity:0;transition:opacity .24s ease}
.zm-category-browser__panel{position:absolute;top:50%;left:50%;width:min(92vw,640px);max-height:min(85dvh,850px);background:var(--zm-cb-surface);border-radius:22px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 30px 85px #11182744;transform:translate(-50%,-47%) scale(.97);opacity:0;transition:transform .26s cubic-bezier(.22,1,.36,1),opacity .22s ease;outline:0}
.zm-category-browser.is-visible .zm-category-browser__backdrop{opacity:1}
.zm-category-browser.is-visible .zm-category-browser__panel{transform:translate(-50%,-50%) scale(1);opacity:1}
.zm-category-browser__head{display:flex;align-items:center;gap:12px;padding:19px 20px;border-bottom:1px solid var(--zm-cb-line)}
.zm-category-browser__head-symbol{display:grid;place-items:center;background:#fff0f5;color:var(--zm-cb-accent);width:43px;height:43px;border-radius:13px;flex:none}
.zm-category-browser svg{width:21px;height:21px;display:block}
.zm-category-browser__head-copy{flex:1;min-width:0}
.zm-category-browser__head-copy h2{font-size:17px;margin:0 0 5px!important;color:var(--zm-cb-text);line-height:1.4}
.zm-category-browser__head-copy p{font-size:12px;color:var(--zm-cb-muted);margin:0!important}
.zm-category-browser__close{width:38px;height:38px;flex:none;border:0;background:var(--zm-cb-soft);border-radius:11px;display:grid;place-items:center;color:var(--zm-cb-text);cursor:pointer}
.zm-category-browser__search{margin:16px 20px 0;min-height:49px;border-radius:13px;background:var(--zm-cb-soft);display:flex;align-items:center;padding:0 13px;gap:10px;border:1px solid transparent}
.zm-category-browser__search:focus-within{border-color:var(--zm-cb-accent)}
.zm-category-browser__search>svg{color:#96a0b0;flex:none}
.zm-category-browser__search input{font:inherit!important;font-size:16px!important;border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;color:var(--zm-cb-text)!important;min-width:0;width:100%;padding:10px 0!important}
.zm-category-browser__navigation{display:flex;align-items:center;gap:12px;padding:17px 20px 12px;min-height:51px}
.zm-category-browser__navigation button{border:0;background:#fff0f5;color:var(--zm-cb-accent);border-radius:9px;padding:7px 12px;cursor:pointer;font:inherit;font-size:12px}
.zm-category-browser__crumbs{font-size:14px;font-weight:750}
.zm-category-browser__scroll{overflow:auto;overscroll-behavior:contain;padding:0 20px 22px;min-height:120px}
.zm-category-browser__status{padding:22px 12px;text-align:center;color:var(--zm-cb-muted);font-size:13px}
.zm-category-browser__items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.zm-category-browser__card{border:1px solid var(--zm-cb-line);background:#fff;border-radius:15px;padding:11px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:10px;cursor:pointer;font:inherit;text-align:center;transition:border-color .18s,background .18s;position:relative;color:var(--zm-cb-text)}
.zm-category-browser__card:hover{border-color:#f3a6bd;background:#fff9fb}
.zm-category-browser__picture{width:100%;aspect-ratio:1.5;max-height:107px;display:grid;place-items:center;border-radius:10px;background:var(--zm-cb-soft);overflow:hidden;color:#929caf}
.zm-category-browser__picture img{width:100%;height:100%;object-fit:contain}
.zm-category-browser__picture svg{width:30px;height:30px}
.zm-category-browser__name{font-size:12px;line-height:1.7;font-weight:700;overflow-wrap:anywhere}
.zm-category-browser__arrow{position:absolute;inset-inline-end:9px;bottom:8px;color:#a2aaba;opacity:.6}
.zm-category-browser__arrow svg{width:13px;height:13px}
.zm-category-browser__bottom{display:grid;gap:10px;margin-top:15px;text-align:center}
.zm-category-browser__bottom a,.zm-category-browser__bottom button{display:block;width:100%;box-sizing:border-box;border:1px solid #f3aec3;color:var(--zm-cb-accent);background:#fff3f7;padding:12px;border-radius:11px;font:inherit;font-size:13px;font-weight:700;text-decoration:none!important;cursor:pointer}
.zm-category-browser :is(button,a,input):focus-visible{outline:2px solid var(--zm-cb-accent)!important;outline-offset:2px}
@media(max-width:767px){.zm-category-browser__panel{top:0;left:0;width:100%;height:100dvh;max-height:100dvh;border-radius:0;transform:translateY(25px);opacity:1}.zm-category-browser.is-visible .zm-category-browser__panel{transform:translateY(0)}.zm-category-browser__head{padding:16px}.zm-category-browser__search{margin:14px 16px 0}.zm-category-browser__navigation{padding:15px 16px 11px}.zm-category-browser__scroll{padding:0 16px 22px}.zm-category-browser__items{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}}
@media(max-width:355px){.zm-category-browser__items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.zm-category-browser__panel,.zm-category-browser__backdrop{transition:none!important}}

/* 3.9.36: skeletons match the category-card grid; no blank loading screen. */
.zm-category-browser__status:not([hidden]){padding:12px 10px;font-size:12px}
.zm-category-browser__skeleton-card{border:1px solid var(--zm-cb-line);border-radius:15px;background:#fff;padding:11px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none;overflow:hidden}
.zm-category-browser__skeleton-picture{width:100%;aspect-ratio:1.5;max-height:107px;border-radius:10px}
.zm-category-browser__skeleton-line{width:72%;height:10px;border-radius:6px}
.zm-category-browser__skeleton-foot{width:46%;height:8px;border-radius:6px;margin-top:1px}
.zm-category-browser__skeleton-shine{display:block;position:relative;overflow:hidden;background:#eff1f5}
.zm-category-browser__skeleton-shine::after{content:"";position:absolute;inset:0;transform:translateX(100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.82),transparent);animation:zm-category-skeleton 1.5s ease-in-out infinite}
@keyframes zm-category-skeleton{0%{transform:translateX(100%)}100%{transform:translateX(-100%)}}
/* Separate leaf destination from expandable categories; only parents display a chevron. */
.zm-category-browser__card{justify-content:flex-start}
.zm-category-browser__card-foot{margin-top:auto;min-height:18px;display:inline-flex;gap:5px;align-items:center;justify-content:center;line-height:1.5;font-size:10px;max-width:100%}
.zm-category-browser__card-foot--branch{color:var(--zm-cb-accent);font-weight:700}
.zm-category-browser__card-foot--branch svg{width:13px;height:13px;flex:none}
.zm-category-browser__card-foot--branch svg:last-child{width:11px;height:11px}
.zm-category-browser__card-foot--leaf{color:#8a95a6}
.zm-category-browser__arrow{display:none}
@media(prefers-reduced-motion:reduce){.zm-category-browser__skeleton-shine::after{animation:none!important;display:none}}

/* 3.9.37: one coherent focus ring for the search field, never an inner rectangle. */
.zm-category-browser .zm-category-browser__search{box-sizing:border-box;border:1px solid transparent;transition:border-color .18s ease,box-shadow .18s ease}
.zm-category-browser .zm-category-browser__search:focus-within{border-color:var(--zm-cb-accent);box-shadow:0 0 0 3px rgba(233,0,75,.075)}
.zm-category-browser .zm-category-browser__search input:focus,.zm-category-browser .zm-category-browser__search input:focus-visible{outline:none!important;box-shadow:none!important;border:0!important}


/* 3.9.39 — Uniform media stage for portrait, landscape and square category artwork.
   Medium files are less likely to have WordPress's cropped thumbnail dimensions. */
.zm-category-browser .zm-category-browser__picture{
    box-sizing:border-box;min-height:0;aspect-ratio:3 / 2;max-height:none;
    display:grid;place-items:center;padding:9px;background:var(--zm-cb-soft);
}
.zm-category-browser .zm-category-browser__picture img{
    display:block;width:100%!important;height:100%!important;
    max-width:100%!important;max-height:100%!important;
    min-width:0;object-fit:contain!important;object-position:center;
    margin:0!important;border:0!important;box-shadow:none!important;
}
@media(max-width:355px){.zm-category-browser .zm-category-browser__picture{padding:7px}}

/* Square badges/logos get breathing room; landscape category photos keep their width. */
.zm-category-browser .zm-category-browser__picture--square img{
    width:80%!important;height:90%!important;max-width:80%!important;max-height:90%!important;
}

/* 3.9.40 — Two independent presentation systems, shared category data. */
.zm-category-browser .zm-category-browser__card-copy{display:flex;min-width:0;width:100%;flex-direction:column;align-items:center;gap:6px;flex:1}
.zm-category-browser .zm-category-browser__picture{isolation:isolate}
.zm-category-browser .zm-category-browser__picture--fallback{color:#8190a8;background:linear-gradient(145deg,#f1f4f8,#e9edf5)}
.zm-category-browser .zm-category-browser__picture--fallback svg{width:29px;height:29px}
.zm-category-browser .zm-category-browser__card-foot--branch{background:#fff0f5;padding:3px 7px;border-radius:20px;white-space:nowrap}
.zm-category-browser .zm-category-browser__card--parent:hover{border-color:#ed9ab2}
.zm-category-browser .zm-category-browser__navigation{flex-wrap:wrap}
.zm-category-browser .zm-category-browser__crumbs{flex:1;min-width:120px;overflow-wrap:anywhere}
.zm-category-browser .zm-category-browser__view-all{color:var(--zm-cb-accent);font-size:11px;text-decoration:none!important;white-space:nowrap;border:1px solid #f5b6c8;padding:7px 10px;border-radius:9px;font-weight:700}
.zm-category-browser .zm-category-browser__view-all:hover{background:#fff0f5}
.zm-category-browser--list .zm-category-browser__items{grid-template-columns:minmax(0,1fr);gap:9px}
.zm-category-browser--list .zm-category-browser__card{width:100%;display:flex;flex-direction:row;align-items:center;gap:13px;min-height:78px;padding:10px 12px;text-align:right;border-radius:13px}
.zm-category-browser--list .zm-category-browser__picture{width:74px;max-width:74px;flex:0 0 74px;aspect-ratio:1;max-height:74px;border-radius:10px;padding:8px}
.zm-category-browser--list .zm-category-browser__card-copy{align-items:flex-start;gap:5px;justify-content:center}
.zm-category-browser--list .zm-category-browser__name{font-size:13px;text-align:right;line-height:1.6}
.zm-category-browser--list .zm-category-browser__card-foot{margin:0;min-height:0;font-size:11px}
.zm-category-browser--list .zm-category-browser__skeleton-card{flex-direction:row;align-items:center;gap:13px;min-height:78px;padding:10px 12px;border-radius:13px}
.zm-category-browser--list .zm-category-browser__skeleton-picture{width:65px;flex:0 0 65px;aspect-ratio:1;max-height:65px}
.zm-category-browser--list .zm-category-browser__skeleton-line{width:45%;height:10px}
.zm-category-browser--list .zm-category-browser__skeleton-foot{width:24%;height:8px}
@media(max-width:355px){.zm-category-browser--list .zm-category-browser__items{grid-template-columns:minmax(0,1fr)}.zm-category-browser--list .zm-category-browser__picture{width:62px;flex-basis:62px}}


/* 3.9.41 — Accessible nested accordion only in List layout. */
.zm-category-browser--list .zm-category-browser__tree-node{min-width:0;border:1px solid var(--zm-cb-line);background:#fff;border-radius:13px;overflow:hidden}
.zm-category-browser--list .zm-category-browser__tree-node>.zm-category-browser__card{border:0;border-radius:0;margin:0;min-height:78px}
.zm-category-browser--list .zm-category-browser__tree-node.is-expanded{border-color:var(--zm-cb-line)}
.zm-category-browser--list .zm-category-browser__tree-node.is-expanded>.zm-category-browser__card{background:#fff}
.zm-category-browser--list .zm-category-browser__tree-panel{padding:9px 12px 12px;border-top:1px solid #f1dfe6;background:#fff}
.zm-category-browser--list .zm-category-browser__tree-children{display:grid;gap:7px;min-width:0;border-inline-start:2px solid #f3c0cf;margin-inline-start:5px;padding-inline-start:10px}
.zm-category-browser--list .zm-category-browser__tree-children>.zm-category-browser__card,.zm-category-browser--list .zm-category-browser__tree-children>.zm-category-browser__tree-node>.zm-category-browser__card{min-height:64px;padding:8px 10px}
.zm-category-browser--list .zm-category-browser__tree-children .zm-category-browser__picture{width:49px;flex-basis:49px;max-width:49px;max-height:49px;padding:6px}
.zm-category-browser--list .zm-category-browser__tree-children .zm-category-browser__name{font-size:12px}
.zm-category-browser--list .zm-category-browser__tree-children .zm-category-browser__card-foot{font-size:10px}
.zm-category-browser--list .zm-category-browser__tree-children .zm-category-browser__tree-children .zm-category-browser__picture{width:39px;flex-basis:39px;max-width:39px;max-height:39px}
.zm-category-browser--list .zm-category-browser__tree-view-all{display:block;margin-bottom:10px;border:1px solid #f3c1d0;color:var(--zm-cb-accent);border-radius:9px;padding:9px 10px;font-size:11px;text-align:center;text-decoration:none!important;font-weight:700}
.zm-category-browser--list .zm-category-browser__tree-view-all:hover{background:#fff1f5}
.zm-category-browser--list .zm-category-browser__tree-more,.zm-category-browser--list .zm-category-browser__tree-retry{display:block;width:100%;margin-top:9px;border:1px solid var(--zm-cb-line);background:#f7f8fb;padding:9px;border-radius:9px;font:inherit;font-size:11px;cursor:pointer;color:var(--zm-cb-text)}
.zm-category-browser--list .zm-category-browser__tree-message{margin:8px 0;font-size:12px;color:var(--zm-cb-muted);text-align:center}
.zm-category-browser--list .zm-category-browser__tree-loading{display:grid;gap:7px}
.zm-category-browser--list .zm-category-browser__tree-loading-row{display:flex;gap:12px;align-items:center;padding:8px;border:1px solid var(--zm-cb-line);border-radius:9px}
.zm-category-browser--list .zm-category-browser__tree-loading-row span:first-child{width:42px;height:42px;border-radius:8px;flex:none}
.zm-category-browser--list .zm-category-browser__tree-loading-row span:last-child{width:45%;height:9px;border-radius:5px}
.zm-category-browser--list .zm-category-browser__picture--fallback{background:linear-gradient(145deg,#f1f4f8,#e9edf5)}
.zm-category-browser--list .zm-category-browser__tree-node .zm-category-browser__card:focus-visible{outline-offset:-2px}
@media(prefers-reduced-motion:reduce){.zm-category-browser--list .zm-category-browser__tree-node .zm-category-browser__card-foot svg{transition:none!important}}

/* 3.9.42 — Compact List rows and a separate, RTL-correct accordion arrow.
   All rules remain scoped to List: Grid cards and category icon dimensions are unchanged. */
.zm-category-browser--list .zm-category-browser__card,
.zm-category-browser--list .zm-category-browser__tree-node > .zm-category-browser__card{
    box-sizing:border-box;
    min-height:68px;
    padding:8px 11px;
    gap:10px;
    background:#fff;
}
.zm-category-browser--list .zm-category-browser__tree-node > .zm-category-browser__card:hover,
.zm-category-browser--list .zm-category-browser__tree-node.is-expanded > .zm-category-browser__card,
.zm-category-browser--list .zm-category-browser__tree-node.is-expanded > .zm-category-browser__card:hover{
    background:#fff;
}
.zm-category-browser--list .zm-category-browser__tree-node.is-expanded{
    border-color:var(--zm-cb-line);
}
.zm-category-browser--list .zm-category-browser__picture{
    box-sizing:border-box;
    width:52px;
    height:52px;
    max-width:52px;
    max-height:52px;
    flex:0 0 52px;
    aspect-ratio:1;
    padding:4px;
    border-radius:9px;
}
.zm-category-browser--list .zm-category-browser__picture--fallback{padding:9px}
.zm-category-browser--list .zm-category-browser__picture--fallback svg{width:22px;height:22px}
.zm-category-browser--list .zm-category-browser__picture img{object-fit:contain!important}
.zm-category-browser--list .zm-category-browser__tree-children > .zm-category-browser__card,
.zm-category-browser--list .zm-category-browser__tree-children > .zm-category-browser__tree-node > .zm-category-browser__card{
    min-height:56px;
    padding:7px 9px;
    gap:9px;
}
.zm-category-browser--list .zm-category-browser__tree-children .zm-category-browser__picture{
    width:40px;max-width:40px;height:40px;max-height:40px;
    flex:0 0 40px;padding:3px;
}
.zm-category-browser--list .zm-category-browser__tree-children .zm-category-browser__picture--fallback{padding:7px}
.zm-category-browser--list .zm-category-browser__tree-children .zm-category-browser__picture--fallback svg{width:19px;height:19px}
.zm-category-browser--list .zm-category-browser__tree-children .zm-category-browser__tree-children .zm-category-browser__picture{
    width:34px;max-width:34px;height:34px;max-height:34px;flex:0 0 34px;padding:3px;
}
.zm-category-browser--list .zm-category-browser__tree-children .zm-category-browser__tree-children .zm-category-browser__picture--fallback{padding:6px}
.zm-category-browser--list .zm-category-browser__tree-children .zm-category-browser__tree-children .zm-category-browser__picture--fallback svg{width:17px;height:17px}
.zm-category-browser--list .zm-category-browser__card-foot--branch{
    background:transparent;
    color:var(--zm-cb-muted);
    padding:0;
    border-radius:0;
    font-weight:500;
}
.zm-category-browser--list .zm-category-browser__expand-arrow{
    display:grid;place-items:center;
    width:23px;height:23px;flex:0 0 23px;
    margin-inline-start:auto;
    color:#8996aa;
    pointer-events:none;
}
.zm-category-browser--list .zm-category-browser__expand-arrow svg{
    width:15px;height:15px;
    transform:rotate(180deg); /* Right-facing source chevron becomes left-facing in RTL. */
    transition:transform .2s ease;
}
.zm-category-browser--list .zm-category-browser__tree-node.is-expanded > .zm-category-browser__card .zm-category-browser__expand-arrow svg{
    transform:rotate(90deg); /* Open: down. */
}
.zm-category-browser--list .zm-category-browser__skeleton-card{min-height:68px;padding:8px 11px;gap:10px}
.zm-category-browser--list .zm-category-browser__skeleton-picture{width:52px;flex:0 0 52px;max-height:52px}
.zm-category-browser--list .zm-category-browser__tree-loading-row{padding:7px;gap:9px}
.zm-category-browser--list .zm-category-browser__tree-loading-row span:first-child{width:40px;height:40px}
@media(prefers-reduced-motion:reduce){
 .zm-category-browser--list .zm-category-browser__expand-arrow svg{transition:none!important}
}

/* 3.9.43 — Category Browser readability, RTL direction and accessible focus. */
.zm-category-browser .zm-category-browser__search > .zarinIcons.search{font-size:20px;line-height:1;flex:0 0 auto;color:#96a0b0}
.zm-category-browser--grid .zm-category-browser__card-foot--branch svg:last-child{transform:rotate(180deg)}
.zm-category-browser--list .zm-category-browser__tree-children{
    border-inline-start:0!important;margin-inline-start:0!important;padding-inline-start:0!important;
    border:0!important;min-width:0;gap:8px;
}
.zm-category-browser--list .zm-category-browser__tree-panel{padding:9px 9px 10px;border-top:1px solid var(--zm-cb-line);background:#fff}
.zm-category-browser--list .zm-category-browser__tree-children > .zm-category-browser__tree-node,
.zm-category-browser--list .zm-category-browser__tree-children > .zm-category-browser__card{width:100%;min-width:0;margin:0}
.zm-category-browser--list .zm-category-browser__tree-node.is-expanded > .zm-category-browser__card,
.zm-category-browser--list .zm-category-browser__tree-node > .zm-category-browser__card:hover{background:#fff!important;box-shadow:none}
/* Pointer focus should not create a full-card pink frame. Keyboard focus remains visible. */
.zm-category-browser--list .zm-category-browser__tree-node > .zm-category-browser__card:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
.zm-category-browser--list .zm-category-browser__tree-node > .zm-category-browser__card:focus-visible{outline:2px solid var(--zm-cb-accent)!important;outline-offset:-3px!important}
.zm-category-browser--list .zm-category-browser__tree-node.is-expanded{border-color:var(--zm-cb-line)!important}
.zm-category-browser--hide-root-title .zm-category-browser__navigation{min-height:0;padding-top:0;padding-bottom:0}
.zm-category-browser--hide-root-title .zm-category-browser__navigation{display:none}

/* 3.9.44 — Keep a consistent search-to-results gap when the optional root heading is hidden.
   The heading/navigation used to provide the spacing; once hidden, the results own it.
   Scope to the root-only state so breadcrumbs, search results and children are unchanged. */
.zm-category-browser--hide-root-title .zm-category-browser__scroll {
    padding-top: 18px;
}
@media (max-width:767px) {
    .zm-category-browser--hide-root-title .zm-category-browser__scroll {
        padding-top: 16px;
    }
}
