/* Sweet Coco — Premium category / catalog pages */

.sc-premium-catalog {
    --sc-chocolate: #2a1814;
    --sc-brown: #4a2f26;
    --sc-brown-light: #6f4e3e;
    --sc-gold: #b8925a;
    --sc-gold-light: #dcc9a3;
    --sc-caramel: #a97442;
    --sc-cream: #f8f4ed;
    --sc-cream-dark: #eee8dc;
    --sc-text: #241812;
    --sc-text-muted: #87796a;
    --sc-white: #fffcf7;
    --sc-chocolate-rgb: 42, 24, 20;
    --sc-gold-rgb: 184, 146, 90;
    --sc-cream-rgb: 248, 244, 237;
    --sc-radius: 20px;
    --sc-radius-sm: 12px;
    --sc-font-display: "Playfair Display", Georgia, serif;
    --sc-font-body: "Jost", "Segoe UI", sans-serif;
    --sc-shadow: 0 20px 50px rgba(var(--sc-chocolate-rgb), 0.07);
    --sc-shadow-hover: 0 28px 64px rgba(var(--sc-chocolate-rgb), 0.12);
    font-family: var(--sc-font-body);
    color: var(--sc-text);
    background: var(--sc-cream);
}

/* ─── Hero ─── */
.sc-cat-hero {
    position: relative;
    min-height: clamp(220px, 32vw, 320px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sc-chocolate) 0%, var(--sc-brown) 100%);
}

.sc-cat-hero__media {
    position: absolute;
    inset: 0;
}

.sc-cat-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.sc-cat-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(var(--sc-chocolate-rgb), 0.15) 0%, rgba(var(--sc-chocolate-rgb), 0.72) 100%),
        radial-gradient(circle at 80% 20%, rgba(var(--sc-gold-rgb), 0.18), transparent 55%);
}

.sc-cat-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 5vw, 56px);
}

.sc-cat-hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
}

.sc-cat-hero__breadcrumb a {
    color: rgba(255, 252, 247, 0.72);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sc-cat-hero__breadcrumb a:hover {
    color: var(--sc-gold-light);
}

.sc-cat-hero__breadcrumb span {
    color: rgba(255, 252, 247, 0.4);
}

.sc-cat-hero__breadcrumb strong {
    color: var(--sc-white);
    font-weight: 500;
}

.sc-cat-hero__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--sc-gold-light);
    margin-bottom: 10px;
}

.sc-cat-hero__title {
    font-family: var(--sc-font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--sc-white);
    margin: 0 0 10px;
}

.sc-cat-hero__meta {
    font-size: 14px;
    color: rgba(255, 252, 247, 0.78);
    margin: 0;
}

/* ─── Main layout ─── */
.sc-cat-main {
    padding: clamp(32px, 4vw, 48px) 0 clamp(48px, 6vw, 72px);
}

.sc-cat-layout {
    display: grid;
    grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 36px);
    align-items: start;
}

.sc-cat-sidebar.filter_sidebar {
    position: sticky;
    top: 110px;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    flex: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible;
    padding: 0 !important;
}

@media (min-width: 992px) {
    .sc-premium-catalog .sc-cat-sidebar.filter_sidebar {
        position: sticky !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
    }
}

/* ─── Toolbar ─── */
.sc-cat-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: var(--sc-radius-sm);
    background: var(--sc-white);
    border: 1px solid rgba(var(--sc-gold-rgb), 0.14);
    box-shadow: 0 8px 24px rgba(var(--sc-chocolate-rgb), 0.04);
}

.sc-cat-toolbar__count {
    font-size: 14px;
    color: var(--sc-text-muted);
}

.sc-cat-toolbar__count strong {
    color: var(--sc-brown);
    font-weight: 600;
}

.sc-cat-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-cat-toolbar .filter_btn {
    display: none;
    width: auto;
    height: auto;
    line-height: 1;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid rgba(var(--sc-gold-rgb), 0.28);
    background: var(--sc-white);
    color: var(--sc-brown);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sc-cat-toolbar .filter_btn:hover {
    background: rgba(var(--sc-gold-rgb), 0.08);
    border-color: rgba(var(--sc-gold-rgb), 0.45);
}

/* ─── Sort dropdown ─── */
.sc-sort-dropdown {
    position: relative;
}

.sc-sort-dropdown .sort-form {
    position: relative;
    margin: 0;
}

.sc-sort-dropdown__native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sc-sort-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    padding: 10px 14px 10px 16px;
    border: 1px solid rgba(var(--sc-gold-rgb), 0.22);
    border-radius: 999px;
    background: var(--sc-white);
    color: var(--sc-brown);
    font-family: var(--sc-font-body);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sc-sort-dropdown__trigger:hover {
    border-color: rgba(var(--sc-gold-rgb), 0.42);
    background: rgba(var(--sc-cream-rgb), 0.65);
}

.sc-sort-dropdown.is-open .sc-sort-dropdown__trigger,
.sc-sort-dropdown__trigger:focus-visible {
    outline: none;
    border-color: rgba(var(--sc-gold-rgb), 0.55);
    box-shadow: 0 0 0 4px rgba(var(--sc-gold-rgb), 0.1);
}

.sc-sort-dropdown__prefix {
    color: var(--sc-text-muted);
    font-weight: 400;
    white-space: nowrap;
}

.sc-sort-dropdown__value {
    flex: 1;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.sc-sort-dropdown__chevron {
    font-size: 10px;
    color: var(--sc-gold);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
}

.sc-sort-dropdown.is-open .sc-sort-dropdown__chevron {
    transform: rotate(180deg);
}

.sc-sort-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 120;
    min-width: 220px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: 14px;
    background: var(--sc-white);
    border: 1px solid rgba(var(--sc-gold-rgb), 0.16);
    box-shadow:
        0 4px 6px rgba(var(--sc-chocolate-rgb), 0.04),
        0 16px 40px rgba(var(--sc-chocolate-rgb), 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition:
        opacity 0.2s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.2s ease;
}

.sc-sort-dropdown.is-open .sc-sort-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sc-sort-dropdown__menu li {
    margin: 0;
}

.sc-sort-dropdown__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--sc-text-muted);
    font-family: var(--sc-font-body);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.sc-sort-dropdown__option:hover {
    background: rgba(var(--sc-gold-rgb), 0.08);
    color: var(--sc-brown);
}

.sc-sort-dropdown__option.is-selected {
    background: rgba(var(--sc-gold-rgb), 0.12);
    color: var(--sc-brown);
    font-weight: 600;
}

.sc-sort-dropdown__check {
    font-size: 11px;
    color: var(--sc-gold);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
}

.sc-sort-dropdown__option.is-selected .sc-sort-dropdown__check {
    opacity: 1;
    transform: scale(1);
}

/* ─── Sidebar filters ─── */
.sc-cat-sidebar .filter_close {
    display: none;
}

.sc-cat-filter-card {
    background: var(--sc-white);
    border: 1px solid rgba(var(--sc-gold-rgb), 0.14);
    border-radius: var(--sc-radius-sm);
    box-shadow: 0 8px 24px rgba(var(--sc-chocolate-rgb), 0.04);
    overflow: visible;
    margin-bottom: 18px;
    width: 100%;
}

.sc-premium-catalog .sidebar_item {
    width: 100%;
    margin-bottom: 18px;
}

.sc-cat-filter-card:last-child {
    margin-bottom: 0;
}

.sc-cat-filter-card__head {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(var(--sc-gold-rgb), 0.12);
    background: linear-gradient(180deg, rgba(var(--sc-cream-rgb), 0.6), var(--sc-white));
}

.sc-cat-filter-card__head h3 {
    margin: 0;
    font-family: var(--sc-font-display);
    font-size: 17px;
    font-weight: 500;
    color: var(--sc-brown);
}

.sc-cat-filter-card__body {
    padding: 14px 18px 18px;
    overflow: visible;
}

.sc-cat-price .filter-price-inputs input {
    box-sizing: border-box;
}

.sc-cat-filter-card .accordion-button {
    display: none;
}

.sc-cat-filter-card .accordion-collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
}

.sc-cat-subcats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-cat-subcats li + li {
    margin-top: 4px;
}

.sc-cat-subcats a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--sc-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sc-cat-subcats a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(var(--sc-gold-rgb), 0.45);
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sc-cat-subcats a:hover {
    background: rgba(var(--sc-gold-rgb), 0.08);
    color: var(--sc-brown);
    transform: translateX(3px);
}

.sc-cat-subcats a:hover::before {
    background: var(--sc-gold);
    transform: scale(1.2);
}

.sc-cat-subcats a.is-active {
    background: rgba(var(--sc-gold-rgb), 0.12);
    color: var(--sc-brown);
    font-weight: 600;
}

.sc-cat-subcats a.is-active::before {
    background: var(--sc-gold);
    transform: scale(1.2);
}

.sc-cat-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sc-cat-filter-list li {
    display: block;
    width: 100%;
}

.sc-cat-filter-list li + li {
    margin-top: 0;
}

.sc-cat-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--sc-text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    margin: 0;
}

.sc-cat-filter-option:hover {
    background: rgba(var(--sc-gold-rgb), 0.08);
    color: var(--sc-brown);
}

.sc-cat-filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--sc-gold);
    flex-shrink: 0;
}

.sc-cat-filter-option span {
    line-height: 1.4;
}

.sc-cat-filter-actions {
    padding-top: 4px;
}

.sc-cat-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(var(--sc-gold-rgb), 0.22);
    color: var(--sc-brown);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sc-cat-filter-clear:hover {
    background: rgba(var(--sc-gold-rgb), 0.08);
    border-color: rgba(var(--sc-gold-rgb), 0.35);
    color: var(--sc-brown);
}

.sc-cat-price .filter-price-inputs {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sc-cat-price .sc-cat-price-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(var(--sc-gold-rgb), 0.22);
    border-radius: 10px;
    background: rgba(var(--sc-cream-rgb), 0.5);
}

.sc-cat-price .sc-cat-price-field__currency {
    font-size: 14px;
    font-weight: 600;
    color: var(--sc-brown);
    line-height: 1;
    flex-shrink: 0;
}

.sc-cat-price .sc-cat-price-field input {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--sc-brown);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    box-shadow: none;
}

.sc-cat-price .sc-cat-price-field input:focus {
    outline: none;
}

.sc-cat-price #price-range.ui-slider {
    height: 6px;
    border: none;
    border-radius: 999px;
    background: rgba(var(--sc-gold-rgb), 0.18);
}

.sc-cat-price #price-range .ui-slider-range {
    background: linear-gradient(90deg, var(--sc-caramel), var(--sc-gold));
}

.sc-cat-price #price-range .ui-slider-handle {
    width: 18px;
    height: 18px;
    top: 50%;
    margin-top: -9px;
    border-radius: 50%;
    border: 2px solid var(--sc-white);
    background: var(--sc-brown);
    box-shadow: 0 4px 12px rgba(var(--sc-chocolate-rgb), 0.2);
    cursor: grab;
}

/* ─── Product grid ─── */
.sc-premium-catalog .sc-cat-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(18px, 2vw, 24px) !important;
    overflow: visible;
}

@media (min-width: 1600px) {
    .sc-premium-catalog .sc-cat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Larger card content on wide catalog screens */
@media (min-width: 1200px) {
    .sc-premium-catalog .sc-cat-grid .sc-product-card__body {
        padding: 16px 16px 12px;
        gap: 10px;
    }

    .sc-premium-catalog .sc-cat-grid .sc-product-card__title a {
        font-size: 15px;
        line-height: 1.45;
    }

    .sc-premium-catalog .sc-cat-grid .sc-product-card__price-current,
    .sc-premium-catalog .sc-cat-grid .sc-product-card__price span {
        font-size: 17px;
    }

    .sc-premium-catalog .sc-cat-grid .sc-product-card__footer {
        padding: 0 16px 16px;
    }

    .sc-premium-catalog .sc-cat-grid .sc-product-card__btn {
        min-height: 44px;
        padding: 12px 18px;
        font-size: 12px;
    }
}

.sc-premium-catalog .product_item:not(.sc-product-card) {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: var(--sc-radius-sm);
    background: var(--sc-white);
    box-shadow: 0 4px 24px rgba(var(--sc-chocolate-rgb), 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-width: 0;
}

.sc-premium-catalog .product_item:not(.sc-product-card):hover {
    box-shadow: var(--sc-shadow-hover);
    transform: translateY(-6px);
}

.sc-premium-catalog .product_item:not(.sc-product-card) .product_item_inner {
    border: none !important;
    padding: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sc-premium-catalog .product_item:not(.sc-product-card) .pro_img {
    height: 160px;
    width: 100%;
    background: #f5efe8;
    padding: 0;
}

.sc-premium-catalog .product_item:not(.sc-product-card) .pro_img img {
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-premium-catalog .product_item_inner .sale-badge {
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
}

.sc-premium-catalog .product_item_inner .sale-badge-inner {
    --sale-badge-width: auto;
    width: auto;
    height: auto;
}

.sc-premium-catalog .product_item_inner .sale-badge-box {
    background: linear-gradient(135deg, var(--sc-caramel), var(--sc-brown));
    border-radius: 50px;
    padding: 6px 12px;
    height: auto;
    width: auto;
}

.sc-premium-catalog .product_item_inner span.sale-badge-text {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sc-premium-catalog .pro_des {
    padding: 12px 14px 6px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sc-premium-catalog .pro_name {
    height: auto;
    min-height: 38px;
    padding: 0;
    margin: 0 0 8px;
}

.sc-premium-catalog .pro_name a {
    font-family: var(--sc-font-display);
    font-size: 13px;
    font-weight: 500;
    color: var(--sc-brown);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-premium-catalog .pro_price p {
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--sc-brown);
    margin: 0;
}

.sc-premium-catalog .pro_price del {
    color: var(--sc-text-muted);
    font-weight: 400;
    font-size: 13px;
    margin-right: 8px;
}

.sc-premium-catalog .pro_btn {
    padding: 0 14px 14px;
    margin-top: auto;
}

.sc-premium-catalog .pro_btn button,
.sc-premium-catalog .pro_btn .addcartbutton {
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--sc-brown) 0%, var(--sc-chocolate) 100%);
    color: var(--sc-cream);
    border: none;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sc-premium-catalog .pro_btn button:hover,
.sc-premium-catalog .pro_btn .addcartbutton:hover {
    background: linear-gradient(135deg, var(--sc-gold-light), var(--sc-gold));
    color: var(--sc-chocolate);
}

/* ─── Empty state ─── */
.sc-cat-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: clamp(48px, 8vw, 80px) 24px;
    border-radius: var(--sc-radius);
    background: var(--sc-white);
    border: 1px dashed rgba(var(--sc-gold-rgb), 0.28);
}

.sc-cat-empty i {
    font-size: 42px;
    color: var(--sc-gold);
    margin-bottom: 16px;
}

.sc-cat-empty h3 {
    font-family: var(--sc-font-display);
    font-size: 1.5rem;
    color: var(--sc-brown);
    margin: 0 0 8px;
}

.sc-cat-empty p {
    color: var(--sc-text-muted);
    margin: 0;
}

/* ─── Pagination (see site-pagination.css) ─── */
.sc-cat-pagination {
    margin-top: 0;
}

/* ─── SEO block ─── */
.sc-cat-seo {
    padding: clamp(40px, 5vw, 64px) 0;
    background: linear-gradient(180deg, var(--sc-cream-dark) 0%, var(--sc-cream) 100%);
    border-top: 1px solid rgba(var(--sc-gold-rgb), 0.12);
}

.sc-cat-seo__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 40px);
    background: var(--sc-white);
    border-radius: var(--sc-radius);
    border: 1px solid rgba(var(--sc-gold-rgb), 0.12);
    box-shadow: var(--sc-shadow);
}

.sc-cat-seo__inner h2,
.sc-cat-seo__inner h3 {
    font-family: var(--sc-font-display);
    color: var(--sc-brown);
}

.sc-cat-seo__inner p,
.sc-cat-seo__inner li {
    color: var(--sc-text-muted);
    line-height: 1.75;
}

/* ─── Responsive ─── */
@media (max-width: 1199px) {
    .sc-premium-catalog .sc-cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: clamp(14px, 1.6vw, 20px) !important;
    }
}

/* ─── Mobile filter drawer ─── */
.sc-cat-filter-drawer {
    display: contents;
}

.sc-cat-filter-drawer__head,
.sc-cat-filter-drawer__title,
.sc-cat-filter-drawer__close {
    display: none;
}

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

    .sc-cat-toolbar .filter_btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .sc-premium-catalog .sc-cat-sidebar.filter_sidebar {
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: none;
        align-items: flex-end;
        justify-content: center;
        padding: 0;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        top: 0 !important;
        background: transparent !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
        transition: opacity 0.28s ease, visibility 0.28s ease;
    }

    .sc-premium-catalog .sc-cat-sidebar.filter_sidebar.active {
        display: flex;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        background: rgba(var(--sc-chocolate-rgb), 0.52) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .sc-premium-catalog .sc-cat-filter-drawer {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: min(88vh, 760px);
        background: var(--sc-cream);
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -12px 48px rgba(var(--sc-chocolate-rgb), 0.18);
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
        overflow: hidden;
    }

    .sc-premium-catalog .sc-cat-sidebar.filter_sidebar.active .sc-cat-filter-drawer {
        transform: translateY(0);
    }

    .sc-premium-catalog .sc-cat-filter-drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-shrink: 0;
        padding: 18px 20px 14px;
        border-bottom: 1px solid rgba(var(--sc-gold-rgb), 0.14);
        background: var(--sc-white);
    }

    .sc-premium-catalog .sc-cat-filter-drawer__head::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: rgba(var(--sc-gold-rgb), 0.35);
    }

    .sc-premium-catalog .sc-cat-filter-drawer__head {
        position: relative;
        padding-top: 22px;
    }

    .sc-premium-catalog .sc-cat-filter-drawer__title {
        display: block;
        margin: 0;
        font-family: var(--sc-font-display);
        font-size: 1.25rem;
        font-weight: 500;
        color: var(--sc-brown);
    }

    .sc-premium-catalog .sc-cat-filter-drawer__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid rgba(var(--sc-gold-rgb), 0.22);
        border-radius: 50%;
        background: var(--sc-white);
        color: var(--sc-brown);
        font-size: 16px;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease;
    }

    .sc-premium-catalog .sc-cat-filter-drawer__close:hover {
        background: rgba(var(--sc-gold-rgb), 0.08);
        border-color: rgba(var(--sc-gold-rgb), 0.4);
    }

    .sc-premium-catalog .sc-cat-filter-drawer__body {
        flex: 1;
        overflow-y: auto;
        padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
        -webkit-overflow-scrolling: touch;
    }

    .sc-premium-catalog .sc-cat-filter-drawer__body .attribute-submit {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .sc-premium-catalog .sc-cat-sidebar .filter_close {
        display: none !important;
    }

    .sc-premium-catalog .sc-cat-sidebar .sidebar_item,
    .sc-premium-catalog .sc-cat-sidebar .sc-cat-filter-card {
        margin-bottom: 0;
        border-radius: 16px;
        box-shadow: none;
        border: 1px solid rgba(var(--sc-gold-rgb), 0.14);
    }

    .sc-premium-catalog .sc-cat-subcats {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .sc-premium-catalog .sc-cat-subcats li + li {
        margin-top: 0;
    }

    .sc-premium-catalog .sc-cat-subcats a {
        width: 100%;
        padding: 13px 14px;
        border-radius: 12px;
        background: rgba(var(--sc-cream-rgb), 0.65);
        transform: none;
    }

    .sc-premium-catalog .sc-cat-subcats a:hover {
        transform: none;
    }

    .sc-premium-catalog .sc-cat-subcats a.is-active {
        background: rgba(var(--sc-gold-rgb), 0.14);
        border: 1px solid rgba(var(--sc-gold-rgb), 0.28);
    }
}

@media (max-width: 767px) {
    .sc-premium-catalog .filter_sidebar,
    .sc-premium-catalog .filter_sidebar.active {
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .sc-premium-catalog .filter_sidebar:not(.active) {
        display: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .sc-premium-catalog .filter_sidebar.active {
        display: flex !important;
        background: rgba(var(--sc-chocolate-rgb), 0.52) !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    .sc-premium-catalog .filter_close,
    .sc-premium-catalog .filter_sidebar .filter_close {
        background: transparent !important;
        color: inherit !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 575px) {
    .sc-cat-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .sc-cat-toolbar__actions {
        justify-content: space-between;
    }

    .sc-sort-dropdown__trigger {
        min-width: 0;
        width: 100%;
    }

    .sc-sort-dropdown__menu {
        left: 0;
        right: 0;
        min-width: 0;
        width: 100%;
    }

    .sc-premium-catalog .sc-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .sc-premium-catalog .pro_img {
        height: 240px;
    }
}
