/* VIOX WooCommerce archive — image-led category hero, accordion navigation
 * and a centered three-column product catalog. */
.viox-shop-archive {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 112px !important;
    background: #fff;
}

.viox-shop-archive > .wp-block-shortcode {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.viox-shop-hero {
    position: relative;
    display: grid;
    min-height: 430px;
    overflow: hidden;
    place-items: center;
    background: var(--viox-ink);
    color: #fff;
    isolation: isolate;
}

.viox-shop-hero__media,
.viox-shop-hero__overlay {
    position: absolute;
    inset: 0;
}

.viox-shop-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.viox-shop-hero__overlay {
    z-index: 1;
    background: rgba(16, 19, 24, .56);
}

.viox-shop-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 88px 0 80px;
    text-align: center;
}

.viox-shop-hero h1 {
    max-width: 960px;
    margin: 0;
    color: #fff !important;
    font-family: var(--viox-font) !important;
    font-size: clamp(48px, 5vw, 68px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.06;
    text-wrap: balance;
}

.viox-shop-hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 0 !important;
    color: rgba(255, 255, 255, .82) !important;
    font-family: var(--viox-font) !important;
    font-size: 14px !important;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
}

.viox-shop-hero__breadcrumb a {
    color: #fff !important;
    text-decoration: none;
}

.viox-shop-hero__breadcrumb a:hover,
.viox-shop-hero__breadcrumb a:focus-visible {
    color: #fff !important;
    text-decoration: underline;
    text-decoration-color: var(--viox-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.viox-shop-breadcrumb__separator {
    color: rgba(255, 255, 255, .62);
    font-size: 20px;
    line-height: 1;
}

.viox-shop-archive > .viox-shop-layout {
    width: min(var(--viox-container), calc(100% - (2 * var(--viox-gutter-desktop)))) !important;
    max-width: var(--viox-container) !important;
    margin: 80px auto 0 !important;
}

.viox-shop-layout {
    display: grid !important;
    grid-template-columns: minmax(280px, 25%) minmax(0, 75%);
    gap: 40px;
    align-items: start;
}

.viox-shop-layout > .wp-block-column {
    min-width: 0;
    margin: 0 !important;
    flex-basis: auto !important;
}

.viox-shop-sidebar {
    position: sticky;
    top: 96px;
    align-self: start !important;
    overflow: hidden;
    height: fit-content !important;
    min-height: 0 !important;
    padding: 0 0 16px;
    border: 1px solid var(--viox-border);
    border-radius: var(--viox-radius-card);
    background: #fff;
    box-shadow: none;
}

.viox-shop-sidebar > .wp-block-heading {
    position: relative;
    margin: 0 0 12px !important;
    padding: 22px 32px 34px !important;
    padding-left: 0 !important;
    border: 0 !important;
    border-radius: var(--viox-radius-card) var(--viox-radius-card) 0 0;
    background: linear-gradient(120deg, #a60f15 0%, var(--viox-red) 56%, #ee3c43 100%);
    color: #fff !important;
    font-family: var(--viox-font) !important;
  font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -.025em !important;
    line-height: 1.2 !important;
    text-indent: 32px;
    text-transform: none !important;
}

/* Keep the archive sidebar title compact when the global site H2 scale is active. */
.viox-shop-archive .viox-shop-sidebar > h2.wp-block-heading {
  font-size: 17px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em !important;
}

.viox-shop-sidebar > .wp-block-heading::after {
    position: absolute;
    bottom: 16px;
    left: 32px;
    width: 54px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    content: "";
}

.viox-shop-sidebar-toggle {
    display: none;
}

.viox-shop-category-list {
    margin: 0 !important;
    padding: 0 16px;
}

.viox-shop-category-list .wc-block-product-categories-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.viox-shop-category-list .wc-block-product-categories-list-item {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item {
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid var(--viox-border);
    border-radius: var(--viox-radius-card);
    background: var(--viox-cloud);
    transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item:first-child {
    margin-top: 0;
}

.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item:hover,
.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item:focus-within,
.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item.is-current-branch,
.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item.is-open {
    border-color: rgba(215, 25, 32, .48);
    background: #ffe8e9;
    box-shadow: none;
}

.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item:hover::before,
.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item:focus-within::before,
.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item.is-current-branch::before,
.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item.is-open::before {
    position: absolute;
    top: 10px;
    left: 0;
    width: 4px;
    height: 34px;
    border-radius: 0 4px 4px 0;
    background: var(--viox-red);
    content: "";
}

.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item:hover > a,
.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item:focus-within > a,
.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item.is-current-branch > a,
.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item.is-open > a {
    color: var(--viox-red-hover);
}

.viox-shop-category-list .wc-block-product-categories-list-item > a {
    box-sizing: border-box;
    display: flex;
    min-height: 48px;
    align-items: center;
    color: var(--viox-ink);
    font-family: var(--viox-font) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
}

.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item > a {
    min-height: 54px;
    padding: 9px 54px 9px 16px;
    font-size: 15px;
    font-weight: 700;
}

.viox-shop-category-list .wc-block-product-categories-list-item > a::before,
.viox-shop-category-list .wc-block-product-categories-list-item:has(> ul)::after {
    display: none !important;
}

.viox-shop-category-list .wc-block-product-categories-list-item > a:hover,
.viox-shop-category-list .wc-block-product-categories-list-item > a:focus-visible,
.viox-shop-category-list .wc-block-product-categories-list-item > a.is-current {
    color: var(--viox-red);
}

.viox-shop-category-toggle {
    position: absolute;
    top: 5px;
    right: 7px;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 14px, rgba(215, 25, 32, .22) 14.5px 15.5px, transparent 16px);
    color: var(--viox-red);
    cursor: pointer;
}

.viox-shop-category-toggle::before,
.viox-shop-category-toggle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
    transition: transform .22s ease;
}

.viox-shop-category-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.is-open > .viox-shop-category-toggle {
    background: radial-gradient(circle, var(--viox-red) 0 15px, transparent 15.5px);
    color: #fff;
}

.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item:hover > .viox-shop-category-toggle,
.viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item:focus-within > .viox-shop-category-toggle {
    background: radial-gradient(circle, var(--viox-red) 0 15px, transparent 15.5px);
    color: #fff;
}

.is-open > .viox-shop-category-toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.viox-shop-category-list .wc-block-product-categories-list-item > ul {
    display: none;
    margin: 0 10px 8px;
    padding: 0 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.viox-shop-category-list .wc-block-product-categories-list-item.is-open > ul {
    display: block;
}

.viox-shop-category-list .wc-block-product-categories-list-item > ul .wc-block-product-categories-list-item > a {
    min-height: 44px;
    padding: 6px 10px;
    color: var(--viox-text);
    font-size: 13px;
    font-weight: 500;
}

.viox-shop-category-list .wc-block-product-categories-list-item > ul .wc-block-product-categories-list-item > a:hover,
.viox-shop-category-list .wc-block-product-categories-list-item > ul .wc-block-product-categories-list-item > a:focus-visible,
.viox-shop-category-list .wc-block-product-categories-list-item > ul .wc-block-product-categories-list-item > a.is-current {
    border-radius: 8px;
    background: #f9dfe0;
    color: var(--viox-red-hover);
    font-weight: 700;
}

.viox-shop-category-list .wc-block-product-categories-list-item > ul .wc-block-product-categories-list-item > a::before {
    display: block !important;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-right: 10px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    background: transparent;
    content: "";
    transform: rotate(-45deg);
}

.viox-shop-category-list .wc-block-product-categories-list-item > ul .wc-block-product-categories-list-item > ul {
    display: block;
    margin: 0 0 6px 20px;
    padding: 0;
    background: transparent;
}

.viox-shop-results,
.viox-shop-product-collection {
    min-width: 0;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

:is(.viox-shop-results, .viox-related-products) .wc-block-product-template {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
    margin: 0;
    padding: 0;
}

:is(.viox-shop-results, .viox-related-products) .wc-block-product-template > li {
    --viox-product-image-scale: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin: 0 !important;
    padding: 16px 16px 22px;
    border: 1px solid var(--viox-border);
    border-radius: var(--viox-radius-card);
    background: #fff;
    box-shadow: none;
    list-style: none;
    text-align: center;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

/* This source image contains unusually generous baked-in whitespace. */
:is(.viox-shop-results, .viox-related-products) .wc-block-product-template > li.post-22599 {
    --viox-product-image-scale: 1.55;
}

:is(.viox-shop-results, .viox-related-products) .wc-block-product-template > li:hover,
:is(.viox-shop-results, .viox-related-products) .wc-block-product-template > li:focus-within {
    border-color: rgba(215, 25, 32, .34);
    box-shadow: 0 16px 34px rgba(27, 32, 39, .10);
    transform: translateY(-3px);
}

:is(.viox-shop-results, .viox-related-products) .wc-block-components-product-image,
:is(.viox-shop-results, .viox-related-products) .wc-block-grid__product-image,
:is(.viox-shop-results, .viox-related-products) .wc-block-product-image {
    position: relative;
    display: block;
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: var(--viox-radius-card);
    background: var(--viox-cloud);
}

:is(.viox-shop-results, .viox-related-products) .wc-block-components-product-image img,
:is(.viox-shop-results, .viox-related-products) .wc-block-grid__product-image img,
:is(.viox-shop-results, .viox-related-products) .wc-block-product-image img,
:is(.viox-shop-results, .viox-related-products) .wc-block-product-template img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: contain;
    background: var(--viox-cloud);
    transform: scale(var(--viox-product-image-scale));
    transition: transform .36s cubic-bezier(.2, .8, .2, 1);
}

:is(.viox-shop-results, .viox-related-products) .wc-block-product-template > li:hover img {
    transform: scale(calc(var(--viox-product-image-scale) * 1.035));
}

.viox-shop-category-list a:focus-visible,
.viox-shop-category-toggle:focus-visible,
.viox-shop-sidebar-toggle:focus-visible,
:is(.viox-shop-results, .viox-related-products) .wc-block-product-template a:focus-visible,
.viox-shop-results .wp-block-query-pagination a:focus-visible {
    outline: 3px solid var(--viox-red);
    outline-offset: 3px;
}

.viox-shop-sidebar-toggle:focus-visible {
    outline-color: var(--viox-ink);
}

:is(.viox-shop-results, .viox-related-products) .wp-block-post-title,
:is(.viox-shop-results, .viox-related-products) .wp-block-post-title a,
:is(.viox-shop-results, .viox-related-products) .wc-block-components-product-title,
:is(.viox-shop-results, .viox-related-products) .wc-block-components-product-title a {
    margin: 0;
    color: var(--viox-ink);
    font-family: var(--viox-font) !important;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.5 !important;
    text-align: center;
    text-decoration: none;
}

:is(.viox-shop-results, .viox-related-products) .wp-block-post-title a:hover,
:is(.viox-shop-results, .viox-related-products) .wp-block-post-title a:focus-visible,
:is(.viox-shop-results, .viox-related-products) .wc-block-components-product-title a:hover,
:is(.viox-shop-results, .viox-related-products) .wc-block-components-product-title a:focus-visible {
    color: var(--viox-red);
}

/* Product names are card labels, not section-level H2 headings. */
.viox-shop-archive :is(.viox-shop-results, .viox-related-products) h2.wp-block-post-title,
.viox-product-template .viox-related-products h2.wp-block-post-title {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.viox-related-products .wc-block-product-template {
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 48px !important;
}

.viox-related-products .wc-block-product-template > li {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
}

.viox-shop-results .wp-block-query-pagination {
    display: flex;
    gap: 8px;
    margin: 48px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--viox-border);
    font-size: 13px;
}

.viox-shop-results .wp-block-query-pagination a,
.viox-shop-results .wp-block-query-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--viox-border);
    border-radius: 6px;
    color: var(--viox-ink);
    text-decoration: none;
}

.viox-shop-results .wp-block-query-pagination .current,
.viox-shop-results .wp-block-query-pagination a:hover,
.viox-shop-results .wp-block-query-pagination a:focus-visible {
    border-color: var(--viox-red);
    background: var(--viox-red);
    color: #fff;
}

@media screen and (max-width: 1020px) {
    .viox-shop-layout {
        grid-template-columns: minmax(240px, 30%) minmax(0, 70%);
        gap: 28px;
    }

    :is(.viox-shop-results, .viox-related-products) .wc-block-product-template {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px;
    }
}

@media screen and (max-width: 720px) {
    .viox-shop-archive {
        padding-bottom: 72px !important;
    }

    .viox-shop-hero {
        min-height: 330px;
    }

    .viox-shop-hero__content {
        width: calc(100% - (2 * var(--viox-gutter-mobile)));
        padding: 68px 0 60px;
    }

    .viox-shop-hero h1 {
        font-size: 40px;
        line-height: 1.1;
    }

    .viox-shop-hero__breadcrumb {
        gap: 7px;
        margin-top: 20px !important;
        font-size: 12px !important;
    }

    .viox-shop-archive > .viox-shop-layout {
        width: calc(100% - (2 * var(--viox-gutter-mobile))) !important;
        margin-top: 56px !important;
    }

    .viox-shop-layout {
        display: flex !important;
        flex-direction: column;
        gap: 40px;
    }

    .viox-shop-sidebar {
        position: static;
        width: 100%;
        padding-bottom: 0;
    }

    .viox-shop-sidebar > .wp-block-heading {
        display: none;
    }

    .viox-shop-sidebar-toggle {
        position: relative;
        display: flex;
        width: calc(100% - 24px);
        min-height: 54px;
        align-items: center;
        justify-content: space-between;
        margin: 12px;
        padding: 14px 18px;
        border: 0;
        border-radius: var(--viox-radius-card);
        background: linear-gradient(120deg, #a60f15 0%, var(--viox-red) 56%, #ee3c43 100%);
        color: #fff;
        font-family: var(--viox-font) !important;
        font-size: 17px;
        font-weight: 700;
        letter-spacing: -.02em;
        line-height: 1.25;
        text-align: left;
    }

    .viox-shop-sidebar-toggle::before,
    .viox-shop-sidebar-toggle::after {
        position: absolute;
        top: 50%;
        right: 18px;
        width: 10px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        content: "";
        transform: translateY(-50%);
        transition: transform .22s ease;
    }

    .viox-shop-sidebar-toggle::after {
        transform: translateY(-50%) rotate(90deg);
    }

    .viox-shop-sidebar.is-mobile-open .viox-shop-sidebar-toggle::after {
        transform: translateY(-50%) rotate(0deg);
    }

    .viox-shop-sidebar .viox-shop-category-list {
        display: none;
        padding: 16px;
    }

    .viox-shop-sidebar.is-mobile-open .viox-shop-category-list {
        display: block;
    }

    .viox-shop-results {
        width: 100%;
    }

    :is(.viox-shop-results, .viox-related-products) .wc-block-product-template {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .viox-shop-results .wp-block-query-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    body:has(.viox-shop-layout) .viox-whatsapp {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .viox-shop-category-list > .wc-block-product-categories-list > .wc-block-product-categories-list-item,
    .viox-shop-category-toggle::after,
    .viox-shop-sidebar-toggle::after,
    :is(.viox-shop-results, .viox-related-products) .wc-block-product-template > li,
    :is(.viox-shop-results, .viox-related-products) .wc-block-product-template img {
        transition: none;
    }
}
