
/* =========================================================
   VRUXON HERITAGE
   Luxury catalogue / fashion-house layout
========================================================= */

:root {
    --heritage-black: #111;
    --heritage-grey: #707070;
    --heritage-light: #f6f6f6;
    --heritage-line: #e5e5e5;
    --heritage-white: #fff;

    /* Layout system – single source of truth */
    --heritage-side-pad: 4.2%;
    --heritage-header-height: 72px;
    --heritage-header-z: 100000;
    --heritage-drawer-z: 2147483000;
}

/* ---------- PAGE ---------- */

.heritage-page {
    background: #fff;
    color: var(--heritage-black);
    min-height: 100vh;
    font-family: FuturaPT, Arial, Helvetica, sans-serif;
    padding-top: 0;
}

/* ---------- BREADCRUMB ---------- */

.heritage-breadcrumb {
    padding: 28px var(--heritage-side-pad) 19px;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0;
    color: #111;
}

.heritage-breadcrumb a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.heritage-breadcrumb span {
    margin: 0 5px;
    color: #777;
}

/* ---------- CATEGORY NAV ---------- */

.heritage-category-wrap {
    border-bottom: 1px solid #e6e6e6;
    overflow: hidden;
    background: #fff;
}

.heritage-category-nav {
    display: flex;
    align-items: center;
    gap: 27px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 var(--heritage-side-pad) 17px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.heritage-category-nav::-webkit-scrollbar {
    display: none;
}

.heritage-category-link {
    position: relative;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    color: #777;
    text-decoration: none;
    font-family: FuturaPT, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.heritage-category-link:hover,
.heritage-category-link.active {
    color: #111;
}

.heritage-category-link.active {
    font-weight: 500;
}

/* ---------- TOOLBAR ---------- */

.heritage-toolbar {
    min-height: 47px;
    height: 47px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 var(--heritage-side-pad);
    margin: 0;
    background: #fff;
    border-bottom: 0;
    position: sticky;
    top: var(--heritage-sticky-top, var(--heritage-header-height));
    z-index: 9998;
}

.heritage-count-sort {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: FuturaPT, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.heritage-count {
    color: #111;
}

.heritage-sort-button {
    padding: 0;
    margin: 0;
    color: #111;
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ---------- FILTER BUTTON ---------- */

.heritage-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-family: FuturaPT, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
}

.heritage-filter-text {
    position: relative;
    padding-bottom: 2px;
}

.heritage-filter-text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #111;
}

.heritage-filter-count {
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5e5e5;
    color: #111;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
}

/* ---------- FILTER ICON — SAME AS LEHENGA.PHP ---------- */

.heritage-filter-button .filter-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    display: block;
}
/* ---------- ACTIVE FILTERS ---------- */

.heritage-active-filters {
    min-height: 57px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px var(--heritage-side-pad);
    margin: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.heritage-active-filter-count {
    flex: 0 0 auto;
    color: #777;
    font-family: FuturaPT, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.heritage-active-filter-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    flex-wrap: wrap;
    min-width: 0;
}

.heritage-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 27px;
    height: 27px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid #dedede;
    background: #fff;
    color: #111;
    font-family: FuturaPT, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.heritage-active-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    margin: 0;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 12px;
    text-decoration: none;
}

.heritage-clear-all-filters {
    flex: 0 0 auto;
    color: #111;
    font-family: FuturaPT, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

/* ---------- GRID ---------- */

.heritage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 0;
}

.heritage-card {
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.heritage-card:nth-child(4n) {
    border-right: 0;
}

.heritage-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.heritage-image {
    position: relative;
    background: #fafafa;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.heritage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .45s ease, transform .7s cubic-bezier(.2,.6,.2,1);
}

.heritage-image .heritage-hover-image {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.heritage-card:hover .heritage-main-image {
    transform: scale(1.018);
}

.heritage-card:hover .heritage-hover-image {
    opacity: 1;
}

.heritage-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.heritage-card-info {
    padding: 13px 12px 22px;
}

.heritage-product-name {
    margin: 0;
    font-family: FuturaPT, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    color: #111;
}

.heritage-product-price {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.2;
    color: #333;
}

/* ---------- STOCK STATUS — SAME AS LEHENGA.PHP ---------- */

.heritage-product-stock {
    margin-top: 6px;
    color: #8d1f1f;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
}

.heritage-product-color {
    display: none !important;

    margin-top: 4px;
    font-size: 10px;
    line-height: 1.2;
    color: #777;
}

.heritage-swatch-row {
    display: none !important;

    display: flex;
    gap: 6px;
    margin-top: 9px;
}

.heritage-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #bbb;
}

/* ---------- EMPTY ---------- */

.heritage-empty {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.heritage-empty-inner {
    max-width: 420px;
}

.heritage-empty-title {
    font-size: 17px;
    margin-bottom: 10px;
}

.heritage-empty-copy {
    color: #777;
    font-size: 13px;
}

/* ---------- LOAD ALL ---------- */

.heritage-load-all-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px 40px;
    background: #fff;
}

.heritage-load-all-btn {
    width: 110px;
    height: 48px;
    border: 1px solid #111;
    border-radius: 2px;
    background: #111;
    color: #fff;
    font-family: FuturaPT, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .02em;
    cursor: pointer;
    transition: .3s ease;
}

.heritage-load-all-btn:hover {
    background: #fff;
    color: #111;
}

/* ---------- PAGINATION ---------- */

.heritage-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 50px 20px 70px;
}

.heritage-page-link {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 12px;
}

.heritage-page-link:hover,
.heritage-page-link.active {
    border-color: #111;
}

.heritage-page-arrow {
    font-size: 16px;
}

/* =========================================================
   FILTER DRAWER
========================================================= */

.heritage-drawer-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,.32);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: var(--heritage-drawer-z) !important;
}

.heritage-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.heritage-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(420px, 100vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    background: #fff !important;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.77,0,.18,1);
    z-index: calc(var(--heritage-drawer-z) + 1) !important;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 34px 30px !important;
    font-family: FuturaPT, Inter, "Segoe UI Symbol", "Noto Sans", Arial, sans-serif;
    color: #111;
}

.heritage-drawer.open {
    transform: translateX(0);
}

.heritage-drawer-header {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin: 0 0 34px;
    border-bottom: 0;
}

.heritage-drawer-title {
    font-size: 15px;
    font-weight: 300;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.heritage-drawer-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    color: #111;
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.heritage-filter-form {
    padding: 0;
}

.heritage-filter-section {
    padding: 0 0 34px;
    margin: 0 0 34px;
    border-bottom: 1px solid #efefef;
}

.heritage-filter-section:last-of-type {
    margin-bottom: 0;
    border-bottom: 0;
}

.heritage-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .30em;
    text-transform: uppercase;
    color: #888;
}

.heritage-filter-options {
    display: grid;
    gap: 0;
}

.heritage-filter-option {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    cursor: pointer;
    font-family: Inter, "Segoe UI Symbol", "Noto Sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0;
    color: #222;
}

.heritage-filter-option:last-child {
    margin-bottom: 0;
}

.heritage-filter-option input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    accent-color: #111;
}

.heritage-filter-parent {
    margin: 0;
}

.heritage-filter-parent-option {
    margin-bottom: 10px;
}

.heritage-filter-children {
    margin: 0 0 15px 30px;
    padding-left: 14px;
    border-left: 1px solid #e5e5e5;
}

.heritage-filter-child {
    margin-bottom: 11px;
    font-size: 13px;
}

.heritage-filter-child:last-child {
    margin-bottom: 0;
}

.heritage-price-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.heritage-price-field {
    position: relative;
}

.heritage-price-field span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #777;
    pointer-events: none;
}

.heritage-price-field input {
    width: 100%;
    height: 43px;
    border: 1px solid #ccc;
    padding: 0 10px 0 26px;
    font-family: Inter, "Segoe UI Symbol", "Noto Sans", sans-serif;
    font-size: 12px;
    font-weight: 300;
    box-sizing: border-box;
}

.heritage-drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 24px 0 8px;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 2;
}

.heritage-action-button {
    min-height: 48px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-family: Inter, "Segoe UI Symbol", "Noto Sans", sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.heritage-action-button.primary {
    background: #111;
    color: #fff;
}

/* =========================================================
   SORT DRAWER
========================================================= */

.heritage-sort-menu {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.28);
    opacity: 0;
    visibility: hidden;
    z-index: calc(var(--heritage-drawer-z) + 2) !important;
    transition: opacity .25s ease, visibility .25s ease;
}

.heritage-sort-menu.open {
    opacity: 1;
    visibility: visible;
}

.heritage-sort-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(390px, 100vw);
    height: 100%;
    min-height: 100%;
    max-height: none;
    background: #fff;
    padding: 0 0 40px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: calc(var(--heritage-drawer-z) + 3) !important;
    font-family: FuturaPT, Inter, "Segoe UI Symbol", "Noto Sans", Arial, sans-serif;
}

.heritage-sort-menu.open .heritage-sort-panel {
    transform: translateX(0);
}

.heritage-sort-panel h2 {
    margin: 0 0 24px;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: .08em;
}

.heritage-sort-panel > .heritage-sort-option:first-of-type {
    margin-top: 8px;
}

.heritage-sort-option {
    box-sizing: border-box;
    margin-left: 30px;
    margin-right: 30px;
    width: calc(100% - 60px);
}

.heritage-sort-option {
    display: block;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid #efefef;
    background: transparent;
    text-align: left;
    font-family: Inter, "Segoe UI Symbol", "Noto Sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    color: #222;
    text-decoration: none;
    cursor: pointer;
}

.heritage-sort-option.active {
    font-weight: 400;
    color: #111;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .heritage-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

.heritage-card {
    border-right: 1px solid #fff;
}

    .heritage-card:nth-child(3n) {
        border-right: 0;
    }
}

@media (max-width: 700px) {
    :root {
        --heritage-header-height: 64px;
        --heritage-side-pad: 16px;
    }

    .heritage-breadcrumb {
        padding: 18px 16px 13px;
        font-size: 9px;
    }

    .heritage-category-nav {
        gap: 20px;
        padding: 0 16px 13px;
    }

    .heritage-category-link {
        font-size: 11px;
    }

    .heritage-toolbar {
        height: auto;
        min-height: 45px;
        padding: 11px 16px;
    }

    .heritage-count-sort,
    .heritage-sort-button,
    .heritage-filter-button {
        font-size: 10px;
    }

    /* Keep the mobile toolbar compact and aligned like desktop. */
    .heritage-count-sort {
        min-width: 0;
        flex: 1 1 auto;
        gap: 3px;
        letter-spacing: 0;
        white-space: nowrap;
        overflow: hidden;
    }

    .heritage-count {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .heritage-sort-button {
        flex: 0 0 auto;
    }

    .heritage-filter-button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /*
     * IMPORTANT:
     * Active filters stay in one horizontal flow on mobile, exactly
     * like desktop. The previous CSS forced the count and filter list
     * onto separate full-width rows, which caused the mobile layout
     * to look different from desktop.
     */
    .heritage-active-filters {
        min-height: 57px;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 10px;
        padding: 10px 16px;
    }

    .heritage-active-filter-count {
        width: auto;
        flex: 0 0 auto;
        font-size: 10px;
        line-height: 1.2;
    }

    .heritage-active-filter-list {
        width: auto;
        flex: 0 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .heritage-clear-all-filters {
        flex: 0 0 auto;
        font-size: 10px;
    }

    .heritage-active-filter {
        max-width: 100%;
    }

    .heritage-active-filter > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

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

.heritage-card {
    border-right: 1px solid #fff;
}

    .heritage-card:nth-child(2n) {
        border-right: 0;
    }

    .heritage-card-info {
        padding: 10px 9px 17px;
    }

    .heritage-product-name {
        font-size: 11px;
    }

    .heritage-product-price {
        font-size: 11px;
        margin-top: 5px;
    }

    .heritage-product-color {
        font-size: 10px;
    }

    .heritage-load-all-wrapper {
        padding: 40px 20px 55px;
    }

    .heritage-load-all-btn {
        width: 110px;
        height: 46px;
        font-size: 10px;
    }

    /* Full-screen filter drawer */
    .heritage-drawer {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: none !important;
        border-radius: 0;
        padding: calc(20px + env(safe-area-inset-top))
                 calc(20px + env(safe-area-inset-right))
                 calc(20px + env(safe-area-inset-bottom))
                 calc(20px + env(safe-area-inset-left)) !important;
    }

    /* Full-screen sort drawer */
    .heritage-sort-menu {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
    }

    .heritage-sort-panel {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 100%;
        min-height: 100%;
        max-height: none;
        padding: calc(20px + env(safe-area-inset-top))
                 calc(20px + env(safe-area-inset-right))
                 calc(34px + env(safe-area-inset-bottom))
                 calc(20px + env(safe-area-inset-left));
    }

    .heritage-drawer-header {
        min-height: 0;
        padding: 0;
        margin-bottom: 34px;
    }

    .heritage-filter-form {
        padding: 0;
    }

    .heritage-filter-section {
        padding: 0 0 25px;
        margin-bottom: 25px;
    }

    .heritage-filter-heading {
        margin-bottom: 16px;
        font-size: 10px;
        letter-spacing: .26em;
    }

    .heritage-filter-option {
        gap: 12px;
        margin-bottom: 13px;
        font-size: 13px;
    }

    .heritage-sort-option {
        margin-left: 22px;
        margin-right: 22px;
        width: calc(100% - 44px);
        padding: 15px 0;
        font-size: 13px;
    }

    .heritage-drawer-actions {
        padding: 20px 0 4px;
    }
}

/* =========================================================
   HEADER LAYER
========================================================= */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: var(--heritage-header-height);
    height: var(--heritage-header-height);
    z-index: var(--heritage-header-z);
    display: block;
    visibility: visible;
    opacity: 1;
    background: #000;
    color: #fff;
    isolation: isolate;
}

#header > header,
#header header,
#header .site-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    min-height: var(--heritage-header-height);
    height: var(--heritage-header-height);
    z-index: inherit;
    display: block;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: #000;
    color: #fff;
    mix-blend-mode: normal;
}

#header a,
#header button,
#header span,
#header p,
#header li,
#header label,
#header .header-link,
#header .menu-link,
#header .search-link,
#header .profile-link,
#header .bag-link {
    color: #fff;
    opacity: 1;
    visibility: visible;
}

#header svg {
    color: #fff;
    opacity: 1;
    visibility: visible;
}

#header svg path,
#header svg line,
#header svg polyline,
#header svg circle,
#header svg rect {
    stroke: #fff;
}

#header svg path[fill]:not([fill="none"]),
#header svg rect[fill]:not([fill="none"]) {
    fill: #fff;
}

#header img {
    opacity: 1;
    visibility: visible;
}

#header * {
    text-shadow: none;
}

/* Keep the same black fixed header styling used by cart.php. */
.main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: var(--heritage-header-z) !important;
    background: #000 !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .45s ease;
}

.main-header * {
    color: #fff !important;
}

/* Filter/sort drawers must always sit above the fixed site header. */
#header,
.main-header {
    z-index: 100000 !important;
}

.heritage-drawer-overlay,
.heritage-drawer,
.heritage-sort-menu,
.heritage-sort-panel {
    isolation: isolate;
}

.main-header svg {
    stroke: #fff !important;
}

.menu-lines span {
    background: #fff !important;
}

.bag-count {
    background: #fff !important;
    color: #000 !important;
}

/* Page offset for fixed header */
.heritage-page {
    padding-top: var(--heritage-header-height);
}

@media (max-width: 700px) {
    .heritage-page {
        padding-top: var(--heritage-header-height);
    }
}

/* =========================================================
   FINAL RESPONSIVE / INTERACTION SAFETY
========================================================= */

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

.heritage-page,
.heritage-grid,
.heritage-toolbar,
.heritage-active-filters {
    max-width: 100%;
    box-sizing: border-box;
}

.heritage-toolbar > * {
    min-width: 0;
}

.heritage-active-filters a,
.heritage-category-link,
.heritage-card-link,
.heritage-sort-button,
.heritage-filter-button,
.heritage-action-button {
    -webkit-tap-highlight-color: transparent;
}

.heritage-card-link:focus-visible,
.heritage-category-link:focus-visible,
.heritage-sort-button:focus-visible,
.heritage-filter-button:focus-visible,
.heritage-active-filter a:focus-visible,
.heritage-clear-all-filters:focus-visible,
.heritage-action-button:focus-visible,
.heritage-drawer-close:focus-visible {
    outline: 1px solid #111;
    outline-offset: 3px;
}

@media (max-width: 380px) {
    .heritage-toolbar {
        gap: 10px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .heritage-count-sort,
    .heritage-sort-button,
    .heritage-filter-button {
        font-size: 9px;
    }

    .heritage-filter-button {
        gap: 5px;
    }

    .heritage-filter-button .filter-icon {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }

    .heritage-active-filters {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .heritage-image img,
    .heritage-drawer,
    .heritage-sort-panel,
    .heritage-drawer-overlay,
    .heritage-sort-menu,
    .main-header {
        transition: none !important;
    }
}
