.rek-category-page {
    --rek-primary: #1d4ed8;
    --rek-dark: #0b1739;
    --rek-light: #f5f7fc;
    --rek-text: #0f172a;
    --rek-muted: #64748b;
    color: var(--rek-text);
    margin-top: -110px;
}

.rek-container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.rek-hero {
    position: relative;
    background-color: #111827;
    background-size: cover;
    background-position: center;
    padding: 150px 0 90px;
    color: #fff;
}

.rek-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 23, 66, 0.84), rgba(8, 23, 66, 0.55));
}

.rek-hero-inner {
    position: relative;
    z-index: 2;
}

.rek-breadcrumb {
    margin: 0 0 16px;
    font-size: 14px;
    color: #dbe4ff;
}

.rek-breadcrumb a {
    color: #fff;
}

.rek-hero h1 {
    font-size: clamp(32px, 5vw, 58px);
    margin: 0 0 16px;
    line-height: 1.1;
    font-weight: bold;
}

.rek-hero-subtitle {
    max-width: 700px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.rek-hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.rek-btn {
    display: inline-block;
    border-radius: 8px;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.rek-btn-primary {
    color: #fff;
    background: var(--rek-primary);
}

.rek-btn-primary:hover {
    background: #1e40af;
    color: #fff;
}

.rek-btn-secondary {
    border: 1px solid #fff;
    color: #fff;
}

.rek-btn-secondary:hover {
    background: #fff;
    color: #0f172a;
}

.rek-products-section {
    padding: 56px 0;
    background: #fff;
}

.rek-products-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
}

.rek-mobile-filter-toggle {
    display: none;
}

.rek-sidebar {
    background: var(--rek-light);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    align-self: start;
    position: sticky;
    top: 24px;
}

.rek-sidebar h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.rek-category-filter-list,
.rek-subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rek-category-group {
    margin-bottom: 4px;
}

.rek-category-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rek-subcategory-list {
    margin: 8px 0 12px 16px;
    border-left: 2px solid #cbd5e1;
    padding-left: 12px;
}

.rek-filter-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    border: 0;
    background: transparent;
    color: #1e293b;
    cursor: pointer;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.rek-filter-btn:hover {
    background: #dbeafe;
    color: #1e40af;
}

.rek-filter-btn.is-active {
    background: var(--rek-primary);
    color: #fff;
}

.rek-term-count {
    font-size: 13px;
    color: var(--rek-muted);
}

.rek-filter-btn.is-active .rek-term-count {
    color: #dbeafe;
}

.rek-parent-btn {
    margin-bottom: 0;
}

.rek-sub-toggle {
    border: 0;
    background: #e2e8f0;
    color: #334155;
    border-radius: 8px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.rek-sub-toggle:hover {
    background: #dbeafe;
    color: #1e40af;
}

.rek-sub-toggle .rek-arrow {
    display: inline-flex;
    line-height: 1;
    font-size: 13px;
    align-items: center;
    justify-content: center;
}

.rek-category-group .rek-sub-toggle .rek-chevron-down {
    display: inline-block !important;
}

.rek-category-group .rek-sub-toggle .rek-chevron-up {
    display: none !important;
}

.rek-category-group.is-open .rek-sub-toggle .rek-chevron-down,
.rek-sub-toggle.is-open .rek-chevron-down {
    display: none !important;
}

.rek-category-group.is-open .rek-sub-toggle .rek-chevron-up,
.rek-sub-toggle.is-open .rek-chevron-up {
    display: inline-block !important;
}

#rek-products-wrap {
    min-height: 280px;
}

#rek-work-samples-wrap {
    min-height: 280px;
}

#rek-products-wrap.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

#rek-work-samples-wrap.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.rek-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.rek-product-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rek-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.13);
}

.rek-product-thumb {
    display: block;
    background: #f8fafc;
    aspect-ratio: 1 / 1;
}

.rek-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rek-product-title {
    font-size: 18px;
    margin: 14px 14px 8px;
    line-height: 1.35;
    text-align: center;
}

.rek-product-title a {
    color: #0f172a;
    text-decoration: none;
}

.rek-product-price {
    margin: 0 14px 12px;
    color: var(--rek-primary);
    font-weight: 600;
}

.rek-product-cart {
    padding: 0 14px 16px;
}

.rek-product-cart .button {
    width: 100%;
    text-align: center;
    border-radius: 7px !important;
    background-color: #2d6bff !important;
    border-color: #2d6bff !important;
    color: #fff !important;
    font-weight: 500 !important;
}

.rek-product-cart .button:hover {
    background-color: #1f57db !important;
    border-color: #1f57db !important;
    color: #fff !important;
}

.rek-title-highlight {
    color: #2d6bff;
    display: inline-block;
    margin-top: 4px;
}

.rek-ready-section {
    background: var(--rek-dark);
    color: #fff;
    text-align: center;
    padding: 64px 0;
}

.rek-ready-inner h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    text-transform: uppercase;
    font-weight: bold;
}

.rek-ready-inner p {
    margin: 12px auto 24px;
    max-width: 720px;
    font-size: 17px;
    color: #dbeafe;
}

.rek-gallery-section {
    position: relative;
    background: #fff;
    padding: 56px 0 72px;
}

.rek-gallery-section.has-bg {
    background-size: cover;
    background-position: center;
}

.rek-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 23, 57, 0.68);
}

.rek-gallery-section .rek-container {
    position: relative;
    z-index: 2;
}

.rek-gallery-subtitle {
    margin: 0 0 8px;
    text-align: center;
    color: #1d4ed8;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 13px;
}

.rek-gallery-title {
    margin: 0 0 22px;
    text-align: center;
    font-size: clamp(26px, 3.8vw, 42px);
    font-weight: bold;
}

.rek-gallery-description {
    margin: -8px auto 22px;
    text-align: center;
    max-width: 860px;
    color: #475569;
    line-height: 1.7;
}

.rek-gallery-section.has-bg .rek-gallery-subtitle,
.rek-gallery-section.has-bg .rek-gallery-title,
.rek-gallery-section.has-bg .rek-gallery-description {
    color: #fff;
}

.rek-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.rek-gallery-item {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.rek-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rek-gallery-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.52);
    color: #fff;
    opacity: 0;
    font-size: 32px;
    transition: opacity 0.3s ease;
}

.rek-gallery-item:hover img {
    transform: scale(1.07);
}

.rek-gallery-item:hover .rek-gallery-icon {
    opacity: 1;
}

.rek-no-products {
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

.rek-pagination {
    margin-top: 28px;
}

.rek-pagination ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rek-pagination a,
.rek-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    background: #fff;
    font-weight: 600;
}

.rek-pagination a:hover {
    border-color: #2d6bff;
    color: #2d6bff;
}

.rek-pagination .current {
    background: #2d6bff;
    border-color: #2d6bff;
    color: #fff;
}

@media (max-width: 1024px) {
    .rek-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rek-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .rek-products-layout {
        grid-template-columns: 1fr;
    }

    .rek-mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #cbd5e1;
        background: #fff;
        color: #0f172a;
        border-radius: 10px;
        padding: 12px 16px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .rek-mobile-filter-toggle[aria-expanded="true"] {
        border-color: #2d6bff;
        color: #2d6bff;
        background-color: transparent !important;
    }

    .rek-sidebar {
        position: static;
        display: none;
        max-height: 60vh;
        overflow: auto;
        margin-bottom: 12px;
    }

    .rek-products-layout.show-mobile-filters .rek-sidebar {
        display: block;
    }
}

@media (max-width: 640px) {
    .rek-category-page {
        margin-top: -231px;
    }

    .rek-hero {
        padding: 190px 0 62px;
    }

    .rek-hero-actions {
        flex-direction: column;
    }

    .rek-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rek-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rek-gallery-item img {
        height: 170px;
    }
}
