:root {
    --cat-orange: #ff9700;
    --cat-purple: #a742d1;
    --cat-purple-deep: #68258b;
    --cat-ink: #25192c;
    --cat-muted: #776d7d;
    --cat-line: rgba(81, 48, 96, 0.10);
    --cat-gradient: linear-gradient(130deg, #ff9700 0%, #f1830c 38%, #a742d1 100%);
}

body {
    color: var(--cat-ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(167, 66, 209, 0.09), transparent 27rem),
        radial-gradient(circle at 93% 19%, rgba(255, 151, 0, 0.09), transparent 28rem),
        linear-gradient(180deg, #fbf9fc, #f6f3f8 45%, #faf9fb) !important;
}

.home-header {
    min-height: 86px;
    border-bottom: 1px solid rgba(77, 45, 91, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 34px rgba(50, 31, 59, 0.06);
    backdrop-filter: blur(18px);
}

.header-container {
    max-width: 1380px;
    min-height: 86px;
    padding: 11px 30px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    width: 164px;
    height: 62px;
}

.logo img {
    width: 164px !important;
    height: auto !important;
    object-fit: contain;
}

.desktop-main-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}

.desktop-main-nav a {
    position: relative;
    padding: 11px 14px;
    color: #51475a;
    font-size: 0.91rem;
    font-weight: 600;
    text-decoration: none;
}

.desktop-main-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--cat-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.desktop-main-nav a:hover,
.desktop-main-nav a.active {
    color: var(--cat-purple-deep);
}

.desktop-main-nav a:hover::after,
.desktop-main-nav a.active::after {
    transform: scaleX(1);
}

.auth-buttons-container .btn,
.header-nav > .btn {
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 13px;
    background: var(--cat-gradient);
    box-shadow: 0 12px 26px rgba(116, 38, 146, 0.18);
}

.categories-hero {
    position: relative;
    isolation: isolate;
    max-width: 1380px;
    min-height: 425px;
    margin: 30px auto 0;
    padding: 70px 64px;
    overflow: hidden;
    border: 1px solid rgba(87, 49, 104, 0.10);
    border-radius: 32px;
    color: var(--cat-ink);
    text-align: left;
    background:
        radial-gradient(circle at 90% 5%, rgba(255, 151, 0, 0.21), transparent 28rem),
        radial-gradient(circle at 9% 112%, rgba(167, 66, 209, 0.17), transparent 27rem),
        linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(249, 241, 252, 0.95));
    box-shadow: 0 30px 78px rgba(61, 38, 72, 0.14);
}

.categories-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 540px;
    height: 540px;
    right: -310px;
    top: -330px;
    border: 90px solid rgba(255, 151, 0, 0.065);
    border-radius: 50%;
}

.categories-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 810px;
    margin: 0;
}

.categories-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #742c96;
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.categories-eyebrow i {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 10px;
    color: white;
    background: var(--cat-gradient);
    box-shadow: 0 9px 20px rgba(113, 36, 143, 0.18);
}

.categories-hero h1 {
    max-width: 780px;
    margin: 0 0 16px;
    color: var(--cat-ink);
    font-size: clamp(3rem, 5.3vw, 5.2rem);
    font-weight: 760;
    line-height: 0.99;
    letter-spacing: -0.065em;
}

.categories-hero h1 span {
    display: block;
    color: transparent;
    background: var(--cat-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.categories-hero p {
    max-width: 680px;
    margin: 0 0 26px;
    color: #6f6575;
    font-size: 1rem;
    line-height: 1.72;
}

.category-search-container {
    max-width: 700px;
    margin: 0;
}

.category-search-container input {
    min-height: 60px;
    padding: 16px 24px 16px 54px;
    border: 1px solid rgba(83, 49, 99, 0.11);
    border-radius: 16px;
    color: #302536;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 17px 40px rgba(66, 40, 78, 0.12);
}

.category-search-container input:focus {
    border-color: rgba(167, 66, 209, 0.38);
    box-shadow: 0 20px 46px rgba(66, 40, 78, 0.15), 0 0 0 4px rgba(167, 66, 209, 0.07);
}

.category-search-container .search-icon {
    left: 20px;
    color: #8c37ae;
}

.category-trust-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    color: #716677;
    font-size: 0.76rem;
    font-weight: 600;
}

.category-trust-row i {
    margin-right: 6px;
    color: #9238b6;
}

.categories-brand-mark {
    position: absolute;
    z-index: 1;
    right: 88px;
    top: 50%;
    width: 190px;
    height: 250px;
    display: grid;
    place-items: center;
    transform: translateY(-50%) rotate(9deg);
}

.categories-brand-mark::before,
.categories-brand-mark::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(126, 49, 161, 0.13);
    border-radius: 50%;
}

.categories-brand-mark::before {
    width: 300px;
    height: 300px;
}

.categories-brand-mark::after {
    width: 410px;
    height: 410px;
}

.categories-brand-mark img {
    width: 114px;
    height: auto;
    filter: drop-shadow(0 20px 32px rgba(77, 32, 96, 0.20));
}

.categories-main-container {
    max-width: 1340px;
    padding: 74px 30px 90px;
}

.categories-filter-wrapper {
    justify-content: flex-start;
    min-height: 76px;
    margin-bottom: 30px;
    padding: 13px 16px;
    border: 1px solid var(--cat-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 15px 38px rgba(60, 37, 71, 0.08);
}

.filter-context {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.filter-context-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: white;
    background: var(--cat-gradient);
    box-shadow: 0 10px 22px rgba(120, 40, 150, 0.17);
}

.filter-context strong,
.filter-context small {
    display: block;
}

.filter-context strong {
    color: #34243b;
    font-size: 0.88rem;
}

.filter-context small {
    margin-top: 3px;
    color: #948a99;
    font-size: 0.67rem;
}

.small-sort-select {
    min-height: 44px;
    padding: 9px 40px 9px 15px;
    border: 1px solid var(--cat-line);
    border-radius: 11px;
    color: #443649;
    background: #faf8fb;
}

.categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.main-cat-card {
    border: 1px solid rgba(82, 47, 98, 0.10);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    background-image: none;
    box-shadow: 0 17px 46px rgba(62, 39, 73, 0.09);
}

.main-cat-card:hover {
    border-color: rgba(167, 66, 209, 0.22);
    background: #fff;
    background-image: none;
    box-shadow: 0 26px 58px rgba(62, 39, 73, 0.15);
    transform: translateY(-7px);
}

.main-cat-banner {
    height: 176px;
    padding: 19px;
}

.main-cat-banner::before {
    background:
        linear-gradient(to top, rgba(32, 15, 39, 0.91) 0%, rgba(46, 19, 55, 0.16) 76%),
        linear-gradient(120deg, rgba(255, 151, 0, 0.12), rgba(167, 66, 209, 0.16));
}

.main-cat-icon-container {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
}

.main-cat-name {
    font-size: 1.22rem;
    letter-spacing: -0.025em;
}

.sub-cats-list {
    gap: 9px;
    max-height: 408px;
    padding: 15px;
}

.sub-cat-item {
    min-height: 62px;
    padding: 8px;
    border: 1px solid rgba(81, 48, 96, 0.08);
    border-radius: 13px;
    background: #faf8fb;
}

.sub-cat-item:hover {
    border-color: rgba(255, 151, 0, 0.28);
    background: linear-gradient(100deg, #fff8ed, #fbf6fd);
    box-shadow: 0 8px 20px rgba(67, 42, 79, 0.07);
    transform: translateX(4px);
}

.sub-cat-img {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border: 0;
    border-radius: 11px;
    box-shadow: 0 5px 13px rgba(55, 34, 64, 0.10);
}

.sub-cat-name {
    color: #3b2c42;
    font-size: 0.84rem;
}

.sub-cat-item:hover .sub-cat-name {
    color: #6c288c;
}

.favorite-btn-cat,
.sub-cat-action-icon {
    border-color: rgba(83, 50, 98, 0.09);
    box-shadow: none;
}

.sub-cat-action-icon {
    border-radius: 9px;
    color: #7d309f;
}

.sub-cat-item:hover .sub-cat-action-icon {
    border-color: transparent;
    background: var(--cat-gradient);
}

.premium-footer {
    margin-top: 10px;
    background:
        radial-gradient(circle at 8% 110%, rgba(177, 66, 216, 0.34), transparent 30rem),
        radial-gradient(circle at 92% -25%, rgba(255, 151, 0, 0.25), transparent 29rem),
        linear-gradient(135deg, #1d1024, #2c1536 58%, #201128);
}

.footer-grid,
.footer-bottom {
    max-width: 1280px;
}

.footer-logo-wrap {
    display: inline-flex;
    width: 210px;
    height: 92px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.footer-logo-wrap img {
    width: 200px;
    height: auto;
    margin: 0 !important;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.24));
}

.footer-col h4 {
    color: #ffc05f;
}

@media (max-width: 1420px) {
    .categories-hero {
        margin-left: 24px;
        margin-right: 24px;
    }

    .categories-brand-mark {
        right: 50px;
        opacity: 0.82;
    }
}

@media (max-width: 1120px) {
    .desktop-main-nav {
        display: none;
    }

    .header-nav {
        margin-left: auto;
    }

    .categories-brand-mark {
        right: -10px;
        opacity: 0.34;
    }

    .categories-hero .hero-content {
        max-width: 740px;
    }
}

@media (max-width: 968px) {
    .header-container {
        min-height: 72px;
        padding: 7px 18px;
    }

    .logo {
        width: 138px;
        height: 54px;
    }

    .logo img {
        width: 138px !important;
        height: auto !important;
    }

    .categories-hero {
        min-height: 0;
        margin: 12px;
        padding: 48px 24px;
        border-radius: 24px;
    }

    .categories-hero h1 {
        max-width: 660px;
        color: var(--cat-ink);
        font-size: clamp(2.5rem, 10vw, 4rem);
        line-height: 1.02;
        text-align: left;
    }

    .categories-hero p {
        color: #6f6575;
        font-size: 0.9rem;
        text-align: left;
    }

    .category-search-container {
        max-width: 100%;
    }

    .category-search-container input {
        padding: 14px 16px 14px 48px;
        border-radius: 14px;
        text-align: left;
    }

    .categories-brand-mark {
        display: none;
    }

    .categories-main-container {
        padding: 42px 15px 60px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .footer-logo-wrap img {
        width: 190px !important;
        height: auto !important;
        max-width: 190px !important;
        max-height: none !important;
    }
}

@media (max-width: 620px) {
    .categories-hero {
        padding: 39px 18px;
    }

    .categories-hero h1 {
        font-size: clamp(2.3rem, 11.5vw, 3.3rem);
    }

    .categories-eyebrow {
        font-size: 0.64rem;
    }

    .category-trust-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .categories-filter-wrapper {
        align-items: flex-end;
        flex-wrap: wrap;
        min-height: 0;
        padding: 12px;
    }

    .filter-context {
        width: 100%;
        margin-bottom: 7px;
    }

    .filter-label {
        margin-left: auto;
    }

    .main-cat-banner {
        height: 155px;
    }

    .sub-cats-list {
        max-height: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-cat-card,
    .sub-cat-item,
    .desktop-main-nav a::after {
        transition: none !important;
    }
}
