/* Evolatex product category / shop */

/* Catalog section */

.evolatex-section--shop {
    padding-top: 42px;
    padding-bottom: 5px!important;
}

/* Catalog hero */

.evolatex-shop-hero {
    padding-top: calc(var(--evo-header-height) + 34px);
    background: var(--evo-ink);
    color: #ffffff;
}

.evolatex-shop-hero__inner {
    padding-bottom: 34px;
}

.evolatex-shop-hero h1,
.evolatex-shop-hero h2,
.evolatex-shop-hero h3 {
    color: #ffffff;
}

.evolatex-shop-hero h1 {
    max-width: 980px;
    margin-bottom: 30px;
    font-size: clamp(48px, 5vw, 78px);
    line-height: 0.92;
}

.evolatex-shop-hero__content {
    display: block;
    max-width: none;
}

.evolatex-shop-hero__description,
.evolatex-shop-hero__content p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.74);
}

.evolatex-shop-hero__mini {
    padding: 24px;
    border: 1px solid var(--evo-line-dark);
    background: rgba(255, 255, 255, 0.04);
}

.evolatex-shop-hero__mini span {
    display: block;
    margin-bottom: 26px;
    color: var(--evo-accent);
    font-size: 12px;
    font-weight: 900;
}

.evolatex-shop-hero__mini p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

/* Catalog breadcrumbs on dark hero */

.post-type-archive-product .evolatex-breadcrumbs,
.tax-product_cat .evolatex-breadcrumbs,
.woocommerce-shop .evolatex-breadcrumbs,
.archive.woocommerce .evolatex-breadcrumbs {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.52);
}

.post-type-archive-product .evolatex-breadcrumbs a,
.tax-product_cat .evolatex-breadcrumbs a,
.woocommerce-shop .evolatex-breadcrumbs a,
.archive.woocommerce .evolatex-breadcrumbs a {
    color: rgba(255, 255, 255, 0.58);
}

.post-type-archive-product .evolatex-breadcrumbs a:hover,
.tax-product_cat .evolatex-breadcrumbs a:hover,
.woocommerce-shop .evolatex-breadcrumbs a:hover,
.archive.woocommerce .evolatex-breadcrumbs a:hover {
    color: #ffffff;
}

.post-type-archive-product .evolatex-breadcrumbs__sep,
.tax-product_cat .evolatex-breadcrumbs__sep,
.woocommerce-shop .evolatex-breadcrumbs__sep,
.archive.woocommerce .evolatex-breadcrumbs__sep {
    color: var(--evo-accent-deep);
    opacity: 1;
}

.post-type-archive-product .evolatex-breadcrumbs span:last-child,
.tax-product_cat .evolatex-breadcrumbs span:last-child,
.woocommerce-shop .evolatex-breadcrumbs span:last-child,
.archive.woocommerce .evolatex-breadcrumbs span:last-child {
    color: rgba(255, 255, 255, 0.72);
}

/* Catalog category tabs */

.evolatex-shop-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1120px;
    margin-top: 0;
}

.evolatex-shop-tabs a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--evo-line-dark);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.evolatex-shop-tabs a:hover,
.evolatex-shop-tabs a.is-active {
    border-color: var(--evo-accent);
    background: var(--evo-accent-deep);
    color: #ffffff;
}

/* Catalog pagination */

.woocommerce nav.woocommerce-pagination {
    margin-top: 54px;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers > li {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers > li::marker {
    content: "";
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--evo-line);
    background: transparent;
    color: var(--evo-ink);
    font-weight: 800;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--evo-ink);
    color: #ffffff;
}

/* Responsive */

@media (max-width: 980px) {
    .evolatex-shop-hero__content {
        grid-template-columns: 1fr;
    }
х
    .evolatex-shop-hero {
        padding-top: calc(var(--evo-header-height) + 30px);
    }

    .evolatex-shop-hero__inner {
        padding-bottom: 32px;
    }
}

@media (max-width: 640px) {
    .evolatex-section--shop {
        padding-top: 34px;
        padding-bottom: 62px;
    }

    .evolatex-shop-hero {
        padding-top: calc(var(--evo-header-height) + 26px);
    }

    .evolatex-shop-hero__inner {
        padding-bottom: 28px;
    }

    .evolatex-shop-hero h1 {
        margin-bottom: 24px;
        font-size: clamp(38px, 12vw, 56px);
    }

    .post-type-archive-product .evolatex-breadcrumbs,
    .tax-product_cat .evolatex-breadcrumbs,
    .woocommerce-shop .evolatex-breadcrumbs,
    .archive.woocommerce .evolatex-breadcrumbs {
        margin-bottom: 22px;
    }

    .evolatex-shop-tabs {
        gap: 6px;
    }

    .evolatex-shop-tabs a {
        min-height: 36px;
        padding: 9px 11px;
        font-size: 10px;
    }
}

/* Sticky catalog tabs */

.evolatex-shop-tabs-wrap {
    position: relative;
}

.evolatex-shop-tabs-placeholder {
    display: none;
    height: 0;
}

.evolatex-shop-tabs {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.evolatex-shop-tabs::-webkit-scrollbar {
    display: none;
}

.evolatex-shop-tabs.is-sticky {
    position: fixed;
    top: var(--evo-header-height);
    left: 0;
    z-index: 930;
    display: flex;
    width: 100%;
    max-width: none;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 24px;
    box-sizing: border-box;
    justify-content: flex-start;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 5, 5, 0.96);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.admin-bar .evolatex-shop-tabs.is-sticky {
    top: calc(var(--evo-header-height) + 32px);
}

.evolatex-shop-tabs.is-sticky a {
    flex: 0 0 auto;
    white-space: nowrap;
}

.evolatex-shop-tabs-placeholder.is-active {
    display: block;
}

@media (max-width: 980px) {
    .admin-bar .evolatex-shop-tabs.is-sticky {
        top: calc(var(--evo-header-height) + 46px);
    }
}

@media (max-width: 640px) {
    .evolatex-shop-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .evolatex-shop-tabs a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .evolatex-shop-tabs.is-sticky {
        gap: 6px;
        padding: 8px 14px;
    }
}

/* Mobile catalog title: one line */

@media (max-width: 640px) {
    .evolatex-shop-hero h1 {
        max-width: none;
        margin-bottom: 24px;
        font-size: clamp(17px, 6.7vw, 34px);    
        line-height: 0.92;
        letter-spacing: 0.01em;
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
    }
}

/* Sticky catalog tabs */

.evolatex-shop-tabs-placeholder {
    display: none;
    height: 0;
}

.evolatex-shop-tabs {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.evolatex-shop-tabs::-webkit-scrollbar {
    display: none;
}

.evolatex-shop-tabs.is-sticky {
    position: fixed;
    top: var(--evo-header-height);
    left: 0;
    z-index: 930;
    display: flex;
    width: 100%;
    max-width: none;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 24px;
    box-sizing: border-box;
    justify-content: flex-start;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 5, 5, 0.96);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    cursor: grab;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.evolatex-shop-tabs.is-sticky.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.evolatex-shop-tabs.is-sticky.is-dragging a {
    pointer-events: none;
}

.admin-bar .evolatex-shop-tabs.is-sticky {
    top: calc(var(--evo-header-height) + 32px);
}

.evolatex-shop-tabs.is-sticky a {
    flex: 0 0 auto;
    white-space: nowrap;
}

.evolatex-shop-tabs-placeholder.is-active {
    display: block;
}

@media (max-width: 980px) {
    .admin-bar .evolatex-shop-tabs.is-sticky {
        top: calc(var(--evo-header-height) + 46px);
    }
}

@media (max-width: 640px) {
    .evolatex-shop-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .evolatex-shop-tabs a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .evolatex-shop-tabs.is-sticky {
        gap: 6px;
        padding: 8px 14px;
    }
}

/* Catalog SEO text */

.evolatex-catalog-seo {
    position: relative;
    padding: 76px 0 88px;
    margin-top: 30px;
    background:
        radial-gradient(
            circle at 12% 0,
            rgba(201, 0, 66, 0.055),
            transparent 32%
        ),
        var(--evo-paper);
    border-top: 1px solid rgba(7, 7, 7, 0.1);
}

.evolatex-catalog-seo__inner {
    display: grid;
    grid-template-columns: 220px minmax(0, 820px);
    gap: 58px;
    align-items: start;
}

.evolatex-catalog-seo .evolatex-kicker {
    position: sticky;
    top: calc(var(--evo-header-height) + 32px);
    margin: 4px 0 0;
    color: var(--evo-accent-deep);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.evolatex-catalog-seo__content {
    max-width: 820px;
    color: #3f3933;
}

.evolatex-catalog-seo__content > *:first-child {
    margin-top: 0;
}

.evolatex-catalog-seo__content h2 {
    max-width: 760px;
    margin: 0 0 24px;
    color: var(--evo-ink);
    font-family: var(--evo-font-display);
    font-size: clamp(34px, 3.6vw, 54px);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.evolatex-catalog-seo__content h3 {
    margin: 38px 0 18px;
    color: var(--evo-ink);
    font-family: var(--evo-font);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.evolatex-catalog-seo__content p {
    max-width: 760px;
    margin: 0 0 18px;
    color: #4e4740;
    font-size: 15px;
    line-height: 1.78;
}

.evolatex-catalog-seo__content p:first-of-type {
    max-width: 780px;
    color: #2f2a26;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.62;
}

.evolatex-catalog-seo__content ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 820px;
    padding: 0;
    margin: 22px 0 34px;
    list-style: none;
}

.evolatex-catalog-seo__content li {
    position: relative;
    min-height: 64px;
    padding: 18px 18px 18px 42px;
    border: 1px solid rgba(7, 7, 7, 0.1);
    background: rgba(255, 255, 255, 0.34);
    color: #4e4740;
    font-size: 14px;
    line-height: 1.55;
}

.evolatex-catalog-seo__content li::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 18px;
    width: 8px;
    height: 8px;
    background: var(--evo-accent-deep);
    border-radius: 50%;
}

.evolatex-catalog-seo__content li strong {
    color: var(--evo-ink);
    font-weight: 900;
}

.evolatex-catalog-seo__content a {
    color: var(--evo-accent-deep);
    font-weight: 800;
    text-decoration: none;
}

.evolatex-catalog-seo__content a:hover {
    color: var(--evo-ink);
}

.evolatex-catalog-seo__content h3:last-of-type + p {
    padding: 22px 24px;
    border-left: 4px solid var(--evo-accent-deep);
    background: rgba(255, 255, 255, 0.44);
}

@media (max-width: 980px) {
    .evolatex-catalog-seo {
        padding: 62px 0 72px;
    }

    .evolatex-catalog-seo__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .evolatex-catalog-seo .evolatex-kicker {
        position: static;
    }

    .evolatex-catalog-seo__content h2 {
        max-width: 760px;
    }
}

@media (max-width: 640px) {
    .evolatex-catalog-seo {
        padding: 48px 0 58px;
    }

    .evolatex-catalog-seo__content h2 {
        font-size: clamp(30px, 9.5vw, 42px);
    }

    .evolatex-catalog-seo__content p:first-of-type {
        font-size: 16px;
        line-height: 1.62;
    }

    .evolatex-catalog-seo__content p {
        font-size: 14px;
        line-height: 1.7;
    }

    .evolatex-catalog-seo__content ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .evolatex-catalog-seo__content li {
        min-height: 0;
        padding: 16px 16px 16px 38px;
    }

    .evolatex-catalog-seo__content li::before {
        top: 22px;
        left: 16px;
    }
}
/* Center the complete sticky row when it fits; auto margins collapse on overflow. */
.evolatex-shop-tabs.is-sticky > a:first-child {
    margin-left: auto;
}

.evolatex-shop-tabs.is-sticky > a:last-child {
    margin-right: auto;
}
