html,
body {
    color: var(--site-text-color, #20252c);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    margin: 0;
}

body {
    background: var(--site-background-color, #f4f5f7);
}

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

button,
input,
select {
    font: inherit;
}

.startup-loader {
    align-items: center;
    background: var(--site-background-color, #f4f5f7);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 2rem;
    position: fixed;
    z-index: 1000;
}

.startup-loader-box {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dde2e8;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(17, 24, 39, .16);
    display: grid;
    gap: .8rem;
    justify-items: center;
    max-width: 28rem;
    padding: 2rem;
    text-align: center;
    width: min(100%, 28rem);
}

.startup-loader-box h1 {
    color: var(--site-title-color, #111827);
    font-size: 1.45rem;
    margin: 0;
}

.startup-loader-box p {
    color: #5f6b7a;
    line-height: 1.45;
    margin: 0;
}

.startup-spinner {
    animation: startup-spin .85s linear infinite;
    border: 4px solid #e5e9ef;
    border-top-color: var(--site-accent-color, #f5b83f);
    border-radius: 999px;
    height: 2.75rem;
    width: 2.75rem;
}

@keyframes startup-spin {
    to {
        transform: rotate(360deg);
    }
}

.commerce-header {
    background: var(--site-header-color, #111827);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-main {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(18rem, 1fr) auto;
    margin: 0 auto;
    max-width: 1440px;
    padding: .75rem 1.25rem;
}

.brand {
    align-items: center;
    display: flex;
    gap: .65rem;
    min-width: max-content;
}

.brand-home-button {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.brand-home-button:hover .brand-name {
    text-decoration: underline;
}

.brand-mark {
    align-items: center;
    background: var(--site-accent-color, #f5b83f);
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    display: inline-flex;
    font-size: .9rem;
    font-weight: 800;
    height: 2.45rem;
    justify-content: center;
    min-width: 2.45rem;
    padding: 0 .55rem;
    white-space: nowrap;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
}

.search-box {
    background: #fff;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 9rem 1fr 3.25rem;
    min-height: 2.75rem;
    overflow: hidden;
}

.search-box select,
.search-box input {
    border: 0;
    min-width: 0;
    outline: 0;
    padding: 0 .9rem;
}

.search-box select {
    background: #edf0f4;
    border-right: 1px solid #d7dde5;
    color: #313946;
}

.search-box input {
    color: var(--site-text-color, #20252c);
}

.search-box button,
.cart-search-link {
    background: var(--site-accent-color, #f5b83f);
    border: 0;
    color: var(--site-title-color, #111827);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.search-button span {
    border: 3px solid var(--site-title-color, #111827);
    border-radius: 50%;
    display: block;
    height: 1.05rem;
    position: relative;
    width: 1.05rem;
}

.search-button span::after {
    background: var(--site-title-color, #111827);
    border-radius: 999px;
    bottom: -.42rem;
    content: "";
    height: .55rem;
    position: absolute;
    right: -.28rem;
    transform: rotate(-45deg);
    transform-origin: center;
    width: 3px;
}

.cart-search-box input:disabled,
.cart-search-box select:disabled {
    color: #6b7280;
    opacity: 1;
}

.cart-search-link:hover {
    background: #e6a928;
}

.account-links {
    align-items: center;
    display: flex;
    gap: .25rem;
}

.account-menu-wrapper {
    position: relative;
}

.account-dropdown-menu {
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(17, 24, 39, .18);
    display: grid;
    gap: .15rem;
    min-width: 12rem;
    padding: .35rem;
    position: absolute;
    right: 0;
    top: calc(100% + .45rem);
    z-index: 45;
}

.account-dropdown-menu button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    cursor: pointer;
    font-weight: 800;
    padding: .7rem .8rem;
    text-align: left;
}

.account-dropdown-menu button:hover {
    background: #f3f6fa;
}

.account-links a,
.account-link-button {
    border: 1px solid transparent;
    border-radius: 6px;
    display: grid;
    gap: .1rem;
    min-width: 4.8rem;
    padding: .35rem .5rem;
}

.account-link-button {
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.account-links a:hover,
.account-link-button:hover {
    border-color: rgba(255, 255, 255, .45);
}

.account-links span {
    color: #d4d8df;
    font-size: .74rem;
}

.account-links strong {
    font-size: .9rem;
    line-height: 1.1;
}

.cart-link {
    position: relative;
}

.cart-count {
    color: var(--site-accent-color, #f5b83f) !important;
    font-size: 1rem !important;
    font-weight: 800;
    line-height: 1;
}

.category-bar {
    background: #263241;
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    padding: .45rem max(1.25rem, calc((100vw - 1440px) / 2 + 1.25rem));
    white-space: nowrap;
}

.category-bar a,
.category-bar button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #f2f5f7;
    cursor: pointer;
    font-size: .93rem;
    padding: .45rem .7rem;
}

.category-bar a:hover,
.category-bar button:hover {
    background: rgba(255, 255, 255, .12);
}

.catalog-page {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 17rem minmax(0, 1fr);
    margin: 0 auto;
    max-width: 1440px;
    padding: 1.25rem;
}

.filters-panel {
    background: #fff;
    border: 1px solid #dde2e8;
    border-radius: 8px;
    position: sticky;
    top: 7.7rem;
}

.filter-block {
    border-bottom: 1px solid #e7ebef;
    display: grid;
    gap: .55rem;
    padding: 1rem;
}

.filter-block:last-child {
    border-bottom: 0;
}

.filter-block h2,
.filter-block h3 {
    font-size: 1rem;
    margin: 0;
}

.filter-block label {
    align-items: center;
    color: #394251;
    display: flex;
    font-size: .94rem;
    gap: .45rem;
}

.filter-block button {
    background: #f6f7f9;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    color: #27313d;
    cursor: pointer;
    padding: .55rem .65rem;
    text-align: left;
}

.filter-block button:hover {
    background: #eef2f6;
}

.catalog-tree-panel {
    display: grid;
    gap: .75rem;
    padding: 1rem;
}

.tree-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.tree-heading h2 {
    font-size: 1rem;
    margin: 0;
}

.tree-heading button {
    background: #eef2f6;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    color: #27313d;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 800;
    padding: .35rem .55rem;
}

.catalog-tree {
    display: grid;
    gap: .2rem;
}

.tree-node,
.tree-children {
    display: grid;
    gap: .2rem;
}

.tree-children {
    border-left: 1px solid #dce2e8;
    margin-left: .7rem;
    padding-left: .65rem;
}

.tree-row {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #303947;
    cursor: pointer;
    display: flex;
    gap: .45rem;
    min-height: 2rem;
    padding: .3rem .4rem;
    text-align: left;
}

.tree-row:hover,
.tree-row.selected {
    background: #eef2f6;
}

.tree-row.category {
    color: #4a5563;
    font-size: .9rem;
}

.folder-icon,
.leaf-icon {
    flex: 0 0 auto;
    height: 1rem;
    position: relative;
    width: 1rem;
}

.folder-icon::before {
    background: var(--site-accent-color, #f5b83f);
    border: 2px solid color-mix(in srgb, var(--site-accent-color, #f5b83f) 82%, #111827);
    border-radius: 999px;
    content: "";
    height: .62rem;
    left: .18rem;
    position: absolute;
    top: .19rem;
    width: .62rem;
}

.folder-icon::after {
    content: none;
}

.tree-children > .tree-row .folder-icon::before {
    background: #fff;
    border-color: var(--site-accent-color, #f5b83f);
    height: .52rem;
    left: .24rem;
    top: .24rem;
    width: .52rem;
}

.tree-row.selected .folder-icon::before,
.tree-row:hover .folder-icon::before {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-accent-color, #f5b83f) 22%, transparent);
}

.leaf-icon::before {
    background: #93a3b7;
    border-radius: 999px;
    content: "";
    height: .34rem;
    left: .33rem;
    position: absolute;
    top: .33rem;
    width: .34rem;
}

.tree-row.category.selected .leaf-icon::before,
.tree-row.category:hover .leaf-icon::before {
    background: var(--site-accent-color, #f5b83f);
}

.category-modal-backdrop {
    align-items: center;
    background: rgba(17, 24, 39, .72);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 2rem;
    position: fixed;
    z-index: 100;
}

.category-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
    display: grid;
    gap: 1rem;
    max-height: 88vh;
    max-width: 1280px;
    overflow: auto;
    padding: 1.25rem;
    width: min(94vw, 1280px);
}

.category-modal header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.category-modal h2 {
    font-size: 1.6rem;
    margin: 0;
}

.category-modal header button {
    background: #eef2f6;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    cursor: pointer;
    font-weight: 900;
    height: 2.4rem;
    width: 2.4rem;
}

.category-mega-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.category-mega-group {
    border: 1px solid #dde2e8;
    border-radius: 8px;
    display: grid;
    gap: .55rem;
    padding: .85rem;
}

.category-thumb {
    align-items: center;
    aspect-ratio: 1.65;
    background: #edf2f7;
    border-radius: 6px;
    color: #425064;
    display: flex;
    font-size: .95rem;
    font-weight: 900;
    justify-content: center;
    line-height: 1.2;
    overflow: hidden;
    padding: .65rem;
    text-align: center;
}

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

.category-mega-group h3 {
    font-size: 1rem;
    margin: 0;
}

.category-mega-subgroup {
    border-top: 1px solid #edf0f4;
    display: grid;
    gap: .25rem;
    padding-top: .45rem;
}

.category-mega-subgroup p {
    color: var(--site-title-color, #111827);
    font-size: .9rem;
    font-weight: 800;
    margin: 0;
}

.category-mega-group button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #334155;
    cursor: pointer;
    padding: .45rem .55rem;
    text-align: left;
}

.category-mega-group button:hover {
    background: #f6f7f9;
}

.product-results {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.results-toolbar {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.eyebrow {
    color: #697482;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 .2rem;
    text-transform: uppercase;
}

.results-toolbar h1 {
    font-size: 1.6rem;
    line-height: 1.2;
    margin: 0;
}

.price-mode {
    color: #4a5563;
    font-size: .92rem;
    margin: .35rem 0 0;
}

.commerce-rule {
    color: #697482;
    font-size: .86rem;
    line-height: 1.35;
    margin: .35rem 0 0;
    max-width: 48rem;
}

.results-toolbar select {
    background: #fff;
    border: 1px solid #d7dde4;
    border-radius: 6px;
    min-height: 2.45rem;
    padding: 0 .75rem;
}

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

.brand-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}

.brand-card {
    background: #ffffff;
    border: 1px solid #dde2e8;
    border-radius: 8px;
    color: var(--site-title-color, #111827);
    cursor: pointer;
    display: grid;
    gap: .75rem;
    padding: .9rem;
    text-align: center;
}

.brand-card:hover {
    border-color: var(--site-accent-color, #f5b83f);
    box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
}

.brand-card-image {
    align-items: center;
    aspect-ratio: 1.35;
    background: #f4f6f8;
    border-radius: 6px;
    display: flex;
    font-weight: 900;
    justify-content: center;
    overflow: hidden;
    padding: .6rem;
}

.brand-card-image img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.category-intro-panel {
    align-items: center;
    background: #fff;
    border: 1px solid #dde2e8;
    border-radius: 8px;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 18rem;
    padding: 1.25rem;
    text-align: center;
}

.category-intro-panel.has-image {
    justify-items: center;
}

.category-intro-panel.text-only {
    align-content: center;
    grid-template-columns: 1fr;
    justify-items: center;
}

.category-intro-panel.image-only {
    align-content: center;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.category-intro-panel.image-only .category-intro-image {
    grid-column: 1;
    margin-inline: auto;
    max-width: 42rem;
    width: min(100%, 42rem);
}

.category-intro-image {
    align-items: center;
    aspect-ratio: 1.45;
    background: #f4f6f8;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    justify-self: center;
    overflow: hidden;
    width: min(100%, 22rem);
}

.category-intro-image img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.category-intro-content h2 {
    color: var(--site-title-color, #111827);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
    text-align: center;
}

.category-intro-content {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100%;
    width: 100%;
}

.category-intro-html {
    color: #263241;
    font-size: 1rem;
    line-height: 1.55;
    max-width: 48rem;
    text-align: center;
    width: min(100%, 48rem);
}

.category-intro-html :first-child {
    margin-top: 0;
}

.category-intro-html :last-child {
    margin-bottom: 0;
}

.product-card {
    background: #fff;
    border: 1px solid #dde2e8;
    border-radius: 8px;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.product-card.detail-enabled {
    cursor: pointer;
}

.product-card.detail-enabled:hover {
    border-color: #aeb8c4;
    box-shadow: 0 8px 22px rgba(17, 24, 39, .08);
}

.left-content-stack {
    border-top: 1px solid #e7ebef;
    display: grid;
    gap: .75rem;
    padding: .9rem;
}

.text-content-box {
    background: #fff;
    border: 1px solid #dde2e8;
    border-radius: 8px;
    display: grid;
    gap: .65rem;
    overflow: auto;
    padding: .9rem;
}

.left-text-content-box {
    max-height: 28rem;
}

.text-content-box h3 {
    color: var(--site-title-color, #111827);
    font-size: 1rem;
    line-height: 1.25;
    margin: 0;
}

.text-content-html {
    color: #374151;
    font-size: .92rem;
    line-height: 1.45;
}

.text-content-html :first-child {
    margin-top: 0;
}

.text-content-html :last-child {
    margin-bottom: 0;
}

.center-content-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}

.center-text-content-box {
    max-height: 28rem;
    min-height: 22rem;
}

.center-text-content-box.span-2 {
    grid-column: span 2;
}

.center-text-content-box.span-3 {
    grid-column: span 3;
}

.center-text-content-box.span-4 {
    grid-column: span 4;
}

.product-image {
    align-items: center;
    background: #f0f2f5;
    display: flex;
    height: 11.5rem;
    justify-content: center;
    position: relative;
    width: 100%;
}

.product-image img {
    height: calc(100% - 1rem);
    object-fit: contain;
    width: calc(100% - 1rem);
}

.product-image-fallback {
    color: #3f4a5a;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    max-width: 82%;
    overflow-wrap: anywhere;
    text-align: center;
}

.product-image .product-badge {
    background: #c8342c;
    border-radius: 5px;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    left: .7rem;
    padding: .25rem .45rem;
    position: absolute;
    top: .7rem;
}

.product-image img.product-brand-logo {
    background: #fff;
    border: 1px solid #dde2e8;
    border-radius: 6px;
    height: 65px;
    object-fit: contain;
    padding: .25rem;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 65px;
    z-index: 2;
}

.product-info {
    display: grid;
    gap: .45rem;
    padding: .9rem;
    text-align: left;
    width: 100%;
}

.product-code {
    color: #6c7582;
    font-size: .78rem;
    font-weight: 700;
    margin: 0;
}

.product-info h2 {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0;
}

.product-title-link {
    background: transparent;
    border: 0;
    color: #1f4f86;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    padding: 0;
    text-align: left;
}

.product-title-link:hover {
    text-decoration: underline;
}

.product-code-button {
    cursor: pointer;
}

.locked-detail {
    background: #f6f7f9;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    box-sizing: border-box;
    color: #5f6b7a !important;
    font-size: .8rem !important;
    line-height: 1.25;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: .45rem .55rem;
}

.product-info p {
    color: #4a5563;
    font-size: .91rem;
    line-height: 1.35;
    margin: 0;
}

.availability {
    color: #17643a;
    display: grid;
    gap: .15rem;
    font-size: .88rem;
    font-weight: 700;
}

.availability small {
    color: #5d6a78;
    font-size: .78rem;
    font-weight: 700;
}

.price-row {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: space-between;
    margin-top: .25rem;
}

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

.price-stack {
    display: grid;
    gap: .15rem;
}

.price-stack span {
    color: #697482;
    font-size: .78rem;
    font-weight: 700;
}

.stock-price-tiers {
    display: grid;
    gap: .12rem;
    margin-top: .15rem;
}

.stock-price-tiers span {
    color: #0f6b3f;
    font-size: .78rem;
    font-weight: 900;
}

.arrival-info {
    color: #1f4f86 !important;
    font-weight: 900 !important;
}

.price-locked {
    background: #f6f7f9;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    color: #5f6b7a;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 8rem;
    padding: .45rem .55rem;
}

.buy-controls {
    align-items: end;
    display: flex;
    gap: .45rem;
}

.buy-controls label {
    display: grid;
    gap: .2rem;
}

.buy-controls label span {
    color: #697482;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}

.buy-controls input {
    border: 1px solid #cfd6df;
    border-radius: 6px;
    height: 2.35rem;
    padding: 0 .35rem;
    width: 4.1rem;
}

.price-row button,
.cart-button {
    background: var(--site-accent-color, #f5b83f);
    border: 0;
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    cursor: pointer;
    font-weight: 800;
    min-height: 2.35rem;
    padding: 0 .85rem;
}

.cart-button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    padding: 0;
    width: 2.65rem;
}

.cart-button span {
    border: 2px solid var(--site-title-color, #111827);
    border-radius: 3px;
    display: block;
    height: .85rem;
    position: relative;
    width: 1.05rem;
}

.cart-button span::before {
    border: 2px solid var(--site-title-color, #111827);
    border-bottom: 0;
    border-left: 0;
    content: "";
    height: .45rem;
    left: -.42rem;
    position: absolute;
    top: -.35rem;
    transform: skewX(-15deg);
    width: .5rem;
}

.cart-button span::after {
    background:
        radial-gradient(circle, var(--site-title-color, #111827) 0 45%, transparent 50%) left bottom / .32rem .32rem no-repeat,
        radial-gradient(circle, var(--site-title-color, #111827) 0 45%, transparent 50%) right bottom / .32rem .32rem no-repeat;
    bottom: -.55rem;
    content: "";
    height: .36rem;
    left: .08rem;
    position: absolute;
    width: .9rem;
}

.price-row button:hover,
.cart-button:hover {
    background: #e6a928;
}

.catalog-pager {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto 1fr;
    margin-top: 1rem;
}

.pager-side {
    display: flex;
    gap: .6rem;
}

.pager-side-left {
    justify-content: flex-start;
}

.pager-side-right {
    justify-content: flex-end;
}

.catalog-pager button {
    background: #fff;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    color: var(--site-title-color, #111827);
    cursor: pointer;
    font-weight: 800;
    min-height: 3rem;
    padding: .55rem 1rem;
}

.catalog-pager .pager-icon-button {
    font-size: 1.15rem;
    line-height: 1;
    min-width: 3.25rem;
    padding: 0;
}

.catalog-pager button:hover:not(:disabled) {
    background: #f6f8fa;
    border-color: #aeb8c4;
}

.catalog-pager button:disabled {
    color: #9aa4b2;
    cursor: not-allowed;
    opacity: .65;
}

.pager-current {
    color: var(--site-title-color, #111827);
    font-size: 1rem;
    font-weight: 900;
    min-width: 9rem;
    text-align: center;
}

.setup-page {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.setup-panel {
    background: #fff;
    border: 1px solid #dde2e8;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(17, 24, 39, .12);
    display: grid;
    gap: 1.25rem;
    max-width: 760px;
    padding: 1.5rem;
    width: 100%;
}

.setup-heading h1 {
    font-size: 1.8rem;
    margin: 0 0 .45rem;
}

.setup-heading p:last-child {
    color: #4a5563;
    line-height: 1.45;
    margin: 0;
}

.setup-form {
    display: grid;
    gap: 1rem;
}

.setup-form label {
    display: grid;
    gap: .4rem;
}

.setup-form label span {
    color: #303947;
    font-weight: 700;
}

.setup-form input[type="text"],
.setup-form input[type="email"],
.setup-form input[type="tel"],
.setup-form input[type="password"] {
    border: 1px solid #cfd6df;
    border-radius: 6px;
    min-height: 2.65rem;
    padding: 0 .75rem;
}

.setup-form input:focus {
    border-color: #496b9b;
    outline: 3px solid rgba(73, 107, 155, .16);
}

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

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

.setup-grid.location-grid {
    gap: .5rem;
    grid-template-columns: minmax(0, 1fr) 50px 50px;
}

.setup-grid.location-grid label {
    min-width: 0;
}

.setup-grid.location-grid label span {
    font-size: .66rem;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.setup-grid.location-grid input {
    box-sizing: border-box;
    min-width: 0;
    padding-left: .3rem;
    padding-right: .3rem;
    text-align: center;
    width: 100%;
}

.setup-grid.location-grid label:first-child input {
    text-align: left;
}

.registration-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.invoice-box {
    border: 1px solid #d7dde6;
    border-radius: 8px;
    display: grid;
    gap: 1rem;
    margin: .25rem 0;
    padding: 1rem;
}

.invoice-box legend {
    color: var(--site-title-color, #111827);
    font-weight: 400;
    padding: 0 .35rem;
}

.registration-modal-backdrop {
    align-items: center;
    background: rgba(17, 24, 39, .56);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 80;
}

.registration-modal {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(17, 24, 39, .28);
    display: grid;
    gap: .8rem;
    max-width: 460px;
    padding: 1.4rem;
    width: min(100%, 460px);
}

.account-registration-modal {
    max-height: min(92vh, 760px);
    max-width: 940px;
    overflow: auto;
    width: min(100%, 940px);
}

.login-modal,
.account-utility-modal {
    width: min(100%, 420px);
}

.account-utility-modal {
    max-width: 940px;
    width: min(100%, 940px);
}

.account-details-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.account-details-grid div {
    background: #f7f9fb;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    display: grid;
    gap: .25rem;
    min-width: 0;
    padding: .7rem .8rem;
}

.account-details-grid span {
    color: #687384;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.account-details-grid strong {
    color: var(--site-title-color, #111827);
    font-size: .92rem;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .account-details-grid {
        grid-template-columns: 1fr;
    }
}

.account-registration-form {
    margin-top: .25rem;
}

.registration-modal h2 {
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0;
}

.registration-modal p {
    color: #4b5563;
    line-height: 1.45;
    margin: 0;
}

.registration-modal-actions {
    display: flex;
    gap: .7rem;
    justify-content: flex-end;
    margin-top: .4rem;
}

.registration-modal-actions button {
    background: var(--site-accent-color, #f5b83f);
    border: 0;
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    cursor: pointer;
    font-weight: 800;
    min-height: 2.6rem;
    padding: 0 1rem;
}

.registration-modal-actions .secondary-button {
    background: #edf1f6;
}

.registration-modal-actions button:disabled {
    cursor: progress;
    opacity: .7;
}

.request-forwarded-toast {
    background: var(--site-title-color, #111827);
    border-radius: 8px;
    bottom: 1.5rem;
    box-shadow: 0 18px 42px rgba(17, 24, 39, .28);
    color: #ffffff;
    font-weight: 800;
    left: 50%;
    padding: .9rem 1.25rem;
    position: fixed;
    transform: translateX(-50%);
    z-index: 90;
}

.product-detail-backdrop {
    align-items: center;
    background: rgba(17, 24, 39, .62);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1.25rem;
    position: fixed;
    z-index: 85;
}

.product-detail-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(17, 24, 39, .28);
    max-height: min(63vh, 41rem);
    overflow: hidden;
    padding: 1rem;
    width: min(96vw, 82rem);
}

.product-detail-loading {
    align-items: center;
    color: var(--site-title-color, #111827);
    display: flex;
    font-size: 1.25rem;
    font-weight: 900;
    justify-content: center;
    min-height: 22rem;
}

.product-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 4.5rem minmax(16rem, 1.15fr) minmax(18rem, 1.2fr) minmax(12rem, .65fr);
    max-height: calc(min(63vh, 41rem) - 2rem);
    min-height: 0;
}

.detail-thumbs {
    align-content: start;
    display: grid;
    gap: .5rem;
}

.detail-thumb {
    align-items: center;
    background: #f3f5f7;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    height: 3.25rem;
    justify-content: center;
    padding: .2rem;
    width: 3.25rem;
}

.detail-thumb.selected {
    border-color: var(--site-title-color, #111827);
    box-shadow: 0 0 0 2px rgba(17, 24, 39, .12);
}

.detail-thumb img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.detail-main-image {
    align-items: center;
    background: #f1f3f6;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 19.5rem;
    padding: 1rem;
}

.detail-main-image img {
    height: 100%;
    max-height: 21rem;
    object-fit: contain;
    width: 100%;
}

.detail-copy {
    display: grid;
    gap: .8rem;
    max-height: calc(min(63vh, 41rem) - 2rem);
    min-height: 0;
    overflow-y: auto;
    padding-right: .35rem;
}

.detail-copy h2,
.detail-copy h3,
.detail-copy h4,
.detail-copy p {
    margin: 0;
}

.detail-copy h2 {
    color: var(--site-title-color, #111827);
    font-size: 1.4rem;
}

.detail-copy h3 {
    color: #253041;
    font-size: 1.05rem;
    line-height: 1.35;
}

.detail-copy h4 {
    color: var(--site-title-color, #111827);
    font-size: .92rem;
    font-weight: 900;
}

.detail-price-box {
    align-items: center;
    background: #f7f9fb;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: .65rem .75rem;
}

.detail-price-box span {
    background: #c8342c;
    border-radius: 5px;
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
    padding: .25rem .45rem;
}

.detail-price-box strong {
    color: var(--site-title-color, #111827);
    font-size: 1.2rem;
}

.detail-price-box small {
    color: #687384;
    font-weight: 800;
}

.detail-stock-price-tiers {
    flex: 1 0 100%;
}

.detail-price-box .stock-price-tiers span {
    background: transparent;
    color: #0f6b3f;
    font-size: .86rem;
    padding: 0;
}

.detail-html {
    color: #374151;
    font-size: .92rem;
    line-height: 1.45;
}

.detail-actions {
    align-content: start;
    background: #f7f9fb;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    display: grid;
    gap: .9rem;
    padding: .9rem;
}

.detail-actions label {
    display: grid;
    gap: .3rem;
}

.detail-actions label span {
    color: #687384;
    font-size: .78rem;
    font-weight: 900;
}

.detail-actions input {
    border: 1px solid #cfd6df;
    border-radius: 6px;
    height: 2.55rem;
    padding: 0 .5rem;
    width: 100%;
}

.detail-add-button {
    background: var(--site-accent-color, #f5b83f);
    border: 0;
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    cursor: pointer;
    font-weight: 900;
    min-height: 2.7rem;
    padding: .65rem .85rem;
}

.detail-add-button:hover {
    background: #e6a928;
}

.setup-check {
    align-items: center;
    display: flex !important;
    gap: .55rem !important;
}

.setup-check input {
    height: 1.05rem;
    width: 1.05rem;
}

.setup-form button {
    background: var(--site-accent-color, #f5b83f);
    border: 0;
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    cursor: pointer;
    font-weight: 800;
    justify-self: start;
    min-height: 2.75rem;
    padding: 0 1rem;
}

.setup-form button:disabled {
    cursor: progress;
    opacity: .7;
}

.setup-alert,
.setup-success {
    border-radius: 6px;
    line-height: 1.4;
    padding: .85rem 1rem;
}

.setup-alert {
    background: #fff1f0;
    border: 1px solid #f1b2ad;
    color: #8f1f18;
}

.setup-success {
    background: #effaf2;
    border: 1px solid #a8d8b8;
    color: #17643a;
}

.flow-message {
    background: #fff8e6;
    border: 1px solid #e9c66b;
    border-radius: 8px;
    color: #735416;
    line-height: 1.4;
    padding: .85rem 1rem;
}

.primary-link {
    align-items: center;
    background: var(--site-accent-color, #f5b83f);
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    display: inline-flex;
    font-weight: 800;
    justify-self: start;
    min-height: 2.65rem;
    padding: 0 1rem;
}

.primary-link:hover {
    background: #e6a928;
}

.cart-preview {
    background: #f6f7f9;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    padding: .65rem .75rem;
}

.privacy-page {
    margin: 0 auto;
    max-width: 980px;
    padding: 1.25rem;
}

.privacy-shell {
    display: grid;
    gap: .9rem;
}

.privacy-shell > h1 {
    color: var(--site-title-color, #111827);
    margin: 0 0 .35rem;
}

.privacy-card {
    background: #ffffff;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    padding: 1rem 1.1rem;
}

.privacy-card h2 {
    color: var(--site-title-color, #111827);
    font-size: 1.05rem;
    margin: 0 0 .55rem;
}

.privacy-card p {
    line-height: 1.55;
    margin: 0;
}

.cart-page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 1.25rem;
}

.cart-shell {
    display: grid;
    gap: 1rem;
}

.cart-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.cart-heading h1,
.cart-empty h2,
.cart-summary h2 {
    color: var(--site-title-color, #111827);
    margin: 0;
}

.cart-continue {
    align-items: center;
    background: var(--site-accent-color, #f5b83f);
    border: 1px solid #d99a16;
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    display: inline-flex;
    font-weight: 900;
    min-height: 2.55rem;
    padding: 0 1rem;
}

.cart-continue:hover {
    background: #e6a928;
}

.cart-layout {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 20rem;
}

.cart-lines {
    display: grid;
    gap: .75rem;
}

.cart-line,
.cart-empty,
.cart-summary {
    background: #ffffff;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
}

.cart-line {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 5.5rem minmax(0, 1fr) 5rem 8rem auto;
    padding: .85rem;
}

.cart-line-image {
    align-items: center;
    background: #f0f2f5;
    border-radius: 6px;
    display: flex;
    height: 5.5rem;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.cart-line-image img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.cart-line-image span {
    color: #425063;
    font-size: .78rem;
    font-weight: 800;
    padding: .4rem;
}

.cart-line-copy {
    display: grid;
    gap: .3rem;
    min-width: 0;
}

.cart-line-title {
    align-items: center;
    display: flex;
    gap: .5rem;
}

.cart-line-title strong {
    color: var(--site-title-color, #111827);
}

.cart-line-title span {
    background: #cf2e2e;
    border-radius: 4px;
    color: #ffffff;
    font-size: .68rem;
    font-weight: 900;
    padding: .18rem .35rem;
}

.cart-line-copy p {
    line-height: 1.35;
    margin: 0;
}

.cart-line-copy small {
    color: #526071;
}

.cart-line-qty {
    display: grid;
    gap: .25rem;
}

.cart-line-qty span {
    color: #526071;
    font-size: .72rem;
    font-weight: 800;
}

.cart-line-qty input {
    border: 1px solid #cfd6df;
    border-radius: 6px;
    height: 2.35rem;
    padding: 0 .45rem;
    width: 100%;
}

.cart-line-price {
    display: grid;
    gap: .2rem;
    justify-items: end;
}

.cart-line-price span {
    color: #526071;
    font-size: .82rem;
}

.cart-line-price small {
    color: #526071;
    font-size: .72rem;
}

.cart-line-price strong {
    color: var(--site-title-color, #111827);
}

.cart-remove {
    background: #f6f7f9;
    border: 1px solid #cfd6df;
    border-radius: 6px;
    color: #263241;
    cursor: pointer;
    font-weight: 800;
    min-height: 2.35rem;
    padding: 0 .75rem;
}

.cart-summary {
    display: grid;
    gap: .9rem;
    padding: 1rem;
    position: sticky;
    top: 6rem;
}

.cart-summary div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.cart-summary span {
    color: #526071;
}

.cart-summary strong {
    color: var(--site-title-color, #111827);
}

.cart-summary-total {
    border-top: 1px solid #d9e0e8;
    padding-top: .75rem;
}

.cart-empty {
    display: grid;
    gap: .7rem;
    justify-items: start;
    padding: 1.25rem;
}

.cart-empty p {
    color: #526071;
    margin: 0;
}

.cart-checkout {
    align-items: center;
    background: var(--site-accent-color, #f5b83f);
    border: 0;
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 2.65rem;
}

.cart-checkout:hover {
    background: #e6a928;
}

.checkout-page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 1.25rem;
}

.checkout-shell {
    display: grid;
    gap: 1rem;
}

.checkout-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.checkout-heading h1,
.checkout-box h2,
.checkout-summary h2,
.checkout-success h2 {
    color: var(--site-title-color, #111827);
    margin: 0;
}

.checkout-layout {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 22rem;
}

.checkout-main {
    display: grid;
    gap: .85rem;
}

.checkout-box,
.checkout-summary,
.checkout-success {
    background: #ffffff;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    padding: 1rem;
}

.checkout-box {
    display: grid;
    gap: .65rem;
}

.checkout-box p {
    margin: 0;
}

.checkout-box small {
    color: #526071;
}

.checkout-box input,
.checkout-box select,
.checkout-box textarea {
    border: 1px solid #cfd6df;
    border-radius: 6px;
    min-height: 2.45rem;
    padding: .45rem .55rem;
    width: 100%;
}

.checkout-summary {
    display: grid;
    gap: .85rem;
    position: sticky;
    top: 6rem;
}

.checkout-line {
    border-bottom: 1px solid #e4e9ef;
    display: grid;
    gap: .2rem;
    padding-bottom: .65rem;
}

.checkout-line span {
    color: var(--site-title-color, #111827);
    font-weight: 800;
}

.checkout-line small {
    color: #526071;
}

.checkout-line strong,
.checkout-total strong {
    color: var(--site-title-color, #111827);
    justify-self: end;
}

.coupon-entry {
    align-items: center;
    display: grid;
    gap: .65rem;
    grid-template-columns: minmax(0, 1fr) 7.5rem;
}

.coupon-entry button {
    background: var(--site-accent-color, #f5b83f);
    border: 0;
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    cursor: pointer;
    font-weight: 900;
    min-height: 2.45rem;
}

.coupon-entry button:hover {
    background: #e6a928;
}

.coupon-entry button:disabled {
    cursor: progress;
    opacity: .7;
}

.coupon-entry .coupon-remove {
    background: #eef2f6;
    border: 1px solid #cfd6df;
}

.coupon-entry .coupon-remove:hover {
    background: #e4e9ef;
}

.coupon-ok,
.coupon-error {
    border-radius: 6px;
    font-size: .9rem;
    margin: 0;
    padding: .55rem .65rem;
}

.coupon-ok {
    background: #ecfdf3;
    color: #046c4e;
}

.coupon-error {
    background: #fff2f2;
    color: #9b1c1c;
}

.coupon-summary strong {
    color: #b42318;
}

.checkout-total {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.checkout-total-breakdown {
    border-top: 1px solid #e4e9ef;
    display: grid;
    gap: .45rem;
    padding-top: .7rem;
}

.checkout-total-breakdown div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.checkout-total-breakdown span {
    color: #526071;
}

.checkout-total-breakdown strong {
    color: var(--site-title-color, #111827);
}

.checkout-confirm {
    background: var(--site-accent-color, #f5b83f);
    border: 0;
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    cursor: pointer;
    font-weight: 900;
    min-height: 2.75rem;
}

.checkout-confirm:hover {
    background: #e6a928;
}

.checkout-confirm:disabled {
    cursor: progress;
    opacity: .7;
}

.checkout-success {
    display: grid;
    gap: .65rem;
    justify-items: start;
}

.checkout-pay-now {
    align-items: center;
    background: var(--site-accent-color, #f5b83f);
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0 1.1rem;
    text-decoration: none;
}

.checkout-pay-now:hover {
    background: #e6a928;
}

.orders-page {
    background: #f3f5f7;
    min-height: calc(100vh - 8rem);
    padding: 2rem clamp(1rem, 4vw, 3rem) 3rem;
}

.orders-shell {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    max-width: 1100px;
}

.orders-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.orders-heading h1 {
    color: var(--site-title-color, #111827);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0;
}

.orders-list {
    display: grid;
    gap: .85rem;
}

.order-card {
    background: #ffffff;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    display: grid;
    gap: .75rem;
    padding: .75rem;
}

.order-card-row {
    align-items: center;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.order-card-main {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(12rem, 1.4fr) repeat(3, minmax(7rem, .8fr)) auto;
    padding: .35rem;
    text-align: left;
}

.order-card-main span {
    display: grid;
    gap: .15rem;
}

.order-card-main strong {
    color: var(--site-title-color, #111827);
}

.order-card-main small,
.orders-muted {
    color: #526071;
}

.order-status {
    background: #eef2f6;
    border: 1px solid #d9e0e8;
    border-radius: 999px;
    color: var(--site-title-color, #111827);
    font-size: .85rem;
    font-weight: 800;
    justify-self: end;
    padding: .35rem .65rem;
}

.order-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.order-detail-button,
.order-pay-button {
    align-items: center;
    background: var(--site-accent-color, #f5b83f);
    border: 0;
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    justify-self: end;
    min-height: 2.35rem;
    padding: 0 1rem;
    text-decoration: none;
    text-transform: uppercase;
}

.order-detail-button {
    background: #eef2f6;
    border: 1px solid #cfd6df;
}

.order-lines {
    border-top: 1px solid #e4e9ef;
    display: grid;
    gap: .65rem;
    padding-top: .75rem;
}

.order-line-card {
    align-items: start;
    background: #f8fafc;
    border: 1px solid #e4e9ef;
    border-radius: 6px;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(12rem, 1fr) 4rem 8rem 8rem auto;
    padding: .75rem;
}

.order-line-card p {
    margin: .25rem 0 0;
}

.order-line-card small {
    color: #526071;
    display: block;
    margin-bottom: .2rem;
}

.order-line-actions {
    display: grid;
    gap: .45rem;
    justify-items: stretch;
}

.order-line-actions button,
.rma-form button {
    background: var(--site-accent-color, #f5b83f);
    border: 0;
    border-radius: 6px;
    color: var(--site-title-color, #111827);
    cursor: pointer;
    font-weight: 900;
    min-height: 2.25rem;
    padding: 0 .75rem;
}

.order-line-actions button:disabled,
.rma-form button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.rma-form {
    display: grid;
    gap: .6rem;
    grid-column: 1 / -1;
}

.rma-form textarea {
    border: 1px solid #cfd6df;
    border-radius: 6px;
    padding: .55rem;
    resize: vertical;
    width: 100%;
}

.rma-form div {
    display: flex;
    gap: .5rem;
    justify-content: end;
}

@media (max-width: 900px) {
    .order-card-row,
    .order-card-main,
    .order-line-card {
        grid-template-columns: 1fr;
    }

    .order-status,
    .order-card-actions,
    .order-pay-button {
        justify-self: start;
    }

    .order-card-actions {
        justify-content: flex-start;
    }
}

.maintenance-page {
    align-items: center;
    background: var(--site-background-color, #f4f5f7);
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-height: 100vh;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.maintenance-page h1 {
    color: var(--site-title-color, #111827);
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
}

.maintenance-page h2 {
    color: #526071;
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

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: #b32121;
    color: white;
    padding: 1rem;
}

    .blazor-error-boundary::after {
        content: "Si e verificato un errore."
    }

.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;
}

@media (max-width: 980px) {
    .header-main {
        grid-template-columns: 1fr;
    }

    .account-links {
        justify-content: space-between;
    }

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

    .filters-panel {
        position: static;
    }

    .center-text-content-box.span-2,
    .center-text-content-box.span-3,
    .center-text-content-box.span-4 {
        grid-column: span 1;
    }

    .product-detail-modal {
        overflow: auto;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .detail-copy {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .header-main {
        padding: .75rem;
    }

    .search-box {
        grid-template-columns: 1fr 3rem;
    }

    .search-box select {
        display: none;
    }

    .catalog-page {
        padding: .75rem;
    }

    .results-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .results-toolbar h1 {
        font-size: 1.25rem;
    }

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

    .setup-page {
        padding: .75rem;
    }

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

    .setup-grid.location-grid {
        grid-template-columns: minmax(0, 1fr) 50px 50px;
    }
}
