.category-explorer-page {
    background:
        radial-gradient(circle at top left, rgba(37, 118, 230, 0.09), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.category-explorer-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 18px 110px;
}

.category-explorer-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.category-explorer-kicker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #5b8dfd;
    margin-bottom: 4px;
}

.category-explorer-topbar h1 {
    font-size: 34px;
    line-height: 1;
    color: #111827;
}

.category-explorer-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.category-explorer-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.category-explorer-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 18px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(37, 118, 230, 0.1);
    box-shadow: 0 18px 36px rgba(37, 118, 230, 0.08);
}

.explorer-category-btn {
    border: none;
    width: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    text-align: left;
    background: transparent;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.explorer-category-btn:hover {
    background: rgba(37, 118, 230, 0.06);
    transform: translateX(3px);
}

.explorer-category-btn.active {
    background: linear-gradient(135deg, #2d6df6, #5a92ff);
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(45, 109, 246, 0.22);
}

.explorer-category-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2d6df6;
    background: #edf4ff;
}

.explorer-category-btn.active .explorer-category-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.explorer-category-text strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.explorer-category-text span {
    display: block;
    font-size: 11px;
    line-height: 1.25;
    color: #64748b;
    margin-top: 4px;
}

.explorer-category-btn.active .explorer-category-text span {
    color: rgba(255, 255, 255, 0.84);
}

.category-explorer-main {
    min-width: 0;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(37, 118, 230, 0.08);
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
}

.category-explorer-main-header {
    margin-bottom: 20px;
}

.category-explorer-main-kicker {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #8b5cf6;
    margin-bottom: 8px;
}

.category-explorer-main h2 {
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 6px;
    color: #111827;
}

.category-explorer-main-header p:last-child {
    color: #64748b;
    max-width: 560px;
    font-size: 14px;
}

.category-explorer-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.explorer-product-card {
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(37, 118, 230, 0.08);
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(37, 118, 230, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.explorer-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(37, 118, 230, 0.15);
}

.explorer-product-image-wrap {
    aspect-ratio: 1;
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.explorer-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explorer-product-content {
    padding: 12px 12px 14px;
}

.explorer-product-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.explorer-product-price {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #2563eb;
}

.explorer-empty-state {
    padding: 30px 16px;
    border-radius: 22px;
    background: #f8fbff;
    border: 1px dashed rgba(37, 118, 230, 0.25);
    color: #64748b;
    text-align: center;
}

@media (max-width: 1180px) {
    .category-explorer-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .category-explorer-shell {
        padding: 14px 10px 112px;
    }

    .category-explorer-layout {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 10px;
    }

    .category-explorer-sidebar {
        padding: 6px;
        border-radius: 18px;
    }

    .explorer-category-btn {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 8px;
        padding: 12px 8px;
        text-align: center;
        border-radius: 14px;
    }

    .explorer-category-text strong {
        font-size: 11px;
    }

    .explorer-category-text span {
        font-size: 9px;
    }

    .category-explorer-main {
        padding: 16px 14px;
        border-radius: 20px;
    }

    .category-explorer-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .category-explorer-topbar {
        margin-bottom: 12px;
    }

    .category-explorer-topbar h1 {
        font-size: 26px;
    }

    .category-explorer-main h2 {
        font-size: 23px;
    }

    .explorer-product-content {
        padding: 11px 10px 13px;
    }

    .explorer-product-name {
        font-size: 12px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .explorer-product-price {
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .category-explorer-shell {
        padding-left: 8px;
        padding-right: 8px;
    }

    .category-explorer-layout {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 8px;
    }

    .category-explorer-main {
        padding: 14px 10px;
    }

    .category-explorer-products {
        gap: 10px;
    }

    .explorer-product-card {
        border-radius: 18px;
    }
}
