/* brand-v15: the DentMarket logo (brand pack) in the header and on the home page, day and night. */
.brand-logo{display:inline-flex;align-items:center;line-height:0}
.site-logo{display:block;height:40px;width:auto}
.home-page .home-brand .site-logo{height:64px}
.logo-night{display:none}
[data-theme=dark] .logo-day{display:none}
[data-theme=dark] .logo-night{display:block}
@media(max-width:760px){.site-logo{height:32px}.home-page .home-brand .site-logo{height:48px}}

/* Desktop bar of main categories under the header (Torob-style); also internal links for search engines. */
.group-bar{display:none}
@media(min-width:761px){
 .group-bar{display:block;background:var(--panel);border-bottom:1px solid var(--line)}
 .group-bar-inner{max-width:1400px;margin:0 auto;padding:0 24px;display:flex;gap:20px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;align-items:center;min-height:44px}
 .group-bar-inner::-webkit-scrollbar{display:none}
 .group-bar a{font-size:13.5px;flex-shrink:0;color:var(--muted-2);padding:10px 0;white-space:nowrap}
 .group-bar a:hover{color:var(--accent)}
 .group-bar .group-bar-all{margin-right:auto;color:var(--blue)}
 .home-page .group-bar{background:var(--bg);border-bottom:0}
}

/* Home price-drop band (Digikala «شگفت‌انگیز» style): red band, title panel beside the cards. */
.home-page .deals-band{background:linear-gradient(120deg,#b5122e,#e2264d);border:0;color:#fff}
.deals-band .section-heading h2,.deals-band .shelf-caption{color:#fff}
.deals-band .section-heading a{background:#fff;color:#b5122e!important;border-radius:999px;padding:6px 16px;font-weight:600}
.deals-band .deal-badge{background:#fff;color:#b5122e}
.deals-band .card{border-color:transparent}
@media(min-width:761px){
 .home-page .deals-band{display:grid;grid-template-columns:200px minmax(0,1fr);gap:18px;align-items:center}
 .deals-band .section-heading{flex-direction:column;align-items:center;text-align:center;gap:14px;margin:0}
 .deals-band .section-heading::before{content:'٪';display:block;font-size:64px;font-weight:800;line-height:1;color:#fff}
 .deals-band .section-heading h2{font-size:24px}
}

/* Product page: the factual price summary. */
.price-summary p{font-size:15px;line-height:2.1;margin:0}

/* Main-group icons: solid colour circles with a white pictogram (Digikala-style), one colour per group. */
.group-badge,.browse-strip>a>.group-badge,.browse-strip>a:nth-child(n)>.group-badge{display:grid;place-items:center;flex-shrink:0;border-radius:50%;
  width:44px;height:44px;padding:0;border:0;box-shadow:0 3px 10px #0000001f}
.group-badge .dm-icon,.mega-tab .group-badge .dm-icon,.category-rail .group-badge .dm-icon{width:72%;height:72%;color:#fff;fill:#ffffff47;
  background:none;border:0;padding:0;border-radius:0}
/* !important: older sheets give these wrappers a pale background and inner padding. */
.group-badge{padding:0!important;border:0!important}
.gb-endo{background:#e2264d!important}.gb-restorative{background:#1e88e5!important}.gb-prosthetic{background:#8e24aa!important}.gb-surgery{background:#00897b!important}
.gb-handpiece{background:#f4511e!important}.gb-equipment{background:#3949ab!important}.gb-infection{background:#43a047!important}.gb-consumables{background:#f59e0b!important}
.gb-imaging{background:#546e7a!important}.gb-ortho{background:#d81b60!important}.gb-whitening{background:#0ea5e9!important}.gb-oral-hygiene{background:#14b8a6!important}
.browse-strip>a>.group-badge{width:72px;height:72px;margin:4px auto 9px}
.browse-strip>a:hover>.group-badge{transform:translateY(-2px);box-shadow:0 6px 16px #0000002e}
.mega-tab .group-badge{width:34px;height:34px}
.category-rail .group-badge{width:40px;height:40px}

/* Subcategory pictograms: larger glyphs, stronger ink and tint, so their shapes read clearly. */
:root:not([data-theme=dark]){--icon-ink:#1f2937;--icon-tint:#f3a5b8;--icon-bg:#fff1f4}
:root{--icon-ink:#f1f5f7;--icon-tint:#b4415f}
.category-body .subcategory-icon,.subcategory-links>a:nth-child(n) .subcategory-icon{width:68px;height:68px;padding:7px;border-radius:18px}
.subcategory-icon .dm-icon{width:100%;height:100%}

/* Mobile categories page: Torob-style lists instead of the two-column browser. */
.cat-mobile{display:none}
@media(max-width:760px){
 .category-browser{display:none}
 .cat-mobile{display:block;padding:12px 12px 90px}
 .cat-mobile h1{font-size:19px;font-weight:650;margin:6px 4px 12px}
 .cat-back{display:inline-block;color:var(--blue);font-size:14px;margin:2px 4px 4px}
 .cat-row{display:flex;align-items:center;gap:14px;background:var(--panel);border-bottom:1px solid var(--line);padding:12px 14px;font-size:15px;color:var(--text)}
 .cat-row:first-of-type{border-radius:14px 14px 0 0}
 .cat-row>span:not(.group-badge){flex:1}
 .cat-row::after{content:'‹';color:var(--muted);font-size:20px;line-height:1}
 .cat-group .group-badge{width:46px;height:46px}
 .cat-row>.product-icon{width:40px;height:40px;background:var(--icon-bg);border-radius:12px;padding:3px;border:1px solid var(--line)}
 .cat-all{color:var(--accent);font-weight:600}
 .cat-section{background:var(--panel);border:1px solid var(--line);border-radius:14px;margin:10px 0;overflow:hidden}
 .cat-section>summary{padding:14px 16px;font-size:16px;font-weight:650;cursor:pointer;list-style:none;display:flex;justify-content:space-between}
 .cat-section>summary::-webkit-details-marker{display:none}
 .cat-section>summary::after{content:'+';color:var(--muted);font-weight:400}
 .cat-section[open]>summary::after{content:'−'}
 .cat-section .cat-row{border-radius:0;border-bottom:0;border-top:1px solid var(--line)}
 .browse-strip>a>.group-badge{width:60px;height:60px}
}

/* v16 — desktop categories page as in the header's mega menu: group circles with a chevron on the right,
   bold section headings, plain text lists of subcategories (no subcategory pictograms on desktop). */
@media(min-width:761px){
 .category-body .subcategory-icon,.category-body .subcategory-links>a:nth-child(n) .subcategory-icon{display:none!important}
 .category-body .category-sections{grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 18px;margin-top:22px}
 .category-body .category-section h2{font-size:16px;line-height:1.8;margin-bottom:10px}
 .category-body .subcategory-links{display:flex;flex-direction:column;gap:0}
 .category-body .subcategory-links>a{flex-direction:row;text-align:right;font-size:14px;line-height:1.9;padding:6px 0;gap:0;min-height:32px;color:var(--muted-2)}
 .category-body .subcategory-links>a:hover{color:var(--accent)}
 .category-rail>a{display:flex;align-items:center;gap:12px;padding:14px 16px}
 .category-rail>a>span:not(.group-badge){flex:1}
 .category-rail>a::after{content:'‹';color:var(--muted);font-size:20px;line-height:1}
 .category-rail .selected::after{color:var(--accent)}
 .category-rail .group-badge{width:46px;height:46px}
}
@media(min-width:761px) and (max-width:1100px){.category-body .category-sections{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v17 — home first screen in the spirit of Google Shopping: logo, one wide rounded search box,
   popular searches and the main groups as chips; no menu rows or shortcut tiles above the fold. */
.home-page .desktop-navigation{display:none}
.home-page .home-brand{margin-top:42px}
.home-page .top-inner{max-width:760px}
.home-page .searchbar{height:58px;border-radius:29px;border:1px solid var(--line);box-shadow:0 1px 6px #20212447;padding:0 22px;background:var(--panel)}
.home-page .searchbar:focus-within{box-shadow:0 2px 10px #2021245c}
.home-page .hero-meta{padding:10px 16px 0}
.home-page .chip-strip{justify-content:center;flex-wrap:wrap;gap:8px;margin:12px auto 0;max-width:860px;padding:0 16px}
.chip-label{font-size:13px;color:var(--muted);align-self:center}
.home-page .chip-strip .chip{font-size:13px;padding:4px 14px}
.group-pills{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:1040px;margin:22px auto 26px;padding:0 16px}
.group-pills>a{display:inline-flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:999px;padding:5px 14px 5px 6px;font-size:14px;color:var(--text);transition:box-shadow .15s,border-color .15s}
.group-pills>a:hover{border-color:var(--accent);box-shadow:0 2px 8px var(--shadow)}
.group-pills .group-badge{width:32px;height:32px;box-shadow:none}
@media(max-width:760px){
 .home-page .home-brand{margin-top:14px}
 .home-page .searchbar{height:50px;border-radius:25px;padding:0 14px}
 .home-page .chip-strip{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto}
 .chip-label{display:none}
 .group-pills{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;margin:14px 0 16px;padding:0 12px}
 .group-pills::-webkit-scrollbar{display:none}
 .group-pills>a{flex-shrink:0;font-size:13px}
}
