/* Native popovers escape card overflow; no remote stylesheet or icon library. */
:root { --nc-brand-backing: linear-gradient(145deg,#71948a,#54776d 58%,#42665d); }
:is([data-commerce-theme=night],[data-public-chat-theme=night]) { --nc-brand-backing: transparent; }
.nc-product-brand { display: inline-flex; align-items: center; flex: none; max-width: 100%; color: var(--nc-ink,var(--sc-ink,#183633)); }
/* Reserve alignment space, but paint only the intrinsic logo and its small inset. */
.nc-brand-mark { display: flex; align-items: center; justify-content: flex-start; box-sizing: border-box; width: 104px; height: 52px; }
.nc-brand-mark img { display: block; box-sizing: border-box; min-width: 0; min-height: 0; width: auto; height: auto; max-width: 100%; max-height: 100%; padding: 5px 8px; border-radius: 7px; background: var(--nc-brand-backing); object-fit: contain; object-position: left center; }
.nc-brand-name { font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: .04em; overflow-wrap: anywhere; }
.nc-card-media > .nc-product-brand { position: absolute; top: 12px; left: 12px; z-index: 1; max-width: calc(100% - 58px); pointer-events: none; }
.nc-card-media .nc-brand-mark { max-width: 100%; }
.nc-card-media:has(.nc-product-brand) > a > img { padding-top: 68px; }
.nc-gallery-heading { position: absolute; top: 16px; left: 18px; right: 18px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.nc-gallery-heading .nc-product-brand { max-width: 45%; }
.nc-gallery-heading .nc-brand-mark { width: 112px; max-width: 100%; }
.nc-icon-rail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 18px; }
.nc-icon-chip { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 0; padding: 3px; cursor: pointer; background: transparent; box-shadow: none; transition: transform .15s; }
.nc-icon-chip img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nc-icon-tooltip { position: fixed; inset: auto; margin: 0; box-sizing: border-box; max-width: min(280px,calc(100vw - 16px)); padding: 8px 12px; border: 1px solid #355451; border-radius: 10px; background: #123331; color: #fff; box-shadow: 0 5px 18px #0003; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; pointer-events: none; }
.nc-icon-tooltip::backdrop { background: transparent; pointer-events: none; }
.nc-icon-chip:hover { transform: translateY(-2px); }
.nc-icon-chip:focus-visible { outline: 2px solid var(--nc-accent,var(--sc-accent,#0fa6aa)); outline-offset: 2px; }
.nc-icon-chip--sticker { width: auto; min-width: 38px; max-width: 90px; }
.nc-icon-chip--sticker img { width: auto; max-width: 78px; }
.nc-icon-rail--compact { gap: 5px; margin: 10px 0; }
.nc-icon-rail--compact .nc-icon-chip { width: 30px; height: 30px; padding: 3px; }
.nc-icon-rail--compact .nc-icon-chip--sticker { width: auto; }
/* Keep icons in normal flow so the media can grow on narrow cards; the photo
   fills that reserved space without its intrinsic ratio widening the card. */
.nc-card-media { position: relative; display: flow-root; aspect-ratio: 4 / 4.5; min-width: 0; }
.sc-card > .nc-card-media { aspect-ratio: 1 / 1.16; }
.nc-card-media > a { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.nc-card-media > .nc-icon-rail { position: relative; width: 30px; flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 2px; margin: 12px 8px 48px auto; }
.nc-card-media .nc-icon-chip { flex: none; width: 30px; height: 30px; min-width: 0; max-width: 30px; padding: 3px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.nc-card-media .nc-icon-chip img { width: 100%; max-width: 100%; height: 100%; }
.nc-card-media .nc-icon-chip:focus-visible { outline: 2px solid var(--nc-accent,var(--sc-accent,#0fa6aa)); outline-offset: 1px; }
.nc-card-media:has(.nc-icon-rail) > a > img { padding-right: 44px; }
.nc-gallery > .nc-icon-rail,.sc-product-stage > .nc-icon-rail { position: absolute; top: 76px; right: 14px; z-index: 2; margin: 0; flex-direction: column; flex-wrap: nowrap; gap: 4px; max-height: calc(100% - 164px); overflow-y: auto; scrollbar-width: none; }
.nc-gallery > .nc-icon-rail::-webkit-scrollbar,.sc-product-stage > .nc-icon-rail::-webkit-scrollbar { display: none; }
.nc-gallery:has(.nc-icon-rail) > .nc-main-image,.sc-product-stage:has(.nc-icon-rail) > .sc-product-image { padding-right: 58px; }
.nc-icon-fallback { font-family: inherit; font-size: 9px; line-height: 1.1; max-height: 100%; overflow: hidden; color: #294548; }
.nc-icon-explanation { box-sizing: border-box; position: fixed; inset: 0; margin: auto; width: min(400px,calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 48px); overflow: auto; padding: 28px; border: 1px solid #cbded9; border-radius: 24px; background: #f9fcfb; color: #102c2c; font-family: inherit; font-size: 15px; line-height: 1.6; box-shadow: 0 24px 90px #0005; }
.nc-icon-explanation:popover-open { display: block; }
.nc-icon-explanation::backdrop { background: #07141655; }
.nc-icon-explanation>img { object-fit: contain; padding: 0; background: transparent; margin-bottom: 16px; }
.nc-icon-explanation h3 { font-size: 19px; margin: 0 0 10px; color: inherit; line-height: 1.3; }
.nc-icon-explanation p { margin: 0; color: inherit; font-size: 14px; white-space: pre-line; }
.nc-icon-close { position: absolute; right: 12px; top: 10px; background: transparent; color: inherit; border: 0; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 25px; }
:is([data-commerce-theme=night],[data-public-chat-theme=night]) .nc-icon-explanation { background: #10272a; border-color: #294548; color: #eff8f6; }
.nc-brand-field { display: grid; gap: 5px; flex: 0 1 210px; min-width: 0; }
.nc-filter-caption { font-size: 12px; font-weight: 600; color: var(--nc-muted); }
.nc-brand-filter { position: relative; min-width: 0; font-size: 13px; }
.nc-brand-filter[open] { z-index: 40; }
.nc-brand-filter summary { cursor: pointer; display: flex; gap: 12px; align-items: center; height: 46px; border: 1px solid var(--nc-line); border-radius: 12px; padding: 0 12px; list-style: none; background: var(--nc-surface); }
.nc-brand-filter summary::-webkit-details-marker { display: none; }
.nc-brand-filter summary strong { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-brand-filter summary > svg { width: 16px; height: 16px; flex: none; }
.nc-brand-filter[open] summary { border-color: var(--nc-accent); }
.nc-brand-filter[open] summary > svg { transform: rotate(180deg); }
.nc-brand-options { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px,calc(100vw - 48px)); max-height: min(400px,65dvh); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--nc-line); padding: 6px; border-radius: 16px; box-shadow: 0 14px 40px #0003; background: var(--nc-surface); scrollbar-width: thin; }
.nc-brand-options label { position: relative; display: grid; grid-template-columns: 96px minmax(0,1fr) 16px; align-items: center; gap: 12px; padding: 8px; min-height: 64px; border-radius: 10px; cursor: pointer; }
.nc-brand-options label:has(input:checked),.nc-brand-options label:hover { background: var(--nc-soft); }
.nc-brand-options input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.nc-brand-options label:has(input:focus-visible) { outline: 2px solid var(--nc-accent); outline-offset: -2px; }
.nc-brand-option-name { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.nc-brand-check { color: var(--nc-accent); font-size: 16px; opacity: 0; }
.nc-brand-options input:checked ~ .nc-brand-check { opacity: 1; }
.nc-brand-option-logo { display: flex; align-items: center; justify-content: flex-start; box-sizing: border-box; width: 96px; height: 48px; }
.nc-brand-option-logo img { display: block; box-sizing: border-box; min-width: 0; min-height: 0; width: auto; height: auto; max-width: 100%; max-height: 100%; padding: 4px 6px; border-radius: 6px; background: var(--nc-brand-backing); object-fit: contain; object-position: left center; }
.nc-brand-option-logo--fallback { background: transparent; color: var(--nc-muted); font-weight: 600; }
.nc-brand-option-logo--fallback svg { width: 24px; height: 24px; }
@media(max-width:700px) {
    .nc-card-media > .nc-product-brand { top: 8px; left: 8px; max-width: calc(100% - 46px); }
    .nc-card-media .nc-brand-mark { width: 88px; height: 46px; }
    .nc-card-media .nc-brand-mark img { padding: 4px 6px; border-radius: 6px; }
    .nc-card-media:has(.nc-product-brand) > a > img { padding-top: 58px; }
    .nc-gallery-heading { left: 14px; right: 14px; gap: 12px; }
    .nc-filters > .nc-brand-field,.nc-filters > label.nc-filter-select:not(.nc-search) { flex: 1 1 calc(50% - 4px); min-width: 0; }
    .nc-filters > .nc-button { flex: 1 0 100%; }
    .nc-brand-options { left: 0; right: auto; }
    .nc-card-media > .nc-icon-rail { width: 28px; margin: 8px 4px 48px auto; gap: 1px; }
    .nc-card-media .nc-icon-chip { width: 28px; height: 28px; padding: 2px; }
    .nc-card-media:has(.nc-icon-rail) > a > img { padding-right: 34px; }
    .nc-gallery > .nc-icon-rail,.sc-product-stage > .nc-icon-rail { right: 10px; gap: 3px; }
    .nc-gallery > .nc-icon-rail .nc-icon-chip,.sc-product-stage > .nc-icon-rail .nc-icon-chip { width: 28px; height: 28px; padding: 2px; }
    .nc-gallery:has(.nc-icon-rail) > .nc-main-image,.sc-product-stage:has(.nc-icon-rail) > .sc-product-image { padding-right: 46px; }
}
@media(prefers-reduced-motion:reduce) { .nc-icon-chip { transition: none; } }
