.theme-showcase-page {
    background: #f1f3f5;
    color: #14212e;
}

:root {
    --theme-demo-primary: #203f5e;
    --theme-demo-primary-hover: #2b5379;
}

.theme-showcase-page * {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.theme-demo-intro {
    padding: 28px 0 28px;
    background: #e7edf7;
    border-bottom: 1px solid #d9dfe4;
}

.theme-demo-slider {
    padding: 20px 0 0;
    border-top: 1px solid #d3dae0;
}

.theme-demo-slider-stage {
    padding: 26px 0 0;
    overflow: hidden;
}

.theme-demo-slide {
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 44px;
    min-height: 400px;
}

.theme-demo-slide-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    max-width: 470px;
    min-height: 400px;
    padding: 8px 0;
}

.theme-demo-kicker {
    display: block;
    margin-bottom: 0;
    color: #607080;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.theme-demo-slide-accent {
    margin: 0;
    color: #4f6272;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.theme-demo-slide-copy h1,
.theme-demo-collection-head h2 {
    margin: 0;
    color: #14212e;
    font-size: clamp(1.55rem, 2.2vw, 1.92rem);
    font-weight: 600;
    line-height: 1.48;
    letter-spacing: -0.03em;
}

.theme-demo-slide-description,
.theme-demo-collection-count {
    margin: 2px 0 0;
    color: #5e6c79;
    font-size: 15px;
    line-height: 1.8;
}

.theme-demo-slide-actions,
.theme-demo-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-demo-slide-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 10px;
}

.theme-demo-slide-metric {
    min-width: 92px;
    padding-left: 12px;
    border-left: 1px solid #cfd6dc;
}

.theme-demo-slide-metric strong {
    display: block;
    color: #14212e;
    font-size: 16px;
    font-weight: 700;
}

.theme-demo-slide-metric span {
    display: block;
    margin-top: 4px;
    color: #667786;
    font-size: 12px;
    line-height: 1.5;
}

.theme-demo-slide-media {
    display: block;
    height: 400px;
    max-height: 400px;
    overflow: hidden;
}

.theme-demo-stack-shell {
    --theme-demo-stack-step: 112;
    --theme-demo-stack-drop: 8;
    --theme-demo-stack-rotate: 14;
    --theme-demo-stack-depth: 72;
    --theme-demo-stack-lean: 0.22;
    --theme-demo-stack-curve: 10;
    --theme-demo-stack-spread: 28;
    --theme-demo-stack-outer-fold: 22;
    position: relative;
    width: min(100%, 640px);
    height: 100%;
    margin-left: auto;
    perspective: 1800px;
    transform-style: preserve-3d;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.theme-demo-stack-shell.is-dragging {
    cursor: grabbing;
}

.theme-demo-stack-card {
    position: absolute;
    --theme-demo-card-shadow-opacity: 0.2;
    --theme-demo-card-shadow-scale: 1;
    --theme-demo-card-shadow-lift: 18px;
    top: 18px;
    left: 0;
    right: 0;
    width: clamp(148px, 15.4vw, 220px);
    height: 344px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    outline: none;
    overflow: visible;
    transform-style: preserve-3d;
    transition: transform 0.34s ease, opacity 0.34s ease, border-color 0.2s ease, filter 0.34s ease;
    cursor: inherit;
    will-change: transform, filter;
}

.theme-demo-stack-shell.is-dragging .theme-demo-stack-card {
    transition: none;
}

.theme-demo-stack-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(var(--theme-demo-card-shadow-lift) * -1);
    width: 76%;
    height: 24px;
    background: rgba(18, 31, 44, var(--theme-demo-card-shadow-opacity));
    filter: blur(10px);
    transform: translateX(-50%) scaleX(var(--theme-demo-card-shadow-scale));
    pointer-events: none;
}

.theme-demo-stack-card-frame {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid #cfd6dc;
    background: #ffffff;
}

.theme-demo-stack-card.is-active .theme-demo-stack-card-frame {
    border-color: #14212e;
}

.theme-demo-stack-card-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    pointer-events: none;
}

.theme-demo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-demo-button--primary {
    background: var(--theme-demo-primary);
    color: #ffffff;
}

.theme-demo-button--primary:hover {
    background: var(--theme-demo-primary-hover);
    color: #ffffff;
}

.theme-demo-button--ghost {
    background: transparent;
    color: #14212e;
    border: 1px solid #cfd6dc;
}

.theme-demo-button--ghost:hover {
    color: #3f5366;
    border-color: #9eacb7;
}

.theme-demo-collection {
    padding: 26px 0 0;
}

.theme-demo-collection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.theme-demo-filter-bar {
    margin-top: 18px;
}

.theme-demo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-demo-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d9dfe4;
    background: #f7f8f9;
    color: #4f6070;
    font-size: 12px;
    font-weight: 700;
    appearance: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-demo-filter:hover,
.theme-demo-filter.is-active {
    background: var(--theme-demo-primary);
    border-color: var(--theme-demo-primary);
    color: #ffffff;
}

.theme-demo-filter small {
    font-size: 10px;
    font-weight: 700;
}

.theme-demo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.theme-demo-card {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #d6dde3;
    background: #ffffff;
}

.theme-demo-card.is-hidden {
    display: none;
}

.theme-demo-card-media {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 18;
    background: #dfe5ea;
}

.theme-demo-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: object-position 3.4s ease;
}

.theme-demo-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.theme-demo-card-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(20, 33, 46, 0.92);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.theme-demo-card-badges .is-alt {
    border-color: #14212e;
    background: rgba(255, 255, 255, 0.98);
    color: #14212e;
}

.theme-demo-card-badges--intro {
    top: 14px;
    left: 14px;
}

.theme-demo-card:hover .theme-demo-card-media img,
.theme-demo-card:focus-within .theme-demo-card-media img {
    object-position: bottom center;
}

.theme-demo-card-footer {
    justify-content: space-between;
    margin-top: 10px;
    padding: 12px 4px 4px;
    border-top: 1px solid #e1e6ea;
    background: #ffffff;
}

.theme-demo-card-copy small {
    display: block;
    margin-bottom: 5px;
    color: #7c8b98;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.theme-demo-card-copy h3 {
    margin: 0;
    color: #14212e;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.theme-demo-card-link {
    color: #14212e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.theme-demo-card-link:hover {
    color: #55697c;
}

.theme-demo-support {
    padding: 30px 0 72px;
}

.theme-demo-support-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 24px 28px;
    border: 1px solid #19324a;
    background: var(--theme-demo-primary);
    color: #ffffff;
    text-align: center;
}

.theme-demo-support-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.theme-demo-support-icon svg {
    width: 22px;
    height: 22px;
}

.theme-demo-support-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-width: 640px;
    margin: 0 auto;
}

.theme-demo-support-copy .theme-demo-kicker {
    margin-bottom: 0;
    color: #b8cada;
    text-align: center;
}

.theme-demo-support-copy h2 {
    color: #ffffff;
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}

.theme-demo-support-copy p {
    margin: 0;
    color: #e4ebf2;
    font-size: 13px;
    line-height: 1.6;
}

.theme-demo-support-copy a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.38);
}

.theme-demo-support-copy a:hover {
    color: #dbe8f5;
    border-color: #dbe8f5;
}

@media (max-width: 1199px) {
    .theme-demo-slide {
        grid-template-columns: minmax(280px, 0.96fr) minmax(360px, 1.04fr);
        gap: 32px;
    }

    .theme-demo-slide-copy {
        max-width: 430px;
    }

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

@media (max-width: 991px) {
    .theme-demo-intro {
        padding: 84px 0 22px;
    }

    .theme-demo-collection-head {
        flex-direction: column;
        align-items: center;
    }

    .theme-demo-slider-stage {
        padding: 22px 0 0;
    }

    .theme-demo-slide {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 24px;
    }

    .theme-demo-slide-copy {
        max-width: none;
        min-height: auto;
        padding: 0;
    }

    .theme-demo-slide-media {
        height: 320px;
        max-height: 320px;
        order: -1;
    }

    .theme-demo-stack-shell {
        --theme-demo-stack-step: 82;
        --theme-demo-stack-drop: 7;
        --theme-demo-stack-rotate: 12;
        --theme-demo-stack-depth: 62;
        --theme-demo-stack-lean: 0.18;
        --theme-demo-stack-curve: 8;
        --theme-demo-stack-spread: 20;
        --theme-demo-stack-outer-fold: 18;
    }

    .theme-demo-stack-card {
        top: 14px;
        width: 180px;
        height: 292px;
    }

    .theme-demo-support-panel {
        padding: 22px 20px;
    }

    .theme-demo-support-icon {
        left: 20px;
    }
}

@media (max-width: 767px) {
    .theme-demo-grid {
        grid-template-columns: 1fr;
    }

    .theme-demo-slider-stage {
        padding: 18px 0 0;
    }

    .theme-demo-slide-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .theme-demo-slide-copy h1 {
        font-size: clamp(1.45rem, 7vw, 1.8rem);
    }

    .theme-demo-slide-description {
        font-size: 14px;
    }

    .theme-demo-slide-media {
        height: 260px;
        max-height: 260px;
    }

    .theme-demo-stack-shell {
        --theme-demo-stack-step: 56;
        --theme-demo-stack-drop: 6;
        --theme-demo-stack-rotate: 10;
        --theme-demo-stack-depth: 46;
        --theme-demo-stack-lean: 0.12;
        --theme-demo-stack-curve: 6;
        --theme-demo-stack-spread: 12;
        --theme-demo-stack-outer-fold: 14;
    }

    .theme-demo-stack-card {
        top: 10px;
        width: 136px;
        height: 220px;
    }

    .theme-demo-slide-metrics {
        width: 100%;
        gap: 12px;
    }

    .theme-demo-slide-metric {
        min-width: calc(50% - 6px);
    }

    .theme-demo-button {
        width: 100%;
    }

    .theme-demo-filters {
        gap: 6px;
    }

    .theme-demo-filter {
        flex: 1 1 calc(50% - 3px);
        justify-content: space-between;
    }

    .theme-demo-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .theme-demo-support {
        padding-top: 24px;
    }

    .theme-demo-support-panel {
        flex-direction: column;
        padding: 20px 18px;
        gap: 12px;
    }

    .theme-demo-support-icon {
        position: static;
        transform: none;
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
}
