: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: 290px; 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; top: -110px; right: -70px; width: 360px; height: 360px; border: 58px solid rgba(13,110,253,.06); border-radius: 50%; pointer-events: none; }
.catalog-hero-content { z-index: 1; }
.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; 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; }
.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(822px, 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; }
.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="center"] .product-grid { justify-content: center; }
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; width: 100%; height: 100%; padding: .75rem; object-fit: contain; }
.product-name { min-height: 2.4em; font-size: 1.05rem; }
.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; }
@media (max-width: 991.98px) { .catalog-sidebar-column, .catalog-content-column { width: 100%; } .filter-sidebar { position: static; } }
@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: 250px; } .catalog-hero h1 { font-size: 2.35rem; } }
