:root {
    --bg: #f3f3f1;
    --surface: #ffffff;
    --surface-alt: #f8f8f6;
    --surface-strong: #111111;
    --text: #121212;
    --text-soft: #6c6c68;
    --line: #e5e5df;
    --line-strong: #d5d5ce;
    --shadow-sm: 0 8px 24px rgba(17, 17, 17, 0.05);
    --shadow-md: 0 20px 40px rgba(17, 17, 17, 0.07);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(17, 17, 17, 0.035), transparent 24%),
        linear-gradient(180deg, #fafaf8 0%, var(--bg) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 12px;
}

.login-layout {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.login-panel,
.panel,
.stat-card,
.sidebar,
.login-card,
.overview-hero {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.07);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.intro-panel,
.form-panel,
.login-card,
.sidebar,
.panel,
.stat-card,
.overview-hero {
    border-radius: var(--radius-xl);
}

.intro-panel {
    min-height: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(150deg, #0d0d0d, #232323);
    color: #fff;
    order: 2;
}

.intro-visual {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-visual-library {
    width: 100%;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.setup-copy-block {
    display: grid;
    gap: 14px;
    align-content: center;
    max-width: 520px;
    min-height: 100%;
}

.setup-copy-block h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.setup-copy-block .section-lead {
    color: rgba(255, 255, 255, 0.72);
    max-width: 44ch;
}

.library-hero-copy {
    display: grid;
    gap: 14px;
    max-width: 34rem;
    padding-top: 52px;
}

.library-hero-copy:empty {
    display: none;
}

.library-hero-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.library-hero-copy .section-lead {
    color: rgba(255, 255, 255, 0.72);
    max-width: 42ch;
}

.library-hero-stage {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    min-height: 280px;
}

.library-hero-frame,
.library-hero-badge {
    display: grid;
    place-items: center;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
}

.library-hero-frame {
    width: min(100%, 360px);
    min-height: 260px;
    padding: 30px;
}

.library-hero-badge {
    position: absolute;
    right: clamp(0px, 3vw, 24px);
    bottom: 14px;
    width: 104px;
    height: 104px;
    padding: 18px;
}

.library-hero-image {
    width: min(100%, 260px);
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.98;
}

.library-hero-badge-image {
    width: 56px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.library-scene {
    position: relative;
    width: min(100%, 520px);
    min-height: 420px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.library-scene iconify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.scene-ring {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.scene-ring-large {
    inset: 26px;
}

.scene-ring-small {
    inset: 72px;
}

.scene-board {
    position: relative;
    z-index: 2;
    width: min(100%, 420px);
    padding: 22px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    display: grid;
    gap: 18px;
}

.scene-board-head {
    width: 96px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.scene-board-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(130px, 0.75fr);
    gap: 14px;
    align-items: stretch;
}

.scene-product-card,
.scene-stat-card,
.scene-box {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
}

.scene-product-card {
    min-height: 220px;
    display: grid;
    place-items: center;
}

.scene-product-card iconify-icon {
    font-size: 110px;
    color: rgba(255, 255, 255, 0.94);
}

.scene-stats-column {
    display: grid;
    gap: 14px;
}

.scene-stat-card {
    padding: 18px;
    display: grid;
    gap: 8px;
}

.scene-stat-card span,
.scene-box span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 800;
}

.scene-stat-card strong {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.scene-chart-strip {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.scene-chart-strip svg {
    width: 100%;
    height: 64px;
}

.scene-chart-strip path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 6;
    stroke-linecap: round;
}

.scene-float {
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
    animation: float-soft 5.2s ease-in-out infinite;
}

.scene-bag-left {
    left: 6px;
    bottom: 48px;
}

.scene-bag-right {
    right: 4px;
    top: 88px;
    animation-delay: 0.35s;
}

.scene-bag-left iconify-icon,
.scene-bag-right iconify-icon {
    font-size: 66px;
    color: rgba(255, 255, 255, 0.88);
}

.scene-box {
    right: 32px;
    bottom: 10px;
    padding: 16px 18px;
    gap: 8px;
}

.scene-box iconify-icon {
    font-size: 38px;
    color: rgba(255, 255, 255, 0.92);
}

.visual-badge {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-illustration {
    width: min(100%, 440px);
    height: auto;
}

.orbit,
.illustration-frame,
.illustration-line,
.illustration-block,
.bag-shape,
.bag-handle,
.trend-path,
.trend-dot {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orbit {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1.5;
}

.orbit-one {
    animation: spin-slow 18s linear infinite;
    transform-origin: 260px 260px;
}

.orbit-two {
    animation: spin-reverse 14s linear infinite;
    transform-origin: 260px 260px;
}

.illustration-frame {
    fill: rgba(255, 255, 255, 0.08);
    stroke: url(#panelGlow);
    stroke-width: 2;
}

.illustration-line {
    fill: rgba(255, 255, 255, 0.68);
}

.illustration-line-strong {
    fill: rgba(255, 255, 255, 0.86);
}

.illustration-text {
    fill: rgba(255, 255, 255, 0.94);
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.illustration-text-soft {
    fill: rgba(255, 255, 255, 0.64);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.illustration-text-strong {
    fill: rgba(255, 255, 255, 0.98);
    font-size: 28px;
    font-weight: 800;
}

.illustration-block {
    fill: rgba(255, 255, 255, 0.92);
    stroke: rgba(17, 17, 17, 0.06);
}

.illustration-float-a {
    animation: float-soft 4.2s ease-in-out infinite;
}

.illustration-float-b {
    animation: float-soft 5s ease-in-out infinite 0.2s;
}

.illustration-float-c {
    animation: float-soft 4.6s ease-in-out infinite 0.4s;
}

.trend-path {
    stroke: rgba(255, 255, 255, 0.82);
    stroke-width: 6;
}

.trend-dot {
    fill: #ffffff;
    stroke: rgba(17, 17, 17, 0.18);
    stroke-width: 4;
}

.trend-dot-a {
    animation: pulse-dot 2.4s ease-in-out infinite;
}

.trend-dot-b {
    animation: pulse-dot 2.4s ease-in-out infinite 0.2s;
}

.trend-dot-c {
    animation: pulse-dot 2.4s ease-in-out infinite 0.4s;
}

.bag-group {
    transform-origin: center;
}

.bag-group-a {
    animation: float-soft 5.6s ease-in-out infinite 0.3s;
}

.bag-group-b {
    animation: float-soft 5.1s ease-in-out infinite 0.7s;
}

.bag-shape {
    fill: rgba(255, 255, 255, 0.06);
    stroke: rgba(255, 255, 255, 0.88);
    stroke-width: 4;
}

.bag-shape-solid {
    fill: rgba(17, 17, 17, 0.12);
}

.bag-handle {
    stroke: rgba(255, 255, 255, 0.76);
    stroke-width: 4;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes float-soft {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-dot {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.18);
    }
}

.form-panel {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
}

.login-card {
    width: 100%;
    max-width: 100%;
    padding: 22px;
    display: grid;
    gap: 16px;
}

.app-shell {
    min-height: 100vh;
    position: relative;
    padding: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(82vw, 300px);
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px) + 64px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    height: 100vh;
    transform: translateX(calc(-100% - 20px));
    transition: transform 0.24s ease;
    overflow: hidden;
}

.sidebar > div:first-child {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    border: 0;
    background: rgba(17, 17, 17, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

body.sidebar-open {
    overflow: hidden;
}

body.sidebar-open .sidebar {
    transform: translateX(0);
}

body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-mark,
.nav-icon,
.icon-badge,
.button-icon,
.search-icon,
.chip-icon,
.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #111111;
    color: #ffffff;
}

.brand-mark svg,
.nav-icon svg,
.icon-badge svg,
.button-icon svg,
.search-icon svg,
.chip-icon svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex: 0 0 18px;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand strong,
.topbar h1,
.panel h2,
.login-card h2,
.stat-card strong,
.hero-metric strong {
    letter-spacing: -0.035em;
}

.brand small,
.eyebrow,
.field span,
.section-lead,
.panel-kicker,
.stat-card small,
.stat-head span,
.user-card span,
.flash,
.empty-state,
.alert-item p,
.hero-metric span,
.meta-chip,
thead th {
    color: var(--text-soft);
}

.sidebar-nav {
    display: grid;
    gap: 8px;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-soft);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a > span:last-child {
    flex: 1 1 auto;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    background: #111111;
    color: #ffffff;
}

.nav-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 10px;
    background: rgba(17, 17, 17, 0.06);
}

.sidebar-nav a.is-active .nav-icon,
.sidebar-nav a:hover .nav-icon {
    background: rgba(255, 255, 255, 0.14);
}

.main-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-top: 4px;
}

.topbar-start {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.topbar-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.menu-toggle-icon,
.menu-toggle-icon svg {
    width: 18px;
    height: 18px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 2px 14px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.topbar h1,
.panel h2,
.login-card h2,
.hero-metric strong,
.stat-card strong {
    margin: 0;
}

.topbar h1 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.page-body {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.overview-hero {
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.overview-copy h2 {
    margin: 6px 0 10px;
    font-size: 1.45rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.section-lead {
    margin: 8px 0 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.hero-metric {
    padding: 16px;
    border-radius: 18px;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.hero-metric strong {
    font-size: 1.15rem;
}

.hero-metric-dark {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.hero-metric-dark span {
    color: rgba(255, 255, 255, 0.7);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.stat-card {
    padding: 16px;
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.icon-badge {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 12px;
    background: #f2f2ef;
    color: #111111;
}

.icon-badge-inverse {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.stat-card strong {
    font-size: 1.9rem;
    line-height: 1;
}

.stat-card.emphasis {
    background: #111111;
    color: #ffffff;
}

.stat-card.emphasis .stat-head span,
.stat-card.emphasis small {
    color: rgba(255, 255, 255, 0.74);
}

.panel-grid,
.content-grid,
.two-column-grid {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.charts-grid {
    grid-template-columns: 1fr;
}

.chart-panel-wide {
    grid-column: 1 / -1;
}

.two-column-grid {
    grid-template-columns: 1fr;
}

.content-grid {
    grid-template-columns: 1fr;
    align-items: start;
}

.sticky-panel {
    position: static;
}

.panel,
.form-panel-card {
    padding: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.panel-head {
    margin-bottom: 16px;
}

.panel-head-split {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    flex-direction: column;
}

.panel-kicker,
.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
}

.stack-form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 7px;
}

.field span {
    font-size: 0.84rem;
    font-weight: 700;
}

input,
select,
.table-search {
    width: 100%;
    height: 44px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: #ffffff;
    padding: 0 13px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
.table-search:focus {
    border-color: #111111;
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.07);
}

.search-wrap {
    min-width: 100%;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
    pointer-events: none;
}

.search-wrap .table-search {
    padding-left: 40px;
}

.button {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 13px;
    border: 1px solid #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: #111111;
    color: #ffffff;
}

.button-secondary {
    background: #ffffff;
    color: #111111;
    border-color: var(--line-strong);
}

.button-ghost {
    background: var(--surface-alt);
    border-color: var(--line);
    color: var(--text);
}

.button-small {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 11px;
    font-size: 0.84rem;
}

.button-block {
    width: 100%;
}

.actions-row,
.actions-inline {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    flex-wrap: nowrap;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    width: 100%;
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    background: #ffffff;
}

th,
td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #fafaf8;
    white-space: nowrap;
    font-weight: 800;
}

tbody tr:hover {
    background: #fcfcfa;
}

[data-sortable] th[data-sort] {
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 24px 18px;
}

.flash {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.flash.success {
    border-color: rgba(17, 17, 17, 0.16);
}

.flash.error {
    background: #f8f8f5;
    border-color: rgba(17, 17, 17, 0.25);
}

.product-thumb,
.image-preview {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-alt);
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--text-soft);
    font-size: 0.78rem;
}

.product-thumb.small {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.product-thumb img,
.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview {
    width: 100%;
    height: 160px;
}

.stock-badge,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.stock-badge.low {
    background: #4a4a4a;
}

.alert-list {
    display: grid;
    gap: 10px;
}

.alert-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.chart-canvas {
    width: 100%;
    height: 220px !important;
    min-height: 220px;
}

.storefront-body {
    margin: 0;
    color: var(--text);
    background: #f4f4f1;
}

.store-top-strip {
    background: #0f1720;
    color: #ffffff;
    padding: 10px 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    overflow: hidden;
}

.store-strip-track {
    display: flex;
    gap: 42px;
    width: max-content;
    animation: storeTicker 28s linear infinite;
}

.store-strip-track span {
    white-space: nowrap;
}

@keyframes storeTicker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.store-container {
    width: min(1160px, calc(100% - 24px));
    margin: 0 auto;
}

.store-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
}

.store-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.store-brand img,
.store-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: #111111;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.store-nav {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.store-nav-dropdown {
    position: relative;
}
.store-nav-dropdown > button {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 0 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.store-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(17, 17, 17, 0.14);
    padding: 8px;
    display: none;
    z-index: 60;
}
.store-nav-dropdown-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: #222;
    font-size: 0.88rem;
    font-weight: 700;
}
.store-nav-dropdown-menu a:hover {
    background: #f5f5f1;
}
.store-nav-dropdown:hover .store-nav-dropdown-menu,
.store-nav-dropdown:focus-within .store-nav-dropdown-menu {
    display: block;
}

.store-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    border: 1px solid var(--line);
    background: #ffffff;
    transition: all 0.2s ease;
}

.store-nav a:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.store-main {
    padding-bottom: 34px;
}

.store-hero {
    padding: 0 0 16px;
    background: linear-gradient(180deg, #ecece8, #f4f4f1);
}

.store-hero-grid {
    background: linear-gradient(140deg, #ffffff, #f8f8f4);
    color: #121212;
    border-radius: 28px;
    padding: 34px;
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    align-items: center;
}

.store-hero-background {
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.store-hero-grid-background {
    background: transparent;
    border-radius: 0;
    min-height: 62vh;
    align-content: center;
    padding: 70px 0;
}

.store-hero-grid-background h1,
.store-hero-grid-background p,
.store-hero-grid-background .eyebrow {
    max-width: 40rem;
}

.store-hero-grid-split {
    margin-top: 20px;
}

.store-hero-grid h1 {
    margin: 8px 0 12px;
    font-size: clamp(1.7rem, 5vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.store-hero-grid p {
    margin: 0;
    color: rgba(18, 18, 18, 0.72);
    max-width: 56ch;
}

.store-hero-grid-background .eyebrow,
.store-hero-grid-background h1,
.store-hero-grid-background p {
    color: #ffffff;
}

.store-hero-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.store-hero-media {
    display: grid;
    place-items: center;
    min-height: 220px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 20px;
    background: #f2f3ef;
}

.store-hero-media img {
    width: min(100%, 300px);
    max-height: 230px;
    object-fit: contain;
    filter: none;
}

.store-hero-media.is-hidden {
    display: none;
}

.store-section {
    padding: 10px 0 20px;
}

.store-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.store-category-nav {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.store-category-nav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 52px;
    overflow-x: auto;
}

.store-category-nav-inner a {
    color: #444;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.store-category-nav-inner a:hover {
    color: #111;
    border-bottom-color: #111;
}

.store-categories .pill {
    background: #ffffff;
    color: #111111;
    border: 1px solid var(--line);
}

.store-collections {
    margin-bottom: 24px;
}

.store-categories-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(170px, 220px));
    justify-content: flex-start;
}

.store-category-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(17, 17, 17, 0.08);
    border-color: var(--line-strong);
}

.store-category-media {
    height: clamp(100px, 12vw, 132px);
    background: linear-gradient(140deg, #f7f7f3, #efefea);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.store-category-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.35s ease;
}

.store-category-card:hover .store-category-media img {
    transform: scale(1.06);
}

.store-category-fallback {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #111111;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
}

.store-category-meta {
    padding: 12px;
    display: grid;
    gap: 3px;
}

.store-category-meta strong {
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

.store-category-meta span {
    font-size: 0.8rem;
    color: var(--text-soft);
    font-weight: 600;
}

.store-hero-background + .store-section .store-category-media {
    height: clamp(92px, 10vw, 118px);
}

.store-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.store-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (min-width: 1100px) {
    .store-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.store-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    box-shadow: 0 12px 26px rgba(17, 17, 17, 0.055);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 34px rgba(17, 17, 17, 0.11);
    border-color: var(--line-strong);
}

.store-card-image {
    position: relative;
    background: linear-gradient(180deg, #f8f8f5, #f2f2ee);
    min-height: 205px;
    max-height: 225px;
    display: grid;
    place-items: center;
}

.store-card-image img {
    width: 100%;
    height: 100%;
    min-height: 205px;
    max-height: 225px;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.35s ease;
}

.store-card:hover .store-card-image img {
    transform: scale(1.05);
}

.store-card-actions-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    gap: 7px;
}

.store-card-action {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.18);
    background: rgba(255, 255, 255, 0.94);
    color: #141414;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.store-card-action:hover {
    transform: translateY(-1px);
    background: #111111;
    color: #ffffff;
}

.store-card-action i {
    font-size: 0.9rem;
}

.store-card-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.store-card-badge.sale {
    left: 12px;
    background: #111111;
    color: #ffffff;
}

.store-card-badge.stock {
    right: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: #111111;
    border: 1px solid rgba(17, 17, 17, 0.12);
}

.store-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-card-body small {
    color: var(--text-soft);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.store-card-body h3 {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.3;
}

.store-card-subline {
    margin: 0;
    color: #666660;
    font-size: 0.85rem;
    line-height: 1.5;
    min-height: 2.55em;
}

.store-price-row {
    margin: 3px 0 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.store-price-row strong {
    font-size: 1.14rem;
}

.store-price-row span {
    color: #888;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.store-discount-tag {
    margin: 1px 0;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
}

.store-stock-row {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.store-stock-row i {
    color: #353530;
}

.store-add-form {
    margin-top: auto;
    padding-top: 4px;
}

.quick-view-layer {
    position: fixed;
    inset: 0;
    z-index: 120;
}

.quick-view-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(10, 10, 10, 0.24);
    backdrop-filter: blur(2px);
}

.quick-view-modal {
    position: relative;
    z-index: 1;
    width: min(780px, calc(100% - 20px));
    margin: min(9vh, 80px) auto 0;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 26px 50px rgba(17, 17, 17, 0.18);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
}

.quick-view-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quick-view-gallery {
    position: relative;
    min-height: 300px;
    background: linear-gradient(180deg, #f8f8f5, #f1f1ed);
    display: grid;
    place-items: center;
}

.quick-view-gallery img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: contain;
    padding: 16px;
}

.quick-view-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.quick-view-arrow.prev {
    left: 10px;
}

.quick-view-arrow.next {
    right: 10px;
}

.quick-view-arrow[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.quick-view-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.quick-view-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.2);
}

.quick-view-dot.is-active {
    background: #111111;
}

.quick-view-content {
    padding: 26px 22px 22px;
    display: grid;
    align-content: start;
    gap: 9px;
}

.quick-view-content small {
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    font-weight: 700;
}

.quick-view-content h3 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.quick-view-content .store-price-row {
    margin-top: 4px;
}

.quick-view-add-form {
    margin-top: 6px;
}

.quick-view-add {
    animation: quickWobble 1.15s ease-in-out infinite;
    transform-origin: center;
}

.quick-view-add:disabled {
    animation: none;
}

@keyframes quickWobble {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px) rotate(-1.2deg);
    }
    50% {
        transform: translateX(2px) rotate(1.2deg);
    }
    75% {
        transform: translateX(-1px) rotate(-0.6deg);
    }
}

body.store-quick-view-open {
    overflow: hidden;
}

.store-menu-toggle,
.store-icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.store-icon-btn i {
    font-size: 1.05rem;
    line-height: 1;
}

.store-menu-toggle svg,
.store-icon-btn svg {
    width: 20px;
    height: 20px;
}

.store-icon-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    border-radius: 999px;
    background: #111111;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.store-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.46);
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 60;
}

.store-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(86vw, 320px);
    background: #ffffff;
    border-right: 1px solid var(--line);
    padding: 16px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 70;
    display: grid;
    align-content: start;
    gap: 14px;
}

.store-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.store-drawer-head button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    display: grid;
    place-items: center;
}

.store-drawer-head svg {
    width: 18px;
    height: 18px;
}

.store-drawer-nav {
    display: grid;
    gap: 6px;
}

.store-drawer-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fafaf8;
    font-weight: 700;
}

body.store-menu-open {
    overflow: hidden;
}

body.store-menu-open .store-drawer {
    transform: translateX(0);
}

body.store-menu-open .store-drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

.store-add-form {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.store-add-form input[type="number"] {
    height: 40px;
}

.store-add-form .button {
    min-height: 40px;
}

.store-cart {
    align-self: start;
    border-radius: 20px;
    position: sticky;
    top: 98px;
}

.store-cart-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.store-cart-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.store-delete-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.store-delete-btn:hover {
    border-color: #cc2f2f;
    color: #cc2f2f;
}

.store-cart-row:last-child {
    border-bottom: none;
}

.store-cart-row strong {
    display: block;
}

.store-cart-row small {
    color: var(--text-soft);
    display: block;
}

.store-cart-row input {
    width: 86px;
}

.store-cart-item-info {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    align-items: center;
}

.store-cart-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f5f5f2;
    display: grid;
    place-items: center;
    color: #777;
}

.store-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-success-card {
    margin: 8px 0 14px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    border-radius: 18px;
    background: linear-gradient(135deg, #f7fff7, #f1f8ff);
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
}

.order-success-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(22, 163, 74, 0.12);
    animation: orderPulse 2s ease-in-out infinite;
}

.order-success-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #16a34a;
    color: #ffffff;
    animation: orderPop 0.55s ease;
}

.order-success-icon svg {
    width: 22px;
    height: 22px;
}

.order-success-copy h3 {
    margin: 4px 0;
    letter-spacing: -0.02em;
}

.order-success-copy p {
    margin: 0;
    color: #4c4c47;
}

@keyframes orderPop {
    0% {
        transform: scale(0.4);
        opacity: 0;
    }
    70% {
        transform: scale(1.08);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes orderPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.24);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
    }
}

.store-total-box {
    margin: 12px 0 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fafaf8;
}

.store-total-box p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

.store-grand-total {
    border-top: 1px solid var(--line);
    margin-top: 4px !important;
    padding-top: 10px !important;
    font-weight: 800;
}

@media (min-width: 880px) {
    .store-hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .store-layout {
        grid-template-columns: minmax(0, 1fr) 390px;
        align-items: start;
    }

    .store-menu-toggle,
    .store-drawer,
    .store-drawer-overlay {
        display: none;
    }
}

@media (max-width: 880px) {
    .store-hero-grid {
        padding: 22px;
    }

    .store-hero-grid-background {
        min-height: 50vh;
        padding: 44px 0;
    }

    .store-hero-actions {
        width: 100%;
    }

    .store-hero-actions .button {
        flex: 1 1 auto;
    }

    .store-add-form {
        grid-template-columns: 1fr;
    }

    .store-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .store-card-image,
    .store-card-image img {
        min-height: 188px;
        max-height: 205px;
    }

    .quick-view-modal {
        margin-top: 8vh;
        grid-template-columns: 1fr;
    }

    .quick-view-gallery,
    .quick-view-gallery img {
        min-height: 220px;
    }

    .store-cart {
        position: static;
    }

    .store-brand strong {
        font-size: 0.98rem;
    }

    .store-nav a {
        display: none;
    }

    .store-category-nav-inner {
        gap: 14px;
        padding-bottom: 2px;
    }

    .store-header-inner {
        grid-template-columns: auto 1fr auto;
        display: grid;
    }

    .store-brand {
        justify-self: center;
    }

    .store-nav {
        justify-content: flex-end;
    }

    .store-nav .store-icon-btn {
        display: inline-flex;
    }

    .order-success-card {
        grid-template-columns: 1fr;
    }
}

.store-footer {
    margin-top: 24px;
    border-top: 1px solid var(--line);
    background: #ffffff;
    padding: 32px 0;
}

.store-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
}

.store-footer h3,
.store-footer h4 {
    margin: 0 0 10px;
}
.store-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.store-footer-brand img,
.store-footer-brand .store-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
}

.store-footer p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.store-footer a {
    display: block;
    margin: 0 0 8px;
    color: #333;
    font-weight: 600;
}

@media (max-width: 880px) {
    .store-footer-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
@media (max-width: 760px) {
    .app-shell,
    .login-body {
        padding: 12px;
    }

    .panel,
    .form-panel-card,
    .stat-card,
    .sidebar,
    .intro-panel,
    .login-card,
    .form-panel,
    .overview-hero {
        padding: 16px;
    }

    .button,
    .button-small {
        width: 100%;
    }

    .topbar {
        gap: 10px;
    }

    .topbar-start {
        align-items: center;
    }

    .topbar-copy {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
    }

    .topbar-copy .eyebrow {
        font-size: 0.66rem;
    }

    .topbar-copy h1 {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .overview-copy h2 {
        font-size: 1.12rem;
    }

    .section-lead {
        font-size: 0.9rem;
    }

    .setup-copy-block h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .library-hero-copy {
        padding-top: 44px;
    }

    .library-hero-copy h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .library-hero-stage {
        min-height: 220px;
    }

    .library-hero-frame {
        min-height: 200px;
        padding: 24px;
    }

    .library-hero-badge {
        width: 88px;
        height: 88px;
        right: 0;
    }

    .library-hero-image {
        width: min(100%, 190px);
    }

    .library-scene {
        min-height: 360px;
    }

    .scene-board {
        padding: 16px;
        border-radius: 24px;
    }

    .scene-board-grid {
        grid-template-columns: 1fr;
    }

    .scene-product-card {
        min-height: 160px;
    }

    .scene-product-card iconify-icon {
        font-size: 84px;
    }

    .scene-bag-left,
    .scene-bag-right,
    .scene-box {
        display: none;
    }

    .store-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .store-category-media {
        height: 110px;
    }

    .store-category-meta {
        padding: 10px;
    }

    .store-category-meta strong {
        font-size: 0.9rem;
    }

    .store-category-meta span {
        font-size: 0.75rem;
    }

    .store-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .store-card-actions-overlay {
        top: 8px;
        right: 8px;
        gap: 5px;
    }

    .store-card-action {
        width: 30px;
        height: 30px;
    }

    .store-card-action i {
        font-size: 0.8rem;
    }

    .store-card {
        border-radius: 16px;
    }

    .store-card-image,
    .store-card-image img {
        min-height: 150px;
        max-height: 170px;
    }

    .store-card-badge {
        top: 8px;
        padding: 5px 8px;
        font-size: 0.66rem;
    }

    .store-card-badge.sale {
        left: 8px;
    }

    .store-card-badge.stock {
        right: 8px;
    }

    .store-card-body {
        padding: 10px;
        gap: 7px;
    }

    .store-card-body small {
        font-size: 0.7rem;
    }

    .store-card-body h3 {
        font-size: 0.9rem;
    }

    .store-card-subline {
        display: none;
    }

    .store-price-row strong {
        font-size: 1rem;
    }

    .store-price-row span {
        font-size: 0.78rem;
    }

    .store-discount-tag {
        font-size: 0.67rem;
        padding: 4px 8px;
    }

    .store-stock-row {
        font-size: 0.76rem;
        gap: 5px;
    }

    .store-add-form input[type='number'] {
        min-width: 0;
    }

    .store-add-form .button {
        padding: 9px 10px;
        font-size: 0.82rem;
    }

    .quick-view-modal {
        width: min(100%, calc(100% - 14px));
        margin-top: 6vh;
        border-radius: 16px;
    }

    .quick-view-content {
        padding: 14px;
    }

    .quick-view-content h3 {
        font-size: 1.08rem;
    }

    .quick-view-gallery,
    .quick-view-gallery img {
        min-height: 170px;
    }

    .store-nav-dropdown {
        display: none;
    }

    .panel,
    .form-panel-card,
    .stat-card,
    .overview-hero,
    .hero-metric {
        border-radius: 18px;
    }
}

@media (min-width: 761px) {
    .app-shell {
        padding: 18px;
    }

    .login-body {
        padding: 20px;
    }

    .login-card {
        max-width: 440px;
        padding: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .actions-row,
    .actions-inline {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .panel-head-split {
        flex-direction: row;
        align-items: flex-end;
    }

    .search-wrap {
        min-width: min(260px, 100%);
    }

    .topbar-copy {
        text-align: left;
    }

}

@media (min-width: 1024px) {
    body {
        overflow: auto;
    }

    .app-shell {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 18px;
    }

    .login-body {
        padding: 24px;
    }

    .login-layout {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 18px;
        align-items: stretch;
    }

    .login-panel {
        height: 100%;
    }

    .intro-panel {
        min-height: clamp(440px, 72vh, 540px);
        padding: 32px;
        order: 1;
    }

    .form-panel {
        padding: 20px;
        order: 2;
        align-self: stretch;
    }

    .intro-visual {
        min-height: 100%;
    }

    .intro-visual-library {
        gap: 20px;
    }

    .library-hero-copy {
        padding-top: 40px;
    }

    .library-hero-stage {
        min-height: 220px;
    }

    .library-hero-frame {
        width: min(100%, 320px);
        min-height: 220px;
        padding: 24px;
    }

    .library-hero-image {
        width: min(100%, 220px);
    }

    .sidebar-overlay,
    .menu-toggle {
        display: none;
    }

    .sidebar {
        position: sticky;
        inset: auto;
        top: 18px;
        width: auto;
        height: calc(100vh - 36px);
        transform: none;
    }

    .topbar {
        flex-wrap: nowrap;
    }

    .overview-hero {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
        gap: 18px;
        padding: 22px;
    }

    .content-grid {
        grid-template-columns: 340px minmax(0, 1fr);
    }

    .charts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column-grid {
        grid-template-columns: 1.3fr 0.95fr;
    }

    .stats-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .sticky-panel {
        position: sticky;
        top: 18px;
    }

    .chart-canvas {
        height: 240px !important;
        min-height: 240px;
    }
}