@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --ink: #102033;
    --cyan: #0b7ea8;
    --cyan-deep: #085272;
    --ember: #e8840c;
    --paper: #eef3f6;
    --line: #d7e1e8;
}

body {
    font-family: "DM Sans", system-ui, sans-serif;
    background:
        radial-gradient(circle at 100% 0%, rgba(11, 126, 168, 0.08), transparent 28%),
        var(--paper);
    color: var(--ink);
}

h1, h2, h3, h4, .navbar-brand, .store-hero h1 {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
}

.navbar-brand span { letter-spacing: -0.04em; }

.bg-dark > .container { min-width: 0; }
.bg-dark > .container > div { min-width: 0; }

.dept-bar {
    position: relative;
    flex: 1 0 100%;
    background: #fff;
    border-top: 1px solid var(--line);
}

.nav-drop { position: relative; }

.nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.72rem 0.85rem;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-tab:hover,
.nav-tab.is-active,
.nav-drop:hover > .nav-tab { color: var(--cyan); border-bottom-color: var(--ember); }

.nav-caret { font-size: 0.7rem; opacity: 0.7; }

.nav-cats {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--ember);
    box-shadow: 0 16px 36px rgba(16, 32, 51, 0.12);
}

.nav-drop:hover > .nav-cats,
.nav-drop:focus-within > .nav-cats { display: flex; }

.nav-cat-col,
.nav-sub-col {
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: 0.3rem 0;
}

.nav-cat-col { min-width: 250px; }

.nav-sub-col {
    display: none;
    min-width: 240px;
    border-left: 1px solid var(--line);
}

.nav-cats.show-subs .nav-sub-col { display: block; }

.nav-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.55rem 0.9rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 650;
}

.nav-cat:hover,
.nav-cat:focus,
.nav-cat.is-current { background: #f3f8fb; color: var(--cyan); }

.nav-subs { display: none; }
.nav-subs.is-open { display: block; }

.nav-subs a {
    display: block;
    padding: 0.48rem 0.9rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.86rem;
}

.nav-subs a:hover,
.nav-subs a:focus { background: #f3f8fb; color: var(--ember); }

.product-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}

.product-tile-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    text-decoration: none;
    color: inherit;
}

.product-tile-link:hover { color: inherit; }

.product-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(16, 32, 51, 0.08);
    color: inherit;
}

.product-tile-media {
    position: relative;
    flex: 0 0 168px;
    height: 168px;
    background: linear-gradient(#fff, #f6f9fb);
    overflow: hidden;
}

.product-tile-media img {
    position: absolute;
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    max-width: none;
    object-fit: contain;
}

.tile-off {
    position: absolute;
    z-index: 2;
    top: 8px;
    left: 8px;
    background: #e8840c;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.38rem 0.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(232, 132, 12, 0.35);
}

.related-scroller {
    position: relative;
}

.related-rail {
    display: flex;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 2px 12px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.related-rail::-webkit-scrollbar { display: none; }

.related-scroller .related-nav {
    z-index: 3;
    border: 1px solid #d5dee8;
}

.related-scroller .related-nav.prev { left: 4px; }
.related-scroller .related-nav.next { right: 4px; }
.related-scroller .related-nav:disabled {
    opacity: 0.4;
    cursor: default;
}

.related-rail .product-tile {
    flex: 0 0 220px;
    width: 220px;
    height: auto;
    scroll-snap-align: start;
}

.product-tile-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0.85rem 0.45rem;
    flex: 1 0 auto;
}

.product-tile-title {
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.35;
    height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-tile-sku {
    color: #64748b;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    height: 1.15em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-tile-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 0.25rem 0.4rem;
    min-height: 3.15em;
}

.inc-gst {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.product-tile-price .now {
    color: var(--cyan-deep);
    font-weight: 700;
    font-size: 1.05rem;
}

.product-tile-price .was {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 0.8rem;
}

.product-tile-price .off {
    background: #e8f8ee;
    color: #0f7a3a;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
}

.stock-pill {
    display: block;
    height: 1.2em;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stock-pill.in { color: #0f7a3a; }
.stock-pill.out { color: #b42318; }

.product-tile-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.35rem;
    margin-top: auto;
    padding: 0.45rem 0.85rem 0.85rem;
}

.tile-btn {
    flex: 1 1 0;
    height: 40px;
    min-height: 40px;
    padding: 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
    padding: 0;
    position: relative;
}

.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(16, 32, 51, 0.08);
    color: inherit;
}

.category-tile img,
.category-tile video,
.tile-visual img,
.tile-visual video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #f4f7fa;
    display: block;
    pointer-events: none;
}

.category-tile h4 {
    margin: 14px 14px 6px;
    font-size: 1.05rem;
    color: var(--cyan-deep);
}

.category-tile p {
    margin: 0 14px 12px;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.45;
    height: 4.35em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-tile .tile-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
}

.category-tile .tile-meta span:last-child { color: var(--ember); }

.grid.is-dept-index { grid-template-columns: 1fr; }
.dept-branch { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.dept-branch .category-tile { min-height: 0; }
.dept-subs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.dept-subs a {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--cyan-deep);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.3;
}
.dept-subs a:hover,
.dept-subs a:focus-visible { border-color: var(--cyan); color: var(--cyan-deep); }
@media (min-width: 900px) {
    .grid.is-dept-index { grid-template-columns: 1fr 1fr; }
}
[data-bs-theme="dark"] .dept-subs a {
    background: #152033;
    border-color: #2a3b52;
    color: #e8eef5;
}

.gallery-stage {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #102033;
    box-shadow: 0 6px 16px rgba(16, 32, 51, 0.16);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    cursor: pointer;
}

.gallery-nav.prev { left: 8px; }
.gallery-nav.next { right: 8px; }
.gallery-nav:hover,
.gallery-nav:focus { background: #fff; color: var(--cyan-deep); }

.thumb-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }

.thumb {
    width: 74px;
    height: 74px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px;
    cursor: pointer;
}

.thumb.is-active,
.thumb:hover { border-color: var(--cyan); }

.buy-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.1rem 1.15rem 1.2rem;
}

.buy-panel .price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.55rem;
}

[data-bs-theme="dark"] .product-tile,
[data-bs-theme="dark"] .category-tile,
[data-bs-theme="dark"] .gallery-stage,
[data-bs-theme="dark"] .buy-panel,
[data-bs-theme="dark"] .thumb {
    background: #152033;
    border-color: #2a3b52;
    color: #e8eef5;
}

[data-bs-theme="dark"] .gallery-nav {
    background: rgba(15, 23, 42, 0.92);
    color: #e8eef5;
}

[data-bs-theme="dark"] .product-tile-media { background: #10192b; }
[data-bs-theme="dark"] .inc-gst { color: #94a3b8; }
[data-bs-theme="dark"] .product-tile-title,
[data-bs-theme="dark"] .category-tile h4 { color: #e8eef5; }

.sale-banner {
    background: linear-gradient(90deg, #7c2d12 0%, #e8840c 46%, #f6c453 100%);
    color: #fff;
    font-weight: 700;
    padding: 0.72rem 0;
}

.sale-banner .sale-live {
    background: #fff;
    color: #9a3412;
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.sale-banner a {
    color: #fff;
    text-underline-offset: 3px;
}

.store-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    border-radius: 22px;
    padding: 2.6rem 2.2rem;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(232, 132, 12, 0.55), transparent 32%),
        linear-gradient(128deg, #071824 0%, #0b4f6c 48%, #1490b8 100%);
    box-shadow: 0 18px 40px rgba(7, 24, 36, 0.18);
}

.hero-aside {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.7rem;
    min-width: 210px;
}

.hero-aside div {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 0.75rem 0.95rem;
}

.hero-aside strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
}

.hero-aside span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

.navbar.sticky-top {
    overflow: visible;
    flex-direction: column;
    align-items: stretch;
}

.navbar.sticky-top > .container { width: 100%; }

.mobile-dept,
.mobile-cat { border-bottom: 1px solid var(--line); }

.mobile-dept > summary,
.mobile-cat > summary,
.mobile-dept-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    cursor: pointer;
    font-weight: 700;
    padding: 0.7rem 1rem;
    list-style: none;
    color: inherit;
    text-decoration: none;
}

.mobile-cat > summary { font-weight: 600; padding-left: 1.15rem; }

.mobile-dept > summary::-webkit-details-marker,
.mobile-cat > summary::-webkit-details-marker { display: none; }

.mobile-dept > summary::after,
.mobile-cat > summary::after {
    content: "";
    margin-left: auto;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    flex: 0 0 auto;
}

.mobile-dept[open] > summary::after,
.mobile-cat[open] > summary::after { transform: rotate(-135deg); }

.mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.45rem 1rem 0.45rem 1.35rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.95rem;
}

.mobile-cat a { padding-left: 1.7rem; }

.mobile-all { font-weight: 700; color: var(--cyan-deep) !important; }

.subcat-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
}

.subcat-scroll a { flex: 0 0 auto; min-height: 40px; }

#menuOffcanvas,
#cartOffcanvas { --bs-offcanvas-width: min(100vw, 22rem); }

@media (max-width: 991.98px) {
    .store-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 1.35rem 1.05rem;
        border-radius: 16px;
    }
    .hero-aside { min-width: 0; grid-template-columns: 1fr 1fr; }
    .store-hero h1 { font-size: 1.7rem; }
    .store-hero .lead { font-size: 1rem; }
    .product-tile-media { flex-basis: 128px; height: 128px; }
    .product-tile-media img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
    .product-tile-body { padding: 0.55rem 0.6rem 0.25rem; }
    .product-tile-actions { padding: 0.35rem 0.6rem 0.65rem; }
    .tile-btn { height: 40px; min-height: 40px; font-size: 0.72rem; }
    .product-tile-title { font-size: 0.82rem; }
    .product-tile-price .now { font-size: 0.95rem; }
    .related-rail .product-tile { flex-basis: 196px; width: 196px; }
    .pagination a, .pagination span { min-height: 44px; display: inline-flex; align-items: center; }
    .breadcrumb { overflow-wrap: anywhere; }
    .page-panel { padding: 1rem; }
    .buy-panel { padding: 0.9rem; }
    .zoom-hint { display: none; }
    .table-wrap { display: block; max-width: 100%; overflow-x: auto; }
    input, select, textarea, .form-control { font-size: 16px; }
    #cartOffcanvas { --bs-offcanvas-width: 100vw; }
    .checkout-summary { position: static !important; }
    .navbar .btn { min-height: 44px; }
}

@media (max-width: 575.98px) {
    .hero-aside { grid-template-columns: 1fr; }
    .sale-banner { font-size: 0.92rem; text-align: center; }
    .sale-banner a { display: inline-flex; min-height: 36px; align-items: center; }
}

.store-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 280px;
    height: 280px;
    border: 28px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.store-hero .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffd7a1;
    margin-bottom: 0.6rem;
}

.store-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.store-kicker span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
}

.dept-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .dept-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
    .dept-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.dept-card {
    --dept-wash: #e7f5fb;
    --dept-ink: #0b7ea8;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    height: 100%;
    min-height: 100%;
    padding: 1.05rem 1.05rem 0.9rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--dept-wash) 0, #fff 108px);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(16, 32, 51, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dept-card[data-tone="parts"] { --dept-wash: #e7f5fb; --dept-ink: #0b7ea8; }
.dept-card[data-tone="kits"] { --dept-wash: #fff3e6; --dept-ink: #c26500; }
.dept-card[data-tone="books"] { --dept-wash: #eef0ff; --dept-ink: #3d4db8; }
.dept-card[data-tone="courses"] { --dept-wash: #e7f8f4; --dept-ink: #0f7a62; }
.dept-card[data-tone="labs"] { --dept-wash: #f3f7e8; --dept-ink: #4d7a12; }

.dept-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(16, 32, 51, 0.1);
    color: inherit;
}

.dept-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dept-card h3 {
    margin: 0;
    color: #102033;
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.25;
    min-height: 2.5em;
}

.dept-card p {
    margin: 0;
    color: #526277;
    font-size: 0.92rem;
    line-height: 1.45;
    height: 4.35em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dept-card-meta {
    color: var(--dept-ink);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: right;
}

.dept-card-go {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    color: var(--dept-ink);
    font-size: 0.86rem;
    font-weight: 750;
}

.dept-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #fff;
    color: var(--dept-ink);
    border: 1px solid color-mix(in srgb, var(--dept-ink) 25%, #fff);
    font-size: 1.35rem;
}

.grid .card,
.product-card {
    border-radius: 16px !important;
    overflow: hidden;
    background: #fff;
}

.grid .card img,
.product-card img {
    background: linear-gradient(#fff, #f7fafc);
}

.price-box .badge,
.deal-badge {
    background: #e9f8ef !important;
    color: #0f7a3a !important;
    border-radius: 999px;
}

.cart-line {
    display: flex;
    gap: 0.7rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
}

.cart-line img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 700;
    line-height: 1;
}

.pay-choice {
    display: block;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.7rem;
    cursor: pointer;
    background: #fff;
}

.pay-choice:has(input:checked) {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(11, 126, 168, 0.12);
}

.trust-row i { color: var(--cyan); }

.store-map {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 16px;
    background: #e8eef3;
}
.footer-mail {
    color: #0d6efd;
    text-decoration: underline;
}
.footer-mail:hover { color: #0a58ca; }

@media (min-width: 768px) {
    .store-map { height: 280px; }
}

.page-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.6rem;
}

.target-panel { display: none; }
.target-panel.is-on { display: block; }

.target-scroll {
    max-height: 260px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.target-choice {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0.45rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
    color: inherit;
}

.target-choice small { margin-left: auto; }

[data-bs-theme="dark"] body {
    background: #0b1220;
    color: #e8eef5;
}

[data-bs-theme="dark"] .dept-bar,
[data-bs-theme="dark"] .nav-cats,
[data-bs-theme="dark"] .nav-subs,
[data-bs-theme="dark"] .dept-card,
[data-bs-theme="dark"] .grid .card,
[data-bs-theme="dark"] .page-panel,
[data-bs-theme="dark"] .pay-choice,
[data-bs-theme="dark"] .qty-btn {
    background: #152033;
    color: #e8eef5;
    border-color: #2a3b52;
}

[data-bs-theme="dark"] .nav-tab,
[data-bs-theme="dark"] .nav-cat,
[data-bs-theme="dark"] .nav-subs a,
[data-bs-theme="dark"] .mobile-nav a { color: #e8eef5; }
[data-bs-theme="dark"] .nav-cat:hover,
[data-bs-theme="dark"] .nav-cat:focus,
[data-bs-theme="dark"] .nav-cat.is-current,
[data-bs-theme="dark"] .nav-subs a:hover { background: #1c2c44; }
[data-bs-theme="dark"] .cart-line img { background: #0f172a; }
[data-bs-theme="dark"] .dept-card {
    background: linear-gradient(180deg, color-mix(in srgb, var(--dept-ink) 32%, #152033) 0, #152033 120px);
}
[data-bs-theme="dark"] .dept-card h3 { color: #e8eef5; background: transparent; }
[data-bs-theme="dark"] .dept-card p { color: #b7c3d4; }
[data-bs-theme="dark"] .dept-icon { background: #0f172a; }
[data-bs-theme="dark"] .product-tile-media { background: #10192b; }

.admin-nav {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.65rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}
.admin-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}
.admin-nav a.is-active {
    background: #0b7ea8;
    color: #fff;
    border-color: #0b7ea8;
}
.admin-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.admin-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    min-height: 96px;
}
.admin-stat strong {
    font-size: 1.35rem;
    color: #0b7ea8;
}
.admin-stat small { color: #64748b; }
.admin-activities {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
.admin-activity {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    min-height: 44px;
    background: #fff;
}
.admin-activity input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    flex: 0 0 auto;
}
@media (min-width: 768px) {
    .admin-activities { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    .admin-stats { grid-template-columns: repeat(4, 1fr); }
}
[data-bs-theme="dark"] .admin-nav a,
[data-bs-theme="dark"] .admin-stat,
[data-bs-theme="dark"] .admin-activity {
    background: #152033;
    color: #e8eef5;
    border-color: #2a3b52;
}
[data-bs-theme="dark"] .admin-nav a.is-active { background: #0b7ea8; color: #fff; }
[data-bs-theme="dark"] .admin-stat small { color: #b7c3d4; }

button.thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: #0b7ea8;
    font-size: 1.7rem;
    line-height: 1;
}
.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}
.wysiwyg {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.wysiwyg-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.45rem;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}
.wysiwyg-tools button,
.wysiwyg-tools select,
.wysiwyg-color,
.wysiwyg-width {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0.2rem 0.55rem;
}
.wysiwyg-tools select { max-width: 9.5rem; }
.wysiwyg-color {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
}
.wysiwyg-color input[type="color"] {
    width: 28px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
}
.wysiwyg-width {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.78rem;
}
.wysiwyg-width input { width: 92px; }
.wysiwyg-body h1, .box h1, .rich-copy h1 { font-size: 2rem; }
.wysiwyg-body h2, .box h2, .rich-copy h2 { font-size: 1.6rem; }
.wysiwyg-body h3, .box h3, .rich-copy h3 { font-size: 1.3rem; }
.wysiwyg-body h4, .box h4, .rich-copy h4 { font-size: 1.1rem; }
.wysiwyg-body img { cursor: ew-resize; }
.wysiwyg-body img.is-selected { outline: 2px solid #0b7ea8; outline-offset: 2px; }
.wysiwyg-body {
    min-height: 420px;
    max-height: 70vh;
    overflow: auto;
    padding: 0.9rem 1rem;
    font-size: 16px;
}
.wysiwyg-body img,
.box img,
.rich-copy img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.rich-copy p { margin: 0 0 0.75rem; }
.tile-visual { position: relative; display: block; }
.card-play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e8840c;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1rem;
    line-height: 1;
}
.dept-card > .tile-visual {
    margin: -1.05rem -1.05rem 0.2rem;
}
.dept-card > .tile-visual img,
.dept-card > .tile-visual video {
    height: 168px;
}
.page-media {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.page-media img,
.page-media video,
.card .page-media img,
.card .page-media video {
    width: 320px;
    max-width: 80vw;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
    flex: 0 0 auto;
}
.wysiwyg-body:focus { outline: 2px solid #0b7ea8; outline-offset: -2px; }
[data-bs-theme="dark"] .wysiwyg,
[data-bs-theme="dark"] .wysiwyg-tools,
[data-bs-theme="dark"] .wysiwyg-tools button,
[data-bs-theme="dark"] .wysiwyg-tools select,
[data-bs-theme="dark"] button.thumb {
    background: #152033;
    color: #e8eef5;
    border-color: #2a3b52;
}
.rating-jump {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}
.rating-jump:hover { color: var(--cyan-deep); }
.rating-stars { color: #d5dde5; letter-spacing: 0.04em; }
.rating-stars .star-active { color: #e8840c; }
.rating-stars .star-muted { color: #d5dde5; }
#customer-reviews { scroll-margin-top: 120px; }
.review-summary {
    display: grid;
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.review-score {
    font-size: 2.4rem;
    font-weight: 750;
    line-height: 1;
    color: #102033;
}
.review-breakdown { display: grid; gap: 0.4rem; }
.review-line {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 2.2rem;
    gap: 0.55rem;
    align-items: center;
    font-size: 0.85rem;
    color: #526277;
}
.review-bar {
    height: 8px;
    border-radius: 99px;
    background: #e8eef3;
    overflow: hidden;
}
.review-bar > span {
    display: block;
    height: 100%;
    background: #e8840c;
}
.review-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 36px;
    margin: 0;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}
@media (max-width: 640px) {
    .review-summary { grid-template-columns: 1fr; }
}
[data-bs-theme="dark"] .review-summary,
[data-bs-theme="dark"] .review-choice { background: #152033; }
[data-bs-theme="dark"] .review-score { color: #e8eef5; }
[data-bs-theme="dark"] .review-bar { background: #243246; }

.photo-edit-thumb {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    line-height: 0;
    cursor: pointer;
}
.photo-edit-thumb:hover,
.photo-edit-thumb:focus-visible { border-color: var(--cyan); }
body.photo-editor-open { overflow: hidden; }
.photo-editor[hidden] { display: none !important; }
.photo-editor {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: #0b1220;
    color: #e8eef5;
}
.photo-editor-bar,
.photo-editor-foot {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    background: #102033;
    flex-shrink: 0;
}
.photo-editor-foot { flex-wrap: wrap; }
.photo-editor-foot .btn,
.photo-editor-bar .btn { white-space: nowrap; }
.photo-editor-bar strong {
    font-family: "Space Grotesk", sans-serif;
    white-space: nowrap;
}
.photo-editor-status {
    flex: 1;
    min-width: 0;
    color: #b7c3d4;
    font-size: 0.86rem;
}
.photo-editor-status.is-bad { color: #fecaca; }
.photo-editor-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.photo-editor-stage {
    position: relative;
    flex: 1 1 180px;
    min-height: 160px;
    max-height: 42vh;
    background: #0b1220;
}
.photo-editor-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}
.photo-editor-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    color: #e8eef5;
}
.photo-editor-loading[hidden] { display: none !important; }
.photo-editor-cropbar {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
}
.photo-editor-cropbar[hidden] { display: none !important; }
.photo-editor-tools {
    width: 100%;
    flex: 1 1 180px;
    min-height: 0;
    overflow: auto;
    background: #fff;
    color: #102033;
    padding: 0.8rem 1rem 1rem;
}
.photo-editor-group { margin: 0 0 0.9rem; }
.photo-editor-group h3 {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #526277;
}
.photo-editor-field {
    display: block;
    margin: 0 0 0.45rem;
    font-size: 0.86rem;
    font-weight: 700;
}
.photo-editor-field output {
    float: right;
    font-weight: 500;
    color: #526277;
}
.photo-editor-field input[type="range"],
.photo-editor-field textarea,
.photo-editor-field select,
.photo-editor-inline select {
    display: block;
    width: 100%;
    margin-top: 0.2rem;
    font-weight: 500;
}
.photo-editor-field textarea {
    min-height: 52px;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.photo-editor-actions,
.photo-editor-inline,
.photo-editor-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.35rem 0;
}
.photo-editor-actions button,
.photo-editor-inline label,
.photo-editor-checks label {
    border: 1px solid var(--line);
    background: #fff;
    color: #102033;
    border-radius: 8px;
    padding: 0.28rem 0.5rem;
    font-size: 0.82rem;
}
.photo-editor-actions button:hover,
.photo-editor-actions button:focus-visible { border-color: var(--cyan); color: var(--cyan-deep); }
.photo-editor-inline label,
.photo-editor-checks label { display: inline-flex; align-items: center; gap: 0.3rem; }
.photo-editor-inline select { width: auto; margin: 0; }
.store-search { position: relative; }
.store-search.is-open { z-index: 40; }
.search-suggest {
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(16, 32, 51, 0.14);
    max-height: min(70vh, 440px);
    overflow: auto;
}
.search-suggest a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.7rem;
    color: inherit;
    text-decoration: none;
}
.search-suggest a.is-active,
.search-suggest a:hover { background: #f3f8fb; }
.search-suggest img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 8px;
    flex: 0 0 auto;
}
.search-suggest-text { min-width: 0; display: flex; flex-direction: column; }
.search-suggest-title { font-weight: 650; font-size: 0.86rem; line-height: 1.25; }
.search-suggest-meta,
.search-suggest-empty { color: #64748b; font-size: 0.75rem; }
.search-suggest-price { font-size: 0.8rem; font-weight: 700; }
.search-suggest-price s { margin-left: 0.35rem; color: #94a3b8; font-weight: 500; }
.search-suggest-all {
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cyan-deep);
}
.search-suggest-empty { margin: 0; padding: 0.75rem; }
[data-bs-theme="dark"] .search-suggest { background: #121a2b; border-color: #243044; }
[data-bs-theme="dark"] .search-suggest a.is-active,
[data-bs-theme="dark"] .search-suggest a:hover { background: #1b2740; }
[data-bs-theme="dark"] .search-suggest img { background: #10192b; }
[data-bs-theme="dark"] .search-suggest-title { color: #e8eef5; }
[data-bs-theme="dark"] .search-suggest-all { color: #7ec8e3; border-color: #243044; }
.photo-editor-hint { margin: 0.2rem 0 0; color: #64748b; font-size: 0.75rem; }
.photo-editor-spacer { flex: 1; }
.photo-editor-angle {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin: 0.15rem 0 0.35rem;
}
.photo-editor-angle input[type="number"] {
    width: 5.4rem;
    margin: 0;
    padding: 0.28rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 600;
}
.photo-editor.is-cropping [data-lock="1"],
.photo-editor.is-erasing [data-lock="1"] { opacity: 0.45; pointer-events: none; }
@media (min-width: 960px) {
    .photo-editor-body { flex-direction: row; }
    .photo-editor-stage { min-height: 0; max-height: none; flex: 1 1 auto; }
    .photo-editor-tools { width: 340px; max-height: none; flex: 0 0 340px; }
}
