:root {
  --store-accent: #635bff; --store-accent-hover: #4f46e5; --store-ink: #0a2540;
  --store-muted: #425466; --store-line: #e6ebf1; --store-canvas: #f6f9fc;
  --store-surface: #fff; --store-topbar: rgba(255,255,255,.92);
}
html.theme-dark { --store-accent: #9c95ff; --store-accent-hover: #c1bcff; --store-ink: #f1f5fb; --store-muted: #b7c3d4; --store-line: #2b3b51; --store-canvas: #16243a; --store-surface: #101b2e; --store-topbar: rgba(16,27,46,.92); color-scheme: dark; }
html, body { min-height: 100%; }
body.store-shell { background: var(--store-surface); color: var(--store-ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55; }
body.store-shell a { color: var(--store-accent); } body.store-shell a:hover { color: var(--store-accent-hover); }
body.store-shell .text-muted, body.store-shell .text-secondary { color: var(--store-muted) !important; }
body.store-shell .bg-light, body.store-shell .bg-body-tertiary { background: var(--store-canvas) !important; }
body.store-shell .border, body.store-shell .border-top, body.store-shell .border-bottom { border-color: var(--store-line) !important; }
body.store-shell .card { background: var(--store-surface); border-color: var(--store-line); border-radius: 10px; }
body.store-shell .card-header, body.store-shell .list-group-item { background-color: transparent; border-color: var(--store-line); color: var(--store-ink); }
body.store-shell .view-home-index .card { position: relative; }
body.store-shell .product-card-configure { align-items: center; background: var(--store-surface); border: 1px solid var(--store-line); border-radius: 50%; color: var(--store-accent) !important; display: inline-flex; font-size: 16px; height: 32px; justify-content: center; position: absolute; right: 12px; text-decoration: none; top: 12px; transition: background-color .2s ease, color .2s ease; width: 32px; z-index: 1; }
body.store-shell .product-card-configure:hover, body.store-shell .product-card-configure:focus-visible { background: var(--store-accent); color: #fff !important; }
body.store-shell .product-card-image { align-items: center; aspect-ratio: 4 / 3; background: var(--store-canvas); border-bottom: 1px solid var(--store-line); display: flex; justify-content: center; overflow: hidden; }
body.store-shell .product-card-image img { height: 100%; object-fit: contain; width: 100%; }
body.store-shell .form-control, body.store-shell .form-select { background: var(--store-surface); border-color: var(--store-line); color: var(--store-ink); }
body.store-shell .form-control:focus, body.store-shell .form-select:focus { border-color: var(--store-accent); box-shadow: 0 0 0 .25rem rgba(99,91,255,.14); }
body.store-shell .btn-primary { background: var(--store-accent); border-color: var(--store-accent); box-shadow: 0 2px 5px rgba(50,50,93,.12); font-weight: 600; }
body.store-shell .btn-primary:hover, body.store-shell .btn-primary:focus { background: var(--store-accent-hover); border-color: var(--store-accent-hover); }
body.store-shell .btn-outline-primary { border-color: var(--store-accent); color: var(--store-accent); }
body.store-shell .btn-outline-primary:hover { background: var(--store-accent); border-color: var(--store-accent); }

.store-topbar { backdrop-filter: blur(12px); background: var(--store-topbar); border-bottom: 1px solid var(--store-line); position: sticky; top: 0; z-index: 1030; }
.store-topbar-inner { align-items: center; display: flex; gap: 30px; margin: auto; max-width: 1360px; min-height: 64px; padding: 0 32px; }
.store-brand { align-items: center; color: var(--store-ink) !important; display: inline-flex; flex: 0 1 auto; font-size: 17px; font-weight: 700; gap: 9px; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.store-brand-logo { display: block; max-height: 30px; max-width: 180px; object-fit: contain; }
.store-mark { background: var(--store-accent); border-radius: 7px; color: #fff; display: grid; font-size: 14px; font-weight: 800; height: 24px; place-items: center; width: 24px; }
.store-navigation { align-items: center; display: flex; gap: 22px; }
.store-navigation a, .store-action-link { color: var(--store-muted) !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.store-navigation a:hover, .store-action-link:hover { color: var(--store-ink) !important; }
.store-actions { align-items: center; display: flex; gap: 14px; margin-left: auto; }
.store-action-link, .store-cart { align-items: center; display: inline-flex; gap: 6px; }
.store-cart { color: var(--store-ink) !important; font-size: 13px; font-weight: 650; position: relative; text-decoration: none; }
.store-cart-count { align-items: center; background: var(--store-accent); border-radius: 100px; color: #fff; display: inline-flex; font-size: 10px; font-weight: 700; height: 17px; justify-content: center; line-height: 1; min-width: 17px; padding: 0 4px; }
.store-account { align-items: center; background: var(--store-canvas); border: 1px solid var(--store-line); border-radius: 100px; color: var(--store-ink) !important; display: inline-flex; font-size: 11px; font-weight: 700; height: 28px; justify-content: center; text-decoration: none; width: 28px; }
.store-theme-toggle { align-items: center; background: transparent; border: 1px solid var(--store-line); border-radius: 5px; color: var(--store-muted); cursor: pointer; display: inline-flex; font-size: 12px; font-weight: 650; gap: 5px; padding: 5px 8px; }
.store-theme-toggle:hover { color: var(--store-ink); }

.store-main { min-height: calc(100vh - 136px); }
.store-page-header { background: var(--store-surface); border-bottom: 1px solid var(--store-line); }
.store-page-header-inner, .store-content { margin: auto; max-width: 1360px; padding-left: 32px; padding-right: 32px; }
.store-page-header-inner { padding-bottom: 25px; padding-top: 26px; }
.store-page-header h1 { color: var(--store-ink); font-size: clamp(28px,3vw,38px); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin: 0; }
.store-breadcrumbs { align-items: center; color: var(--store-muted); display: flex; font-size: 12px; gap: 8px; margin: 0 0 11px; }
.store-breadcrumbs span:last-child { color: var(--store-muted); }
.store-location-note { color: var(--store-muted); font-size: 13px; margin: 0 0 20px; text-align: center; }
.store-content { padding-bottom: 56px; padding-top: 34px; }
.store-content > .app-content, .store-content > .app-content-header { padding: 0; }
.store-content > .app-content-header { display: none; }
.store-content > .app-content > .container-fluid, .store-content > .container { padding-left: 0; padding-right: 0; }
.store-content .container.py-4 { padding-top: 0 !important; }

.store-footer { border-top: 1px solid var(--store-line); }
.store-footer-inner { align-items: center; color: var(--store-muted); display: flex; font-size: 12px; gap: 14px; margin: auto; max-width: 1360px; min-height: 72px; padding: 0 32px; }
.store-footer-brand img { display: block; height: 23px; width: auto; }
.store-health { align-items: center; display: inline-flex; gap: 6px; margin-left: auto; }
#api-health-indicator { background: #8795a1; border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
#api-health-indicator.is-healthy { background: #14a06f; } #api-health-indicator.is-unhealthy { background: #d64545; }
html.theme-dark body.store-shell .card, html.theme-dark body.store-shell .form-control, html.theme-dark body.store-shell .form-select { background: var(--store-surface); color: var(--store-ink); }
html.theme-dark body.store-shell .btn-secondary, html.theme-dark body.store-shell .btn-outline-secondary { border-color: var(--store-line); color: var(--store-ink); }

@media (max-width: 700px) {
  .store-topbar-inner { gap: 14px; min-height: 58px; padding: 0 18px; } .store-navigation { display: none; } .store-actions { gap: 11px; }
  .store-page-header-inner, .store-content { padding-left: 18px; padding-right: 18px; } .store-content { padding-bottom: 36px; padding-top: 24px; }
  .store-footer-inner { flex-wrap: wrap; gap: 8px 14px; padding: 16px 18px; } .store-health { margin-left: 0; }
}
