h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Theme Support */
:root {
    --bs-body-bg: #ffffff;
    --bs-body-color: #212529;
    --bs-secondary-bg: #f8f9fa;
    --bs-tertiary-bg: #f8f9fa;
    --bs-border-color: #dee2e6;
    --store-ink: #1f1c17;
    --store-muted: #6d655c;
    --store-accent: #c25a2b;
    --store-soft: #f6f2ec;
    --store-line: #e7dfd6;
    --store-shadow: 0 20px 50px rgba(31, 28, 23, 0.08);
    --store-font-body: "Segoe UI", Arial, sans-serif;
    --store-font-heading: Georgia, "Times New Roman", serif;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #212529;
    --bs-body-color: #ffffff;
    --bs-secondary-bg: #343a40;
    --bs-tertiary-bg: #495057;
    --bs-border-color: #495057;
}

/* Dark theme specific styles */
[data-bs-theme="dark"] .bg-light {
    background-color: var(--bs-secondary-bg) !important;
}

[data-bs-theme="dark"] .bg-body-secondary {
    background-color: var(--bs-tertiary-bg) !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #6c757d !important;
}

[data-bs-theme="dark"] .border {
    border-color: var(--bs-border-color) !important;
}

/* Fix expanded inventory row background */
[data-bs-theme="dark"] .border-info {
    border-color: #0dcaf0 !important;
}

[data-bs-theme="dark"] .bg-white {
    background-color: var(--bs-secondary-bg) !important;
    color: var(--bs-body-color) !important;
}

.storefront-shell {
    background: linear-gradient(180deg, #fbf8f4 0%, #ffffff 70%);
    min-height: calc(100vh - 64px);
    color: var(--store-ink);
    font-family: var(--store-font-body);
}

html:has(.storefront-nav),
body:has(.storefront-nav) {
    background: #fbf8f4 !important;
}

body:has(.storefront-nav) {
    color: var(--store-ink) !important;
}

.storefront-toast-container {
    z-index: 1200;
    inset: 1rem 1rem auto auto;
}

.toast.storefront-toast {
    --bs-toast-bg: #edf9ef;
    --bs-toast-color: #183a25;
    --bs-toast-border-color: #a8ddb5;
    --bs-toast-header-bg: #edf9ef;
    --bs-toast-header-color: #183a25;
    --bs-toast-header-border-color: #bde7c6;
    min-width: min(360px, calc(100vw - 2rem));
    border: 1px solid #a8ddb5;
    border-radius: 22px;
    background: #edf9ef !important;
    background-color: #edf9ef !important;
    box-shadow: 0 28px 60px rgba(24, 58, 37, 0.16);
    color: #183a25;
    overflow: hidden;
}

.storefront-toast .toast-header {
    border-bottom: 1px solid #bde7c6;
    background: #edf9ef !important;
    background-color: #edf9ef !important;
    padding: 0.9rem 1rem 0.8rem;
    color: #183a25;
}

.storefront-toast .toast-body {
    background: #edf9ef !important;
    background-color: #edf9ef !important;
    padding: 0.95rem 1rem 1rem;
    color: #183a25;
}

.storefront-toast .btn-close {
    filter: none;
    opacity: 0.7;
}

.storefront-toast-body {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.storefront-toast-thumb {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #bde7c6;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #426a4e;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.4rem;
}

.storefront-toast-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storefront-toast-copy {
    min-width: 0;
}

.storefront-toast-product {
    font-weight: 700;
    line-height: 1.3;
}

.storefront-toast-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    margin-top: 0.35rem;
    color: #426a4e;
    font-size: 0.9rem;
}

.storefront-toast-detail {
    margin-top: 0.45rem;
    color: #256f3d;
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-alert-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1250;
    display: grid;
    gap: 0.75rem;
    width: min(420px, calc(100vw - 2rem));
    pointer-events: none;
}

.admin-alert-container .admin-alert-item {
    margin: 0;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.22);
    pointer-events: auto;
    white-space: pre-line;
    cursor: pointer;
}

.admin-shell .validation-errors.admin-validation-errors {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1260;
    width: min(420px, calc(100vw - 2rem));
    margin: 0;
    padding: 1rem 1rem 1rem 2rem;
    list-style-position: outside;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.admin-shell .validation-errors.admin-validation-errors:empty {
    display: none;
}

.admin-shell .validation-errors.admin-validation-errors li + li {
    margin-top: 0.35rem;
}

.storefront-shell h1,
.storefront-shell h2,
.storefront-shell h3,
.storefront-shell h4,
.storefront-shell h5 {
    font-family: var(--store-font-heading);
}

.storefront-nav {
    background: #fffdf9;
    position: relative;
    z-index: 45;
}

.storefront-nav .container {
    flex-wrap: wrap;
    row-gap: 0.75rem;
}

.store-category-bar {
    position: relative;
    z-index: 40;
    background: #fffdf9;
    overflow: visible;
}

.store-category-bar .container {
    position: relative;
    overflow: visible;
}

.store-category-menu-shell {
    position: relative;
    padding: 0;
}

.store-category-menu-placeholder {
    min-height: 66px;
}

.store-category-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0 1.75rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    position: relative;
    z-index: 45;
    min-height: 66px;
    scrollbar-width: none;
}

.store-category-nav::-webkit-scrollbar {
    display: none;
}

.store-category-top-link,
.store-category-all-link {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    min-height: 66px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--store-muted);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font: inherit;
    text-align: center;
    transition: color 0.16s ease;
}

.store-category-top-link:hover,
.store-category-top-link:focus,
.store-category-top-link.active,
.store-category-all-link:hover,
.store-category-all-link:focus {
    color: var(--store-ink);
}

.store-category-top-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--store-accent);
}

.store-category-top-button i {
    color: inherit;
    font-size: 0.72rem;
}

.store-category-all-link {
    color: var(--store-ink);
}

.store-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.45rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(31, 28, 23, 0.08);
    color: #5f584f;
    font-size: 0.72rem;
    font-weight: 800;
}

.store-category-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: transparent;
    z-index: 30;
}

.store-category-mobile-menu {
    display: none;
}

.store-category-mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: min(64vh, 540px);
    min-height: 345px;
    overflow: hidden;
    padding: 1.75rem 2rem 2rem;
    border: 0;
    border-top: 1px solid var(--store-line);
    border-radius: 0 0 8px 8px;
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(31, 28, 23, 0.10);
    z-index: 50;
}

.store-category-mega-layout {
    display: grid;
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
    height: 100%;
    min-height: 0;
}

.store-category-mega-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 270px;
    padding: 1.35rem 1.25rem;
    border-radius: 8px;
    background: #213b2f;
    color: #ffffff;
}

.store-category-mega-feature-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 150px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
}

.store-category-mega-feature-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.store-category-mega-feature h2 {
    margin: 0.65rem 0 0;
    color: #ffffff;
    font-family: var(--store-font-heading);
    font-size: clamp(1.75rem, 2.1vw, 2.2rem);
    font-weight: 700;
    line-height: 0.98;
}

.store-category-mega-feature p {
    margin: 0.9rem 0 1.4rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.45;
}

.store-category-mega-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    font-weight: 900;
}

.store-category-mega-feature-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    min-height: 2.45rem;
    padding: 0.58rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--store-ink);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.store-category-mega-main {
    min-width: 0;
    min-height: 0;
}

.store-category-mega-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem 1.55rem;
    align-items: stretch;
    height: 100%;
    min-height: 0;
}

.store-category-mega-column {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.55rem;
    min-width: 0;
    min-height: 0;
}

.store-category-mega-brand-column {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.75rem;
    min-width: 0;
    min-height: 0;
}

.store-category-mega-column-title {
    margin: 0;
    color: #6f655c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--store-font-body);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.2;
}

.store-category-mega-column-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.35rem;
    align-items: stretch;
    gap: 0.35rem;
    min-width: 0;
}

.store-category-mega-column-title-row.no-toggle {
    grid-template-columns: minmax(0, 1fr);
}

.store-category-mega-column-title-link {
    background: #f5f0e8;
}

.store-category-mega-list {
    display: grid;
    align-content: start;
    gap: 0.24rem;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 28, 23, 0.28) transparent;
}

.store-category-mega-list::-webkit-scrollbar,
.store-category-brand-grid::-webkit-scrollbar {
    width: 8px;
}

.store-category-mega-list::-webkit-scrollbar-track,
.store-category-brand-grid::-webkit-scrollbar-track {
    background: transparent;
}

.store-category-mega-list::-webkit-scrollbar-thumb,
.store-category-brand-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(31, 28, 23, 0.28);
}

.store-category-mega-link,
.store-category-mobile-root-link,
.store-category-mobile-link {
    --store-category-depth-offset: 0rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--store-ink);
    text-decoration: none;
    min-width: 0;
}

.store-category-link-main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.store-category-link-main > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-category-link-thumb {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(31, 28, 23, 0.08);
    background: #ffffff;
}

.store-category-link-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.store-category-mega-link {
    position: relative;
    min-height: 2.55rem;
    padding: 0.6rem 0.75rem 0.6rem calc(1.55rem + var(--store-category-depth-offset));
    border-radius: 8px;
    color: var(--store-ink);
    font-size: 0.9rem;
    font-weight: 850;
}

.store-category-mega-link.has-image {
    padding-left: calc(0.75rem + var(--store-category-depth-offset));
}

.store-category-mega-link::before {
    content: "";
    position: absolute;
    left: calc(0.55rem + var(--store-category-depth-offset));
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #c85c2e;
    transform: translateY(-50%);
}

.store-category-mega-link.has-image::before {
    display: none;
}

.store-category-mega-column-2 .store-category-mega-link::before {
    background: #2f644f;
}

.store-category-mega-column-3 .store-category-mega-link::before {
    background: #28557d;
}

.store-category-mega-link:hover,
.store-category-mega-link:focus {
    background: #f5f0e8;
}

.store-category-mega-branch-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.35rem;
    align-items: stretch;
    gap: 0.35rem;
    min-width: 0;
}

.store-category-mega-branch-row.expanded .store-category-mega-branch-link,
.store-category-mega-column-title-row.expanded .store-category-mega-column-title-link {
    background: #f5f0e8;
}

.store-category-mega-branch-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--store-muted);
    font-size: 0.82rem;
    cursor: pointer;
}

.store-category-mega-branch-toggle:hover,
.store-category-mega-branch-toggle:focus {
    background: #f5f0e8;
    color: var(--store-ink);
}

.store-category-mega-branch-toggle i {
    transition: transform 0.16s ease;
}

.store-category-mega-branch-row.expanded .store-category-mega-branch-toggle i,
.store-category-mega-column-title-row.expanded .store-category-mega-branch-toggle i {
    transform: rotate(180deg);
}

.store-category-mega-link[class*="store-category-depth-"] {
    color: #3f3932;
    font-weight: 780;
}

.store-category-mega-link[class*="store-category-depth-"]::after {
    content: "";
    position: absolute;
    left: calc(var(--store-category-depth-offset) - 0.05rem);
    top: 0.45rem;
    bottom: 0.45rem;
    width: 1px;
    border-radius: 999px;
    background: #d9cfc2;
}

.store-category-mega-panel .store-category-count {
    min-width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #9b9389;
    font-size: 0.75rem;
}

.store-category-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 0.6rem;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 28, 23, 0.28) transparent;
}

.store-category-brand-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.35rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    color: var(--store-ink);
    background: #fffdf9;
    font-size: 0.88rem;
    font-weight: 850;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
}

.store-category-brand-tile:hover,
.store-category-brand-tile:focus {
    border-color: #d5c8b8;
    background: #f5f0e8;
}

.store-category-depth-2 {
    --store-category-depth-offset: 1rem;
}

.store-category-depth-3 {
    --store-category-depth-offset: 2rem;
}

.store-category-depth-4 {
    --store-category-depth-offset: 3rem;
}

.store-category-depth-5 {
    --store-category-depth-offset: 4rem;
}

.storefront-footer {
    background: #ffffff;
    color: var(--store-ink);
}

.storefront-footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr);
    gap: 2rem;
}

.storefront-footer-section h2 {
    margin: 0 0 0.75rem;
    color: var(--store-ink);
    font-family: var(--store-font-body);
    font-size: 1rem;
    font-weight: 800;
}

.storefront-footer-section address {
    margin: 0;
    color: #3f3932;
    font-style: normal;
    line-height: 1.55;
}

.storefront-footer-contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
}

.storefront-footer-links {
    display: grid;
    align-content: start;
    gap: 0.4rem;
}

.storefront-footer-links a,
.storefront-footer-button {
    color: var(--store-ink);
    text-decoration: none;
    font-weight: 500;
}

.storefront-footer-button {
    appearance: none;
    width: fit-content;
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.admin-category-tree-table tbody tr.admin-category-tree-row {
    cursor: pointer;
}

.admin-category-tree-table tbody tr.admin-category-tree-row-empty {
    cursor: default;
}

.admin-category-tree-table tbody tr.admin-category-tree-row-highlight > * {
    background-color: rgba(25, 135, 84, 0.16);
}

.admin-category-tree-table tbody tr.admin-category-tree-row-dragging {
    opacity: 0.55;
}

.admin-category-tree-table tbody tr.admin-category-tree-row-drop-before > * {
    box-shadow: inset 0 3px 0 var(--bs-primary);
}

.admin-category-tree-table tbody tr.admin-category-tree-row-drop-after > * {
    box-shadow: inset 0 -3px 0 var(--bs-primary);
}

.admin-category-tree-toggle {
    color: inherit;
    text-decoration: none;
}

.admin-category-order-cell {
    white-space: nowrap;
}

.admin-category-order-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-category-actions-column {
    width: 1%;
    min-width: 20rem;
}

.admin-category-actions-cell {
    white-space: nowrap;
}

.admin-category-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.5rem;
    white-space: nowrap;
}

.admin-category-actions .btn {
    flex: 0 0 auto;
}

.admin-category-drag-handle {
    display: inline-flex;
    align-items: center;
    color: var(--bs-secondary-color);
    cursor: grab;
    font-size: 1.1rem;
}

.admin-category-tree-row-dragging .admin-category-drag-handle {
    cursor: grabbing;
}

.admin-product-table tbody tr.admin-product-row-dragging {
    opacity: 0.55;
}

.admin-product-table tbody tr.admin-product-row-drop-before > * {
    box-shadow: inset 0 3px 0 var(--bs-primary);
}

.admin-product-table tbody tr.admin-product-row-drop-after > * {
    box-shadow: inset 0 -3px 0 var(--bs-primary);
}

.admin-product-order-cell {
    white-space: nowrap;
}

.admin-product-order-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-product-drag-handle {
    display: inline-flex;
    align-items: center;
    color: var(--bs-secondary-color);
    cursor: grab;
    font-size: 1.1rem;
}

.admin-product-row-dragging .admin-product-drag-handle {
    cursor: grabbing;
}

.admin-product-actions-column {
    width: 6rem;
    min-width: 6rem;
}

.admin-product-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.admin-product-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    min-height: 2rem;
}

.admin-category-tree-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.admin-discount-group-toggle {
    color: inherit;
    font-weight: 600;
}

.admin-discount-group-toggle:hover,
.admin-discount-group-toggle:focus {
    color: inherit;
}

.admin-discount-group-table .admin-discount-group-row > * {
    font-weight: 500;
}

.admin-discount-group-table .admin-discount-child-row > * {
    vertical-align: middle;
}

[data-bs-theme="dark"] .admin-discount-group-table {
    --bs-table-bg: #212529;
    --bs-table-color: #f8f9fa;
    --bs-table-border-color: #495057;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-table-hover-color: #ffffff;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .admin-discount-group-table thead th {
    background: #1b1f22;
    border-color: #495057;
    color: #ffffff;
}

[data-bs-theme="dark"] .admin-discount-group-table .admin-discount-group-row > * {
    background: #2b3035;
    border-color: #495057;
    color: #ffffff;
}

[data-bs-theme="dark"] .admin-discount-group-table .admin-discount-child-row > * {
    background: #212529;
    border-color: #3f464d;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .admin-discount-group-table .admin-discount-child-row:hover > *,
[data-bs-theme="dark"] .admin-discount-group-table .admin-discount-group-row:hover > * {
    background: #343a40;
}

.admin-topbar-storefront-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.admin-toolbar {
    min-width: 0;
}

.admin-toolbar .navbar-text {
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .admin-toolbar {
        flex: 1 1 100%;
        width: 100%;
        margin-top: 0.5rem;
        margin-left: 0 !important;
        justify-content: flex-start !important;
    }
}

.admin-category-product-categories {
    min-width: 170px;
    max-width: 220px;
}

.admin-category-product-category-details {
    max-width: 220px;
}

.admin-category-product-category-details > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.admin-category-product-category-details > summary::-webkit-details-marker {
    display: none;
}

.admin-category-product-category-list {
    width: 260px;
    max-width: 60vw;
    max-height: 220px;
    overflow: auto;
    margin-top: 0.5rem;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.04);
}

.admin-category-product-category-item {
    padding: 0.3rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.admin-category-product-category-item:last-child {
    border-bottom: 0;
}

.concept-shop-product-search-item.active .badge {
    background-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff;
}

.admin-readonly-price {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0;
    font-weight: 600;
}

.storefront-footer-links a:hover,
.storefront-footer-links a:focus,
.storefront-footer-button:hover,
.storefront-footer-button:focus {
    text-decoration: underline;
}

.storefront-nav .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    min-width: max-content;
    font-family: var(--store-font-heading);
    letter-spacing: 0.5px;
}

.storefront-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 34px;
    padding: 0.25rem;
    border: 1px solid var(--store-line);
    border-radius: 6px;
    background: #ffffff;
}

.storefront-brand-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.storefront-brand-site-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 clamp(170px, 17vw, 220px);
    width: clamp(170px, 17vw, 220px);
    aspect-ratio: 374 / 125;
    overflow: visible;
    background: transparent;
}

.storefront-brand-site-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.storefront-brand-text {
    min-width: max-content;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.store-hero {
    background: radial-gradient(circle at top left, #fff3e5 0%, #ffffff 55%);
    border: 1px solid var(--store-line);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--store-shadow);
}

.store-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--store-muted);
}

.store-hero .cta-stack {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-hero .hero-card {
    background: var(--store-soft);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid var(--store-line);
}

.mfa-setup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-areas:
        "apps qr"
        "code qr";
    gap: 1.5rem 2rem;
    align-items: start;
}

.mfa-setup-apps {
    grid-area: apps;
}

.mfa-setup-qr {
    grid-area: qr;
}

.mfa-setup-code {
    grid-area: code;
}

.mfa-setup-step {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.mfa-setup-step > div {
    min-width: 0;
    flex: 1;
}

.mfa-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--store-ink);
    color: #ffffff;
    font-weight: 700;
}

.mfa-qr-frame {
    width: fit-content;
    max-width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--store-line);
    border-radius: 14px;
    background: #ffffff;
}

.mfa-qr-code {
    display: block;
    width: min(220px, 100%);
    height: auto;
    image-rendering: pixelated;
}

.mfa-manual-key {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--store-line);
}

.mfa-manual-key summary {
    cursor: pointer;
    font-weight: 700;
}

.mfa-setup-key {
    display: block;
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--store-soft);
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .mfa-setup-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "apps"
            "qr"
            "code";
    }
}

.category-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.concept-shop-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 0 1.35rem;
    border-bottom: 1px solid var(--store-line);
}

.concept-shop-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.concept-shop-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 104px;
    height: 72px;
    padding: 0.65rem;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: #ffffff;
}

.concept-shop-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.concept-shop-copy {
    min-width: 0;
}

.concept-shop-description {
    max-width: 760px;
    margin: 0.35rem 0 0.7rem;
    color: var(--store-muted);
    white-space: pre-line;
}

.concept-shop-manage-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1px;
}

.category-pill {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--store-line);
    color: var(--store-ink);
    text-decoration: none;
    background: #ffffff;
}

button.category-pill {
    cursor: pointer;
    font: inherit;
}

.category-pill.active {
    background: var(--store-ink);
    color: #ffffff;
    border-color: var(--store-ink);
}

.category-directory-section {
    background: #ffffff;
    border: 1px solid var(--store-line);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--store-shadow);
}

.category-directory-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-directory-all {
    color: var(--store-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    white-space: nowrap;
}

.category-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.category-directory-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-directory-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 260px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--store-line);
    background:
        radial-gradient(circle at top right, rgba(194, 90, 43, 0.12), transparent 36%),
        linear-gradient(180deg, #fffdf9 0%, #f7f1e9 100%);
    color: var(--store-ink);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-directory-card:hover,
.category-directory-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(31, 28, 23, 0.1);
    border-color: rgba(194, 90, 43, 0.38);
}

.category-directory-card h3 {
    margin: 0;
    font-size: 1.35rem;
}

.category-directory-card-all {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 42%),
        linear-gradient(145deg, #1f1c17 0%, #383027 100%);
    color: #ffffff;
    border-color: #1f1c17;
}

.category-directory-card-all .category-directory-kicker,
.category-directory-card-all .category-directory-count,
.category-directory-card-all .category-directory-summary,
.category-directory-card-all .category-directory-cta {
    color: rgba(255, 255, 255, 0.9);
}

.category-directory-card-compact {
    min-height: 220px;
}

.category-directory-card.is-active {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 38%),
        linear-gradient(145deg, #2d2922 0%, #1f1c17 100%);
    color: #ffffff;
    border-color: #1f1c17;
}

.category-directory-card.is-active .category-directory-kicker,
.category-directory-card.is-active .category-directory-count,
.category-directory-card.is-active .category-directory-summary,
.category-directory-card.is-active .category-directory-cta {
    color: rgba(255, 255, 255, 0.88);
}

.category-directory-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.category-directory-kicker {
    color: var(--store-muted);
    font-weight: 700;
}

.category-directory-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(31, 28, 23, 0.08);
    color: var(--store-ink);
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
}

.category-directory-summary {
    margin: 0.5rem 0 0;
    color: #544d45;
    line-height: 1.5;
}

.category-directory-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.category-directory-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(31, 28, 23, 0.08);
    background: rgba(255, 255, 255, 0.72);
    color: var(--store-ink);
    text-decoration: none;
}

.category-directory-link small {
    color: var(--store-muted);
    white-space: nowrap;
}

.category-directory-link.is-static {
    pointer-events: none;
}

.category-directory-more,
.category-directory-empty {
    margin-top: auto;
    color: var(--store-muted);
    font-size: 0.92rem;
}

.category-directory-cta {
    margin-top: auto;
    font-weight: 700;
    color: var(--store-ink);
}

.catalog-overview-section {
    background: #ffffff;
    border: 1px solid var(--store-line);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--store-shadow);
}

.catalog-overview-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.catalog-overview-layout {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.catalog-rail {
    position: sticky;
    top: 108px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.catalog-rail-panel,
.catalog-rail-filter,
.catalog-rail-nav,
.catalog-overview-empty,
.catalog-spotlight-card {
    background: #ffffff;
    border: 1px solid var(--store-line);
    border-radius: 24px;
    box-shadow: var(--store-shadow);
}

.catalog-rail-panel {
    padding: 22px;
}

.catalog-rail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.catalog-rail-stat {
    min-width: 0;
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdf9 0%, #f6f0e8 100%);
    border: 1px solid rgba(31, 28, 23, 0.08);
}

.catalog-rail-stat strong {
    display: block;
    font-size: 1rem;
}

.catalog-rail-stat span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: var(--store-muted);
}

.catalog-rail-filter {
    padding: 12px;
}

.catalog-rail-nav {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: min(70vh, 760px);
    overflow: auto;
    scrollbar-gutter: stable;
}

.catalog-rail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(31, 28, 23, 0.08);
    background:
        radial-gradient(circle at top right, rgba(194, 90, 43, 0.06), transparent 42%),
        #fbf7f1;
    color: var(--store-ink);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.catalog-rail-item:hover,
.catalog-rail-item:focus {
    transform: translateX(3px);
    box-shadow: 0 16px 28px rgba(31, 28, 23, 0.08);
    border-color: rgba(194, 90, 43, 0.32);
}

.catalog-rail-item.is-active {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 44%),
        linear-gradient(145deg, #2d2922 0%, #1f1c17 100%);
    border-color: #1f1c17;
    color: #ffffff;
}

.catalog-rail-item-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.85rem;
}

.catalog-rail-item-name {
    font-weight: 700;
    line-height: 1.3;
}

.catalog-rail-item-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(31, 28, 23, 0.08);
    color: inherit;
    font-size: 0.82rem;
    font-weight: 700;
}

.catalog-rail-item.is-active .catalog-rail-item-count {
    background: rgba(255, 255, 255, 0.14);
}

.catalog-rail-item-meta {
    color: #5f584f;
    font-size: 0.86rem;
    line-height: 1.35;
}

.catalog-rail-item.is-active .catalog-rail-item-meta {
    color: rgba(255, 255, 255, 0.8);
}

.catalog-overview-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.catalog-overview-main-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.catalog-overview-context {
    color: var(--store-muted);
    font-weight: 700;
}

.catalog-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.catalog-spotlight-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(194, 90, 43, 0.1), transparent 40%),
        linear-gradient(180deg, #fffdf9 0%, #f7f1e9 100%);
}

.catalog-spotlight-card h3 {
    margin: 0;
    font-size: 1.3rem;
}

.catalog-spotlight-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.catalog-spotlight-kicker {
    color: var(--store-muted);
    font-weight: 700;
}

.catalog-spotlight-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(31, 28, 23, 0.08);
    color: var(--store-ink);
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}

.catalog-spotlight-summary {
    margin: 0.45rem 0 0;
    color: #544d45;
    line-height: 1.5;
}

.catalog-spotlight-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-spotlight-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 28, 23, 0.08);
    background: rgba(255, 255, 255, 0.76);
    color: var(--store-ink);
    text-decoration: none;
}

.catalog-spotlight-link small {
    color: var(--store-muted);
}

.catalog-spotlight-empty {
    color: var(--store-muted);
    font-size: 0.92rem;
}

.catalog-spotlight-cta {
    margin-top: auto;
    font-weight: 700;
    color: var(--store-ink);
}

.catalog-overview-empty {
    padding: 28px;
}

.category-page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.category-page-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    max-width: 860px;
}

.category-page-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 132px;
    height: 86px;
    padding: 0.7rem;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(31, 28, 23, 0.05);
}

.category-page-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-page-copy {
    min-width: 0;
    max-width: 720px;
}

.category-page-mobile-count {
    display: none;
}

.category-page-header-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-page-summary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--store-line);
    background: #ffffff;
    color: var(--store-ink);
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(31, 28, 23, 0.05);
}

.category-page-explorer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-page-explorer-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
}

.category-page-explorer-parent-link {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 28, 23, 0.1);
    background: #ffffff;
    color: var(--store-ink);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(31, 28, 23, 0.05);
}

.category-page-explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.category-page-explorer-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(31, 28, 23, 0.08);
    background:
        radial-gradient(circle at top right, rgba(194, 90, 43, 0.06), transparent 42%),
        #ffffff;
    color: var(--store-ink);
    text-decoration: none;
    box-shadow: var(--store-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-page-explorer-card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(31, 28, 23, 0.08);
    background: #fffdf9;
}

.category-page-explorer-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.category-page-explorer-card:hover,
.category-page-explorer-card:focus {
    transform: translateY(-2px);
    border-color: rgba(194, 90, 43, 0.32);
    box-shadow: 0 16px 28px rgba(31, 28, 23, 0.08);
}

.category-page-explorer-card.is-active {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 44%),
        linear-gradient(145deg, #2d2922 0%, #1f1c17 100%);
    border-color: #1f1c17;
    color: #ffffff;
}

.category-page-explorer-card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.85rem;
}

.category-page-explorer-card-name {
    font-weight: 700;
    line-height: 1.3;
}

.category-page-explorer-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(31, 28, 23, 0.08);
    color: inherit;
    font-size: 0.82rem;
    font-weight: 700;
}

.category-page-explorer-card.is-active .category-page-explorer-card-count {
    background: rgba(255, 255, 255, 0.14);
}

.category-page-explorer-card-meta {
    color: #5f584f;
    font-size: 0.86rem;
    line-height: 1.35;
}

.category-page-explorer-card.is-active .category-page-explorer-card-meta {
    color: rgba(255, 255, 255, 0.8);
}

.category-page-explorer-card-children {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.category-page-explorer-card-child {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.58rem;
    border-radius: 999px;
    background: rgba(31, 28, 23, 0.08);
    color: inherit;
    font-size: 0.78rem;
}

.category-page-explorer-card.is-active .category-page-explorer-card-child {
    background: rgba(255, 255, 255, 0.12);
}

/* Compact main-shop navigation. Keep concept-shop explorer cards independent. */
.category-page-explorer-compact .category-page-explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.category-page-explorer-compact .category-page-explorer-card {
    display: block;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: none;
}

.category-page-explorer-compact .category-page-explorer-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.category-page-explorer-compact .category-page-explorer-card-name {
    min-width: 0;
    max-width: none;
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal;
    font-size: 0.9rem;
}

.category-page-explorer-compact .category-page-explorer-card-count {
    display: inline-flex;
    padding: 2px 6px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.category-navigation-status:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: var(--store-surface, #fff);
    color: var(--store-ink);
}

.category-page-results[data-category-navigation-pending] {
    opacity: 0.55;
}

@media (max-width: 767.98px) {
    .category-page-explorer-compact .category-page-explorer-grid {
        display: flex;
        overflow-x: auto;
        padding: 0 0 6px;
        scroll-snap-type: x proximity;
    }

    .category-page-explorer-compact .category-page-explorer-card {
        flex: 0 0 auto;
        width: max-content;
        max-width: min(280px, 100%);
        scroll-snap-align: start;
    }

    .category-page-explorer-compact .category-page-explorer-card-name {
        max-width: 180px;
    }
}

.category-page-results {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.category-page-results-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: end;
    gap: 1rem 1.25rem;
}

.category-page-results-tools {
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-page-results-search {
    width: 100%;
}

.category-page-results-context {
    color: var(--store-muted);
    font-weight: 700;
}

.category-page-empty {
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--store-line);
    border-radius: 24px;
    box-shadow: var(--store-shadow);
}

.category-page-empty h3 {
    margin-bottom: 0.5rem;
}

.catalog-store-hero {
    margin-bottom: 2rem;
}

.catalog-hero-panel {
    height: 100%;
    padding: clamp(24px, 3vw, 34px);
    border-radius: 30px;
    border: 1px solid rgba(31, 28, 23, 0.12);
    background:
        radial-gradient(circle at top right, rgba(255, 170, 112, 0.24), transparent 28%),
        linear-gradient(145deg, #29251f 0%, #1a1713 100%);
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(21, 18, 13, 0.18);
}

.catalog-hero-panel h1 {
    max-width: 12ch;
    color: #ffffff;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.02;
}

.catalog-hero-panel .text-muted {
    max-width: 64ch;
    color: rgba(255, 255, 255, 0.78) !important;
}

.catalog-signal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 1.8rem;
}

.catalog-signal-card {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.catalog-signal-label {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog-signal-card strong {
    display: block;
    font-size: 1.05rem;
}

.catalog-signal-card p {
    margin: 0.45rem 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
    line-height: 1.45;
}

.catalog-hero-aside {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid var(--store-line);
    background: #ffffff;
    box-shadow: var(--store-shadow);
}

.catalog-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-jump-chip {
    display: flex;
    flex: 1 1 140px;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(31, 28, 23, 0.08);
    background: linear-gradient(180deg, #fffdf8 0%, #f4eee5 100%);
    color: var(--store-ink);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.catalog-jump-chip:hover,
.catalog-jump-chip:focus {
    transform: translateY(-2px);
    border-color: rgba(194, 90, 43, 0.3);
    box-shadow: 0 12px 24px rgba(31, 28, 23, 0.08);
}

.catalog-jump-chip small {
    color: var(--store-muted);
    font-size: 0.8rem;
}

.catalog-hero-aside-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.catalog-link-row {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--store-line);
    color: var(--store-ink);
    font-weight: 700;
    text-decoration: none;
}

.catalog-switchboard,
.catalog-products-section {
    padding: 28px;
    border: 1px solid var(--store-line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--store-shadow);
}

.catalog-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.catalog-toolbar-wide {
    grid-template-columns: minmax(0, 1fr) auto;
}

.catalog-toolbar-copy,
.catalog-toolbar-search {
    min-width: 0;
}

.catalog-toolbar-wide .catalog-toolbar-copy {
    max-width: 760px;
}

.catalog-toolbar-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.catalog-toolbar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 28, 23, 0.08);
    background: #f5f0e8;
    color: var(--store-ink);
    font-weight: 700;
    line-height: 1.2;
}

.catalog-control-panel {
    margin: 0 0 1.5rem;
    padding: 14px;
    border: 1px solid var(--store-line);
    border-radius: 12px;
    background: #fffdf9;
}

.catalog-control-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
}

.catalog-control-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.catalog-control-field span,
.catalog-stock-toggle span {
    color: var(--store-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.catalog-control-field .form-select {
    min-height: 2.85rem;
    border-color: var(--store-line);
    border-radius: 10px;
    color: var(--store-ink);
    background-color: #ffffff;
    font-weight: 700;
}

.catalog-stock-toggle,
.catalog-clear-filters {
    min-height: 2.85rem;
    border-radius: 10px;
}

.catalog-stock-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--store-line);
    background: #ffffff;
}

.catalog-stock-toggle .form-check-input {
    margin: 0;
}

.catalog-clear-filters {
    border: 1px solid rgba(31, 28, 23, 0.16);
    background: #f5f0e8;
    color: var(--store-ink);
    font-weight: 800;
}

.catalog-mobile-control-panel {
    display: none;
}

.catalog-mobile-control-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 2.85rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--store-line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--store-ink);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.catalog-mobile-control-summary::-webkit-details-marker {
    display: none;
}

.catalog-mobile-control-summary::after {
    content: "+";
    color: var(--store-muted);
    font-size: 1.1rem;
    line-height: 1;
}

.catalog-mobile-control-panel[open] .catalog-mobile-control-summary::after {
    content: "-";
}

.catalog-mobile-control-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    margin-left: auto;
    border-radius: 999px;
    background: var(--store-accent);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.catalog-state-card {
    padding: 24px;
    border: 1px dashed rgba(31, 28, 23, 0.14);
    border-radius: 24px;
    background: #fbf7f1;
}

.catalog-state-card h3 {
    margin-bottom: 0.4rem;
}

.department-card-grid,
.catalog-jump-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.department-card,
.catalog-jump-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(31, 28, 23, 0.08);
    color: var(--store-ink);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.department-card {
    background: linear-gradient(180deg, #fffdf9 0%, #f6f1e8 100%);
}

.catalog-jump-card {
    background:
        radial-gradient(circle at top right, rgba(194, 90, 43, 0.08), transparent 42%),
        #fbf7f1;
}

.department-card:hover,
.department-card:focus-within,
.catalog-jump-card:hover,
.catalog-jump-card:focus {
    transform: translateY(-3px);
    border-color: rgba(194, 90, 43, 0.3);
    box-shadow: 0 18px 34px rgba(31, 28, 23, 0.08);
}

.catalog-jump-card.is-active {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 44%),
        linear-gradient(145deg, #2d2922 0%, #1f1c17 100%);
    border-color: #1f1c17;
    color: #ffffff;
}

.department-card-top,
.catalog-jump-card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
}

.department-card-label {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: var(--store-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.department-card h3,
.catalog-jump-card-name {
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
}

.department-card h3 {
    font-size: 1.3rem;
}

.department-card-count,
.catalog-jump-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(31, 28, 23, 0.08);
    color: inherit;
    font-size: 0.8rem;
    font-weight: 700;
}

.catalog-jump-card.is-active .catalog-jump-card-count {
    background: rgba(255, 255, 255, 0.12);
}

.department-card-summary,
.catalog-jump-card-summary {
    margin: 0;
    color: #5a534c;
    font-size: 0.92rem;
    line-height: 1.5;
}

.catalog-jump-card.is-active .catalog-jump-card-summary,
.catalog-jump-card.is-active .catalog-jump-card-meta {
    color: rgba(255, 255, 255, 0.8);
}

.catalog-jump-card-meta {
    color: var(--store-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.department-card-links,
.catalog-jump-card-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.department-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 28, 23, 0.08);
    background: rgba(255, 255, 255, 0.76);
    color: var(--store-ink);
    text-decoration: none;
}

.department-card-link small {
    color: var(--store-muted);
}

.catalog-jump-card-preview span {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.58rem;
    border-radius: 999px;
    background: rgba(31, 28, 23, 0.08);
    color: inherit;
    font-size: 0.78rem;
}

.catalog-jump-card.is-active .catalog-jump-card-preview span {
    background: rgba(255, 255, 255, 0.12);
}

.department-card-empty,
.catalog-jump-card-preview-empty {
    color: var(--store-muted);
    font-size: 0.9rem;
}

.catalog-jump-card.is-active .catalog-jump-card-preview-empty {
    color: rgba(255, 255, 255, 0.76);
}

.department-card-cta {
    margin-top: auto;
    color: var(--store-ink);
    font-weight: 700;
    text-decoration: none;
}

.category-command {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.category-command-copy {
    min-width: 0;
    max-width: 760px;
}

.category-command-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 18px;
    border: 1px solid var(--store-line);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(31, 28, 23, 0.06);
    overflow: hidden;
    color: var(--store-ink);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(31, 28, 23, 0.12);
}

.product-card-media-link,
.product-card-info-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-card-media-link:hover,
.product-card-info-link:hover {
    color: inherit;
    text-decoration: none;
}

.product-card .product-media {
    position: relative;
    aspect-ratio: 4 / 4.8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.product-card .product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    background: #1f1c17;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.product-new-badge-inline {
    position: static;
    margin-bottom: 0.85rem;
}

.product-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(180deg, #f7f2ea 0%, #ede6db 100%);
}

.product-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.85rem;
    position: relative;
    padding-right: 1.65rem;
}

.product-card-header > :not(.stock-pill) {
    min-width: 0;
}

.product-card-kicker {
    margin-bottom: 0.35rem;
    color: var(--store-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.product-card-detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
}

.product-card-detail {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: #f5f0e8;
    color: #4f4942;
    font-size: 0.78rem;
    font-weight: 700;
}

.product-color-palette {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    min-height: 34px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px;
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(31, 28, 23, 0.24) transparent;
    scrollbar-width: thin;
}

.product-color-palette-wrap {
    flex-wrap: wrap;
    align-items: flex-start;
    overflow: visible;
    padding-bottom: 2px;
    scroll-snap-type: none;
}

.product-color-palette::-webkit-scrollbar {
    height: 4px;
}

.product-color-palette::-webkit-scrollbar-track {
    background: transparent;
}

.product-color-palette::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(31, 28, 23, 0.24);
}

.product-color-swatch {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--swatch-color, #d9d3c8);
    box-shadow:
        0 0 0 1px rgba(31, 28, 23, 0.18),
        0 2px 5px rgba(31, 28, 23, 0.12);
    scroll-snap-align: start;
}

.product-color-swatch-button {
    appearance: none;
    padding: 0;
    cursor: pointer;
}

.product-color-swatch-button:focus-visible {
    outline: 2px solid #1d5d9f;
    outline-offset: 3px;
}

.product-color-swatch-button.selected {
    box-shadow:
        0 0 0 2px #fffdfa,
        0 0 0 5px #1d5d9f,
        0 2px 5px rgba(31, 28, 23, 0.12);
}

.product-size-palette {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    min-height: 28px;
    overflow: hidden;
    padding: 0 2px 4px;
}

.product-size-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 1.55rem;
    max-width: 4.25rem;
    height: 1.55rem;
    padding: 0 0.35rem;
    border: 1px solid #d9d0c5;
    border-radius: 6px;
    background: #fffdfa;
    color: #2f2a24;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-size-chip.out {
    border-color: #ded8d0;
    background: #f3eee8;
    color: #9b9288;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.product-size-chip-more {
    border-radius: 999px;
    background: #f5f0e8;
    color: #5f584f;
}

.concept-shop-request-color-group {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(31, 28, 23, 0.12);
    border-radius: 6px;
    background: rgba(248, 246, 240, 0.55);
}

.product-card-summary {
    margin: 0;
    color: #5a534c;
    font-size: 0.92rem;
    line-height: 1.5;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.storefront-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 0.45rem;
    min-width: 0;
    line-height: 1.2;
}

.storefront-price-current {
    min-width: 0;
    overflow-wrap: anywhere;
}

.storefront-price-compare {
    color: #8d8176;
    font-size: 0.84em;
    font-weight: 600;
    text-decoration: line-through;
}

.storefront-price-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0.16rem 0.42rem;
    border-radius: 999px;
    background: #b84a3a;
    color: #ffffff;
    font-size: 0.72em;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.storefront-price-bulk {
    display: grid;
    flex: 0 0 100%;
    gap: 0.12rem;
    max-width: 100%;
    color: #346847;
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.storefront-price-bulk-line {
    display: block;
    min-width: 0;
}

.product-card-footer .storefront-price {
    flex: 1 1 auto;
}

.product-card .price-tag {
    color: var(--store-accent);
    font-size: 1.08rem;
    font-weight: 700;
}

.product-card .stock-pill {
    position: absolute;
    top: 0;
    right: 0;
    width: 0.9rem;
    height: 0.9rem;
    padding: 0;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: #2f8f4e;
    color: transparent;
    font-size: 0;
    line-height: 0;
    box-shadow: 0 0 0 1px rgba(47, 143, 78, 0.28);
}

.product-card .stock-pill.out {
    background: #b84a3a;
    box-shadow: 0 0 0 1px rgba(184, 74, 58, 0.28);
}

.product-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.85rem;
    border: 0;
    border-radius: 999px;
    background: #1f1c17;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.product-card:hover .product-card-cta,
.product-card-cta:hover,
.product-card-cta:focus {
    background: var(--store-accent);
    color: #ffffff;
    text-decoration: none;
}

.product-card-cta:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.storefront-quick-add-drawer {
    --bs-offcanvas-width: min(100vw, 430px) !important;
    --bs-offcanvas-bg: #fffdfa !important;
    --bs-offcanvas-color: var(--store-ink) !important;
    --bs-offcanvas-border-color: var(--store-line) !important;
    width: min(100vw, 430px) !important;
    border-left: 1px solid var(--store-line);
    background-color: #fffdfa !important;
    color: var(--store-ink) !important;
    color-scheme: light;
    box-shadow: -24px 0 64px rgba(31, 28, 23, 0.18);
    visibility: visible;
}

.storefront-quick-add-drawer .offcanvas-header {
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--store-line);
    background: #fffdfa;
}

.storefront-quick-add-drawer .eyebrow {
    color: var(--store-muted);
}

.storefront-quick-add-drawer .offcanvas-title {
    margin: 0;
    color: var(--store-ink);
    font-size: 1.2rem;
    line-height: 1.25;
}

.storefront-quick-add-drawer .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, #f7f2ea 0%, #ede6db 100%);
}

.storefront-quick-add-product {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.storefront-quick-add-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--store-line);
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 28, 23, 0.06);
    overflow: hidden;
}

.storefront-quick-add-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.storefront-quick-add-copy {
    min-width: 0;
}

.storefront-quick-add-copy h3 {
    margin: 0 0 0.35rem;
    color: var(--store-ink);
    font-size: 1.08rem;
    line-height: 1.3;
}

.storefront-quick-add-copy .price-tag {
    color: var(--store-accent);
    font-size: 1.08rem;
    font-weight: 700;
}

.storefront-quick-add-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
    margin-bottom: 0.5rem;
    color: var(--store-muted);
    font-size: 0.82rem;
}

.storefront-quick-add-field {
    display: grid;
    gap: 0.45rem;
}

.storefront-quick-add-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.55rem;
    color: var(--store-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.storefront-quick-add-selected-value {
    color: var(--store-ink);
    font-size: 0.86rem;
    text-transform: none;
}

.storefront-quick-add-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.product-size-chip-button {
    min-width: 2.35rem;
    height: 2rem;
    padding: 0 0.55rem;
    cursor: pointer;
}

.product-size-chip-button:focus-visible {
    outline: 2px solid #1d5d9f;
    outline-offset: 2px;
}

.product-size-chip-button.selected {
    border-color: #1f1c17;
    background: #1f1c17;
    color: #ffffff;
    text-decoration: none;
}

.storefront-quick-add-drawer .product-size-chip-button.selected {
    border-color: var(--store-accent);
    background: #fffdfa;
    color: #2f2a24;
    box-shadow: 0 0 0 3px rgba(194, 90, 43, 0.18);
}

.storefront-quick-add-stock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.7rem;
    color: var(--store-muted);
    font-size: 0.86rem;
}

.storefront-quick-add-stock .stock-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: #e8f4ec;
    color: #256d3d;
    font-size: 0.8rem;
    font-weight: 800;
}

.storefront-quick-add-stock .stock-pill.out {
    background: #f7e9e5;
    color: #9b3d31;
}

.storefront-quick-add-actions {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.7rem;
}

.storefront-quick-add-actions .form-control {
    min-height: 2.55rem;
    border: 1px solid #d9d0c5;
    border-radius: 10px;
    background-color: #fffdfa;
    color: var(--store-ink);
    font-weight: 600;
    box-shadow: none;
}

.storefront-quick-add-actions .form-control:focus {
    border-color: var(--store-accent);
    box-shadow: 0 0 0 0.2rem rgba(194, 90, 43, 0.18);
}

.storefront-quick-add-actions .storefront-quick-add-primary {
    min-height: 2.55rem;
    border: 1px solid var(--store-accent) !important;
    border-radius: 999px;
    background-color: var(--store-accent) !important;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(194, 90, 43, 0.2);
}

.storefront-quick-add-actions .storefront-quick-add-primary:hover:not(:disabled),
.storefront-quick-add-actions .storefront-quick-add-primary:focus-visible:not(:disabled) {
    border-color: #a64620 !important;
    background-color: #a64620 !important;
    color: #ffffff !important;
}

.storefront-quick-add-actions .storefront-quick-add-primary:focus-visible:not(:disabled) {
    outline: 3px solid rgba(194, 90, 43, 0.24);
    outline-offset: 2px;
}

.storefront-quick-add-actions .storefront-quick-add-primary:disabled {
    border-color: #9c9186 !important;
    background-color: #9c9186 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    box-shadow: none;
}

.storefront-quick-add-drawer .btn-outline-dark {
    --bs-btn-color: var(--store-ink);
    --bs-btn-bg: #fffdfa;
    --bs-btn-border-color: #b9aea2;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--store-ink);
    --bs-btn-hover-border-color: var(--store-ink);
    --bs-btn-focus-shadow-rgb: 194, 90, 43;
    min-height: 2.5rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}

.storefront-product-addon-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 1rem;
}

.storefront-product-addon-actions .storefront-quick-add-primary.is-ready {
    border-color: #2f8a4d !important;
    box-shadow:
        0 0 0 3px rgba(47, 138, 77, 0.18),
        0 8px 18px rgba(194, 90, 43, 0.18);
}

.storefront-quick-add-message {
    margin: -0.25rem 0 0;
    font-size: 0.9rem;
}

.storefront-quick-add-backdrop {
    --bs-backdrop-bg: #1f1c17;
    --bs-backdrop-opacity: 0.45;
    cursor: pointer;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 32px;
}

.product-gallery {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid var(--store-line);
}

.product-gallery-main {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    display: block;
    background: var(--store-soft);
    border-radius: 14px;
    border: 1px solid var(--store-line);
    padding: 8px;
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-gallery-thumb {
    width: 88px;
    height: 88px;
    border: 1px solid var(--store-line);
    border-radius: 12px;
    background: #ffffff;
    padding: 4px;
    overflow: hidden;
    cursor: pointer;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-gallery-thumb.active {
    border-color: var(--store-ink);
    box-shadow: 0 0 0 1px var(--store-ink);
}

.product-summary {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--store-line);
    box-shadow: var(--store-shadow);
}

.product-summary .price-tag {
    font-size: 1.5rem;
    color: var(--store-accent);
    font-weight: 600;
}

.product-summary .product-summary-price.storefront-price {
    display: flex;
    margin-bottom: 0.45rem;
}

.product-specs {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--store-line);
    border-bottom: 1px solid var(--store-line);
}

.product-spec-row {
    display: grid;
    grid-template-columns: fit-content(14rem) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.product-spec-row dt {
    min-width: 0;
    color: var(--store-muted);
    font-size: 0.82rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.product-spec-row dd {
    min-width: 0;
    margin: 0;
    color: var(--store-ink);
    line-height: 1.45;
    overflow-wrap: break-word;
}

.product-downloads {
    margin-top: 2rem;
}

.product-downloads h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.product-download-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.product-download-link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--store-ink);
    text-decoration: none;
}

.product-download-link:hover {
    border-color: var(--store-accent);
    color: var(--store-accent);
    text-decoration: none;
}

.product-download-name {
    font-weight: 700;
}

.product-download-meta {
    color: var(--store-muted);
    font-size: 0.85rem;
}

.related-products-section {
    margin-top: 2.5rem;
}

.related-products-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.related-products-heading h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.25;
}

.related-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.store-crumbs .breadcrumb-item + .breadcrumb-item::before {
    color: var(--store-muted);
}

.store-back-link {
    text-decoration: none;
    color: var(--store-ink);
}

.storefront-shell .form-control,
.storefront-shell .form-select,
.storefront-shell .form-control:disabled,
.storefront-shell .form-select:disabled {
    background-color: #ffffff;
    border-color: var(--store-line);
    color: var(--store-ink);
}

.storefront-shell .form-control:focus,
.storefront-shell .form-select:focus {
    border-color: var(--store-accent);
    box-shadow: 0 0 0 0.2rem rgba(194, 90, 43, 0.15);
}

.storefront-shell .table {
    color: var(--store-ink);
    border-color: var(--store-line);
}

.storefront-shell .table thead th {
    background-color: var(--store-soft);
    color: var(--store-ink);
}

.storefront-shell .table td,
.storefront-shell .table th {
    border-color: var(--store-line);
}

.storefront-shell .list-group-item {
    background-color: #ffffff;
    border-color: var(--store-line);
    color: var(--store-ink);
}

.storefront-shell .list-group-item + .list-group-item {
    border-top: 1px solid var(--store-line);
}

.storefront-product-addon-variant-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 5.75rem;
    width: 5.75rem;
    min-height: 3rem;
    padding: 0.35rem 0.55rem;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
}

.storefront-shell .btn,
.storefront-nav .btn {
    border-radius: 999px;
    font-weight: 700;
    box-shadow: none;
}

.storefront-shell .btn-primary,
.storefront-shell .btn-dark,
.storefront-nav .btn-dark {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--store-ink);
    --bs-btn-border-color: var(--store-ink);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #342f27;
    --bs-btn-hover-border-color: #342f27;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #342f27;
    --bs-btn-active-border-color: #342f27;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #9b9288;
    --bs-btn-disabled-border-color: #9b9288;
}

.storefront-shell .btn-outline-dark,
.storefront-shell .btn-outline-primary,
.storefront-shell .btn-outline-secondary,
.storefront-nav .btn-outline-dark {
    --bs-btn-color: var(--store-ink);
    --bs-btn-border-color: rgba(31, 28, 23, 0.22);
    --bs-btn-bg: #fffdf9;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--store-ink);
    --bs-btn-hover-border-color: var(--store-ink);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--store-ink);
    --bs-btn-active-border-color: var(--store-ink);
    --bs-btn-disabled-color: #9b9288;
    --bs-btn-disabled-bg: #f3eee8;
    --bs-btn-disabled-border-color: var(--store-line);
}

.storefront-shell .btn-link {
    color: var(--store-ink);
    font-weight: 700;
    text-decoration-color: rgba(31, 28, 23, 0.28);
    text-underline-offset: 0.18em;
}

.storefront-shell .btn-link:hover,
.storefront-shell .btn-link:focus {
    color: var(--store-ink);
    text-decoration-color: var(--store-ink);
}

.storefront-shipping-costs {
    margin: 0.2rem 0 1rem;
}

.store-shipping-costs-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--store-ink);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: underline;
    text-decoration-color: rgba(31, 28, 23, 0.28);
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.store-shipping-costs-link:hover,
.store-shipping-costs-link:focus {
    color: var(--store-ink);
    text-decoration-color: var(--store-ink);
}

.storefront-shipping-costs-modal {
    color: var(--store-ink);
}

.storefront-shipping-costs-modal .modal-content {
    border: 1px solid var(--store-line);
    border-radius: 18px;
    background: #fffdf9;
    box-shadow: 0 28px 70px rgba(31, 28, 23, 0.22);
}

.storefront-shipping-costs-modal .modal-header,
.storefront-shipping-costs-modal .modal-footer {
    border-color: var(--store-line);
}

.storefront-shipping-costs-modal .modal-body {
    color: #4f4942;
    line-height: 1.6;
}

.storefront-shipping-costs-backdrop {
    background-color: rgba(31, 28, 23, 0.42);
}

.storefront-cart-table {
    vertical-align: middle;
}

.storefront-cart-table-wrap {
    margin-bottom: 0;
}

.storefront-cart-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    min-width: 0;
}

.storefront-cart-thumb {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(31, 28, 23, 0.08);
    background: var(--store-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--store-muted);
    font-size: 0.72rem;
    text-align: center;
    padding: 0.35rem;
}

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

.storefront-cart-thumb-small {
    width: 60px;
    height: 60px;
    border-radius: 16px;
}

.storefront-cart-product-copy {
    min-width: 0;
}

.storefront-cart-product-name {
    font-weight: 700;
    line-height: 1.35;
}

.storefront-cart-name-link,
.storefront-cart-thumbnail-link {
    color: inherit;
    text-decoration: none;
}

.storefront-cart-name-link:hover {
    color: var(--store-ink);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.storefront-cart-thumbnail-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.storefront-cart-thumbnail-link:hover {
    opacity: 0.8;
}

.storefront-cart-name-link:focus-visible,
.storefront-cart-thumbnail-link:focus-visible {
    outline: 2px solid var(--store-ink);
    outline-offset: 2px;
}

.storefront-cart-thumbnail-link:focus-visible {
    outline-offset: -2px;
}

.storefront-cart-product-number {
    margin-top: 0.25rem;
    color: var(--store-muted);
    font-size: 0.85rem;
}

.storefront-cart-variant {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    font-size: 0.92rem;
}

.storefront-cart-variant strong {
    font-weight: 700;
}

.storefront-cart-variant-sku {
    color: var(--store-muted);
    font-size: 0.84rem;
}

.storefront-cart-mobile-list {
    display: none;
}

.storefront-cart-mobile-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: #ffffff;
}

.storefront-cart-mobile-card.is-addon {
    background: var(--store-soft);
}

.storefront-cart-mobile-product {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    min-width: 0;
}

.storefront-cart-mobile-meta {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    color: #4f4942;
    font-size: 0.92rem;
}

.storefront-cart-mobile-pricing {
    display: grid;
    gap: 0.55rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--store-line);
}

.storefront-cart-mobile-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-width: 0;
}

.storefront-cart-mobile-row > span {
    min-width: 0;
    color: var(--store-muted);
    font-weight: 700;
}

.storefront-cart-mobile-row > strong {
    min-width: 0;
    color: var(--store-ink);
    text-align: right;
}

.storefront-cart-mobile-quantity {
    grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 7rem);
}

.storefront-cart-mobile-quantity .form-control {
    min-height: 2.45rem;
    text-align: center;
}

.storefront-cart-mobile-remove {
    justify-self: stretch;
}

.storefront-cart-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.storefront-cart-summary-totals {
    text-align: right;
}

.storefront-cart-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.storefront-cart-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
    white-space: normal;
}

.checkout-summary-list {
    overflow: hidden;
    border-radius: 8px;
}

.storefront-checkout-line {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.storefront-checkout-line-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    min-width: 0;
}

.storefront-checkout-line-main > :last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.checkout-summary-line-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.55rem;
    min-width: 0;
}

.checkout-summary-line-total {
    justify-self: end;
    color: var(--store-ink);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.checkout-summary-total-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.checkout-summary-total-row > span,
.checkout-summary-total-row > strong {
    min-width: 0;
}

.checkout-summary-total-row > strong {
    justify-self: end;
    text-align: right;
    overflow-wrap: anywhere;
}

.checkout-info-panel {
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
}

.checkout-info-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: -1rem -1rem 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--store-line);
}

.checkout-info-header h4,
.checkout-delivery-heading {
    margin: 0;
}

.checkout-info-header a {
    color: var(--store-ink);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(31, 28, 23, 0.3);
    text-underline-offset: 0.2em;
    white-space: nowrap;
}

.checkout-info-header a:hover,
.checkout-info-header a:focus {
    text-decoration-color: var(--store-ink);
}

.checkout-info-panel .form-label {
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.checkout-info-panel .form-control {
    min-height: 2.4rem;
    border-radius: 0;
}

.checkout-consent-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.checkout-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.65rem;
    align-items: start;
    min-width: 0;
    margin: 0;
    padding-left: 0;
}

.checkout-check .form-check-input {
    width: 1.45rem;
    height: 1.45rem;
    margin: 0.1rem 0 0;
    border-radius: 0.25rem;
}

.checkout-check .form-check-label {
    min-width: 0;
    line-height: 1.35;
}

.checkout-check .text-danger {
    grid-column: 2;
}

.checkout-delivery-heading {
    margin-top: 0.7rem;
    padding-top: 0.5rem;
}

.checkout-shipping-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.checkout-shipping-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: flex-start;
    min-width: 0;
    padding: 0.95rem;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: #fffdfa;
    color: var(--store-ink);
    cursor: pointer;
}

.checkout-shipping-option.selected {
    border-color: var(--store-accent);
    box-shadow: 0 0 0 2px rgba(194, 90, 43, 0.12);
}

.checkout-shipping-option input {
    margin-top: 0.25rem;
    accent-color: var(--store-accent);
}

.checkout-shipping-option span {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.checkout-shipping-option small {
    color: var(--store-muted);
    line-height: 1.35;
}

.checkout-shipping-option-price {
    font-weight: 700;
    color: var(--store-ink) !important;
}

.checkout-parcelshops {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: #ffffff;
}

.checkout-parcelshops-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkout-parcelshop-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.checkout-parcelshop-list {
    display: grid;
    gap: 0.55rem;
    max-height: 380px;
    overflow: auto;
    padding-right: 0.25rem;
}

.checkout-parcelshop-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: #fffdfa;
    color: var(--store-ink);
    text-align: left;
}

.checkout-parcelshop-item.selected {
    border-color: var(--store-accent);
    background: #fff7f1;
}

.checkout-parcelshop-main {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.checkout-parcelshop-main small,
.checkout-parcelshop-distance {
    color: var(--store-muted);
}

.checkout-parcelshop-distance {
    white-space: nowrap;
    font-weight: 700;
}

.checkout-parcelshop-map {
    min-height: 380px;
    overflow: hidden;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: var(--store-soft);
}

.checkout-parcelshop-map-empty {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 1rem;
    color: var(--store-muted);
    text-align: center;
}

.storefront-search {
    flex: 1 1 34rem;
    min-width: min(340px, 100%);
    max-width: none;
    margin-inline: 1.25rem;
}

.storefront-search .form-control {
    border-radius: 999px;
    width: 100%;
    min-width: 0;
    padding: 0.7rem 1.2rem;
}

.store-search-field {
    position: relative;
}

.store-search-submit {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    z-index: 2;
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--store-ink);
    font-size: 1.2rem;
    cursor: pointer;
}

.store-search-submit:hover {
    background: var(--store-soft);
}

.store-search-submit:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--store-accent) 45%, transparent);
    outline-offset: 1px;
}

.store-search-input {
    padding: 0.65rem 3rem 0.65rem 1.1rem;
    font-size: 1rem;
}

.storefront-search .store-search-input {
    font-size: 1.05rem;
    min-height: 3rem;
    border-width: 1.5px;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 2000;
    background: #ffffff;
    border: 1px solid var(--store-line);
    border-radius: 22px;
    box-shadow: var(--store-shadow);
    overflow: hidden;
}

.storefront-search[data-debounced-search-submitting] .search-suggestions,
.storefront-search[data-debounced-search-outside-dismissed] .search-suggestions {
    display: none;
}

.search-suggestions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem 0.85rem;
    background: linear-gradient(180deg, #f7f4ef 0%, #ffffff 100%);
    border-bottom: 1px solid var(--store-line);
    color: var(--store-ink);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.search-suggestions-all {
    color: var(--store-ink);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.search-suggestions-list {
    max-height: min(68vh, 540px);
    overflow: auto;
}

.search-suggestions .suggestion-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.18s ease;
}

.search-suggestions .suggestion-item + .suggestion-item {
    border-top: 1px solid var(--store-line);
}

.search-suggestions .suggestion-item:hover,
.search-suggestions .suggestion-item:focus {
    background: #fbf8f4;
}

.search-suggestions .suggestion-thumb {
    width: 68px;
    height: 82px;
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 68px;
    text-align: center;
}

.search-suggestions .suggestion-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.search-suggestions .suggestion-thumb-empty {
    padding: 0.5rem;
    color: var(--store-muted);
    font-size: 0.75rem;
    line-height: 1.2;
}

.search-suggestions .suggestion-body {
    min-width: 0;
}

.search-suggestions .suggestion-name {
    font-size: 1.08rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--store-ink);
}

.search-suggestions .suggestion-number {
    margin-top: 0.22rem;
    font-size: 0.96rem;
    color: #4f4941;
}

.search-suggestions .suggestion-price {
    color: var(--store-ink);
    font-weight: 700;
    font-size: 1.08rem;
    white-space: nowrap;
    text-align: right;
    align-self: start;
}

.search-suggestions .suggestion-price.storefront-price {
    align-items: flex-end;
    justify-content: flex-end;
    flex-direction: column;
    gap: 0.12rem;
    white-space: normal;
}

.search-suggestions .suggestion-price .storefront-price-badge {
    font-size: 0.68rem;
}

.search-suggestions .suggestion-price .storefront-price-bulk {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    background: rgba(52, 104, 71, 0.1);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    overflow-wrap: normal;
}

.storefront-shell .store-pagination .pagination {
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-inline: 0;
}

.storefront-shell .store-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px !important;
    border: 1px solid var(--store-line);
    background: #fffdf9;
    color: var(--store-ink);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.storefront-shell .store-pagination .page-link:hover,
.storefront-shell .store-pagination .page-link:focus {
    background: var(--store-soft);
    border-color: rgba(31, 28, 23, 0.22);
    color: var(--store-ink);
    transform: translateY(-1px);
    box-shadow: 0 0 0 0.18rem rgba(31, 28, 23, 0.06);
}

.storefront-shell .store-pagination .page-item.active .page-link {
    background: var(--store-ink);
    border-color: var(--store-ink);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(31, 28, 23, 0.14);
}

.storefront-shell .store-pagination .page-item.disabled .page-link {
    background: #f3eee8;
    border-color: var(--store-line);
    color: #9b9288;
    opacity: 1;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.legal-page {
    max-width: 900px;
    line-height: 1.7;
}

.legal-page h2 {
    margin-top: 2rem;
    margin-bottom: 0.65rem;
    font-family: var(--store-font-body);
    font-size: 1.25rem;
    font-weight: 800;
}

.legal-page ul {
    padding-left: 1.2rem;
}

.legal-page p {
    margin-bottom: 0.85rem;
}

.legal-page-meta {
    color: var(--store-muted);
    font-size: 0.95rem;
}

.legal-contact-block,
.legal-form-block {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: #fffdf9;
}

.legal-form-block {
    overflow-x: auto;
}

.legal-form-line {
    white-space: nowrap;
}

.legal-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: #ffffff;
}

.legal-cookie-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.legal-cookie-table th,
.legal-cookie-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--store-line);
    text-align: left;
    vertical-align: top;
}

.legal-cookie-table th {
    background: #f7f3ed;
    color: var(--store-ink);
    font-size: 0.85rem;
    font-weight: 800;
}

.legal-cookie-table tr:last-child td {
    border-bottom: 0;
}

.cart-link {
    position: relative;
    color: var(--store-ink);
    font-size: 1.2rem;
}

.storefront-header-actions {
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.store-vat-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    box-sizing: border-box;
    max-width: 100%;
    padding: 3px;
    border: 1px solid var(--store-line);
    border-radius: 999px;
    background: #fffaf4;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.store-vat-toggle-btn {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--store-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.42rem 0.65rem;
    white-space: nowrap;
    transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.store-vat-toggle-btn:hover,
.store-vat-toggle-btn:focus-visible {
    color: var(--store-ink);
    background: rgba(31, 28, 23, 0.06);
}

.store-vat-toggle-btn.active {
    background: var(--store-ink);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 28, 23, 0.16);
}

.storefront-admin-btn {
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.35rem 0.85rem;
    line-height: 1.2;
}

.cart-count {
    margin-left: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--store-accent);
    padding: 2px 6px;
    border-radius: 999px;
}

@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .store-category-menu-shell {
        padding: 0.7rem 0;
    }

    .store-category-nav,
    .store-category-mega-panel,
    .store-category-backdrop {
        display: none;
    }

    .store-category-mobile-menu {
        display: grid;
        gap: 0.55rem;
    }

    .store-category-mobile-root-link,
    .store-category-mobile-summary {
        min-height: 2.85rem;
        padding: 0.7rem 0.85rem;
        border: 1px solid var(--store-line);
        border-radius: 8px;
        background: #ffffff;
        color: var(--store-ink);
        font-size: 0.92rem;
        font-weight: 800;
    }

    .store-category-mobile-section {
        min-width: 0;
    }

    .store-category-mobile-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        cursor: pointer;
        list-style: none;
    }

    .store-category-mobile-summary::-webkit-details-marker {
        display: none;
    }

    .store-category-mobile-summary::after {
        content: "+";
        flex: 0 0 auto;
        color: var(--store-muted);
        font-size: 1.1rem;
        line-height: 1;
    }

    .store-category-mobile-section[open] .store-category-mobile-summary::after {
        content: "-";
    }

    .store-category-mobile-panel {
        display: grid;
        gap: 0.25rem;
        margin-top: 0.45rem;
        padding: 0.6rem;
        border: 1px solid var(--store-line);
        border-radius: 8px;
        background: #ffffff;
    }

    .store-category-mobile-link {
        position: relative;
        min-height: 2.35rem;
        padding: 0.55rem 0.65rem 0.55rem calc(0.65rem + var(--store-category-depth-offset));
        border-radius: 8px;
        color: #4f4942;
        font-size: 0.88rem;
        font-weight: 700;
    }

    .store-category-mobile-link[class*="store-category-depth-"]::before {
        content: "";
        position: absolute;
        left: calc(var(--store-category-depth-offset) - 0.15rem);
        top: 0.55rem;
        bottom: 0.55rem;
        width: 1px;
        border-radius: 999px;
        background: #d9cfc2;
    }

    .store-category-mobile-link:hover,
    .store-category-mobile-link:focus {
        background: #f5f0e8;
    }

    .store-category-mobile-link-all {
        color: var(--store-ink);
        font-weight: 850;
    }

    .store-category-mobile-branch {
        min-width: 0;
    }

    .store-category-mobile-branch-summary {
        cursor: pointer;
        list-style: none;
    }

    .store-category-mobile-branch-summary::-webkit-details-marker {
        display: none;
    }

    .store-category-mobile-branch-summary::after {
        content: "+";
        flex: 0 0 auto;
        color: var(--store-muted);
        font-size: 1.05rem;
        line-height: 1;
    }

    .store-category-mobile-branch[open] > .store-category-mobile-branch-summary::after {
        content: "-";
    }

    .store-category-mobile-branch-panel {
        margin-top: 0.25rem;
        padding: 0.15rem 0 0.15rem 0.2rem;
        border: 0;
        background: transparent;
    }

    .catalog-hero-panel h1 {
        max-width: none;
    }

    .catalog-signal-grid {
        grid-template-columns: 1fr;
    }

    .catalog-overview-layout {
        grid-template-columns: 1fr;
    }

    .catalog-rail {
        position: static;
    }

    .catalog-overview-main-head,
    .category-page-results-head {
        grid-template-columns: 1fr;
    }

    .catalog-toolbar,
    .catalog-toolbar-wide {
        grid-template-columns: 1fr;
    }

    .catalog-toolbar-metrics {
        justify-content: flex-start;
    }

    .catalog-rail-nav {
        max-height: 320px;
    }
}

@media (max-width: 1200px) {
    .storefront-search {
        flex: 1 1 28rem;
        min-width: min(280px, 100%);
        max-width: none;
        margin-inline: 0.75rem;
    }

    .store-category-mega-layout {
        grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
        gap: 1.35rem;
    }

    .store-category-mega-columns {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .catalog-toolbar-wide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .checkout-shipping-options,
    .checkout-parcelshop-grid {
        grid-template-columns: 1fr;
    }

    .checkout-parcelshop-map {
        min-height: 320px;
    }

    .search-suggestions .suggestion-item {
        grid-template-columns: 60px minmax(0, 1fr) auto;
        padding: 0.9rem 1rem;
        gap: 0.85rem;
    }

    .search-suggestions .suggestion-thumb {
        width: 60px;
        height: 72px;
        flex-basis: 60px;
    }

    .search-suggestions .suggestion-name,
    .search-suggestions .suggestion-price {
        font-size: 1rem;
    }

    .storefront-cart-product {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .storefront-cart-thumb {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
}

@media (max-width: 767.98px) {
    .storefront-search {
        order: 2;
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        margin-inline: 0;
    }

    .storefront-header-actions {
        order: 3;
    }

    .storefront-cart-table-wrap {
        display: none;
    }

    .storefront-cart-mobile-list {
        display: grid;
        gap: 0.9rem;
        margin-bottom: 1rem;
    }

    .storefront-cart-summary {
        align-items: stretch;
    }

    .storefront-cart-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .storefront-cart-actions .btn {
        min-height: 2.75rem;
        padding-inline: 0.65rem;
        line-height: 1.15;
    }
}

@media (max-width: 576px) {
    .storefront-nav .navbar-brand {
        min-width: 0;
        max-width: 100%;
    }

    .storefront-brand-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .storefront-brand-site-logo {
        flex-basis: min(190px, 62vw);
        width: min(190px, 62vw);
    }

    .storefront-header-actions {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0 !important;
        gap: 0.55rem 0.65rem !important;
        justify-content: flex-start;
    }

    .storefront-header-actions .btn {
        margin-right: 0 !important;
    }

    .cart-link {
        display: inline-flex;
        align-items: center;
    }

    .product-spec-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.2rem;
    }

    .storefront-checkout-line {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 0.75rem;
    }

    .storefront-checkout-line-main {
        align-items: start;
        gap: 0.75rem;
    }

    .checkout-summary-line-total {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid var(--store-line);
        text-align: right;
        white-space: normal;
    }

    .checkout-summary-line-total::before {
        content: attr(data-label);
        color: var(--store-muted);
        font-weight: 700;
        text-align: left;
    }

    .checkout-summary-total-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, auto);
        gap: 0.75rem;
    }

    .checkout-shipping-option,
    .checkout-parcelshop-item {
        padding: 0.75rem;
    }

    .checkout-parcelshop-item {
        grid-template-columns: 1fr;
    }

    .checkout-parcelshop-distance {
        white-space: normal;
    }

    .storefront-admin-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }

    .store-vat-toggle {
        order: 5;
        flex: 1 0 100%;
        width: 100%;
        justify-content: center;
    }

    .store-vat-toggle-btn {
        flex: 1 1 0;
        padding: 0.45rem 0.5rem;
    }

    .storefront-shell .store-pagination .pagination {
        gap: 0.35rem;
    }

    .storefront-shell .store-pagination .page-link {
        min-width: 2.25rem;
        min-height: 2.25rem;
        padding: 0.5rem 0.7rem;
        font-size: 0.9rem;
    }

    .catalog-hero-panel,
    .catalog-hero-aside,
    .catalog-switchboard,
    .catalog-products-section {
        padding: 20px;
        border-radius: 22px;
    }

    .catalog-overview-section,
    .category-directory-section {
        padding: 20px;
        border-radius: 22px;
    }

    .catalog-overview-header,
    .category-directory-header {
        align-items: start;
    }

    .catalog-spotlight-card,
    .category-directory-card,
    .category-directory-card-compact,
    .catalog-signal-card,
    .department-card,
    .catalog-jump-card {
        min-height: 0;
        padding: 18px;
    }

    .category-page-header-summary {
        width: 100%;
    }

    .category-command-metrics,
    .catalog-toolbar-metrics {
        width: 100%;
    }

    .catalog-toolbar-pill {
        padding: 0.6rem 0.85rem;
        font-size: 0.88rem;
    }

    .catalog-rail-panel,
    .catalog-overview-empty,
    .category-page-explorer-card,
    .category-page-empty {
        padding: 18px;
        border-radius: 20px;
    }

    .catalog-rail-filter,
    .catalog-rail-nav {
        padding: 10px;
        border-radius: 20px;
    }

    .category-page-explorer-grid {
        display: flex;
        grid-template-columns: none;
        gap: 0.5rem;
        margin-inline: -20px;
        padding-inline: 20px;
        padding-bottom: 0.2rem;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .category-page-crumbs {
        display: none;
    }

    .category-page-header {
        align-items: flex-start;
        gap: 0.35rem;
        margin-bottom: 0.75rem !important;
    }

    .category-page-identity {
        width: 100%;
        gap: 0.65rem;
    }

    .category-page-logo {
        width: 3.5rem;
        height: 3.5rem;
        padding: 0.35rem;
    }

    .category-page-copy .eyebrow,
    .category-page-copy > .text-muted:not(.category-page-mobile-count),
    .category-page-header-summary,
    .category-page-explorer-head,
    .category-page-explorer-card-count,
    .category-page-explorer-card-meta,
    .category-page-explorer-card-children,
    .category-page-results-copy,
    .category-page-results-context {
        display: none;
    }

    .category-page-copy h1 {
        margin-bottom: 0.15rem !important;
        font-size: 1.45rem;
        line-height: 1.15;
    }

    .category-page-mobile-count {
        display: block;
        font-size: 0.92rem;
    }

    .category-page-explorer {
        gap: 0.5rem;
        margin-bottom: 0.75rem !important;
    }

    .category-page-explorer-card {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        min-height: 0;
        padding: 0.62rem 0.82rem;
        border-radius: 999px;
        background: #ffffff;
        box-shadow: none;
        scroll-snap-align: start;
    }

    .category-page-explorer-card-media {
        width: 2rem;
        height: 2rem;
        flex: 0 0 2rem;
        aspect-ratio: auto;
        border-radius: 999px;
    }

    .category-page-explorer-card-top {
        align-items: center;
    }

    .category-page-explorer-card-name {
        max-width: 13rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.88rem;
    }

    .category-page-results {
        gap: 0.75rem;
    }

    .category-page-results-head {
        display: block;
    }

    .category-page-results-tools {
        gap: 0;
    }

    .category-page-results-search .store-search-input {
        min-height: 2.6rem;
    }

    .category-page-catalog-controls.catalog-control-panel-desktop {
        display: none;
    }

    .category-page-catalog-controls.catalog-mobile-control-panel {
        display: block;
        margin: 0 0 0.4rem;
    }

    .category-page-catalog-controls .catalog-mobile-control-summary {
        min-height: 2.55rem;
        border-radius: 999px;
        padding: 0.55rem 0.85rem;
        font-size: 0.9rem;
    }

    .category-page-catalog-controls[open] .catalog-control-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        margin-top: 0.65rem;
        padding: 0.75rem;
        border: 1px solid var(--store-line);
        border-radius: 16px;
        background: #fffdf9;
    }

    .category-page-catalog-controls[open] .catalog-control-field .form-select,
    .category-page-catalog-controls[open] .catalog-stock-toggle,
    .category-page-catalog-controls[open] .catalog-clear-filters {
        min-height: 2.55rem;
        border-radius: 10px;
    }

    .concept-shop-hero,
    .concept-shop-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .concept-shop-logo {
        width: 96px;
        height: 64px;
    }

    .product-card-body {
        padding: 16px;
    }
}

@media (max-width: 420px) {
    .storefront-quick-add-drawer .offcanvas-header,
    .storefront-quick-add-drawer .offcanvas-body {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .storefront-quick-add-product {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 0.85rem;
    }

    .storefront-quick-add-actions:not(.storefront-product-addon-actions) {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 0.6rem;
    }
}

@media (max-width: 768px) {
    .storefront-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

}

#blazor-error-ui {
    display: none;
}

.admin-catalog-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.admin-pagination {
    color: var(--bs-body-color);
}

.admin-pagination .form-select {
    min-width: 4.25rem;
}

/* Stick only within the containing list section, never across other pagers. */
.admin-pagination-sticky {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-block: 0.5rem;
    background-color: var(--bs-body-bg);
}

.modal-body .admin-pagination-sticky {
    top: calc(-1 * var(--bs-modal-padding, 1rem));
}

.admin-catalog-thumb {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-catalog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #ffffff;
}

.admin-image-preview {
    border: 0;
    padding: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

.admin-image-preview img {
    width: 100%;
    height: 100%;
    display: block;
}

.admin-image-preview:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.admin-catalog-thumb .admin-image-preview {
    width: 100%;
    height: 100%;
}

.admin-catalog-thumb-placeholder {
    padding: 0.35rem;
    font-size: 0.6rem;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.admin-category-tree-name {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.admin-category-tree-name-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

.admin-category-image-thumb,
.admin-category-option-thumb {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #f8fafc;
}

.admin-category-image-thumb.is-empty,
.admin-category-option-thumb.is-empty {
    background: repeating-linear-gradient(
        135deg,
        #f8fafc,
        #f8fafc 5px,
        #eef2f7 5px,
        #eef2f7 10px
    );
}

.admin-category-image-thumb img,
.admin-category-option-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #ffffff;
}

.admin-category-option-label {
    display: flex;
    align-items: center;
    min-width: 0;
}

.admin-category-option-content {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    margin-left: 0.35rem;
}

.admin-category-option-content .form-check-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-actions-column {
    width: 10.5rem;
    min-width: 10.5rem;
}

.admin-user-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.admin-user-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2rem;
}

.admin-service-code-dropdown {
    position: relative;
}

.admin-service-code-dropdown-summary {
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    list-style: none;
}

.admin-service-code-dropdown-summary::marker {
    content: "";
}

.admin-service-code-dropdown-summary::-webkit-details-marker {
    display: none;
}

.admin-service-code-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    left: 0;
    z-index: 1055;
    max-height: 16rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.18);
}

.admin-service-code-dropdown-option {
    margin-bottom: 0.35rem;
}

.admin-service-code-dropdown-option:last-child {
    margin-bottom: 0;
}

.admin-service-code-dropdown-option .form-check-label {
    overflow-wrap: anywhere;
}

.admin-user-tab-button,
.admin-order-filter-button,
.admin-product-filter-button,
.admin-visibility-filter-button,
.admin-supplier-order-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.admin-user-tab-count,
.admin-order-filter-count,
.admin-product-filter-count,
.admin-visibility-filter-count,
.admin-supplier-order-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.btn-primary .admin-user-tab-count,
.btn-primary .admin-order-filter-count,
.btn-primary .admin-product-filter-count,
.btn-primary .admin-visibility-filter-count,
.btn-primary .admin-supplier-order-filter-count,
.btn-outline-primary:hover .admin-user-tab-count,
.btn-outline-primary:hover .admin-order-filter-count,
.btn-outline-primary:hover .admin-product-filter-count,
.btn-outline-primary:hover .admin-visibility-filter-count,
.btn-outline-primary:hover .admin-supplier-order-filter-count,
.btn-outline-primary:focus .admin-user-tab-count,
.btn-outline-primary:focus .admin-order-filter-count,
.btn-outline-primary:focus .admin-product-filter-count,
.btn-outline-primary:focus .admin-visibility-filter-count,
.btn-outline-primary:focus .admin-supplier-order-filter-count {
    color: #0d6efd;
    background: #ffffff;
    border-color: #ffffff;
}

.btn-outline-primary .admin-user-tab-count,
.btn-outline-primary .admin-order-filter-count,
.btn-outline-primary .admin-product-filter-count,
.btn-outline-primary .admin-visibility-filter-count,
.btn-outline-primary .admin-supplier-order-filter-count {
    color: #ffffff;
    background: #0d6efd;
    border-color: #0d6efd;
}

.consultant-sales-filter-grid {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 1fr) minmax(14rem, 1fr) max-content;
    align-items: end;
    gap: 1rem;
}

.consultant-sales-filter-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    overflow-x: auto;
}

.consultant-sales-filter-actions .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .consultant-sales-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .consultant-sales-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .consultant-sales-filter-grid {
        grid-template-columns: 1fr;
    }
}

.admin-catalog-copy {
    min-width: 0;
}

.supplier-order-variant-matrix {
    --bs-table-striped-bg: rgba(15, 23, 42, 0.035);
}

.supplier-order-variant-matrix-shell {
    max-height: clamp(320px, 56vh, 560px);
    overflow: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.supplier-order-variant-matrix-shell .supplier-order-variant-matrix {
    min-width: max-content;
}

.supplier-order-variant-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: var(--bs-tertiary-bg);
    box-shadow: inset 0 -1px 0 var(--bs-border-color);
}

.supplier-order-variant-color-cell {
    min-width: 220px;
}

.supplier-order-variant-color-cell .admin-catalog-copy {
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-bs-theme="dark"] .admin-catalog-thumb {
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

[data-bs-theme="dark"] .supplier-order-variant-matrix {
    --bs-table-striped-bg: rgba(255, 255, 255, 0.055);
}

[data-bs-theme="dark"] .admin-catalog-thumb img {
    background: rgba(255, 255, 255, 0.02);
}

[data-bs-theme="dark"] .admin-catalog-thumb-placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.supplier-pdf-drop-zone {
    position: relative;
    min-height: 132px;
    border: 2px dashed rgba(13, 110, 253, 0.35);
    border-radius: 0.5rem;
    background: rgba(13, 110, 253, 0.035);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

.supplier-pdf-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.supplier-pdf-drop-zone input[type="file"]:disabled {
    cursor: progress;
}

.supplier-pdf-drop-zone span {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.supplier-pdf-current-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    background: rgba(var(--bs-secondary-bg-rgb), 0.45);
}

.supplier-pdf-import-table td {
    vertical-align: top;
}

.supplier-pdf-suggestions {
    max-height: 220px;
    overflow: auto;
}

.statistics-range-picker {
    gap: 0.35rem;
}

.statistics-range-picker .btn {
    border-radius: 0.375rem !important;
}

.statistics-kpi-card {
    min-height: 132px;
}

.statistics-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(20px, 1fr);
    align-items: end;
    gap: 0.35rem;
    min-height: 240px;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.statistics-chart-column {
    display: grid;
    grid-template-rows: minmax(160px, 1fr) auto;
    align-items: end;
    min-width: 0;
    height: 100%;
}

.statistics-chart-bar {
    width: 100%;
    min-height: 4px;
    border-radius: 0.35rem 0.35rem 0 0;
    background: linear-gradient(180deg, #0d6efd 0%, #6ea8fe 100%);
}

.statistics-chart-label {
    margin-top: 0.45rem;
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.statistics-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.statistics-status-grid > div,
.statistics-mini-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background: rgba(var(--bs-secondary-bg-rgb), 0.35);
}

.statistics-status-grid span,
.statistics-mini-metric span {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

.statistics-mini-metric strong {
    font-size: 1.1rem;
}

.internal-stock-print-area {
    display: none;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    body:has(.internal-stock-print-area) * {
        visibility: hidden !important;
    }

    body:has(.internal-stock-print-area) .internal-stock-print-area,
    body:has(.internal-stock-print-area) .internal-stock-print-area * {
        visibility: visible !important;
    }

    body:has(.internal-stock-print-area) .internal-stock-print-area {
        display: block !important;
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        color: #000000;
        background: #ffffff;
        font-size: 10px;
    }

    .internal-stock-print-header {
        margin-bottom: 12px;
        border-bottom: 1px solid #000000;
        padding-bottom: 8px;
    }

    .internal-stock-print-header h1 {
        margin: 0 0 4px;
        font-size: 20px;
    }

    .internal-stock-print-summary {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }

    .internal-stock-print-summary div {
        border: 1px solid #000000;
        padding: 6px;
    }

    .internal-stock-print-summary span {
        display: block;
        font-size: 9px;
        text-transform: uppercase;
    }

    .internal-stock-print-summary strong {
        display: block;
        margin-top: 3px;
        font-size: 13px;
    }

    .internal-stock-print-table {
        width: 100%;
        border-collapse: collapse;
    }

    .internal-stock-print-table th,
    .internal-stock-print-table td {
        border: 1px solid #000000;
        padding: 4px 5px;
        vertical-align: top;
    }

    .internal-stock-print-table th {
        background: #eeeeee !important;
        font-weight: 700;
    }
}
