.category-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(145deg, var(--craft-bg-start) 0%, var(--craft-bg-mid) 48%, var(--craft-bg-end) 100%);
    padding: 2.15rem 1.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
    border-top: 1px solid var(--craft-line-top);
    border-bottom: 1px solid var(--craft-line-bottom);
}

.category-hero .hero-shape {
    position: absolute;
    border-radius: 999px;
    border: 1px solid var(--craft-ring);
    background: var(--craft-surface-fade);
    backdrop-filter: blur(1px);
    pointer-events: none;
    z-index: 0;
}

.category-hero .hero-shape-left {
    width: 180px;
    height: 180px;
    left: -62px;
    top: -66px;
}

.category-hero .hero-shape-right {
    width: 138px;
    height: 138px;
    right: -34px;
    bottom: -50px;
}

.category-hero::before,
.category-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.category-hero::before {
    background:
        radial-gradient(circle at 14% 28%, rgba(255, 255, 255, 0.26) 0, rgba(255, 255, 255, 0) 46%),
        radial-gradient(circle at 84% 72%, rgba(122, 90, 63, 0.14) 0, rgba(122, 90, 63, 0) 52%),
        radial-gradient(circle at 52% 16%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 38%);
    opacity: 0.85;
    z-index: -2;
}

.category-hero::after {
    background: repeating-linear-gradient(102deg,
            rgba(255, 255, 255, 0.07) 0,
            rgba(255, 255, 255, 0.07) 2px,
            rgba(95, 72, 52, 0.045) 2px,
            rgba(95, 72, 52, 0.045) 4px);
    mix-blend-mode: soft-light;
    opacity: 0.45;
    z-index: -1;
}

.category-hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    color: var(--craft-title);
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.category-hero p {
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--craft-body);
    max-width: 760px;
    margin: 0 auto;
}

.category-hero .read-more-text {
    display: none;
    margin-top: 0.45rem;
    background: none;
    border: none;
    text-decoration: underline;
    color: var(--craft-accent);
    padding: 0;
    font-size: 0.85rem;
    cursor: pointer;
}



.category-hero h1,
.category-hero p,
.category-hero .read-more-text {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .category-hero {
        padding: 1.5rem 0.85rem;
    }

    .category-hero .hero-shape-left {
        width: 110px;
        height: 110px;
        left: -48px;
        top: -46px;
    }

    .category-hero .hero-shape-right {
        width: 95px;
        height: 95px;
        right: -34px;
        bottom: -42px;
    }

    .category-hero h1 {
        font-size: 1.35rem;
        margin-bottom: 0.6rem;
    }

    .category-hero p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .category-hero p.is-clamped {
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .category-hero .read-more-text {
        display: inline-block;
    }
}
.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.products-count {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--craft-title);
}

.sort-dropdown {
    position: relative;
    width: 215px;
}

.sort-select-container {
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0;
    border: 1px solid rgba(122, 90, 63, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 2px 8px rgba(80, 55, 35, 0.04);
    color: var(--craft-title);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.sort-select-container:hover {
    border-color: rgba(122, 90, 63, 0.35);
    background: rgba(255, 255, 255, 0.95);
}

.sort-dropdown.is-open .sort-select-container {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(122, 90, 63, 0.08);
}

.sort-icon {
    width: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.sort-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

.sort-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding-right: 30px;
    pointer-events: none;
}

.sort-label {
    color: var(--craft-body);
    font-size: 0.67rem;
    font-weight: 400;
    line-height: 1.1;
}

.sort-current {
    color: var(--craft-title);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sort-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform: translateY(-50%);
}

.sort-chevron svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
    transition: transform 0.2s ease;
}

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

.sort-options {
    position: absolute;
    z-index: 100;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    padding: 6px;
    border: 1px solid rgba(122, 90, 63, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 10px 30px rgba(80, 55, 35, 0.12),
        0 2px 8px rgba(80, 55, 35, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

.sort-dropdown.is-open .sort-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.sort-option {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--craft-title);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.sort-option:hover {
    background: rgba(122, 90, 63, 0.07);
}

.sort-option.is-selected {
    background: rgba(122, 90, 63, 0.08);
    color: var(--primary-color);
    font-weight: 600;
}

.sort-check {
    width: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.85rem;
    opacity: 0;
}

.sort-option.is-selected .sort-check {
    opacity: 1;
}

@media (max-width: 480px) {
    .products-toolbar {
        gap: 0.5rem;
        margin: 0 0.75rem 1.25rem;
    }

    .products-count {
        font-size: 0.75rem;
    }

    .sort-dropdown {
        width: 170px;
    }

    .sort-select-container {
        height: 46px;
    }

    .sort-icon {
        width: 40px;
    }

    .sort-icon svg {
        width: 18px;
        height: 18px;
    }

    .sort-label {
        font-size: 0.62rem;
    }

    .sort-current {
        font-size: 0.7rem;
    }

    .sort-options {
        top: calc(100% + 6px);
        padding: 5px;
        border-radius: 12px;
    }

    .sort-option {
        min-height: 40px;
        padding: 0.6rem 0.65rem;
        font-size: 0.74rem;
    }
}