/* Product category shell: compact image-led industrial catalog. */

body.tax-product_cat {
    --topshop-category-bg: oklch(10.5% 0.026 246);
    --topshop-category-panel: oklch(14.5% 0.032 246);
    --topshop-category-ink: oklch(96% 0.008 232);
    --topshop-category-muted: oklch(75% 0.018 232);
    --topshop-category-line: color-mix(in oklch, var(--topshop-category-ink) 16%, transparent);
    background: var(--topshop-category-bg);
    color: var(--topshop-category-ink);
}

body.tax-product_cat .site-top-bar,
body.tax-product_cat .site-header-right,
body.tax-product_cat .site-header-right-link,
body.tax-product_cat .header-cart,
body.tax-product_cat .header-cart-contents,
body.tax-product_cat .breadcrumbs,
body.tax-product_cat #secondary {
    display: none !important;
}

body.tax-product_cat .site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    width: 100%;
    height: 72px !important;
    min-height: 72px !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 2rem !important;
    padding: 0 max(1rem, calc((100vw - 1180px) / 2)) !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--topshop-category-line) !important;
    background: color-mix(in oklch, var(--topshop-category-bg) 88%, transparent) !important;
    backdrop-filter: blur(18px) saturate(115%);
}

body.tax-product_cat .site-header > .site-container {
    grid-column: 1;
    grid-row: 1;
    position: static !important;
    width: max-content !important;
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.tax-product_cat .site-header > .sticky-wrapper {
    grid-column: 2;
    grid-row: 1;
    position: static !important;
    width: 100% !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.tax-product_cat .site-header-left,
body.tax-product_cat .site-header-branding {
    width: auto !important;
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.tax-product_cat .site-title,
body.tax-product_cat .site-title a {
    color: var(--topshop-category-ink) !important;
    font-family: var(--topshop-font-display);
    font-size: clamp(1.25rem, 1.7vw, 1.55rem) !important;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

body.tax-product_cat .site-description {
    display: none !important;
}

body.tax-product_cat .main-navigation,
body.tax-product_cat .main-navigation.header-stick.stuck,
body.tax-product_cat .main-navigation .site-container {
    min-height: 72px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.tax-product_cat .main-navigation .site-container {
    width: 100% !important;
    justify-content: flex-end !important;
    padding: 0 !important;
}

body.tax-product_cat .main-navigation a {
    min-height: 44px !important;
    padding-inline: 0.7rem !important;
    border: 0 !important;
    background: transparent !important;
    color: color-mix(in oklch, var(--topshop-category-ink) 78%, transparent) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

body.tax-product_cat .main-navigation a:hover,
body.tax-product_cat .main-navigation a:focus-visible,
body.tax-product_cat .main-navigation .current-menu-item > a {
    color: var(--topshop-category-ink) !important;
}

body.tax-product_cat .main-navigation .qtranxs-lang-menu > a {
    width: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
    border: 1px solid color-mix(in oklch, var(--topshop-color-accent) 56%, transparent) !important;
    background: color-mix(in oklch, var(--topshop-color-accent) 18%, transparent) !important;
    color: transparent !important;
    font-size: 0 !important;
}

body.tax-product_cat .main-navigation .qtranxs-lang-menu > a::before {
    color: var(--topshop-category-ink);
    font-size: 0.72rem;
    font-weight: 800;
}

body.tax-product_cat .main-navigation .qtranxs-lang-menu-en > a::before { content: "EN"; }
body.tax-product_cat .main-navigation .qtranxs-lang-menu-ru > a::before { content: "RU"; }
body.tax-product_cat .main-navigation .qtranxs-lang-menu-et > a::before { content: "ET"; }
body.tax-product_cat .main-navigation .qtranxs-lang-menu > a::after,
body.tax-product_cat .main-navigation .qtranxs-lang-menu > a img,
body.tax-product_cat .main-navigation .qtranxs-lang-menu > a span { display: none !important; }

body.tax-product_cat .main-navigation ul ul {
    top: calc(100% - 1px) !important;
    border: 1px solid var(--topshop-category-line) !important;
    background: color-mix(in oklch, var(--topshop-category-bg) 92%, black) !important;
    box-shadow: 0 8px 18px color-mix(in oklch, black 22%, transparent) !important;
}

body.tax-product_cat .site-content.site-container,
body.tax-product_cat .site-content.content-has-sidebar,
body.tax-product_cat #primary {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.topshop-category-shell {
    background: var(--topshop-category-bg);
}

.topshop-category-hero {
    min-height: 28rem;
    height: min(52dvh, 32rem);
    display: flex;
    align-items: center;
    padding: 3rem max(1rem, calc((100vw - 1180px) / 2));
    background:
        linear-gradient(90deg, color-mix(in oklch, var(--topshop-category-bg) 98%, transparent) 0%, color-mix(in oklch, var(--topshop-category-bg) 78%, transparent) 42%, color-mix(in oklch, var(--topshop-category-bg) 18%, transparent) 78%),
        linear-gradient(0deg, color-mix(in oklch, var(--topshop-category-bg) 88%, transparent), transparent 48%),
        var(--topshop-category-image) center / cover no-repeat;
}

/* The generated category series shares one 16:9 composition and focal axis. */
.topshop-category-hero {
    background-position: center center;
}

.topshop-category-copy {
    width: min(40rem, 64vw);
}

.topshop-category-kicker {
    margin: 0 0 1.1rem;
    color: var(--topshop-color-accent);
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
}

.topshop-category-copy h1 {
    max-width: 14ch;
    margin: 0;
    color: var(--topshop-category-ink);
    font-family: var(--topshop-font-display);
    font-size: 4.35rem;
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

body.term-tooded-metallist .topshop-category-copy h1 {
    max-width: 18ch;
    font-size: 4.1rem;
    overflow-wrap: normal;
    word-break: normal;
}

.topshop-category-lead {
    max-width: 38rem;
    margin: 1.15rem 0 0;
    color: color-mix(in oklch, var(--topshop-category-ink) 84%, transparent);
    font-size: 1rem;
    line-height: 1.55;
}

.topshop-category-area {
    margin: 1.35rem 0 0;
    padding-top: 0.8rem;
    border-top: 1px solid var(--topshop-category-line);
    color: var(--topshop-category-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.topshop-category-catalog {
    padding: clamp(2.5rem, 4vw, 4rem) max(1rem, calc((100vw - 1180px) / 2));
    border-top: 1px solid var(--topshop-category-line);
}

.topshop-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0;
    background: transparent;
}

.topshop-product-card {
    min-width: 0;
    min-height: 15rem;
    display: grid;
    grid-template-columns: minmax(11rem, 42%) minmax(0, 1fr);
    margin: 0;
    border: 1px solid var(--topshop-category-line);
    background: var(--topshop-category-panel);
    transition: background-color 180ms var(--topshop-ease-out);
}

.topshop-product-card:first-child {
    min-height: 21rem;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
}

.topshop-product-card:hover,
.topshop-product-card:focus-within {
    background: color-mix(in oklch, var(--topshop-category-panel) 82%, var(--topshop-product-ink, white));
}

.topshop-product-card-media {
    position: relative;
    width: 100%;
    min-height: 100%;
    display: block;
    overflow: hidden;
    border-right: 1px solid var(--topshop-category-line);
    color: var(--topshop-category-ink);
    text-decoration: none;
}

.topshop-product-card-media picture {
    width: 100%;
    height: 100%;
    display: block;
}

.topshop-product-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: filter 180ms ease;
}

.topshop-product-card-media:hover img,
.topshop-product-card-media:focus-visible img {
    filter: brightness(1.08);
}

.topshop-product-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    background: linear-gradient(135deg, color-mix(in oklch, var(--topshop-category-panel) 72%, #263844), var(--topshop-category-bg));
}

.topshop-product-placeholder::after {
    content: "";
    position: absolute;
    right: 14%;
    bottom: 0;
    width: 28%;
    height: 76%;
    border: 1px solid color-mix(in oklch, var(--topshop-category-ink) 18%, transparent);
    border-bottom: 0;
}

.topshop-product-placeholder > small {
    position: relative;
    z-index: 1;
}

.topshop-product-placeholder > small {
    color: color-mix(in oklch, var(--topshop-category-ink) 66%, transparent);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.topshop-product-card-copy {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
}

.topshop-product-card:first-child .topshop-product-card-copy {
    justify-content: center;
    padding: clamp(2rem, 4vw, 3.5rem);
}

.topshop-product-card h3 {
    margin: 0;
    color: var(--topshop-category-ink);
    font-family: var(--topshop-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.topshop-product-card:first-child h3 {
    max-width: 18ch;
    font-size: 2.25rem;
    line-height: 1.08;
}

.topshop-product-card h3 a {
    color: inherit;
    text-decoration: none;
}

.topshop-product-card-price {
    min-height: 1.8rem;
    margin-top: 1rem;
    color: var(--topshop-category-ink);
    font-size: 0.95rem;
    font-weight: 800;
}

.topshop-product-card-price del {
    margin-right: 0.4rem;
    color: color-mix(in oklch, var(--topshop-category-muted) 70%, transparent);
    font-weight: 600;
}

.topshop-product-card-price ins {
    background: transparent;
    color: var(--topshop-color-accent);
    text-decoration: none;
}

.topshop-product-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.7rem 0 1.25rem;
    color: var(--topshop-category-muted);
    font-size: 0.83rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.topshop-product-card-link {
    width: fit-content;
    margin-top: auto;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid color-mix(in oklch, var(--topshop-color-accent) 62%, transparent);
    color: var(--topshop-category-ink);
    font-size: 0.74rem;
    font-weight: 800;
    text-decoration: none;
}

.topshop-product-card-link:hover,
.topshop-product-card-link:focus-visible {
    border-color: var(--topshop-color-accent);
    color: var(--topshop-color-accent);
}

.topshop-category-catalog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-top: 2rem;
    border-top: 1px solid var(--topshop-category-line);
}

.topshop-category-catalog-footer > p {
    max-width: 46rem;
    margin: 0;
    color: var(--topshop-category-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.topshop-category-catalog-footer .topshop-category-actions {
    flex: 0 0 auto;
    margin-top: 0;
}

.topshop-category-actions,
.topshop-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.topshop-category-actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.15rem;
    border: 1px solid var(--topshop-category-line);
    color: var(--topshop-category-ink);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.topshop-category-actions .topshop-category-primary {
    border-color: var(--topshop-color-accent);
    background: var(--topshop-color-accent);
}

.topshop-category-actions a:hover,
.topshop-category-actions a:focus-visible {
    border-color: color-mix(in oklch, var(--topshop-color-accent) 72%, white);
    color: white;
    transform: none;
}

body.tax-product_cat .site-footer {
    border-top: 1px solid var(--topshop-category-line);
    background: color-mix(in oklch, var(--topshop-category-bg) 94%, black);
}

@media (max-width: 860px) {
    body.tax-product_cat .site-header {
        grid-template-columns: 1fr auto !important;
        padding-inline: 1rem !important;
    }

    .topshop-category-hero {
        min-height: 26rem;
        height: auto;
        padding-block: 3rem;
        background-position: 60% center;
    }

    .topshop-category-copy {
        width: 100%;
    }

    .topshop-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topshop-product-card:not(:first-child) {
        display: flex;
        flex-direction: column;
    }

    .topshop-product-card:not(:first-child) .topshop-product-card-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
        border-right: 0;
        border-bottom: 1px solid var(--topshop-category-line);
    }

    .topshop-category-catalog-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    body.tax-product_cat .site-header {
        height: 64px !important;
        min-height: 64px !important;
    }

    body.tax-product_cat .site-header > .site-container,
    body.tax-product_cat .site-header > .sticky-wrapper,
    body.tax-product_cat .site-header-left,
    body.tax-product_cat .site-header-branding,
    body.tax-product_cat .main-navigation,
    body.tax-product_cat .main-navigation .site-container {
        min-height: 64px !important;
    }

    body.tax-product_cat .site-header > .sticky-wrapper,
    body.tax-product_cat .main-navigation,
    body.tax-product_cat .main-navigation .site-container {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
    }

    body.tax-product_cat .main-navigation .menu-toggle,
    body.tax-product_cat .main-navigation button.menu-toggle {
        width: 68px !important;
        min-width: 68px !important;
        min-height: 50px !important;
        margin-left: auto !important;
        padding: 0 0.5rem !important;
        border: 1px solid var(--topshop-category-line) !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--topshop-category-ink) !important;
        font-size: 0.72rem !important;
        font-weight: 800 !important;
    }

    body.tax-product_cat .topshop-category-hero,
    body.term-garaaziuksed .topshop-category-hero {
        background-position: 69% center;
    }

    .topshop-category-copy h1 {
        font-size: 3.45rem;
    }

    body.term-tehnoruumiuksed .topshop-category-copy h1 {
        max-width: 100%;
        font-size: 3rem;
    }

    .topshop-category-area {
        line-height: 1.5;
    }

    .topshop-category-catalog {
        padding-block: 2.5rem;
    }

    .topshop-product-grid {
        grid-template-columns: 1fr;
    }

    .topshop-product-card,
    .topshop-product-card:first-child {
        min-height: 0;
        grid-column: auto;
        display: flex;
        flex-direction: column;
    }

    .topshop-product-card .topshop-product-card-media,
    .topshop-product-card:first-child .topshop-product-card-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
        border-right: 0;
        border-bottom: 1px solid var(--topshop-category-line);
    }

    .topshop-product-card-copy,
    .topshop-product-card:first-child .topshop-product-card-copy {
        min-height: 13rem;
        justify-content: flex-start;
        padding: 1.5rem;
    }

    .topshop-product-card:first-child h3 {
        font-size: 1.7rem;
    }

    .topshop-category-catalog-footer .topshop-category-actions {
        width: 100%;
    }

    .topshop-category-catalog-footer .topshop-category-actions a {
        width: 100%;
    }
}
