:root { color-scheme: dark; }
html, body { min-height: 100%; }
body { margin: 0; }
.space-page {
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 115%, #183a70 0, #09152d 38%, #030711 72%, #010205 100%);
}
.starfield { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .65; box-shadow: 0 0 6px rgba(177, 214, 255, .9); }
.star-lg { width: 3px; height: 3px; }
.star-tw { animation: starTwinkle 3s ease-in-out infinite; }
@keyframes starTwinkle { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
.comet {
  --comet-angle: 18deg; --comet-start-x: -18vw; --comet-start-y: 18vh; --comet-end-x: 116vw; --comet-end-y: 34vh;
  position: fixed; z-index: 1; top: 0; left: 0; width: 190px; height: 2px; border-radius: 50%; pointer-events: none;
  transform-origin: right center; transform: translate3d(var(--comet-start-x), var(--comet-start-y), 0) rotate(var(--comet-angle));
  background: linear-gradient(90deg, transparent, rgba(145, 203, 255, .14), rgba(255,255,255,.95));
  filter: drop-shadow(0 0 7px #8bc5ff); animation: cometFly 12s linear infinite;
}
.comet::after { content: ""; position: absolute; right: -2px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 5px rgba(115,187,255,.75); }
@keyframes cometFly { 0%, 13% { opacity: 0; transform: translate3d(var(--comet-start-x), var(--comet-start-y), 0) rotate(var(--comet-angle)); } 17%, 78% { opacity: 1; } 84%, 100% { opacity: 0; transform: translate3d(var(--comet-end-x), var(--comet-end-y), 0) rotate(var(--comet-angle)); } }
.auth-shell { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; padding-block: 2rem; }
.auth-card { width: min(100%, 430px); color: #182032; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.brand-mark, .opening-icon { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #0d6efd, #6f42c1); box-shadow: 0 0 35px rgba(87,139,255,.38); }
.brand-mark { width: 64px; height: 64px; color: #fff; font-size: 1.7rem; }
.opening-shell { min-height: calc(100vh - 72px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 8vh; }
.opening-icon { width: 92px; height: 92px; font-size: 2.5rem; }
.opening-shell .lead { max-width: 700px; }
.tracking { letter-spacing: .24em; color: #a9c9ff; }
@media (prefers-reduced-motion: reduce) { .star-tw, .comet { animation: none; } }

.shop-page { min-height: 100vh; color-scheme: light; background: #f6f7fb; color: #182032; }
.catalog-hero { position: relative; min-height: 420px; display: flex; align-items: center; overflow: hidden; background-color: #eef5ff; background-image: linear-gradient(90deg, rgba(238,245,255,.98) 0%, rgba(255,255,255,.94) 58%, rgba(245,241,255,.82) 100%); background-position: center; background-size: cover; }
.catalog-hero::after { content: ""; position: absolute; z-index: 0; top: 50%; left: 8%; width: 156%; height: 345%; transform: translateY(-50%) rotate(-30deg); background: url('/static/images/un1t-emblem-gray.png') center / contain no-repeat; opacity: .20; pointer-events: none; }
.catalog-hero-content { z-index: 1; }
.catalog-title-panel { position: relative; z-index: 2; padding: 1rem 1.25rem; margin: -1rem -1.25rem; background: #f1f6fd; border-radius: .75rem; }
.site-layout-shell { box-sizing: border-box; transition: width .2s ease, max-width .2s ease, margin .2s ease; }
body[data-product-layout="center"] .site-layout-shell { width: min(1320px, 100%); margin-inline: auto; }
body[data-product-layout="compact"] .site-layout-shell { width: min(1100px, 100%); margin-left: 0; margin-right: auto; }
body[data-product-layout="wide"] .site-layout-shell { width: 100%; max-width: none; }
.catalog-hero h1 { max-width: 950px; letter-spacing: -.035em; }
.catalog-sidebar-column { width: 30%; }
.catalog-content-column { width: 70%; }
.filter-sidebar { position: sticky; z-index: 1990; top: 88px; }
.filter-section { padding: 1rem; border: 1px solid #e7eaf0; border-radius: .75rem; background: #fafbfc; }
.filter-section + .filter-section { margin-top: 1rem; }
.filter-title { margin-bottom: .9rem; color: #343a40; font-size: .83rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.category-option { cursor: pointer; font-size: .94rem; }
.category-option .btn { line-height: 1; }
.category-filter-children { border-left: 1px solid #dee2e6; }
.category-filter-node [data-bs-toggle="collapse"] .bi, .category-filter-node [data-category-dropdown-toggle] .bi { display: inline-block; transition: transform .18s ease; }
.category-filter-node [data-bs-toggle="collapse"]:not(.collapsed) .bi, .category-filter-node [data-category-dropdown-toggle][aria-expanded="true"] .bi { transform: rotate(180deg); }
.category-filter-dropdown { z-index: 2000; width: min(320px, calc(100vw - 2rem)); max-height: min(70vh, 560px); padding: .75rem; overflow: auto; border-radius: .75rem; box-shadow: 0 1rem 2.5rem rgba(24, 32, 50, .2); }
.category-filter-dropdown-portal { position: fixed !important; }
@media (max-width: 991.98px) { .category-filter-dropdown, .category-filter-dropdown.collapsing { position: static !important; width: auto; max-height: none; margin: 0 0 0 .5rem !important; padding: 0 0 0 1rem; overflow: visible; transform: none !important; border: 0; border-left: 1px solid #dee2e6; border-radius: 0; box-shadow: none; } .category-filter-dropdown.collapsing { display: block; } }
.vendor-list { max-height: 14rem; overflow: auto; padding-right: .25rem; }
.price-slider-group { display: grid; gap: .9rem; }
.price-slider-row { padding: .65rem .75rem .35rem; border-radius: .55rem; background: #fff; }
.price-slider-row output { color: #0d6efd; font-weight: 700; }
.price-slider-row .form-range { margin-top: .35rem; margin-bottom: 0; }
.product-section { scroll-margin-top: 90px; }
.product-section-inner { width: min(904px, 100%); }
.product-section-heading { padding-block: 1rem 2.25rem; }
.product-section-heading h2 { line-height: 1; letter-spacing: -.035em; }
.product-grid { align-items: stretch; justify-content: flex-start; }
.product-card-column { display: flex; }
@media (min-width: 576px) and (max-width: 1199.98px) { .product-grid > .product-card-column:only-child { flex: 0 0 55%; width: 55%; } }
@media (min-width: 1200px) { .product-grid > .product-card-column:only-child { flex: 0 0 36.6667%; width: 36.6667%; } }
.product-card { width: 100%; transition: transform .18s ease, box-shadow .18s ease; }
.product-layout-switcher .btn { min-width: 2.35rem; }
body[data-product-layout="center"] .product-section-inner { margin-inline: auto; }
body[data-product-layout="wide"] .product-section-inner { width: 100%; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 .75rem 1.75rem rgba(24, 32, 50, .12) !important; }
.product-discount-badge { z-index: 3; font-size: .72rem; box-shadow: 0 .25rem .55rem rgba(220,53,69,.25); }
.product-visual { position: relative; display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 8 / 9; overflow: hidden; border-radius: var(--bs-card-border-radius) var(--bs-card-border-radius) 0 0; color: color-mix(in srgb, var(--product-accent) 62%, #adb5bd); font-size: 3.25rem; background: #fff; border-bottom: 1px solid rgba(0,0,0,.05); }
.product-image-placeholder { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; opacity: .42; }
.product-visual > img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; box-sizing: border-box; padding: .75rem; object-fit: contain; object-position: center; }
.product-image-upload { position: relative; min-height: 118px; }
.product-upload-preloader { position: absolute; z-index: 5; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; border-radius: inherit; background: rgba(255,255,255,.94); backdrop-filter: blur(2px); }
.product-upload-preloader[hidden] { display: none; }
.media-preview-trigger { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.image-preview-modal-image { max-height: 78vh; object-fit: contain; }
.product-full-description { white-space: pre-wrap; }
.product-name { min-height: 2.4em; font-size: 1.05rem; }
.product-defect { color: var(--defect-color, #b42318); font-family: var(--bs-font-monospace); font-size: .78rem; line-height: 1.35; font-weight: 600; }
.product-card .card-body { flex: 1 1 auto; padding: 1.25rem; }
.product-card .card-footer { min-height: 64px; padding: .9rem 1.25rem; border-top-color: #eef0f3; }
.customer-benefits .list-group-item { min-height: 48px; padding-inline: 1.25rem; background: #f3fbf6; border-color: #dcefe2; }
.btn-cart { transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn-cart:hover, .btn-cart:focus-visible { color: #fff; background: #0d6efd; border-color: #0d6efd; box-shadow: 0 .35rem .8rem rgba(13, 110, 253, .3); transform: translateY(-1px); }
.empty-products { width: 100%; background: #fff; }
.admin-menu { min-width: 270px; padding: .65rem; }
.admin-menu .dropdown-item { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: .45rem; }
.admin-menu .dropdown-item i { width: 1.15rem; color: #0d6efd; text-align: center; }
.brand-shop-badge { font-size: .48em; letter-spacing: .02em; }
.admin-module-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: .9rem; color: #0d6efd; background: #eaf2ff; font-size: 1.55rem; }
.category-tree-node { position: relative; display: flex; align-items: center; min-height: 2rem; }
.category-tree-branch { align-self: stretch; width: 1rem; margin-right: .5rem; border-left: 2px solid #ced4da; border-bottom: 2px solid #ced4da; border-bottom-left-radius: .35rem; }
.category-depth-1 { padding-left: 1.5rem; }
.category-depth-2 { padding-left: 3rem; }
.category-depth-3 { padding-left: 4.5rem; }
.category-depth-4 { padding-left: 6rem; }
.category-depth-5 { padding-left: 7.5rem; }
.category-depth-6 { padding-left: 9rem; }
@media (max-width: 991.98px) { .catalog-sidebar-column, .catalog-content-column { width: 100%; } .filter-sidebar { position: static; z-index: auto; } }
@media (max-width: 575.98px) { .product-section-heading { align-items: flex-start !important; flex-direction: column; gap: .35rem !important; padding-block: .35rem 1rem; } .product-section-heading h2 { font-size: 2.2rem; } .product-section-heading > span { padding-bottom: 0 !important; } }
@media (max-width: 767.98px) { .catalog-hero { min-height: 300px; } .catalog-hero::after { left: -80%; width: 345%; height: 345%; transform: translateY(-50%) rotate(-30deg); opacity: .12; } .catalog-title-panel { padding: .75rem 1rem; margin: -.75rem -1rem; } .catalog-hero h1 { font-size: 2.35rem; } }
