/**
 * LayoutType=6 — type 2 CBS navigation with the type 5 palette and scaled product grid.
 */

.pos-layout-type-6.theme-mem {
    --mem-cream: #f3e1cf;
    --mem-strand: #d5c7b6;
}

.pos-layout-type-6 .pos-header {
    justify-content: flex-start;
    background: var(--mem-kaffe, #3f2615);
    color: var(--mem-hvid, #ffffff);
    border: none;
    border-radius: 0.5rem;
}

.pos-layout-type-6 .pos-header__primary,
.pos-layout-type-6 .pos-header__title-group {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.75rem;
}

.pos-layout-type-6 .pos-header__title {
    color: var(--mem-hvid, #ffffff);
}

.pos-layout-type-6 .pos-header__subtitle {
    color: var(--mem-strand, #d5c7b6);
}

.pos-layout-type-6 .pos-catalog__body {
    grid-template-columns: 20% 1fr;
}

.pos-layout-type-6 .pos-category-rail {
    align-items: stretch;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pos-layout-type-6 .pos-category-rail::-webkit-scrollbar {
    display: none;
}

.pos-layout-type-6 .pos-category-rail__item {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 2 / 1;
    flex-shrink: 0;
    padding: 0.4rem;
    border-width: 1px;
    border-left-width: 1px;
    border-left-color: var(--mem-strand, #e3e3e3);
    font-size: 1.1rem;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
    hyphens: auto;
}

.pos-layout-type-6 .pos-category-rail__item--accent-0,
.pos-layout-type-6 .pos-category-rail__item--accent-1,
.pos-layout-type-6 .pos-category-rail__item--accent-2,
.pos-layout-type-6 .pos-category-rail__item--accent-3,
.pos-layout-type-6 .pos-category-rail__item--accent-4 {
    border-left-color: var(--mem-strand, #e3e3e3);
}

.pos-layout-type-6 .pos-category-rail__item--active {
    border-left-color: var(--mem-sort2025, #3e4241);
}

@media (max-width: 991.98px) {
    .pos-layout-type-6 .pos-catalog__body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .pos-layout-type-6 .pos-category-rail {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .pos-layout-type-6 .pos-category-rail__item {
        width: 20vw;
        flex: 0 0 20vw;
        aspect-ratio: 2 / 1;
        white-space: normal;
    }
}

.pos-layout-type-6 .pos-catalog__body .pos-product-grid--scaled {
    display: grid;
    grid-template-columns: repeat(var(--pos-tile-cols, 1), minmax(0, 1fr));
    grid-template-rows: repeat(var(--pos-tile-rows, 1), minmax(0, 1fr));
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    align-content: stretch;
    gap: 0.5rem;
    padding-bottom: 0;
}

.pos-layout-type-6 .pos-product-grid--scaled .pos-product-tile {
    min-height: 0;
    height: 100%;
    width: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    padding: 0.4rem;
    gap: 0.1rem;
    justify-content: flex-start;
}

.pos-layout-type-6 .pos-product-grid--scaled .pos-product-tile__image {
    flex: 0 1 auto;
    max-height: 40%;
    min-height: 0;
    width: 100%;
    object-fit: contain;
    margin-bottom: 0.1rem;
}

.pos-layout-type-6 .pos-product-grid--scaled .pos-product-tile--profile {
    padding: 0;
    justify-content: center;
    align-items: center;
}

.pos-layout-type-6 .pos-product-grid--scaled .pos-product-tile--profile .pos-product-tile__image {
    flex: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    margin: 0;
}

.pos-layout-type-6 .pos-product-grid--scaled .pos-product-tile__texts {
    --pos-knap-font: clamp(0.65rem, 1.6vh, 0.95rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    gap: 0.05rem;
}

.pos-layout-type-6 .pos-product-grid--scaled .pos-product-tile__knap {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: calc(var(--pos-knap-font) * 1.15);
    font-size: var(--pos-knap-font);
    line-height: 1.15;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 400;
}

.pos-layout-type-6 .pos-product-grid--scaled .pos-product-tile__knap--01 {
    height: calc(var(--pos-knap-font) * 1.15);
    font-size: var(--pos-knap-font);
    font-weight: 700;
}

.pos-layout-type-6 .pos-product-grid--scaled .pos-product-tile__price {
    flex-shrink: 0;
    align-self: flex-end;
    width: 100%;
    text-align: right;
    font-size: var(--pos-knap-font);
    line-height: 1.15;
    font-weight: 700;
    opacity: 1;
}

.pos-layout-type-6 .pos-product-grid--scaled .pos-product-tile__profile-hint {
    font-size: var(--pos-knap-font);
}

.pos-layout-type-6 .pos-product-grid--scaled .pos-product-tile__pickup,
.pos-layout-type-6 .pos-product-grid--scaled .pos-product-tile__soldout {
    font-size: clamp(0.55rem, 1.2vh, 0.75rem);
}

.pos-layout-type-6 .pos-product-grid--scaled .pos-product-tile__pickup {
    margin-top: 0.1rem;
}

.pos-layout-type-6 .pos-product-tile--empty {
    visibility: hidden;
    pointer-events: none;
    border: none;
    background: transparent;
    box-shadow: none;
}
