/* Product lineup: one folder, three product files, then full details. */
html body.page-home #section-7 .products-showcase { gap: 0 !important; }
html body.page-home #section-7 .products-showcase__header {
    margin-bottom: 14px !important;
}
#section-7 .product-folder {
    --folder-duration: 650ms;
    --folder-scene-height: 490px;
    --folder-ease: cubic-bezier(.22, .8, .25, 1.08);
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 8px auto 0;
    padding: 12px 30px 26px;
    border-radius: 24px;
    background: transparent;
    box-sizing: border-box;
}

#section-7 .product-folder__scene {
    position: relative;
    height: var(--folder-scene-height);
    perspective: 1100px;
    isolation: isolate;
}

#section-7 .product-folder__back {
    position: absolute;
    left: 50%;
    top: 176px;
    width: 400px;
    height: 280px;
    transform: translateX(-50%);
    border-radius: 18px;
    background: #327de6;
    box-shadow: 0 22px 40px #0003;
}

#section-7 .product-folder__back > span {
    position: absolute;
    top: -26px;
    right: 26px;
    min-width: 132px;
    height: 38px;
    padding: 8px 22px;
    border-radius: 18px 18px 0 0;
    background: inherit;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

#section-7 .product-folder__toggle {
    position: absolute;
    z-index: 5;
    top: 170px;
    left: 50%;
    width: 400px;
    height: 286px;
    transform: translateX(-50%);
    /* Apply perspective directly to the flap's parent so its top edge opens outward. */
    perspective: 1000px;
    perspective-origin: 50% 100%;
    border: 0;
    border-radius: 18px;
    padding: 0;
    background: transparent;
    appearance: none;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#section-7 .product-folder__front {
    position: absolute;
    inset: 82px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 25px 28px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(145deg, #438fff, #327ce8);
    box-shadow: 0 15px 28px #0002;
    transform-origin: center bottom;
    transition: transform var(--folder-duration) var(--folder-ease), background var(--folder-duration) ease;
}

#section-7 .product-folder__front > span {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
}

#section-7 .product-folder__files {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

#section-7 .product-folder__file {
    --closed-x: -52px;
    --file-angle: -6deg;
    --open-left: 25%;
    --open-top: 24px;
    position: absolute;
    left: 50%;
    top: 168px;
    width: 218px;
    height: 270px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #28303b !important;
    -webkit-text-fill-color: #28303b !important;
    font: inherit;
    text-align: left;
    opacity: 1 !important;
    box-shadow: 0 8px 18px #0002;
    transform: translateX(calc(-50% + var(--closed-x))) rotate(var(--file-angle));
    transition: transform var(--folder-duration) var(--folder-ease), left var(--folder-duration) var(--folder-ease), top var(--folder-duration) var(--folder-ease), box-shadow 220ms ease;
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#section-7 .product-folder__preview {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 18px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
#section-7 .product-folder__preview[hidden],
#section-7 .product-folder__detail[hidden] { display: none; }
#section-7 .product-folder__preview:focus { outline: none; }
#section-7 .product-folder__preview:focus-visible { background: #edf3ff; }

/* A compact expand cue keeps movable preview cards visibly clickable. */
#section-7 .product-folder__open-icon {
    position: absolute;
    top: 10px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #edf3ff;
    color: #255cff !important;
    pointer-events: none;
    z-index: 2;
    transition: background-color 160ms ease, color 160ms ease;
}
#section-7 .product-folder__open-icon svg {
    transform: rotate(0deg);
    transition: transform 300ms cubic-bezier(.2, .8, .2, 1);
}
#section-7 .product-folder__file.is-expanded > .product-folder__open-icon {
    background: #f0f4fa;
    color: #263041 !important;
}
#section-7 .product-folder__file.is-expanded > .product-folder__open-icon svg {
    transform: rotate(45deg);
}
#section-7 .product-folder__preview:disabled .product-folder__open-icon { visibility: hidden; }
#section-7 .product-folder__file:focus-within > .product-folder__open-icon {
    background: #255cff;
    color: #fff !important;
}
@media (hover: hover) {
    #section-7 .product-folder__file:hover > .product-folder__open-icon {
        background: #255cff;
        color: #fff !important;
    }
    #section-7 .product-folder .product-folder__file:not(.is-expanded):not(.is-dragging):hover {
        box-shadow: 0 12px 26px #20334c30;
    }
}
@media (prefers-reduced-motion: reduce) {
    #section-7 .product-folder__open-icon,
    #section-7 .product-folder__open-icon svg { transition: none; }
}

#section-7 .product-folder__file:nth-child(2) {
    --closed-x: 0px; --file-angle: 0deg; --open-left: 50%; --open-top: 8px;
}
#section-7 .product-folder__file:nth-child(3) {
    --closed-x: 52px; --file-angle: 6deg; --open-left: 75%;
}

#section-7 .product-folder__file-number {
    flex: 0 0 auto;
    color: #7d8999 !important;
    -webkit-text-fill-color: #7d8999 !important;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

html body.page-home #section-7 .product-folder__file-title {
    display: block;
    color: #28303b !important;
    -webkit-text-fill-color: #28303b !important;
    font-size: 18px !important;
    font-weight: 800;
    line-height: 1.3 !important;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: balance;
}

#section-7 .product-folder__preview img {
    display: block;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    margin: auto auto 0;
    object-fit: contain;
}

html body.page-home #section-7 .product-folder__hint {
    margin: 0 !important;
    min-height: 24px;
    color: #637086 !important;
    -webkit-text-fill-color: #637086 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    text-align: center;
    visibility: hidden;
}
#section-7 .product-folder[data-folder-ready] .product-folder__hint { visibility: visible; }

#section-7 .product-folder.is-open .product-folder__file {
    left: var(--open-left);
    top: var(--open-top);
    transform: translateX(-50%) rotate(var(--file-angle));
    pointer-events: auto;
    cursor: grab;
}
#section-7 .product-folder.is-open .product-folder__files { z-index: 6; }
#section-7 .product-folder.is-open .product-folder__toggle { pointer-events: none; }
#section-7 .product-folder.is-open .product-folder__front {
    transform: rotateX(-62deg);
    background: linear-gradient(180deg, #347bd6, #2862b6);
    box-shadow: 0 22px 32px #102b5629;
    pointer-events: auto;
}
#section-7 .product-folder.is-open .product-folder__back {
    background: linear-gradient(180deg, #327de6 45%, #2767c1 100%);
}

#section-7 .product-folder__toggle:focus-visible { outline: none; }
#section-7 .product-folder__toggle:focus-visible .product-folder__front {
    filter: brightness(1.12);
}
@media (hover: hover) {
    #section-7 .product-folder:not(.is-open) .product-folder__scene:hover .product-folder__file {
        transform: translate(calc(-50% + var(--closed-x)), -34px) rotate(var(--file-angle));
    }
    #section-7 .product-folder:not(.is-open) .product-folder__scene:hover .product-folder__front {
        transform: rotateX(-10deg);
    }
    #section-7 .product-folder.is-open .product-folder__file:not(.is-positioned):hover {
        transform: translateX(-50%) rotate(0deg) translateY(-8px);
        box-shadow: 0 16px 28px #0005;
    }
}

/* Full product details is only shown after selecting a file. It remains available without JS. */
#section-7 .product-folder__descriptions:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}
#section-7 .product-folder__descriptions[hidden] { display: none; }
/* Details stay on the same movable paper, without a modal or backdrop. */
#section-7 .product-folder .product-folder__file.is-positioned {
    transform: none;
    transition: box-shadow 160ms ease;
}
#section-7 .product-folder__file.is-expanded {
    cursor: pointer;
    width: min(360px, calc(100% - 16px));
    max-width: none;
    height: auto;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 42px #20334c30;
}
#section-7 .product-folder .product-folder__file.is-dragging {
    transition: none;
    animation: none;
    cursor: grabbing;
    box-shadow: 0 24px 44px #20334c38;
}
#section-7 .product-folder__file.is-dragging * { cursor: grabbing; }
#section-7 .product-folder__detail .product-folder-detail__article {
    display: flex;
    flex-direction: column;
    max-height: calc(var(--folder-scene-height) - 16px);
    text-align: left;
}
#section-7 .product-folder__detail-header {
    position: relative;
    flex: 0 0 auto;
    padding: 24px 44px 16px 24px;
    cursor: pointer;
    touch-action: none;
    user-select: none;
}
#section-7 .product-folder__detail-body {
    min-height: 0;
    padding: 0 24px 24px;
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: none;
}
html body.page-home #section-7 .product-folder-detail__article h3 {
    margin: 0;
    color: #263041 !important;
    -webkit-text-fill-color: #263041 !important;
    font-size: 22px !important;
    font-weight: 800;
    line-height: 1.3 !important;
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: balance;
}
#section-7 .product-folder__drag-handle {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: none;
    user-select: none;
}
#section-7 .product-folder__detail-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
#section-7 :is(.product-folder__drag-handle, .product-folder__detail-close):focus { outline: none; }
#section-7 :is(.product-folder__drag-handle, .product-folder__detail-close):focus-visible { background: #dce7fa; }

@media (max-width: 860px) {
    html body.page-home main.site-main #section-7 > .home-panel__inner {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 44px 16px !important;
        overflow: visible !important;
    }
    html body.page-home main.site-main #section-7 .products-showcase { width: 100% !important; }
    #section-7 .product-folder { max-width: 620px; padding: 12px 14px 22px; border-radius: 18px; margin-top: 8px; }
    /* Reserve the fan-out space only while open, keeping the closed folder in view. */
    #section-7 .product-folder { --folder-scene-height: 306px; --folder-closed-offset: 260px; }
    #section-7 .product-folder.is-open { --folder-scene-height: 566px; --folder-closed-offset: 0px; }
    #section-7 .product-folder__back { width: min(260px, calc(100% - 30px)); top: calc(324px - var(--folder-closed-offset)); height: 220px; }
    #section-7 .product-folder__back > span { right: 16px; font-size: 12px; min-width: 110px; }
    /* Let exposed papers receive touches above the visible folder flap. */
    #section-7 .product-folder__toggle { width: min(260px, calc(100% - 30px)); top: calc(258px - var(--folder-closed-offset)); pointer-events: none; }
    #section-7 .product-folder__front { padding: 20px; pointer-events: auto; }
    #section-7 .product-folder__file {
        --closed-x: -30px;
        --open-left: 25%;
        --open-top: 10px;
        top: calc(285px - var(--folder-closed-offset));
        width: calc(50% - 14px);
        max-width: 200px;
        height: 220px;
    }
    #section-7 .product-folder__preview { padding: 12px; gap: 7px; }
    #section-7 .product-folder__file:nth-child(2) { --closed-x: 0px; --open-left: 75%; --open-top: 10px; }
    #section-7 .product-folder__file:nth-child(3) { --closed-x: 30px; --open-left: 50%; --open-top: 244px; }
    html body.page-home #section-7 .product-folder__file-title { font-size: 14px !important; line-height: 1.25 !important; }
    #section-7 .product-folder__file-number { font-size: 10px; }
    #section-7 .product-folder__preview img { flex-basis: 42px; width: 42px; height: 42px; }
    #section-7 .product-folder.is-open .product-folder__front { transform: rotateX(-78deg); }
    html body.page-home #section-7 .product-folder__hint { font-size: 13px !important; }
    #section-7 .product-folder__detail-header { padding: 20px 40px 14px 18px; }
    #section-7 .product-folder__detail-body { padding: 0 18px 20px; }
    html body.page-home #section-7 .product-folder-detail__article h3 { font-size: 20px !important; }
    #section-7 .product-folder__descriptions:not([hidden]) { grid-template-columns: 1fr; }
}

/* Keep long translated titles and the availability badge inside narrow files. */
@media (max-width: 360px) {
    #section-7 .product-folder { --folder-closed-offset: 340px; }
    #section-7 .product-folder.is-open { --folder-scene-height: 646px; }
    #section-7 .product-folder__back { top: calc(404px - var(--folder-closed-offset)); }
    #section-7 .product-folder__toggle { top: calc(338px - var(--folder-closed-offset)); }
    #section-7 .product-folder__file { top: calc(325px - var(--folder-closed-offset)); height: 260px; }
    #section-7 .product-folder__file:nth-child(3) { --open-top: 284px; }
}

@media (prefers-reduced-motion: reduce) {
    #section-7 .product-folder__file,
    #section-7 .product-folder__front { transition: none; }
}

html body.page-home #section-7 .product-folder__file-availability {
    display: block;
    align-self: flex-start;
    flex: 0 0 auto;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 12px;
    background: #edf3ff;
    color: #1e5eff !important;
    -webkit-text-fill-color: #1e5eff !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.35 !important;
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: balance;
}
@media (max-width: 860px) {
    html body.page-home #section-7 .products-showcase__header { margin-bottom: 12px !important; }
    html body.page-home #section-7 .product-folder__file-availability {
        padding: 3px 6px;
        font-size: 10.5px !important;
        line-height: 1.3 !important;
    }
}
#section-7 .product-folder-detail__article ul {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding-left: 1.2em;
    list-style: disc;
}
html body.page-home #section-7 .product-folder-detail__article :is(li, li strong, .product-folder-detail__footer) {
    color: #46556b !important;
    -webkit-text-fill-color: #46556b !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
    overflow-wrap: break-word;
    word-break: normal;
}
#section-7 .product-folder-detail__footer {
    padding-top: 16px;
    border-top: 1px solid #e7edf6;
}
html body.page-home #section-7 .product-folder-detail__article .product-folder-detail__footer { font-size: 15px !important; }
#section-7 .product-folder .product-folder__file.is-expanded { height: auto; }
@media (prefers-reduced-motion: reduce) {
    #section-7 .product-folder .product-folder__file.is-positioned { transition: none; }
}

/* Mobile presents one full product card at a time with native swipe navigation. */
#section-7 .product-folder__mobile-controls { display: none; }
@media (max-width: 860px) {
    #section-7 .product-folder { display: none; }
    #section-7 .product-folder__descriptions:not([hidden]) {
        position: relative;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        gap: 20px;
        width: 100%;
        max-width: 620px;
        box-sizing: border-box;
        margin: 16px auto 0;
        padding: 8px 10px 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 10px;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }
    #section-7 .product-folder__descriptions::-webkit-scrollbar { display: none; }
    #section-7 .product-folder__mobile-controls:not([hidden]) {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 22px;
        margin-top: 4px;
    }
    #section-7 .product-folder__mobile-controls button {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #edf3ff;
        color: #1e5eff;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    #section-7 .product-folder__mobile-controls button:disabled {
        opacity: .35;
        cursor: default;
    }
    #section-7 .product-folder__mobile-controls button:focus-visible,
    #section-7 .product-folder__descriptions:focus-visible {
        outline: 2px solid #1e5eff;
        outline-offset: 2px;
    }
    html body.page-home #section-7 .product-folder__mobile-position {
        min-width: 48px;
        font-size: 14px !important;
        font-weight: 700;
        text-align: center;
    }
    #section-7 .product-folder__descriptions > .product-folder-detail__article {
        display: flex;
        flex-direction: column;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        min-width: 0;
        padding: 24px;
        border: 0;
        border-radius: 18px;
        background: linear-gradient(145deg, #fff, #f8fbff);
        box-shadow: 0 6px 20px rgba(27, 67, 135, .1);
        text-align: left;
    }
    #section-7 .product-folder__descriptions .product-folder-detail__footer { margin-top: auto; }
    html body.page-home #section-7 .product-folder__descriptions h3 {
        text-align: left;
    }
    html body.page-home #section-7 .product-folder__descriptions .product-folder__file-availability {
        width: fit-content;
        margin: 10px 0 18px;
        padding: 4px 8px;
        font-size: 12px !important;
    }
}
