body {
    background-color: #000;
    background-image: url('/images/hero-premium.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    padding-top: 78px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--gray-800);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

footer {
    background: rgba(24, 24, 24, 0.68);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px) saturate(110%);
    -webkit-backdrop-filter: blur(6px) saturate(110%);
    padding: 1rem 1.25rem;
    margin-top: auto;
    flex-shrink: 0;
}

.products-container {
    max-width: 1200px;
    margin: 1.75rem auto 0;
    padding: 0 2rem 2.5rem;
    width: 100%;
    flex: 1;
    position: relative;
    z-index: 1;
    --products-accent: #ff3b49;
    --products-accent-strong: #e3202e;
    --products-accent-soft: rgba(227, 32, 46, 0.12);
    --products-accent-border: rgba(255, 59, 73, 0.42);
}

.products-container::before {
    content: "";
    position: absolute;
    inset: -1.5rem -1rem auto;
    height: 320px;
    background: transparent;
    pointer-events: none;
    z-index: -1;
}

.products-search {
    position: sticky;
    top: 110px;
    z-index: 120;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    box-shadow: none;
}

.products-search .form-control {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--bg-light) 22%, transparent) 0%,
        color-mix(in srgb, var(--bg-darker) 14%, transparent) 100%
    );
    color: var(--text-white);
    border: 1px solid color-mix(in srgb, var(--gray-200) 42%, transparent);
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    text-shadow: 0 1px 2px color-mix(in srgb, var(--bg-darker) 70%, transparent);
    min-height: 48px;
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--text-white) 10%, transparent),
        0 10px 22px color-mix(in srgb, var(--bg-darker) 18%, transparent);
}

.products-search-field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.products-search-icon-button {
    display: none;
}

.products-search-clear-button {
    display: none;
}

.products-search .form-control::placeholder {
    color: color-mix(in srgb, var(--text-white) 86%, var(--gray-300));
    text-shadow: 0 1px 2px color-mix(in srgb, var(--bg-darker) 70%, transparent);
    opacity: 1;
}

.products-search .form-control:focus {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--bg-light) 20%, transparent) 0%,
        color-mix(in srgb, var(--bg-darker) 12%, transparent) 100%
    );
    color: var(--text-white);
    border-color: var(--products-accent);
    box-shadow:
        0 0 0 0.2rem color-mix(in srgb, var(--products-accent) 28%, transparent),
        0 10px 22px color-mix(in srgb, var(--bg-darker) 18%, transparent);
}

.products-search .products-search-action {
    width: 156px;
    min-width: 156px;
    height: 48px;
    padding-inline: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

button.products-mobile-filter-toggle {
    display: none;
    width: 100%;
    min-height: 46px;
    margin-bottom: 1rem;
    padding-inline: 1rem;
    align-items: center;
    justify-content: center;
}

.products-search .products-search-action.btn-view {
    text-decoration: none;
    transition:
        background-color 2400ms ease,
        border-color 2400ms ease,
        box-shadow 2400ms ease,
        color 2400ms ease,
        text-shadow 2400ms ease,
        transform 320ms ease;
    will-change: background-color, border-color, box-shadow, color, text-shadow;
}

.products-search .products-search-action.btn-view::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #ff4a57 0%, #d91d2f 100%);
    opacity: 0;
    transition: opacity 2400ms ease;
    pointer-events: none;
    z-index: 0;
}

.products-search .products-search-action-label {
    position: relative;
    z-index: 1;
}

body.has-scrolled .products-search .products-search-action.btn-view {
    border-color: rgba(255, 79, 95, 0.92);
    box-shadow:
        0 14px 28px rgba(227, 32, 46, 0.34),
        0 0 24px rgba(255, 59, 73, 0.84),
        0 0 0 1px rgba(255, 79, 95, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    text-shadow: 0 0 14px rgba(255, 59, 73, 0.56);
}

body.has-scrolled .products-search .products-search-action.btn-view::before {
    opacity: 1;
}

body.has-scrolled .products-search .products-search-action.btn-view > * {
    position: relative;
    z-index: 1;
}

body.has-scrolled .products-search .products-search-action.btn-view:hover {
    border-color: rgba(255, 92, 107, 0.98);
    box-shadow:
        0 18px 34px rgba(227, 32, 46, 0.4),
        0 0 30px rgba(255, 59, 73, 0.96),
        0 0 0 1px rgba(255, 92, 107, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.products-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: stretch;
}

.products-content {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--bg-light) 8%, transparent);
    backdrop-filter: blur(4px) saturate(104%);
    -webkit-backdrop-filter: blur(4px) saturate(104%);
    padding: 1rem;
    border-radius: 18px;
    height: fit-content;
    box-shadow:
        0 6px 14px color-mix(in srgb, var(--bg-darker) 10%, transparent),
        inset 0 1px 0 color-mix(in srgb, var(--gray-100) 4%, transparent);
    z-index: 50;
    justify-self: stretch;
}

.products-filters-panel__header {
    display: none;
}

.products-filters-panel__title {
    margin: 0;
    color: var(--text-white);
    font-size: 1.05rem;
    font-weight: 800;
}

.products-filters-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.88;
}

.products-filters-backdrop {
    display: none;
}

.products-filters-panel__actions {
    display: none;
}

.products-filters-reset {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.products-filters-reset:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.products-filters-apply {
    width: 100%;
    min-height: 44px;
}

.sidebar h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.sidebar-section-title {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--gray-100) 10%, transparent);
}

.sidebar-group {
    border: 1px solid color-mix(in srgb, var(--gray-100) 10%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg-darker) 16%, transparent);
    overflow: hidden;
    width: 100%;
}

.sidebar-group + .sidebar-group {
    margin-top: 0.9rem;
}

.sidebar-group summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0.9rem 0.9rem 1rem;
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: 0.01em;
    width: 100%;
}

.sidebar-group summary > span {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0.25rem;
}

.sidebar-group summary::-webkit-details-marker {
    display: none;
}

.sidebar-group summary::after {
    content: "+";
    color: var(--primary-light);
    font-size: 1.1rem;
    line-height: 1;
}

.sidebar-group[open] summary::after {
    content: "−";
}

.sidebar-summary-meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--gray-200) 84%, transparent);
    margin-left: auto;
}

.sidebar-filter-indicator {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1.5px solid color-mix(in srgb, var(--gray-200) 48%, transparent);
    background: color-mix(in srgb, var(--bg-darker) 28%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gray-100) 8%, transparent);
    padding: 0;
    appearance: none;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}

.sidebar-filter-indicator:disabled {
    cursor: default;
    opacity: 0.55;
}

.sidebar-filter-check {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: transparent;
    transform: scale(0.65);
    opacity: 0;
    transition: transform var(--transition-base), opacity var(--transition-base), background var(--transition-base);
}

.sidebar-filter-indicator.is-active {
    border-color: var(--products-accent);
    background: linear-gradient(135deg, rgba(227, 32, 46, 0.96) 0%, rgba(255, 59, 73, 0.72) 100%);
    box-shadow:
        0 8px 16px rgba(227, 32, 46, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sidebar-filter-indicator:not(.is-active):not(:disabled):hover {
    border-color: rgba(255, 59, 73, 0.38);
    background: color-mix(in srgb, var(--bg-darker) 38%, transparent);
}

.sidebar-filter-indicator.is-active .sidebar-filter-check {
    opacity: 1;
    transform: scale(1);
    background: var(--primary-light);
}

.sidebar-group-body {
    padding: 0 0.9rem 0.9rem;
}

.price-filter-form {
    display: grid;
    gap: 0.75rem;
}

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

.price-filter-field .form-label {
    color: color-mix(in srgb, var(--gray-100) 88%, white);
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.price-filter-field .form-control {
    min-height: 40px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg-light) 14%, transparent);
    color: var(--text-white);
    border: 1px solid color-mix(in srgb, var(--gray-200) 30%, transparent);
}

.price-filter-field .form-control::placeholder {
    color: color-mix(in srgb, var(--text-white) 72%, var(--gray-300));
}

.price-filter-form .btn-primary {
    min-height: 40px;
    border-radius: 999px;
    background: rgba(227, 32, 46, 0.09);
    border: 1px solid var(--products-accent-border);
    color: var(--text-white);
    font-weight: 800;
    box-shadow:
        0 8px 18px rgba(227, 32, 46, 0.12);
}

.price-filter-form .btn-primary:hover {
    background: rgba(227, 32, 46, 0.14);
    border-color: rgba(255, 59, 73, 0.62);
    color: var(--text-white);
    transform: translateY(-1px);
}

.price-filter-form .btn-primary:focus-visible,
.products-search .btn-primary:focus-visible,
.products-search .btn-outline-secondary:focus-visible,
.btn-view:focus-visible,
.sidebar-filter-indicator:focus-visible {
    outline: 2px solid rgba(255, 59, 73, 0.72);
    outline-offset: 2px;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: color-mix(in srgb, var(--gray-200) 92%, transparent);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--gray-100) 6%, transparent);
    transition: all var(--transition-base);
}

.category-list a:hover {
    background: color-mix(in srgb, var(--bg-light) 8%, transparent);
    color: var(--text-white);
}

.category-list a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-white);
    font-weight: bold;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 22%, transparent);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg-light) 6%, transparent) 0%, color-mix(in srgb, var(--bg-darker) 8%, transparent) 100%);
    border: 1px solid color-mix(in srgb, var(--bg-light) 12%, transparent);
    backdrop-filter: blur(12px) saturate(118%);
    -webkit-backdrop-filter: blur(12px) saturate(118%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 16px 36px color-mix(in srgb, var(--bg-darker) 28%, transparent),
        inset 0 1px 0 color-mix(in srgb, var(--gray-100) 8%, transparent);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--primary-light) 40%, transparent);
    box-shadow:
        0 24px 52px color-mix(in srgb, var(--bg-darker) 36%, transparent),
        0 0 0 1px color-mix(in srgb, var(--primary) 10%, transparent);
}

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

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

.product-image {
    position: relative;
    width: 100%;
    height: 180px;
    background:
        radial-gradient(
            circle at center,
            color-mix(in srgb, var(--gray-100) 6%, transparent) 0%,
            color-mix(in srgb, var(--bg-light) 6%, transparent) 42%,
            color-mix(in srgb, var(--bg-darker) 16%, transparent) 100%
        );
    border-bottom: 1px solid color-mix(in srgb, var(--bg-light) 14%, transparent);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--gray-100) 18%, transparent),
        inset 0 -12px 30px color-mix(in srgb, var(--bg-darker) 28%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
    font-size: 3rem;
    color: var(--gray-300);
}

.product-card[data-available-immediately="true"] .product-image::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 92px;
    height: 92px;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    background: linear-gradient(135deg, #f0525f 0%, #d61f3c 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -2px -2px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
    pointer-events: none;
}

.product-availability-corner {
    position: absolute;
    right: -2px;
    bottom: 2px;
    z-index: 3;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.product-availability-corner-text {
    position: absolute;
    right: 4px;
    bottom: 13px;
    display: block;
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    transform-origin: center center;
    white-space: pre-line;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
    transform: translateX(8px) rotate(-45deg);
    width: max-content;
}

.product-image img {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    object-fit: contain;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow:
        0 8px 20px color-mix(in srgb, var(--bg-darker) 30%, transparent),
        0 0 0 1px color-mix(in srgb, var(--gray-100) 15%, transparent);
}

.product-image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(227, 32, 46, 0.14), rgba(10, 10, 12, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-name {
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}

.product-price {
    color: var(--primary-light);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.product-price-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
}

.product-price-old {
    opacity: 0.8;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 42px 42px minmax(0, 1fr);
    gap: 0.55rem;
    margin-top: auto;
}

.product-card-action,
.product-card-details {
    min-height: 42px;
    border-radius: 8px;
}

.product-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    transition: all var(--transition-base);
}

.product-card-action svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-card-action--favorite svg {
    fill: transparent;
}

.product-card-action:hover {
    color: #ffffff;
    border-color: rgba(255, 59, 73, 0.58);
    background: rgba(227, 32, 46, 0.16);
    transform: translateY(-1px);
}

.product-card-action--favorite.is-favorite {
    color: #ff3b49;
    border-color: rgba(255, 59, 73, 0.62);
    background: rgba(227, 32, 46, 0.18);
}

.product-card-action--favorite.is-favorite svg {
    fill: currentColor;
}

.product-card-action--cart:hover {
    background: rgba(227, 32, 46, 0.2);
}

.product-card-action:disabled {
    cursor: wait;
    opacity: 0.72;
}

.product-card-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.75rem;
}

.product-availability {
    font-size: 12px;
    margin: 5px 0;
}

.availability-in {
    color: var(--success-light);
}

.availability-out {
    color: var(--danger-light);
}

.btn-view {
    background: rgba(227, 32, 46, 0.09);
    color: var(--text-white);
    border: 1px solid var(--products-accent-border);
    padding: 0.65rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    width: 100%;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: all var(--transition-base);
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow:
        0 8px 18px rgba(227, 32, 46, 0.12);
}

.btn-view:hover {
    background: rgba(227, 32, 46, 0.14);
    color: var(--text-white);
    border-color: rgba(255, 59, 73, 0.62);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow:
        0 10px 20px rgba(227, 32, 46, 0.16);
}

.btn-view.product-card-details {
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}

.products-notifications {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(100vw - 2rem, 420px);
    pointer-events: none;
}

.products-toast {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--gray-200) 28%, transparent);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--bg-darker) 82%, transparent), color-mix(in srgb, var(--bg-light) 72%, transparent));
    color: var(--text-white);
    box-shadow: var(--shadow-2xl);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    transform: translateY(-6px);
    opacity: 0;
    animation: productsToastIn 180ms ease-out forwards;
}

.products-toast.is-hiding {
    animation: productsToastOut 180ms ease-in forwards;
}

.products-toast-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--primary) 82%, transparent);
    color: var(--text-white);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 30%, transparent);
}

.products-toast-danger .products-toast-icon {
    background: color-mix(in srgb, #dc3545 82%, transparent);
    box-shadow: 0 10px 20px color-mix(in srgb, #dc3545 26%, transparent);
}

.products-toast-text {
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.35;
}

@keyframes productsToastIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes productsToastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--gray-100);
    background: color-mix(in srgb, var(--bg-light) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--bg-light) 14%, transparent);
    backdrop-filter: blur(12px) saturate(118%);
    -webkit-backdrop-filter: blur(12px) saturate(118%);
    border-radius: 18px;
    box-shadow: var(--shadow-xl);
}

.subcategory-item {
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.manufacturer-list {
    max-height: 280px;
    overflow: auto;
    padding-right: 0.25rem;
}

.manufacturer-list::-webkit-scrollbar {
    width: 6px;
}

.manufacturer-list::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--gray-100) 35%, transparent);
    border-radius: 999px;
}

@media (max-width: 768px) {
    body {
        background-image:
            linear-gradient(180deg, rgba(5, 5, 6, 0.5) 0%, rgba(5, 5, 6, 0.3) 38%, rgba(5, 5, 6, 0.68) 100%),
            url('/images/hero-premium-mobile.png');
        background-size: auto, cover;
        background-position: center, center top;
        background-repeat: repeat, no-repeat;
        background-attachment: scroll, scroll;
        padding-top: 92px;
    }

    .products-container {
        margin-top: 1rem;
        padding: 0 0.75rem 1.75rem;
    }

    .products-search {
        display: flex;
        margin-bottom: 1rem;
        padding: 0.75rem;
        border-radius: 18px;
        background: rgba(15, 20, 25, 0.42);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px) saturate(120%);
        -webkit-backdrop-filter: blur(10px) saturate(120%);
    }

    .products-search-field {
        width: 100%;
    }

    .products-search .products-search-action {
        display: none;
    }

    .products-search-icon-button {
        position: absolute;
        right: 0.65rem;
        top: 50%;
        transform: translateY(-50%);
        width: 2.35rem;
        height: 2.35rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        background: rgba(227, 32, 46, 0.14);
        color: var(--text-white);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
    }

    .products-search-clear-button {
        position: absolute;
        right: 3.05rem;
        top: 50%;
        transform: translateY(-50%);
        width: 2.1rem;
        height: 2.1rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: var(--text-white);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    }

    .products-search-clear-button.is-visible {
        display: inline-flex;
    }

    .products-search-clear-button svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .products-search-icon-button svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .products-search .form-control {
        padding-right: 6rem;
    }

    button.products-mobile-filter-toggle {
        display: inline-flex;
    }

    .products-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .sidebar:not(.products-filters-panel) {
        position: static;
        top: auto;
        margin-bottom: 0;
        padding: 1rem;
        border-radius: 16px;
    }

    .products-filters-panel {
        position: fixed;
        top: 92px;
        left: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        width: min(88vw, 320px);
        max-width: 88vw;
        height: calc(100dvh - 92px);
        max-height: calc(100dvh - 92px);
        padding: 0;
        border: 0;
        border-radius: 0 18px 18px 0;
        background: rgba(15, 20, 25, 0.98);
        box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
        transform: translateX(-102%);
        transition: transform 240ms ease;
        z-index: 1080;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
    }

    body.products-filters-open .products-filters-panel {
        transform: translateX(0);
    }

    .products-filters-panel__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 0.9rem 0.75rem;
        border-bottom: 1px solid color-mix(in srgb, var(--gray-100) 10%, transparent);
        flex: 0 0 auto;
    }

    .products-filters-panel .sidebar-body {
        padding: 0.9rem;
        overflow: visible;
    }

    .products-filters-panel__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        flex: 0 0 auto;
        padding: 0.9rem;
        border-top: 1px solid color-mix(in srgb, var(--gray-100) 10%, transparent);
        background: rgba(11, 14, 18, 0.96);
    }

    .products-filters-panel__actions .btn-view {
        font-size: 0.92rem;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .products-filters-panel .price-filter-form .btn-primary {
        display: none;
    }

    .products-filters-backdrop {
        position: fixed;
        inset: 92px 0 0 0;
        background: rgba(0, 0, 0, 0.48);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 1075;
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 240ms ease;
    }

    body.products-filters-open .products-filters-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.products-filters-open {
        overflow: hidden;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
        gap: 0.85rem;
    }

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

    .product-image {
        height: 154px;
        padding: 0.5rem;
        font-size: 2.35rem;
    }

    .product-image-placeholder {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }

    .product-availability-corner {
        width: 68px;
        height: 68px;
    }

    .product-availability-corner-text {
        right: 2px;
        bottom: 10px;
        font-size: 0.56rem;
        transform: translateX(6px) rotate(-45deg);
    }

    .product-info {
        padding: 0.82rem 0.8rem 0.9rem;
    }

    .product-name {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 2.65em;
        font-size: 0.93rem;
        line-height: 1.28;
    }

    .product-price {
        font-size: 1.08rem;
        margin-bottom: 0.65rem;
    }

    .product-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .product-card-action,
    .product-card-details {
        min-height: 40px;
    }

    .btn-view.product-card-details {
        grid-column: 1 / -1;
        font-size: 0.82rem;
        padding: 0.5rem 0.6rem;
        border-radius: 10px;
    }

    .products-notifications {
        bottom: 0.75rem;
        width: min(100vw - 1rem, 420px);
    }

    .products-container::before {
        height: 220px;
    }

    .category-list a {
        padding: 0.45rem 0.5rem;
    }

    .subcategory-item {
        padding-left: 1.1rem;
        font-size: 0.86rem;
    }

    .manufacturer-list {
        max-height: 220px;
    }

    .price-filter-grid {
        gap: 0.5rem;
    }
}

@media (min-width: 992px) {
    .products-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 1rem;
    }

    .products-filters-panel {
        position: sticky;
        top: 0;
        display: block;
        width: 100%;
        max-width: none;
        height: fit-content;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        overflow: visible;
    }

    .products-filters-panel__header {
        display: none;
    }

    .products-filters-panel .sidebar-body {
        padding: 0;
        height: auto;
        overflow: visible;
    }

    .sidebar {
        padding: 0;
    }

    .sidebar-group summary {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .sidebar-group-body {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 88px;
    }

    .products-search {
        padding: 0.65rem;
        gap: 0.45rem;
    }

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

    .product-image {
        height: 180px;
    }

    .product-price {
        font-size: 1.02rem;
    }

    .product-card-actions {
        grid-template-columns: 44px 44px minmax(0, 1fr);
    }

    .btn-view.product-card-details {
        grid-column: auto;
        font-size: 0.8rem;
    }
}
