:root {
    /* Material — light: blue + gray */
    --md-primary: #1976D2;
    --md-on-primary: #FFFFFF;
    --md-primary-container: #D1E4FF;
    --md-on-primary-container: #001D36;
    --md-secondary-container: #E3F2FD;
    --md-surface: #FAFAFA;
    --md-surface-container-lowest: #FFFFFF;
    --md-surface-container-low: #F5F5F5;
    --md-surface-container: #EEEEEE;
    --md-surface-container-high: #E0E0E0;
    --md-on-surface: #212121;
    --md-on-surface-variant: #616161;
    --md-outline: #757575;
    --md-outline-variant: #E0E0E0;
    --md-error: #BA1A1A;
    --md-error-container: #FFDAD6;
    --md-success: #2E7D32;
    --md-success-container: #C8E6C9;
    --md-warning-container: #FFE082;

    --store-primary: var(--md-primary);
    --store-primary-dark: #1565C0;
    --store-primary-container: var(--md-primary-container);
    --store-on-primary: var(--md-on-primary);
    --store-accent: #F9A825;
    --store-dark: #263238;
    --store-text: var(--md-on-surface);
    --store-muted: var(--md-on-surface-variant);
    --store-border: var(--md-outline-variant);
    --store-bg: var(--md-surface);
    --store-surface: var(--md-surface-container-lowest);
    --store-surface-muted: var(--md-surface-container);
    --store-surface-subtle: var(--md-surface-container-low);
    --store-surface-accent: var(--md-primary-container);
    --store-surface-hover: var(--md-surface-container-high);
    --store-input-bg: var(--md-surface-container-lowest);
    --store-header-bg: rgba(255, 255, 255, 0.92);
    --store-placeholder-from: var(--md-surface-container-high);
    --store-placeholder-to: var(--md-surface-container);
    --store-success: var(--md-success);
    --store-error: var(--md-error);
    --store-radius: 16px;
    --store-radius-sm: 12px;
    --store-radius-xs: 8px;
    --store-radius-pill: 9999px;
    --store-elevation-1: 0 1px 2px rgba(33, 33, 33, 0.08), 0 1px 3px rgba(33, 33, 33, 0.06);
    --store-elevation-2: 0 2px 8px rgba(33, 33, 33, 0.1), 0 1px 3px rgba(33, 33, 33, 0.06);
    --store-elevation-3: 0 6px 20px rgba(33, 33, 33, 0.12), 0 2px 6px rgba(33, 33, 33, 0.06);
    --store-shadow: var(--store-elevation-2);
    --store-shadow-soft: var(--store-elevation-1);
    --store-shadow-header: 0 1px 0 var(--md-outline-variant);
    --store-motion: 200ms cubic-bezier(0.2, 0, 0, 1);
    --store-container-max: 1280px;
    --store-gutter: clamp(1rem, 2.5vw, 1.5rem);
    --store-header-height: 4rem;
    --store-section-gap: 2rem;
    --store-block-gap: 1.5rem;
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.store-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--store-bg);
    color: var(--store-text);
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--store-primary);
}

a:hover {
    color: var(--store-primary-dark);
}

::selection {
    background: var(--store-primary-container);
    color: var(--md-on-primary-container);
}

:focus-visible {
    outline: 2px solid var(--store-primary);
    outline-offset: 2px;
}

.store-container {
    width: 100%;
    max-width: var(--store-container-max);
    margin: 0 auto;
    padding-left: var(--store-gutter);
    padding-right: var(--store-gutter);
}

/* Header */
.store-header {
    background: var(--store-header-bg);
    border-bottom: 1px solid var(--store-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--store-shadow-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.store-header .navbar {
    --bs-navbar-padding-y: 0;
    min-height: var(--store-header-height);
}

.store-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: var(--store-header-height);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.store-header__collapse {
    align-items: center;
    gap: 0.75rem;
}

.store-header__search {
    flex: 1 1 220px;
    max-width: 420px;
    margin: 0.5rem 0;
}

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

.search-autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-sm);
    box-shadow: var(--store-elevation-3);
    overflow: hidden;
}

.search-autocomplete-dropdown.is-open {
    display: block;
}

.store-header,
.store-header .navbar,
.store-header__inner,
.store-header__collapse,
.store-header__collapse.collapse,
.store-header__search,
.search-autocomplete-wrap,
.search-autocomplete {
    overflow: visible;
}

.search-autocomplete-list {
    max-height: 20rem;
    overflow-y: auto;
}

.search-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: var(--store-text);
    text-decoration: none;
    border-bottom: 1px solid var(--store-border);
    transition: background 0.12s;
}

.search-autocomplete-item:hover,
.search-autocomplete-item.active {
    background: var(--store-surface-subtle);
    color: var(--store-text);
}

.search-autocomplete-thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: var(--store-radius-xs);
    overflow: hidden;
    background: var(--store-surface-muted);
}

.search-autocomplete-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-autocomplete-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.search-autocomplete-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-autocomplete-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--store-primary);
}

.search-autocomplete-arrow {
    flex-shrink: 0;
    color: var(--md-outline);
    font-size: 0.85rem;
}

.search-autocomplete-all {
    display: block;
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--store-primary);
    text-decoration: none;
    background: var(--store-surface-hover);
    border-top: 1px solid var(--store-border);
}

.search-autocomplete-all:hover {
    background: var(--store-surface-accent);
    color: var(--store-primary-dark);
}

.search-autocomplete-status,
.search-autocomplete-empty {
    padding: 0.9rem 0.85rem;
    font-size: 0.875rem;
    color: var(--store-muted);
}

.search-autocomplete-thumb img.is-placeholder {
    object-fit: contain;
    padding: 18%;
}

@media (min-width: 992px) {
    .store-header__collapse {
        display: flex !important;
        flex: 1 1 auto;
        justify-content: flex-end;
        margin-left: 1rem;
    }

    .store-header__search {
        margin: 0 auto 0 1.5rem;
    }

    .store-header__nav {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        margin-left: 1rem;
    }
}

.store-header .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--store-primary) !important;
    letter-spacing: 0;
    margin-right: 0;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.store-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.store-logo__icon {
    display: block;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.store-logo__text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--store-primary);
    line-height: 1;
}

.store-header .nav-link {
    color: var(--store-text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--store-radius-pill);
    transition: background var(--store-motion), color var(--store-motion);
}

.store-header .nav-link:hover {
    background: var(--store-surface-accent);
    color: var(--md-on-primary-container) !important;
}

.store-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--store-radius-pill);
    background: var(--store-surface-accent);
    color: var(--store-primary-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background var(--store-motion), color var(--store-motion);
}

.store-header-phone i {
    font-size: 0.95rem;
}

.store-header-phone:hover {
    background: var(--store-primary);
    color: #fff;
}

.store-cart-badge {
    background: var(--store-primary);
    color: var(--store-on-primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2em 0.55em;
    border-radius: var(--store-radius-pill);
    vertical-align: middle;
}

.store-search {
    width: 100%;
    border-radius: var(--store-radius-pill);
    border: 1px solid var(--store-border);
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    background: var(--store-input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2379747E' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 14px center;
    font-size: 0.95rem;
    color: var(--store-text);
    transition: border-color var(--store-motion), box-shadow var(--store-motion), background-color var(--store-motion);
}

.store-search:focus {
    border-color: var(--store-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--store-primary) 20%, transparent);
    background-color: var(--store-input-bg);
    outline: none;
}

.store-main {
    flex: 1;
    width: 100%;
    padding: var(--store-section-gap) 0 calc(var(--store-section-gap) + 0.5rem);
}

.store-page {
    display: flex;
    flex-direction: column;
    gap: var(--store-block-gap);
}

.store-page-title {
    font-size: clamp(1.75rem, 3vw, 2.125rem);
    font-weight: 400;
    letter-spacing: 0;
    margin: 0;
    line-height: 1.2;
}

.store-page-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 1.25rem;
    color: var(--store-text);
}

.store-page-card {
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    padding: clamp(1.25rem, 2vw, 1.75rem);
    box-shadow: var(--store-elevation-1);
}

.store-page-card--form {
    margin-top: 0.25rem;
}

.store-cart-table {
    margin-bottom: 0;
}

.store-cart-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--store-muted);
    border-bottom-width: 1px;
    white-space: nowrap;
}

.store-cart-total {
    font-size: 1.125rem;
}

/* Cart */
.cart-page__header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cart-page__subtitle {
    margin: 0;
    color: var(--store-muted);
    font-size: 0.95rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: var(--store-block-gap);
    align-items: start;
}

.cart-layout--empty {
    grid-template-columns: 1fr;
}

.cart-main {
    min-width: 0;
}

.cart-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: calc(var(--store-header-height) + 1rem);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    box-shadow: var(--store-elevation-1);
    transition: box-shadow var(--store-motion), border-color var(--store-motion);
}

.cart-item:hover {
    border-color: color-mix(in srgb, var(--store-primary) 18%, var(--store-border));
    box-shadow: var(--store-elevation-2);
}

.cart-item__image {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: var(--store-radius-sm);
    overflow: hidden;
    background: var(--store-surface-subtle);
    border: 1px solid var(--store-border);
}

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

.cart-item__image.has-placeholder img.is-placeholder {
    object-fit: contain;
    padding: 0.75rem;
    opacity: 0.55;
}

.cart-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.cart-item__title {
    color: var(--store-text);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.35;
    text-decoration: none;
    transition: color var(--store-motion);
}

.cart-item__title:hover {
    color: var(--store-primary);
}

.cart-item__price {
    color: var(--store-muted);
    font-size: 0.9rem;
}

.cart-item__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.15rem;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-pill);
    overflow: hidden;
    background: var(--store-input-bg);
}

.cart-qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--store-text);
    cursor: pointer;
    transition: background var(--store-motion), color var(--store-motion);
}

.cart-qty__btn:hover {
    background: var(--store-surface-accent);
    color: var(--store-primary);
}

.cart-qty__input {
    width: 2.75rem;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 500;
    color: var(--store-text);
    padding: 0.35rem 0;
    -moz-appearance: textfield;
}

.cart-qty__input::-webkit-outer-spin-button,
.cart-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-qty__input:focus {
    outline: none;
}

.cart-item__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--store-border);
    border-radius: 50%;
    background: transparent;
    color: var(--store-muted);
    cursor: pointer;
    transition: background var(--store-motion), color var(--store-motion), border-color var(--store-motion);
}

.cart-item__remove:hover {
    color: var(--md-error);
    border-color: color-mix(in srgb, var(--md-error) 35%, var(--store-border));
    background: var(--md-error-container);
}

.cart-item__subtotal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    text-align: right;
    white-space: nowrap;
}

.cart-item__subtotal-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--store-muted);
}

.cart-item__subtotal strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--store-text);
}

.cart-summary {
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    padding: 1.25rem;
    box-shadow: var(--store-elevation-1);
}

.cart-summary__title {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0 0 1rem;
}

.cart-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--store-border);
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--store-muted);
    font-size: 0.925rem;
}

.cart-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 1rem;
}

.cart-summary__total strong {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--store-primary);
}

.cart-summary__note {
    margin: 0.85rem 0 0;
    font-size: 0.8rem;
    color: var(--store-muted);
    line-height: 1.45;
}

.cart-checkout {
    position: relative;
    padding: 1.25rem;
}

.cart-checkout--submitting .cart-checkout__form {
    pointer-events: none;
    opacity: 0.55;
}

.cart-checkout__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: color-mix(in srgb, var(--store-surface) 82%, transparent);
    backdrop-filter: blur(2px);
}

.cart-checkout__overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.cart-checkout__overlay-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--store-text);
}

.cart-checkout__submit-label,
.cart-checkout__submit-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-checkout__title {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0 0 1rem;
}

.cart-checkout__form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.cart-checkout__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

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

.cart-checkout__required {
    color: #c62828;
    font-weight: 600;
}

.cart-checkout__field--invalid .form-control,
.cart-checkout__field--invalid .form-select {
    border-color: #c62828;
    box-shadow: 0 0 0 3px color-mix(in srgb, #c62828 14%, transparent);
}

.cart-checkout__error {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #c62828;
}

.cart-checkout__hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--store-muted);
}

.cart-checkout__summary-error {
    margin-bottom: 0.25rem;
}

.cart-checkout__summary-error-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 0.95rem;
    border-radius: var(--store-radius-sm);
    background: color-mix(in srgb, #c62828 10%, var(--store-surface));
    border: 1px solid color-mix(in srgb, #c62828 24%, var(--store-border));
    color: #b71c1c;
    font-size: 0.9rem;
    line-height: 1.45;
}

.cart-checkout__summary-error-inner .bi {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cart-checkout__submit {
    width: 100%;
    margin-top: 0.25rem;
}

.cart-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-payment-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.875rem 1rem;
    border: 1px solid var(--store-border, #e5e7eb);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cart-payment-option:has(input:checked) {
    border-color: var(--store-primary, #2B5876);
    box-shadow: 0 0 0 1px var(--store-primary, #2B5876);
}

.cart-payment-option input {
    margin-top: 0.2rem;
}

.cart-payment-option__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cart-payment-option__title {
    font-weight: 600;
}

.cart-payment-option__desc {
    font-size: 0.875rem;
    color: var(--store-muted, #6b7280);
}

.cart-checkout__result {
    margin-top: 0.85rem;
}

.order-thanks-page {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

.order-thanks-card {
    width: min(100%, 36rem);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    text-align: center;
}

.order-thanks-card__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--store-primary) 12%, transparent);
    color: var(--store-primary);
    font-size: 2rem;
}

.order-thanks-card__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 600;
}

.order-thanks-card__lead {
    margin: 0 0 1.5rem;
    color: var(--store-muted);
    line-height: 1.55;
}

.order-thanks-details {
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    background: var(--store-surface-muted);
    text-align: left;
}

.order-thanks-details__row {
    display: grid;
    grid-template-columns: minmax(7rem, 38%) 1fr;
    gap: 0.35rem 1rem;
    padding: 0.55rem 0;
}

.order-thanks-details__row + .order-thanks-details__row {
    border-top: 1px solid var(--store-border);
}

.order-thanks-details__row dt {
    margin: 0;
    font-size: 0.875rem;
    color: var(--store-muted);
}

.order-thanks-details__row dd {
    margin: 0;
    font-weight: 500;
    color: var(--store-text);
}

.order-thanks-details__row--muted dt,
.order-thanks-details__row--muted dd {
    font-size: 0.875rem;
    color: var(--store-muted);
    font-weight: 400;
}

#thanks-sbis-order-number {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--store-primary);
    word-break: break-word;
}

.order-thanks-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.order-thanks-actions .store-btn-primary,
.order-thanks-actions .btn-store-outline {
    min-width: 11rem;
}

.cart-empty {
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    box-shadow: var(--store-elevation-1);
}

.cart-empty__icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--store-surface-accent);
    color: var(--store-primary);
    font-size: 2rem;
}

.cart-empty__title {
    font-size: 1.35rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
}

.cart-empty__text {
    margin: 0 0 1.25rem;
    color: var(--store-muted);
}

.store-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--store-primary);
    color: var(--store-on-primary);
    border: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--store-radius-pill);
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--store-motion), box-shadow var(--store-motion), background var(--store-motion);
    box-shadow: var(--store-elevation-1);
}

.store-btn-primary:hover {
    background: var(--store-primary-dark);
    color: var(--store-on-primary);
    transform: translateY(-1px);
    box-shadow: var(--store-elevation-2);
}

button.store-btn-primary {
    width: auto;
}

@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .cart-item {
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-areas:
            "image body"
            "subtotal subtotal";
    }

    .cart-item__image {
        grid-area: image;
        width: 72px;
        height: 72px;
    }

    .cart-item__body {
        grid-area: body;
    }

    .cart-item__subtotal {
        grid-area: subtotal;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.75rem;
        margin-top: 0.25rem;
        border-top: 1px solid var(--store-border);
        text-align: left;
    }
}

/* Hero */
.store-hero {
    --hero-from: #2B5876;
    --hero-via: #4A7FA5;
    --hero-to: #6B9EC4;
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-via) 55%, var(--hero-to) 100%);
    color: #fff;
    border-radius: var(--store-radius);
    padding: clamp(1.125rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
    margin-bottom: var(--store-block-gap);
    position: relative;
    overflow: hidden;
    box-shadow: var(--store-elevation-1);
}

.store-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 50%;
    height: 180%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 68%);
    pointer-events: none;
}

.store-hero__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.store-hero--align-center .store-hero__content {
    margin-inline: auto;
    text-align: center;
}

.store-hero--align-center .store-hero p {
    margin-inline: auto;
}

.store-hero--align-center .store-hero__actions {
    justify-content: center;
}

.store-hero--align-right .store-hero__content {
    margin-left: auto;
    text-align: right;
}

.store-hero--align-right .store-hero p {
    margin-left: auto;
}

.store-hero--align-right .store-hero__actions {
    justify-content: flex-end;
}

.store-hero h1,
.store-hero .store-hero__title {
    font-weight: 500;
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.store-hero p:not(.store-hero__title) {
    opacity: 0.94;
    font-size: 0.9375rem;
    max-width: 480px;
    line-height: 1.55;
    margin-bottom: 0;
}

.store-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.96);
    color: #1A3A52;
    border: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--store-radius-pill);
    transition: transform var(--store-motion), box-shadow var(--store-motion), background var(--store-motion);
    box-shadow: 0 1px 3px rgba(15, 35, 55, 0.18);
    text-decoration: none;
}

.btn-store:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(15, 35, 55, 0.22);
    color: #123047;
    background: #fff;
}

.btn-store-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1.2rem;
    border-radius: var(--store-radius-pill);
    text-decoration: none;
    transition: background var(--store-motion), border-color var(--store-motion);
}

.btn-store-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

/* Banners carousel */
.store-banners-section {
    margin-bottom: var(--store-section-gap);
}

.store-banners {
    border-radius: var(--store-radius);
    overflow: hidden;
    box-shadow: var(--store-shadow);
    position: relative;
}

.store-banners .carousel-inner {
    min-height: var(--banner-height, 300px);
}

.store-banners .carousel-item.store-banner-slide {
    display: none;
    float: none;
    margin-right: 0;
}

.store-banners .carousel-item.store-banner-slide.active,
.store-banners .carousel-item.store-banner-slide.carousel-item-start,
.store-banners .carousel-item.store-banner-slide.carousel-item-end,
.store-banners .carousel-item.store-banner-slide.carousel-item-next,
.store-banners .carousel-item.store-banner-slide.carousel-item-prev {
    display: block !important;
}

.store-banner-slide {
    height: var(--banner-height, 300px);
    min-height: var(--banner-height, 300px);
    background-color: #1e293b;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.store-banner-slide--height-compact {
    --banner-height: 200px;
}

.store-banner-slide--height-standard {
    --banner-height: 300px;
}

.store-banner-slide--height-large {
    --banner-height: 420px;
}

.store-banner-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.store-banner-slide--overlay-none::after {
    background: none;
}

.store-banner-slide--overlay-light::after {
    background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.35));
}

.store-banner-slide--overlay-medium::after {
    background: linear-gradient(transparent 25%, rgba(0, 0, 0, 0.55));
}

.store-banner-slide--overlay-dark::after {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
}

.store-banner-title,
.store-banner-btn,
.store-banner-stack {
    position: absolute;
    z-index: 1;
}

.store-banner-title,
.store-banner-stack {
    max-width: min(calc(100% - 4rem), 40rem);
}

.store-banner-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    max-width: min(calc(100% - 4rem), 40rem);
}

.store-banner-stack.store-banner-pos--bottom-center,
.store-banner-stack.store-banner-pos--top-center,
.store-banner-stack.store-banner-pos--center {
    align-items: center;
    text-align: center;
}

.store-banner-stack.store-banner-pos--bottom-right,
.store-banner-stack.store-banner-pos--top-right {
    align-items: flex-end;
    text-align: right;
}

.store-banner-stack .store-banner-title,
.store-banner-stack .store-banner-btn {
    position: static;
    transform: none;
    max-width: 100%;
}

.store-banner-pos--bottom-left {
    bottom: 2rem;
    left: 2rem;
    top: auto;
    right: auto;
    transform: none;
    text-align: left;
}

.store-banner-pos--bottom-center {
    bottom: 2rem;
    left: 50%;
    top: auto;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
}

.store-banner-pos--bottom-right {
    bottom: 2rem;
    right: 2rem;
    left: auto;
    top: auto;
    transform: none;
    text-align: right;
}

.store-banner-pos--center {
    top: 50%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%);
    text-align: center;
}

.store-banner-pos--top-left {
    top: 2rem;
    left: 2rem;
    bottom: auto;
    right: auto;
    transform: none;
    text-align: left;
}

.store-banner-pos--top-center {
    top: 2rem;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
}

.store-banner-pos--top-right {
    top: 2rem;
    right: 2rem;
    left: auto;
    bottom: auto;
    transform: none;
    text-align: right;
}

.store-banner-title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.2;
}

.store-banner-text--white {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.store-banner-text--light {
    color: #e2e8f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.store-banner-text--dark {
    color: #0f172a;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.45);
}

.store-banner-text--brand {
    color: var(--store-primary);
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
}

.store-banner-text--gold {
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.store-banner-text--cream {
    color: #fff7ed;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.store-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.store-banner-btn--solid-light {
    background: rgba(255, 255, 255, 0.96);
    color: #1A3A52;
}

.store-banner-btn--solid-light:hover {
    color: #1A3A52;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

.store-banner-btn--solid-dark {
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
}

.store-banner-btn--solid-dark:hover {
    color: #fff;
    background: rgba(15, 23, 42, 0.98);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
}

.store-banner-btn--outline {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
}

.store-banner-btn--outline:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.store-banner-btn--brand {
    background: var(--store-primary);
    color: #fff;
}

.store-banner-btn--brand:hover {
    color: #fff;
    background: var(--store-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(25, 118, 210, 0.35);
}

.store-banner-btn.store-banner-pos--bottom-center:hover {
    transform: translateX(-50%) translateY(-1px);
}

.store-banner-btn.store-banner-pos--top-center:hover {
    transform: translateX(-50%) translateY(-1px);
}

.store-banner-btn.store-banner-pos--center:hover {
    transform: translate(-50%, calc(-50% - 1px));
}

.store-banner-indicators {
    margin-bottom: 0.75rem;
    z-index: 2;
}

.store-banner-indicators [data-bs-target] {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.45);
    border: 0;
    opacity: 1;
}

.store-banner-indicators .active {
    background-color: #fff;
}

.store-banners .carousel-control-prev,
.store-banners .carousel-control-next {
    z-index: 2;
    width: 8%;
}

.store-banners .carousel-control-prev-icon,
.store-banners .carousel-control-next-icon {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.store-banner-fallback {
    background: linear-gradient(135deg, #1e293b, #334155);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Static pages */
.store-static-page {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.5rem 0 2.5rem;
}

.store-page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: var(--md-on-surface-variant);
}

.store-page-breadcrumb a {
    color: var(--store-primary);
    text-decoration: none;
}

.store-page-breadcrumb a:hover {
    text-decoration: underline;
}

.store-page-header h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
}

.store-page-lead {
    color: var(--md-on-surface-variant);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.store-page-content {
    line-height: 1.7;
    font-size: 1rem;
    color: var(--md-on-surface);
}

.store-page-content p {
    margin-bottom: 1rem;
}

.store-page-content ul,
.store-page-content ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.store-page-content a {
    color: var(--store-primary);
}

.store-page-loading {
    padding: 2rem 0;
    color: var(--md-on-surface-variant);
}

/* Product sections */
.store-section {
    margin-bottom: var(--store-section-gap);
}

.store-section:last-child {
    margin-bottom: 0;
}

.recently-viewed-section {
    margin-top: var(--store-section-gap);
}

.recently-viewed-carousel .store-carousel-track {
    grid-auto-columns: minmax(180px, 220px);
}

.cart-recently-viewed {
    margin-top: var(--store-section-gap);
}

.store-product-carousel {
    position: relative;
}

.store-home-carousel {
    padding: 0 2.75rem;
}

.store-home-carousel .store-carousel-track {
    gap: 1rem;
    grid-auto-columns: var(--home-carousel-slide-width, minmax(0, 1fr));
}

.store-home-carousel .store-carousel-btn--prev {
    left: 0;
}

.store-home-carousel .store-carousel-btn--next {
    right: 0;
}

.store-home-carousel .product-card-title {
    font-size: 0.9375rem;
    line-height: 1.4;
    padding: 0.625rem 0.875rem 0;
}

.store-home-carousel .product-card-body {
    padding: 0.75rem 0.875rem 0.875rem;
}

.store-home-carousel .product-card-price {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
}

.store-home-carousel .product-card-stock {
    font-size: 0.8125rem;
}

.store-home-carousel .product-card-btn {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
}

.store-home-carousel .product-card-badge {
    top: 12px;
    left: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.store-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: var(--store-block-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.25rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.store-carousel-track::-webkit-scrollbar {
    display: none;
}

.store-carousel-slide {
    scroll-snap-align: start;
    min-width: 0;
}

.store-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-pill);
    background: var(--store-surface);
    color: var(--store-primary);
    box-shadow: var(--store-elevation-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--store-motion), border-color var(--store-motion), box-shadow var(--store-motion);
}

.store-carousel-btn:hover:not(:disabled) {
    background: var(--store-surface);
    border-color: var(--store-primary);
}

.store-carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.store-carousel-btn--prev {
    left: -0.75rem;
}

.store-carousel-btn--next {
    right: -0.75rem;
}

@media (max-width: 992px) {
    .store-home-carousel {
        padding: 0;
    }

    .store-carousel-track {
        grid-auto-columns: minmax(180px, 75%);
    }

    .store-carousel-btn {
        display: none;
    }
}

.store-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.store-section-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0;
    line-height: 1.3;
    color: var(--store-text);
}

.store-section-header p {
    color: var(--store-muted);
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
}

.store-section-link {
    color: var(--store-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.store-section-link:hover {
    text-decoration: underline;
}

.store-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--store-block-gap);
}

.catalog-main .store-products-grid {
    gap: 1rem;
}

/* Product card */
.product-card {
    background: var(--store-surface);
    border-radius: var(--store-radius);
    border: 1px solid var(--store-border);
    overflow: hidden;
    transition: transform var(--store-motion), box-shadow var(--store-motion), border-color var(--store-motion);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    box-shadow: var(--store-elevation-1);
}

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

.product-card-link:hover {
    color: inherit;
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--store-surface-muted);
    overflow: hidden;
    line-height: 0;
}

.product-card-image.has-placeholder {
    background: linear-gradient(145deg, var(--store-placeholder-from) 0%, var(--store-placeholder-to) 100%);
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
    transition: transform 0.3s;
}

.product-card-image img.is-placeholder,
.product-card-image.has-placeholder img {
    object-fit: contain;
    padding: 0;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--store-elevation-3);
    border-color: color-mix(in srgb, var(--store-primary) 25%, var(--store-border));
}

.product-card:hover .product-card-image img:not(.is-placeholder) {
    transform: scale(1.02);
}

.catalog-main .product-card:hover .product-card-image img:not(.is-placeholder) {
    transform: none;
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--store-accent);
    color: var(--md-on-surface);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: var(--store-radius-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--store-elevation-1);
}

.product-card-badge.new { background: var(--md-success-container); color: #1B5E20; }
.product-card-badge.sale { background: var(--md-error-container); color: var(--store-error); }

.product-card-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-main .product-card-body {
    padding: 0.625rem 0.75rem 0.75rem;
}

.product-card-title {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
    padding: 0.5rem 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--store-text);
}

.catalog-main .product-card-title {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem 0;
}

.product-card-link:hover .product-card-title {
    color: var(--md-on-primary-container);
}

.product-card-price {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--store-primary);
    margin-top: auto;
    margin-bottom: 0.75rem;
}

.product-card-price .old {
    font-size: 0.85rem;
    color: var(--store-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 0.5rem;
}

.product-card-stock {
    font-size: 0.75rem;
    color: var(--store-muted);
    margin-bottom: 0.5rem;
}

.product-card-stock.in-stock { color: var(--store-success); font-weight: 500; }

.product-card-stock.on-order {
    color: var(--store-muted);
    font-weight: 500;
}

.product-detail-stock {
    font-weight: 500;
}

.product-detail-stock.in-stock {
    color: var(--store-success);
}

.product-detail-stock.on-order {
    color: var(--md-on-surface-variant);
}

.product-card-btn {
    width: 100%;
    background: var(--store-primary);
    color: var(--store-on-primary);
    border: none;
    padding: 0.625rem 1rem;
    border-radius: var(--store-radius-pill);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    transition: background var(--store-motion), box-shadow var(--store-motion), transform var(--store-motion);
    position: relative;
    z-index: 3;
    cursor: pointer;
    box-shadow: var(--store-elevation-1);
}

.product-card-btn:hover:not(:disabled) {
    background: var(--store-primary-dark);
    color: var(--store-on-primary);
    box-shadow: var(--store-elevation-2);
}

.product-card-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.product-detail-card {
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    padding: clamp(1.25rem, 2.5vw, 2rem);
    box-shadow: var(--store-elevation-1);
}

.product-char-box {
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-surface-muted);
    padding: 0.75rem;
    margin-top: 0.25rem;
}

.product-char-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px dashed color-mix(in srgb, var(--store-border) 75%, transparent);
}

.product-char-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-char-name {
    color: var(--store-muted);
    font-size: 0.875rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-char-value {
    color: var(--store-text);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-detail-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.product-detail-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--store-surface-muted);
    border-radius: var(--store-radius-sm);
    overflow: hidden;
    line-height: 0;
}

.product-detail-image.has-placeholder {
    background: linear-gradient(145deg, var(--store-placeholder-from) 0%, var(--store-placeholder-to) 100%);
}

.product-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

.product-detail-image img.is-placeholder,
.product-detail-image.has-placeholder img {
    object-fit: contain;
    padding: 0;
}

.product-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--store-radius-xs);
    overflow: hidden;
    background: var(--store-surface-muted);
    cursor: pointer;
    transition: border-color var(--store-motion), box-shadow var(--store-motion);
    line-height: 0;
}

.product-thumb.active {
    border-color: var(--store-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--store-primary) 25%, transparent);
}

.product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

.product-thumb img.is-placeholder {
    object-fit: contain;
    padding: 0;
}

/* Catalog layout */
.catalog-layout {
    display: grid;
    grid-template-columns: minmax(240px, 260px) minmax(0, 1fr);
    gap: var(--store-block-gap);
    align-items: start;
}

.catalog-sidebar {
    background: var(--store-surface);
    border-radius: var(--store-radius);
    border: 1px solid var(--store-border);
    padding: 0.75rem;
    position: sticky;
    top: calc(var(--store-header-height) + var(--store-gutter));
    max-height: calc(100vh - var(--store-header-height) - var(--store-gutter) * 2);
    overflow-y: auto;
    box-shadow: var(--store-elevation-1);
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--store-muted) 35%, transparent) transparent;
}

.catalog-sidebar-block + .catalog-sidebar-block {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--store-border);
}

.catalog-sidebar-title {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--store-muted);
    font-weight: 600;
    padding: 0 0.375rem;
    margin: 0 0 0.5rem;
}

.catalog-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.category-tree {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    margin-top: 0.125rem;
}

.category-tree-item {
    display: block;
}

.category-tree-branch {
    margin: 0.0625rem 0 0.0625rem 0.6875rem;
    padding-left: 0.5rem;
    border-left: 1px solid color-mix(in srgb, var(--store-border) 85%, var(--store-primary));
}

.category-tree-branch[hidden] {
    display: none;
}

.category-tree-row {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    min-height: 1.875rem;
}

.category-tree-spacer {
    flex: 0 0 1.125rem;
    width: 1.125rem;
}

.category-tree-toggle {
    flex: 0 0 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--store-muted);
    padding: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.12s, background 0.12s;
}

.category-tree-toggle i {
    font-size: 0.625rem;
    line-height: 1;
    transition: transform 0.15s ease;
}

.category-tree-toggle:hover {
    color: var(--store-primary);
    background: var(--store-surface-muted);
}

.category-tree-item.is-open > .category-tree-row .category-tree-toggle i {
    transform: rotate(90deg);
}

.category-tree-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    min-height: 1.875rem;
    padding: 0.25rem 0.5rem;
    color: var(--store-text);
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.25;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.category-tree-link--root {
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.category-tree-link--root .category-tree-name {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
}

.category-tree-link--root .category-tree-name i {
    font-size: 0.875rem;
    color: var(--store-muted);
}

.category-tree-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-tree-link:hover {
    background: var(--store-surface-muted);
    color: var(--store-primary);
}

.category-tree-link:hover .category-tree-name i {
    color: var(--store-primary);
}

.category-tree-link.active {
    background: var(--store-primary-container);
    color: var(--md-on-primary-container);
    border-left-color: var(--store-primary);
    font-weight: 500;
}

.category-tree-link.active .category-tree-name i {
    color: var(--md-on-primary-container);
}

.category-tree-link .count {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--store-muted);
    background: var(--store-surface-muted);
    padding: 0.0625rem 0.375rem;
    border-radius: 999px;
    min-width: 1.25rem;
    text-align: center;
    line-height: 1.4;
}

.category-tree-link:hover .count {
    color: var(--store-primary);
    background: color-mix(in srgb, var(--store-primary) 10%, var(--store-surface-muted));
}

.category-tree-link.active .count {
    background: color-mix(in srgb, var(--store-primary) 20%, transparent);
    color: var(--md-on-primary-container);
}

.catalog-sidebar-filters {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.catalog-stock-filter {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0;
}

.catalog-stock-filter-btn {
    width: 100%;
    border: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    background: transparent;
    color: var(--store-text);
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: left;
    padding: 0.3125rem 0.5rem;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.catalog-stock-filter-btn:hover {
    background: var(--store-surface-muted);
    color: var(--store-primary);
}

.catalog-stock-filter-btn.active {
    background: var(--store-primary-container);
    color: var(--md-on-primary-container);
    border-left-color: var(--store-primary);
    font-weight: 500;
}

.catalog-price-filter {
    margin-top: 0.25rem;
}

.catalog-price-dual-slider {
    position: relative;
    height: 42px;
    padding: 0 0.15rem;
}

.catalog-price-dual-slider__track,
.catalog-price-dual-slider__range {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 999px;
    pointer-events: none;
}

.catalog-price-dual-slider__track {
    background: color-mix(in srgb, var(--store-border) 55%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--store-border) 85%, transparent);
}

.catalog-price-dual-slider__range {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--store-primary) 92%, white 8%) 0%,
        var(--store-primary) 55%,
        color-mix(in srgb, var(--store-primary-dark) 65%, var(--store-primary) 35%) 100%
    );
    left: 0;
    width: 100%;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--store-primary) 25%, transparent);
}

.catalog-price-dual-slider__thumb {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 42px;
    background: transparent;
    pointer-events: none; /* только thumb-ы должны ловить drag */
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    z-index: 3;
}

.catalog-price-dual-slider__thumb::-webkit-slider-runnable-track {
    background: transparent !important;
}

.catalog-price-dual-slider__thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--store-on-primary);
    border: 2px solid var(--store-primary);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.25), var(--store-elevation-1);
    cursor: pointer;
    pointer-events: auto;
    transition: box-shadow var(--store-motion), transform var(--store-motion);
}

.catalog-price-dual-slider__thumb::-webkit-slider-thumb:hover {
    transform: scale(1.05);
}

.catalog-price-dual-slider__thumb::-moz-range-track {
    background: transparent !important;
}

.catalog-price-dual-slider__thumb::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--store-on-primary);
    border: 2px solid var(--store-primary);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.25), var(--store-elevation-1);
    cursor: pointer;
    pointer-events: auto;
}

.catalog-price-dual-slider__thumb::-moz-range-progress {
    background: transparent !important;
}

.catalog-price-dual-slider__thumb:focus {
    outline: none;
}

.catalog-price-dual-slider__thumb:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--store-primary) 25%, transparent), 0 6px 16px rgba(25, 118, 210, 0.25), var(--store-elevation-1);
}

.catalog-price-dual-slider__thumb:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--store-primary) 25%, transparent), 0 6px 16px rgba(25, 118, 210, 0.25), var(--store-elevation-1);
}

.catalog-price-dual-slider__thumb--to::-webkit-slider-thumb {
    background: var(--store-on-primary);
}

.catalog-price-slider-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.5rem 0;
}

.catalog-price-slider-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.catalog-price-slider-label {
    color: var(--store-muted);
    font-weight: 500;
    font-size: 0.875rem;
    width: 44px;
}

.catalog-price-slider {
    width: 100%;
    accent-color: var(--store-primary);
}

.catalog-price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.catalog-price-input-field .form-label {
    color: var(--store-muted);
    font-weight: 500;
}

.catalog-price-input {
    height: 38px;
    border-radius: 6px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.catalog-brand-multiselect {
    margin-top: 0.25rem;
}

.catalog-brand-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 220px;
    overflow: auto;
    padding-right: 0.25rem;
}

.catalog-brand-option {
    white-space: nowrap;
}

.catalog-brand-option .form-check-label {
    cursor: pointer;
    color: var(--store-text);
    font-size: 0.875rem;
    font-weight: 500;
}

.catalog-brand-option .form-check-input {
    cursor: pointer;
}

.catalog-char-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.catalog-char-group {
    border-top: 1px solid color-mix(in srgb, var(--store-border) 70%, transparent);
    padding-top: 0.75rem;
}

.catalog-char-group:first-child {
    border-top: none;
    padding-top: 0;
}

.catalog-char-group__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--store-text-muted);
    margin-bottom: 0.5rem;
}

.catalog-char-option {
    margin-bottom: 0.35rem;
}

.catalog-char-option .form-check-label {
    font-size: 0.875rem;
    line-height: 1.35;
    cursor: pointer;
}

.catalog-char-option .form-check-input {
    cursor: pointer;
    margin-top: 0.2rem;
}

#subcategory-tiles.category-cards-grid {
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}

.catalog-reset-filters {
    margin-top: 0.75rem;
}

.catalog-reset-filters__btn {
    width: 100%;
    border: 1px solid var(--store-border);
    background: var(--store-surface-muted);
    color: var(--store-text);
    border-radius: var(--store-radius-pill);
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background var(--store-motion), border-color var(--store-motion), color var(--store-motion);
}

.catalog-reset-filters__btn:hover {
    background: var(--store-surface);
    border-color: color-mix(in srgb, var(--store-primary) 35%, var(--store-border));
}

.catalog-main-header {
    margin-bottom: 1rem;
}

.catalog-main-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0;
    line-height: 1.2;
}

.catalog-controls {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.catalog-controls-search {
    flex: 1 1 320px;
    min-width: 0;
}

.catalog-controls-search .store-search {
    width: 100%;
    max-width: none;
}

.catalog-sort-field {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 1 260px;
    min-width: 220px;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-pill);
    background: var(--store-input-bg);
    padding: 0 2.25rem 0 0.9rem;
    box-shadow: inset 0 1px 2px rgba(29, 27, 32, 0.03);
    transition: border-color var(--store-motion), box-shadow var(--store-motion), background-color var(--store-motion);
}

.catalog-sort-field:hover {
    border-color: color-mix(in srgb, var(--store-primary) 28%, var(--store-border));
}

.catalog-sort-field:focus-within {
    border-color: var(--store-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--store-primary) 20%, transparent);
    background-color: var(--store-input-bg);
}

.catalog-sort-field__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.25rem;
    margin-right: 0.55rem;
    color: var(--store-primary);
    font-size: 0.95rem;
    pointer-events: none;
}

.catalog-sort-field__select {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 42px;
    border: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--store-text);
    padding: 0;
    cursor: pointer;
}

.catalog-sort-field__select:focus {
    outline: none;
    box-shadow: none;
}

.catalog-sort-field__chevron {
    position: absolute;
    top: 50%;
    right: 0.95rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    color: var(--store-muted);
    font-size: 0.72rem;
    pointer-events: none;
}

.catalog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.85rem;
    color: var(--store-muted);
    margin-bottom: 0.75rem;
}

.catalog-breadcrumb a {
    color: var(--store-primary);
    text-decoration: none;
}

.catalog-breadcrumb a:hover {
    text-decoration: underline;
}

.catalog-breadcrumb [aria-current="page"] {
    color: var(--store-text);
    font-weight: 500;
}

.catalog-breadcrumb-sep {
    color: var(--store-muted);
    user-select: none;
}

.catalog-page-size {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.catalog-page-size-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--store-muted);
    white-space: nowrap;
}

.catalog-page-size-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--store-surface-muted);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-pill);
    box-shadow: inset 0 1px 2px rgba(29, 27, 32, 0.04);
}

.catalog-page-size-btn {
    min-width: 42px;
    height: 34px;
    padding: 0 0.7rem;
    border: none;
    border-radius: var(--store-radius-pill);
    background: transparent;
    color: var(--store-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: color var(--store-motion), background var(--store-motion), box-shadow var(--store-motion);
}

.catalog-page-size-btn:hover:not(.active) {
    color: var(--md-on-primary-container);
    background: var(--store-surface);
}

.catalog-page-size-btn.active {
    background: var(--store-surface);
    color: var(--store-primary);
    box-shadow: var(--store-elevation-1);
    font-weight: 500;
}

.catalog-page-size-btn:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.35);
    outline-offset: 2px;
}

.catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-top: var(--store-block-gap);
    padding: 1rem 1.25rem;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    background: var(--store-surface);
    box-shadow: var(--store-elevation-1);
}

.catalog-pagination-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.catalog-pagination-summary {
    color: var(--store-muted);
    font-size: 0.9rem;
}

.catalog-pagination-summary strong {
    color: var(--store-text);
    font-weight: 700;
}

.catalog-pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.catalog-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-pill);
    background: var(--store-surface);
    color: var(--store-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--store-motion), background var(--store-motion), color var(--store-motion), box-shadow var(--store-motion);
}

.catalog-page-btn.catalog-page-nav {
    color: var(--store-primary);
}

.catalog-page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--store-primary);
    color: var(--store-primary);
    background: var(--store-surface-accent);
}

.catalog-page-btn.active {
    background: var(--store-primary);
    border-color: var(--store-primary);
    color: var(--store-on-primary);
    box-shadow: var(--store-elevation-1);
}

.catalog-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.catalog-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: var(--store-muted);
}

.catalog-empty {
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem) 1.5rem;
    background: var(--store-surface);
    border-radius: var(--store-radius);
    border: 1px solid var(--store-border);
    box-shadow: var(--store-elevation-1);
}

.catalog-empty i {
    font-size: 3rem;
    color: var(--md-outline);
    margin-bottom: 1rem;
}

/* Category cards (top level on catalog when no filter) */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--store-text);
    transition: transform var(--store-motion), box-shadow var(--store-motion), border-color var(--store-motion);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--store-elevation-1);
}

.category-card:hover {
    border-color: color-mix(in srgb, var(--store-primary) 30%, var(--store-border));
    box-shadow: var(--store-elevation-2);
    transform: translateY(-2px);
    color: var(--md-on-primary-container);
}

.category-card-icon {
    width: 48px;
    height: 48px;
    background: var(--store-primary-container);
    border-radius: var(--store-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-on-primary-container);
    font-size: 1.25rem;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.category-card span {
    font-size: 0.8rem;
    color: var(--store-muted);
}

/* Footer */
.store-footer {
    background: var(--store-dark);
    color: #B0BEC5;
    padding: calc(var(--store-section-gap) + 0.5rem) 0 var(--store-block-gap);
    margin-top: auto;
}

.store-footer__title {
    color: #ECEFF1;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.store-footer a {
    color: #B0BEC5;
    text-decoration: none;
    transition: color var(--store-motion);
}

.store-footer a:hover {
    color: #ECEFF1;
}

.store-footer .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.store-footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff !important;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    line-height: 1.3;
}

.store-footer-phone i {
    font-size: 1rem;
    opacity: 0.9;
}

.store-footer-phone:hover {
    color: #fff !important;
    opacity: 0.85;
}

/* Forms */
.store-form-label,
.store-page-card .form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--store-muted);
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.store-page-card .form-control,
.store-page-card .form-select {
    border-radius: var(--store-radius-xs);
    border-color: var(--store-border);
    background: var(--store-input-bg);
    color: var(--store-text);
    padding: 0.625rem 0.875rem;
    transition: border-color var(--store-motion), box-shadow var(--store-motion);
}

.store-page-card .form-control:focus,
.store-page-card .form-select:focus {
    border-color: var(--store-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--store-primary) 18%, transparent);
    background: var(--store-input-bg);
    color: var(--store-text);
}

.store-alert {
    border-radius: var(--store-radius-sm);
    border: none;
    padding: 1rem 1.125rem;
    font-size: 0.9375rem;
    box-shadow: var(--store-elevation-1);
}

.store-alert.alert-warning {
    background: var(--md-warning-container);
    color: #5D4037;
}

.store-toast-root {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(100vw - 2rem, 22rem);
    pointer-events: none;
}

.store-toast {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border-radius: var(--store-radius);
    border: 1px solid var(--store-border);
    background: var(--store-surface);
    box-shadow: var(--store-elevation-3);
    opacity: 0;
    transform: translateY(0.75rem) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: auto;
}

.store-toast--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.store-toast--success {
    border-color: color-mix(in srgb, var(--store-primary) 28%, var(--store-border));
}

.store-toast--error {
    border-color: color-mix(in srgb, #c62828 35%, var(--store-border));
}

.store-toast__icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.store-toast--success .store-toast__icon {
    background: color-mix(in srgb, var(--store-primary) 14%, transparent);
    color: var(--store-primary);
}

.store-toast--error .store-toast__icon {
    background: color-mix(in srgb, #c62828 12%, transparent);
    color: #c62828;
}

.store-toast__body {
    min-width: 0;
}

.store-toast__title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--store-text);
}

.store-toast__message {
    margin: 0.2rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--store-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.store-toast__action {
    display: inline-flex;
    margin-top: 0.55rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--store-primary);
    text-decoration: none;
}

.store-toast__action:hover {
    text-decoration: underline;
}

.store-toast__close {
    border: none;
    background: transparent;
    color: var(--store-muted);
    padding: 0.15rem;
    line-height: 1;
    border-radius: 0.35rem;
}

.store-toast__close:hover {
    color: var(--store-text);
    background: var(--store-surface-muted);
}

.cart-add-btn__label,
.cart-add-btn__loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 576px) {
    .store-toast-root {
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}

@media (max-width: 992px) {
    :root {
        --store-header-height: 3.5rem;
    }

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

    .catalog-sidebar {
        position: static;
        max-height: none;
        padding: 0.625rem;
    }

    .catalog-sidebar-block + .catalog-sidebar-block {
        margin-top: 0.625rem;
        padding-top: 0.625rem;
    }

    .cart-checkout__row {
        grid-template-columns: 1fr;
    }

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

    .catalog-main .store-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.875rem;
    }

    .catalog-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-pagination-left,
    .catalog-pagination-controls {
        justify-content: center;
    }

    .store-header__search {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 576px) {
    :root {
        --store-section-gap: 1.5rem;
        --store-block-gap: 1rem;
    }

    .store-hero {
        padding: 1rem 1rem;
    }

    .store-hero h1,
    .store-hero .store-hero__title {
        font-size: 1.25rem;
    }

    .store-hero p {
        font-size: 0.875rem;
    }

    .store-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-sort-field {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .catalog-pagination-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .catalog-page-size-group {
        width: 100%;
        justify-content: space-between;
    }

    .catalog-page-size-btn {
        flex: 1;
    }

    .product-char-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.45rem 0;
    }

    .product-char-name {
        white-space: normal;
    }

    .product-char-value {
        text-align: left;
        white-space: normal;
    }

    .catalog-main .store-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

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

/* Theme toggle */
.store-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-pill);
    background: var(--store-surface-muted);
    color: var(--store-text);
    cursor: pointer;
    transition: background var(--store-motion), border-color var(--store-motion), color var(--store-motion);
}

.store-theme-toggle:hover {
    background: var(--store-primary-container);
    border-color: color-mix(in srgb, var(--store-primary) 40%, var(--store-border));
    color: var(--md-on-primary-container);
}

.store-theme-toggle:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--store-primary) 40%, transparent);
    outline-offset: 2px;
}

.store-theme-toggle i {
    font-size: 1.05rem;
    line-height: 1;
}

[data-theme="dark"] {
    --md-primary: #90CAF9;
    --md-on-primary: #003258;
    --md-primary-container: #004A77;
    --md-on-primary-container: #D1E4FF;
    --md-surface: #121212;
    --md-surface-container-lowest: #0E0E0E;
    --md-surface-container-low: #1A1A1A;
    --md-surface-container: #242424;
    --md-surface-container-high: #2E2E2E;
    --md-on-surface: #E0E0E0;
    --md-on-surface-variant: #BDBDBD;
    --md-outline-variant: #424242;
    --md-error-container: #93000A;
    --md-success-container: #1B5E20;

    --store-primary: var(--md-primary);
    --store-primary-dark: #64B5F6;
    --store-primary-container: var(--md-primary-container);
    --store-on-primary: var(--md-on-primary);
    --store-text: var(--md-on-surface);
    --store-muted: var(--md-on-surface-variant);
    --store-border: var(--md-outline-variant);
    --store-bg: var(--md-surface);
    --store-surface: var(--md-surface-container-lowest);
    --store-surface-muted: var(--md-surface-container);
    --store-surface-subtle: var(--md-surface-container-low);
    --store-surface-accent: var(--md-primary-container);
    --store-surface-hover: var(--md-surface-container-high);
    --store-input-bg: var(--md-surface-container-low);
    --store-header-bg: rgba(26, 26, 26, 0.92);
    --store-placeholder-from: #2E2E2E;
    --store-placeholder-to: #242424;
    --store-dark: #0E0E0E;
    --store-elevation-1: 0 1px 3px rgba(0, 0, 0, 0.35);
    --store-elevation-2: 0 4px 12px rgba(0, 0, 0, 0.4);
    --store-elevation-3: 0 8px 28px rgba(0, 0, 0, 0.45);
    --store-shadow: var(--store-elevation-2);
    --store-shadow-soft: var(--store-elevation-1);
    --store-shadow-header: 0 1px 0 var(--md-outline-variant);
    color-scheme: dark;
}

[data-theme="dark"] body.store-body {
    background-color: var(--store-bg);
    background-image:
        radial-gradient(ellipse 100% 60% at 0% -10%, rgba(25, 118, 210, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(66, 165, 245, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #1A1A1A 0%, #121212 50%, #0E0E0E 100%);
    background-attachment: fixed;
}

[data-theme="dark"] .store-header {
    background: linear-gradient(
        180deg,
        rgba(36, 36, 36, 0.94) 0%,
        rgba(26, 26, 26, 0.9) 100%
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .store-search {
    color: var(--store-text);
    background-color: rgba(30, 30, 30, 0.9);
    border-color: var(--store-border);
}

[data-theme="dark"] .store-search::placeholder {
    color: #9E9E9E;
}

[data-theme="dark"] .store-search:focus {
    background-color: rgba(36, 36, 36, 0.98);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.25);
}

[data-theme="dark"] .store-header .nav-link:hover {
    background: rgba(25, 118, 210, 0.15);
}

[data-theme="dark"] .store-header-phone {
    background: rgba(25, 118, 210, 0.18);
    color: #90CAF9;
}

[data-theme="dark"] .store-header-phone:hover {
    background: var(--store-primary);
    color: #fff;
}

[data-theme="dark"] .store-theme-toggle {
    background: var(--store-surface-muted);
    border-color: var(--store-border);
}

[data-theme="dark"] .store-theme-toggle:hover {
    background: var(--store-primary-container);
    border-color: rgba(144, 202, 249, 0.4);
    color: var(--md-on-primary-container);
}

[data-theme="dark"] .product-card,
[data-theme="dark"] .cart-item,
[data-theme="dark"] .cart-summary,
[data-theme="dark"] .cart-empty,
[data-theme="dark"] .product-detail-card,
[data-theme="dark"] .store-page-card,
[data-theme="dark"] .catalog-sidebar,
[data-theme="dark"] .catalog-empty,
[data-theme="dark"] .category-card,
[data-theme="dark"] .catalog-pagination,
[data-theme="dark"] .search-autocomplete-dropdown {
    background: var(--store-surface-muted);
    border-color: var(--store-border);
    box-shadow: var(--store-elevation-1);
}

[data-theme="dark"] .product-card:hover,
[data-theme="dark"] .cart-item:hover,
[data-theme="dark"] .category-card:hover {
    border-color: color-mix(in srgb, var(--store-primary) 35%, var(--store-border));
    box-shadow: var(--store-elevation-3);
}

[data-theme="dark"] .category-tree-link.active,
[data-theme="dark"] .catalog-stock-filter-btn.active {
    background: var(--store-primary-container);
    color: var(--md-on-primary-container);
}

[data-theme="dark"] .category-card-icon {
    background: var(--store-primary-container);
    color: var(--md-on-primary-container);
}

[data-theme="dark"] .store-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

[data-theme="dark"] .catalog-page-btn.active {
    background: var(--store-primary);
    color: var(--md-on-primary);
    border-color: var(--store-primary);
}

[data-theme="dark"] .store-btn-primary,
[data-theme="dark"] .product-card-btn {
    background: var(--store-primary);
    color: var(--md-on-primary);
}

[data-theme="dark"] .store-btn-primary:hover,
[data-theme="dark"] .product-card-btn:hover:not(:disabled) {
    background: var(--store-primary-dark);
    color: var(--md-on-primary);
}

[data-theme="dark"] .cart-qty {
    background: var(--store-input-bg);
    border-color: var(--store-border);
}

[data-theme="dark"] .cart-item__remove:hover {
    background: color-mix(in srgb, var(--md-error) 18%, var(--store-surface-muted));
}

[data-theme="dark"] .product-card-stock.in-stock {
    color: #81C784;
}

[data-theme="dark"] .store-alert.alert-warning {
    background: #5D4037;
    color: #FFE082;
}

[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(1.8);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: var(--store-input-bg);
    border-color: var(--store-border);
    color: var(--store-text);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .catalog-sort-field:focus-within {
    background: var(--store-input-bg);
    border-color: var(--store-primary);
    color: var(--store-text);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--store-primary) 22%, transparent);
}

[data-theme="dark"] .catalog-sort-field {
    background: var(--store-input-bg);
    border-color: var(--store-border);
}

[data-theme="dark"] .catalog-sort-field__select {
    color: var(--store-text);
}

[data-theme="dark"] .catalog-sort-field__select option {
    background: var(--store-surface);
    color: var(--store-text);
}

[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--store-text);
    --bs-table-border-color: var(--store-border);
    --bs-table-striped-bg: rgba(25, 118, 210, 0.06);
    --bs-table-hover-bg: rgba(25, 118, 210, 0.12);
}

[data-theme="dark"] .store-footer {
    background: linear-gradient(180deg, #1A1A1A 0%, #0E0E0E 100%);
    border-top: 1px solid var(--store-border);
}

[data-theme="dark"] .store-carousel-btn {
    background: var(--store-surface-muted);
    border-color: var(--store-border);
    color: var(--store-primary);
}

[data-theme="dark"] .store-carousel-btn:hover:not(:disabled) {
    background: var(--store-surface-hover);
    border-color: var(--store-primary);
    color: var(--store-primary-dark);
}

[data-theme="dark"] .store-section-header h2 {
    color: var(--store-text);
}

[data-theme="dark"] .store-section-header p {
    color: var(--store-muted);
}

[data-theme="dark"] .store-section-link {
    color: var(--store-primary);
}

[data-theme="dark"] .store-section-link:hover {
    color: var(--store-primary-dark);
}

[data-theme="dark"] .product-card-title {
    color: var(--store-text);
}

[data-theme="dark"] .product-card-link:hover .product-card-title {
    color: var(--store-primary);
}

[data-theme="dark"] .product-card-price {
    color: var(--store-primary);
}

[data-theme="dark"] .product-card-stock {
    color: var(--store-muted);
}

[data-theme="dark"] .product-card-stock.on-order {
    color: var(--store-muted);
}

[data-theme="dark"] .product-card-badge {
    color: #212121;
}

[data-theme="dark"] .product-card-badge.new {
    background: #2E7D32;
    color: #E8F5E9;
}

[data-theme="dark"] .product-card-badge.sale {
    background: #B71C1C;
    color: #FFEBEE;
}

[data-theme="dark"] .store-section .catalog-empty,
[data-theme="dark"] .store-section .catalog-empty p {
    color: var(--store-text);
}

[data-theme="dark"] .store-section .catalog-empty .text-muted,
[data-theme="dark"] .store-section .catalog-empty i {
    color: var(--store-muted);
}
