/* ============================================
   AZOURÉ — Shop Design System
   Extends: style.css base tokens
   ============================================ */

/* ── Extended Design Tokens ── */
:root {
    /* Additional Brand Colors */
    --color-cream: #FAF7F2;
    --color-warm-grey: #E8E4DF;
    --color-warm-grey-dark: #B8B3AD;
    --color-accent-gold: #C4A970;
    --color-accent-gold-dark: #A68B4B;
    --color-success: #6B8F71;
    --color-error: #C45C5C;

    /* Layout */
    --max-content-width: 1280px;
    --max-narrow-width: 960px;
    --shop-header-height: 80px;

    /* Shop-specific spacing */
    --space-10: 80px;
    --space-12: 96px;
    --space-16: 128px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 100px;
}

html:has(body.shop-page) {
    height: auto;
}

/* ── Shop Base Layout ── */
.shop-page {
    overflow: visible;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--color-white);
    color: var(--color-graphite);
    display: block;
}

.shop-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.shop-container--narrow {
    max-width: var(--max-narrow-width);
}

/* ── Listing Page: main fills viewport ── */
.shop-page main {
    min-height: calc(100vh - var(--shop-header-height));
    min-height: calc(100svh - var(--shop-header-height));
    display: flex;
    flex-direction: column;
    scroll-snap-type: y proximity;
}

/* ── Section Spacing ── */
.shop-section {
    padding: var(--space-12) 0;
}

.shop-section--compact {
    padding: var(--space-10) 0 var(--space-5);
}

.shop-section--flush {
    padding: 0 0 var(--space-10);
    flex: 1;
}

/* ── Section Headers ── */
.section-label {
    font-family: var(--font-primary);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-warm-grey-dark);
    margin-bottom: var(--space-2);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-graphite);
    letter-spacing: -0.5px;
    margin-bottom: var(--space-2);
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-graphite);
    opacity: 0.65;
    max-width: 560px;
}

.section-subtitle--centered {
    margin: 0 auto;
    text-align: center;
}

/* ── Buttons ── */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn--primary {
    background: var(--color-slate-azure);
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
}

.btn--primary:hover {
    background: var(--color-graphite);
}

.btn--secondary {
    background: transparent;
    color: var(--color-slate-azure);
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 0.8125rem;
}

.btn--secondary:hover {
    border-color: var(--color-slate-azure);
    background: rgba(40, 67, 71, 0.04);
}

.btn--text {
    background: none;
    color: var(--color-slate-azure);
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
}

.btn--text::after {
    content: '→';
    margin-left: var(--space-1);
    transition: transform var(--transition-fast);
}

.btn--text:hover::after {
    transform: translateX(4px);
}

/* ── Quiet Luxury CTA ── */
.btn--luxury {
    background: transparent;
    color: var(--color-white);
    padding: 16px 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--luxury:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
}

.btn--luxury:active {
    transform: scale(0.98);
}

/* ── Luxury Button — Dark variant (for light backgrounds) ── */
.btn--luxury-dark {
    background: transparent;
    color: var(--color-graphite);
    padding: 16px 48px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--luxury-dark:hover {
    border-color: rgba(0, 0, 0, 0.45);
}

.btn--luxury-dark:active {
    transform: scale(0.98);
}

/* Slate-filled counterpart — same geometry as luxury-dark, primary emphasis */
.btn--slate {
    background: var(--color-slate-azure);
    color: var(--color-white);
    padding: 16px 48px;
    border: 1px solid var(--color-slate-azure);
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--slate:hover {
    background: var(--color-graphite);
    border-color: var(--color-graphite);
}

.btn--slate:active {
    transform: scale(0.98);
}

/* ── Product Card ── */
.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card__image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-cream);
    aspect-ratio: 4 / 5;
    margin-bottom: var(--space-3);
}

.product-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.product-card__image--contain {
    object-fit: contain;
    background: var(--color-white);
}

.product-card__image--secondary {
    opacity: 0;
}

.product-card:hover .product-card__image--primary {
    opacity: 0;
}

.product-card:hover .product-card__image--secondary {
    opacity: 1;
    transform: scale(1.025);
}

.product-card:hover .product-card__image--primary:only-child {
    opacity: 1;
    transform: scale(1.025);
}

.product-card__badge {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--color-white);
    color: var(--color-graphite);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.product-card__name {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-graphite);
    margin-bottom: 6px;
}

.product-card__subtitle {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-graphite);
    opacity: 0.78;
    margin-bottom: var(--space-1);
}

/* ── Unreleased Model Imagery ── */
.model-l-coming-soon {
    position: relative;
    display: inline-block;
    overflow: hidden;
    flex-shrink: 0;
    isolation: isolate;
    vertical-align: top;
    background: var(--color-cream);
}

.model-l-coming-soon::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(17, 21, 22, 0.18), rgba(250, 247, 242, 0.22)),
        rgba(250, 247, 242, 0.12);
    pointer-events: none;
}

.model-l-coming-soon > .model-l-coming-soon__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: inherit;
    filter: blur(28px) saturate(0.35) contrast(0.62) brightness(0.78);
    transform: scale(1.18) !important;
}

.model-l-coming-soon__label {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    max-width: calc(100% - 18px);
    transform: translate(-50%, -50%);
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.74);
    color: var(--color-graphite);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    font-size: clamp(0.5625rem, 1vw, 0.8125rem);
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

.product-card__image-wrap > .model-l-coming-soon,
.bed-showcase__image > .model-l-coming-soon,
.bed-grid-card__image > .model-l-coming-soon,
.product-gallery__main > .model-l-coming-soon,
.product-gallery__thumb > .model-l-coming-soon,
.about-images > .model-l-coming-soon {
    display: block;
    width: 100%;
    height: 100%;
}

.mega-panel__link > .model-l-coming-soon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
}

.mega-panel__link > .model-l-coming-soon .model-l-coming-soon__label,
.product-gallery__thumb > .model-l-coming-soon .model-l-coming-soon__label {
    max-width: calc(100% - 8px);
    padding: 3px 5px;
    font-size: 0.45rem;
    letter-spacing: 0.7px;
    line-height: 1.1;
    white-space: normal;
}

.bed-showcase__image > .model-l-coming-soon > .model-l-coming-soon__image {
    filter: blur(46px) saturate(0.18) contrast(0.48) brightness(0.68);
    transform: scale(1.28) !important;
}

.bed-showcase__image > .model-l-coming-soon::after {
    background:
        linear-gradient(135deg, rgba(17, 21, 22, 0.3), rgba(250, 247, 242, 0.34)),
        rgba(250, 247, 242, 0.24);
}

.product-card__price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-slate-azure);
    padding-bottom: var(--space-2);
}

/* ── Product Grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.product-grid--dogbeds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
    max-width: 1120px;
    margin: 0 auto;
}

.product-grid--dogbeds .product-card__image-wrap {
    aspect-ratio: 16 / 9;
    background: color-mix(in srgb, var(--color-warm-grey) 14%, white);
}

.product-grid--dogbeds .product-card__image {
    object-fit: cover;
    object-position: center 64%;
}

/* ── Fullscreen Collection Section ── */
.collection-fullscreen {
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--color-cream);
    scroll-snap-align: start;
}

.collection-fullscreen__header {
    text-align: center;
    padding: var(--space-10) var(--space-4) var(--space-5);
}

.collection-fullscreen__header .section-label {
    color: var(--color-warm-grey-dark);
    font-size: 0.75rem;
    letter-spacing: 3px;
}

.collection-fullscreen__header .section-title {
    color: var(--color-graphite);
}

.collection-fullscreen__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(420px, 1fr);
    flex: 1;
    min-height: 0;
    gap: var(--space-4);
    padding: 0 var(--space-6) var(--space-6);
    align-items: stretch;
}

.collection-fullscreen .category-card {
    min-width: 0;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    min-height: 0;
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-fullscreen .category-card__slide,
.collection-fullscreen .category-card__slider {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}

.collection-fullscreen .category-card__slider {
    background: #dedbd2;
}

.collection-fullscreen .category-card--beds .category-card__slide {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    animation: collection-bed-slide 24s cubic-bezier(0.7, 0, 0.2, 1) infinite both;
    will-change: opacity, transform;
}

.collection-fullscreen .category-card--beds .category-card__slide:nth-child(1) {
    opacity: 1;
    animation-delay: 0s;
}

.collection-fullscreen .category-card--beds .category-card__slide:nth-child(2) {
    animation-delay: 8s;
}

.collection-fullscreen .category-card--beds .category-card__slide:nth-child(3) {
    animation-delay: 16s;
}

.collection-fullscreen .category-card--beds .category-card__image {
    object-position: center 58%;
}

.collection-fullscreen .category-card--beds:hover .category-card__image {
    transform: none;
}

.collection-fullscreen .category-card--mattresses .category-card__image {
    object-position: center 58%;
}

@keyframes collection-bed-slide {
    0% {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }

    7%,
    31% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    41%,
    100% {
        opacity: 0;
        transform: translate3d(0, -8px, 0);
    }
}

.collection-fullscreen .category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 -1px 0 rgba(196, 169, 112, 0.18);
    pointer-events: none;
    z-index: 2;
}

.collection-fullscreen .category-card:hover {
    box-shadow: 0 6px 32px rgba(196, 169, 112, 0.12), 0 0 40px rgba(196, 169, 112, 0.06);
}

.collection-fullscreen .category-card__image {
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-fullscreen .category-card:hover .category-card__image {
    transform: scale(1.02);
}

.collection-fullscreen .category-card.category-card--beds:hover .category-card__image {
    transform: none;
}

.collection-fullscreen .category-card__overlay {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 38%),
        linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.66) 100%);
    z-index: 1;
}

.collection-fullscreen .category-card__overlay .category-card__title {
    color: var(--color-white);
    font-weight: 400;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.collection-fullscreen .category-card__overlay .category-card__cta {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.collection-fullscreen .category-card:hover .category-card__overlay {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 34%),
        linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.72) 100%);
}

@media (max-width: 1599px) {
    .collection-fullscreen {
        min-height: auto;
    }

    .collection-fullscreen__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(360px, 34vw, 500px);
        flex: none;
        padding: 0 var(--space-4) var(--space-6);
    }

    .collection-fullscreen .category-card {
        aspect-ratio: auto;
        height: 100%;
        min-height: 0;
    }

    .collection-fullscreen .category-card:nth-child(3) {
        grid-column: 1 / -1;
        aspect-ratio: auto;
    }

    .collection-fullscreen .category-card__overlay {
        padding: var(--space-4);
    }

    .collection-fullscreen .category-card__cta {
        opacity: 0.78;
        transform: none;
    }
}

@media (min-width: 1600px) {
    .collection-fullscreen .category-card--beds .category-card__image {
        object-position: center 60%;
    }
}

@media (max-width: 640px) {
    .collection-fullscreen__header {
        padding: var(--space-8) var(--space-3) var(--space-4);
        text-align: left;
    }

    .collection-fullscreen__header .section-subtitle--centered {
        margin: 0;
        text-align: left;
    }

    .collection-fullscreen__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: var(--space-3);
        padding: 0 var(--space-3) var(--space-5);
    }

    .collection-fullscreen .category-card,
    .collection-fullscreen .category-card:nth-child(3) {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        height: clamp(320px, 105vw, 560px);
        aspect-ratio: auto;
        min-height: 0;
    }

    .collection-fullscreen .category-card picture {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
    }

    .collection-fullscreen .category-card--beds .category-card__image {
        object-position: center 56%;
    }

    .collection-fullscreen .category-card--mattresses .category-card__image {
        object-position: center 52%;
    }

    .collection-fullscreen .category-card__cta {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .collection-fullscreen .category-card--beds .category-card__slide {
        animation: none;
        opacity: 0;
        transform: none;
    }

    .collection-fullscreen .category-card--beds .category-card__slide:nth-child(1) {
        opacity: 1;
    }
}

/* ── Category Card (Landing Page) ── */
.category-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--color-white);
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.category-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-card__image {
    transform: scale(1.03);
}

.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-5);
    transition: background var(--transition-fast);
}

.category-card:hover .category-card__overlay {
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.65) 100%);
}

.category-card__label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: var(--space-1);
}

.category-card__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--space-1);
}

.category-card__cta {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition-smooth);
}

.category-card:hover .category-card__cta {
    opacity: 0.8;
    transform: translateY(0);
}

/* ── Hero Section ── */
.shop-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #151A1D;
    scroll-snap-align: start;
}

.shop-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.shop-hero__bg img,
.shop-hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
}

.shop-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(28, 28, 28, 0.2) 0%,
            rgba(28, 28, 28, 0.45) 60%,
            rgba(28, 28, 28, 0.7) 100%);
    z-index: 1;
}

.shop-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 0 var(--space-4);
    max-width: 720px;
    animation: fadeIn 0.8s 0.2s var(--ease-out) forwards;
    opacity: 0;
}

.shop-hero__label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: var(--space-3);
}

.shop-hero__title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: var(--space-3);
    letter-spacing: -0.5px;
}

.shop-hero__subtitle {
    font-size: clamp(0.875rem, 1.2vw, 1.0625rem);
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.75;
    margin-bottom: var(--space-5);
    max-width: 470px;
    margin-left: auto;
    margin-right: auto;
}

.shop-hero__scroll {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 0.8s 1.2s var(--ease-out) forwards;
    transition: opacity 0.4s ease;
}

.shop-hero__scroll.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.shop-hero__scroll svg {
    width: 20px;
    height: 20px;
    color: var(--color-white);
    opacity: 0.4;
    animation: scrollBounce 2.5s 2s ease-in-out infinite;
}

/* ── Craftsmanship Gallery ── */
.craft-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 0;
    padding-bottom: var(--space-2);
}

.craft-gallery__item {
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background: var(--color-cream);
}

.craft-gallery__hero-wrap,
.craft-gallery__sub-wrap,
.craft-gallery__row {
    display: contents;
}

.craft-gallery__item--hero {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.craft-gallery__item--bed {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
}

.craft-gallery__item--nightstand {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.craft-gallery__item--bedc {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.craft-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.craft-gallery__item--bed img {
    object-position: center 58%;
}

.craft-gallery__item--nightstand img {
    object-position: center 54%;
}

.craft-gallery__item--bedc img {
    object-position: center 60%;
}

.craft-gallery__item:hover img {
    transform: none;
}

@keyframes craft-mobile-slide-primary {

    0%,
    38% {
        transform: translate3d(0, 0, 0);
    }

    50%,
    88% {
        transform: translate3d(-100%, 0, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes craft-mobile-slide-secondary {

    0%,
    38% {
        transform: translate3d(100%, 0, 0);
    }

    50%,
    88% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(100%, 0, 0);
    }
}

/* ── About Teaser ── */
.about-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.about-teaser__content {
    padding-right: var(--space-4);
}

.about-teaser__text {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.85;
    opacity: 0.7;
    margin-bottom: var(--space-4);
}

.about-teaser__image {
    border-radius: 0;
    overflow: hidden;
}

.about-teaser__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

/* ── Store Location Teaser ── */
.store-teaser {
    background: var(--color-cream);
    border-radius: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.store-teaser__image {
    height: 100%;
    min-height: 400px;
    background: var(--color-warm-grey);
}

.store-teaser__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-teaser__info {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.store-teaser__text {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.75;
    margin-bottom: var(--space-4);
}

.store-teaser__address {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.85;
    opacity: 0.7;
    margin-bottom: var(--space-4);
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.8125rem;
    font-weight: 400;
    padding: var(--space-3) 0;
    list-style: none;
}

.breadcrumb a {
    color: var(--color-graphite);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb__separator {
    opacity: 0.3;
    font-size: 0.75rem;
}

.breadcrumb__current {
    opacity: 0.8;
}

/* ── Divider ── */
.shop-divider {
    width: 48px;
    height: 1px;
    background: var(--color-graphite);
    opacity: 0.12;
    margin: var(--space-8) 0;
    border: none;
}

.shop-divider--centered {
    margin-left: auto;
    margin-right: auto;
}

/* ── Fade In Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Price Format ── */
.price {
    font-variant-numeric: tabular-nums;
}

.price__currency {
    font-size: 0.75em;
    font-weight: 400;
    opacity: 0.7;
}

/* ── Sound Toggle ── */
.sound-toggle {
    position: absolute;
    bottom: var(--space-5);
    right: var(--space-5);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--color-white);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    animation: fadeIn 0.8s 1.4s var(--ease-out) forwards;
}

.sound-toggle:hover,
.sound-toggle.is-inviting {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-pill);
    gap: 8px;
    padding: 12px 16px;
}

.sound-toggle:active {
    transform: scale(0.96);
}

.sound-toggle__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sound-toggle__icon--on {
    display: none;
}

.sound-toggle.is-playing .sound-toggle__icon--off {
    display: none;
}

.sound-toggle.is-playing .sound-toggle__icon--on {
    display: block;
}

.sound-toggle__label {
    font-family: var(--font-primary);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.sound-toggle:hover .sound-toggle__label,
.sound-toggle.is-inviting .sound-toggle__label {
    max-width: 120px;
    opacity: 0.85;
}

.sound-toggle.is-playing:hover .sound-toggle__label {
    max-width: 0;
    opacity: 0;
}

/* Equalizer Bars */
.sound-toggle__eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.3s ease;
    overflow: hidden;
}

.sound-toggle.is-playing:hover .sound-toggle__eq {
    max-width: 24px;
    opacity: 1;
}

.sound-toggle__eq span {
    display: block;
    width: 2px;
    height: 3px;
    background: var(--color-white);
    border-radius: 1px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.sound-toggle.is-playing .sound-toggle__eq span {
    opacity: 0.9;
    animation: eqBar 0.8s ease-in-out infinite alternate;
}

.sound-toggle.is-playing .sound-toggle__eq span:nth-child(1) {
    animation-delay: 0s;
}

.sound-toggle.is-playing .sound-toggle__eq span:nth-child(2) {
    animation-delay: 0.2s;
}

.sound-toggle.is-playing .sound-toggle__eq span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes eqBar {
    0% {
        height: 3px;
    }

    100% {
        height: 12px;
    }
}

/* ── Bed View Switcher ── */
.bed-view-switcher {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) 0;
}

.bed-view-switcher__btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    cursor: pointer;
    color: var(--color-warm-grey-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    min-width: 132px;
    min-height: 42px;
    justify-content: center;
}

.bed-view-switcher__btn svg {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.bed-view-switcher__btn:hover {
    border-color: var(--color-graphite);
    color: var(--color-graphite);
}

.bed-view-switcher__btn:hover svg {
    opacity: 1;
}

/* ── Bed Topbar (breadcrumb left + configurator CTA right, gallery only) ── */
.beds-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.beds-topbar__configurator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-slate-azure);
    color: var(--color-white);
    padding: 11px 22px;
    border: 1px solid var(--color-slate-azure);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.beds-topbar__configurator svg {
    width: 16px;
    height: 16px;
}

.beds-topbar__configurator:hover {
    background: var(--color-graphite);
    border-color: var(--color-graphite);
}

/* Only relevant in gallery mode */
html.editorial-active .beds-topbar__configurator {
    display: none;
}

.bed-view-switcher__btn.active {
    background: var(--color-graphite);
    border-color: var(--color-graphite);
    color: var(--color-white);
}

.bed-view-switcher__btn.active svg {
    opacity: 1;
}

/* ── Bed Showcase (Full-Width Alternating) ── */
.bed-showcase-wrapper {
    transition: opacity 0.4s ease;
}

/* Snap-scroll on the whole page when editorial is active */
html.editorial-active {
    scroll-snap-type: y mandatory;
}

html.editorial-active .bed-view-switcher {
    scroll-snap-align: start;
}

html.editorial-active .shop-footer {
    scroll-snap-align: start;
}

html.editorial-active .shop-header {
    scroll-snap-align: start;
}

@media (prefers-reduced-motion: reduce) {
    html.editorial-active {
        scroll-snap-type: none;
    }

    .bed-showcase {
        scroll-snap-align: none;
    }
}

.bed-showcase {
    display: grid;
    grid-template-columns: 3fr 2fr;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* ── Dynamic Editorial Scroll Overlay ── */
.editorial-scroll-overlay {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.editorial-scroll-overlay.is-visible {
    opacity: 0.7;
}

.editorial-scroll-overlay__arrow {
    width: 18px;
    height: 18px;
    color: var(--color-graphite);
    transition: transform 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
    .editorial-scroll-overlay {
        display: none;
    }
}

/* Strong divider between sections */
.bed-showcase+.bed-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15), transparent);
    z-index: 1;
}

.bed-showcase:nth-child(even) {
    direction: rtl;
}

.bed-showcase:nth-child(even)>* {
    direction: ltr;
}

/* Alternating background */
.bed-showcase:nth-child(odd) {
    background: var(--color-white);
}

.bed-showcase:nth-child(even) {
    background: color-mix(in srgb, var(--color-cream) 50%, white);
}

/* Image */
.bed-showcase__image {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: #f3f3f1;
}

.bed-showcase__image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bed-showcase__image img.bed-rendering {
    object-fit: cover;
    object-position: center;
}

.bed-showcase:hover .bed-showcase__image img {
    transform: scale(1.025);
}

/* Content */
.bed-showcase__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-10) var(--space-8);
}

.bed-showcase__label {
    font-family: var(--font-primary);
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-warm-grey-dark);
    margin-bottom: var(--space-3);
}

.bed-showcase__name {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-graphite);
    letter-spacing: -0.5px;
    margin-bottom: var(--space-3);
    position: relative;
    padding-bottom: var(--space-3);
}

/* Gold accent divider under name */
.bed-showcase__name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 1px;
    background: var(--color-accent-gold);
}

.bed-showcase__desc {
    font-family: var(--font-primary);
    font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
    font-weight: 300;
    line-height: 1.85;
    color: var(--color-graphite);
    opacity: 0.65;
    max-width: 420px;
    margin-bottom: var(--space-5);
}

.bed-showcase .btn--text {
    align-self: flex-start;
}

.bed-showcase__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

@media (max-width: 991px) {
    .bed-showcase {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .bed-showcase:nth-child(even) {
        direction: ltr;
    }

    .bed-showcase__image {
        min-height: 50vh;
        min-height: 50svh;
        aspect-ratio: 16 / 10;
    }

    .bed-showcase__content {
        min-height: 50vh;
        min-height: 50svh;
    }
}

/* ── Grid View ── */
.bed-grid-wrapper {
    display: none;
    padding: var(--space-6) var(--space-5);
}

.bed-grid-wrapper.active {
    display: block;
}

.bed-showcase-wrapper.active .bed-showcase {
    display: grid;
}

.bed-showcase-wrapper:not(.active) .bed-showcase {
    display: none;
}

.bed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    max-width: 1400px;
    margin: 0 auto;
}

.bed-grid-card {
    text-decoration: none;
    color: inherit;
    background: var(--color-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bed-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.bed-grid-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin: 0;
}

.bed-grid-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bed-grid-card__image img.bed-rendering {
    object-fit: cover;
    object-position: center;
}

.bed-grid-card:hover .bed-grid-card__image img {
    transform: scale(1.03);
}

.bed-grid-card__body {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bed-grid-card__name {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-graphite);
    margin-bottom: var(--space-2);
}

.bed-grid-card__desc {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-graphite);
    opacity: 0.6;
    flex: 1;
}

.bed-grid-card__link {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-graphite);
    margin-top: var(--space-3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   Responsive — Shop
   ============================================ */

@media (max-width: 1024px) {
    .shop-container {
        padding: 0 var(--space-4);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .about-teaser {
        gap: var(--space-5);
    }

    .beds-topbar__configurator {
        padding: 9px 16px;
        font-size: 0.6875rem;
        letter-spacing: 1px;
        gap: 6px;
    }

    .beds-topbar__configurator svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 768px) {
    :root {
        --shop-header-height: 60px;
    }

    .shop-container {
        padding: 0 var(--space-3);
    }

    .shop-section {
        padding: var(--space-8) 0;
    }

    .shop-section--compact {
        padding: var(--space-8) 0 var(--space-4);
    }

    .shop-section--flush {
        padding: 0 0 var(--space-8);
    }

    .btn--luxury,
    .btn--luxury-dark,
    .btn--slate {
        max-width: 100%;
        padding: 14px 24px;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
        letter-spacing: 2px;
    }

    .shop-hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .sound-toggle {
        bottom: var(--space-3);
        right: var(--space-3);
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .craft-gallery {
        display: block;
        height: clamp(360px, 94vw, 540px) !important;
        overflow: hidden;
        scroll-snap-type: none;
        padding-bottom: 0;
        touch-action: pan-y;
        transition: none;
    }

    .craft-gallery::-webkit-scrollbar {
        display: none;
    }

    .craft-gallery__hero-wrap,
    .craft-gallery__sub-wrap {
        position: absolute;
        inset: 0;
        display: grid;
        gap: var(--space-2);
        flex: none;
        width: 100%;
        height: 100%;
        align-items: stretch;
        scroll-snap-align: none;
        touch-action: pan-y;
        will-change: transform;
    }

    .craft-gallery__hero-wrap {
        background: var(--color-cream);
        animation: craft-mobile-slide-primary 10s cubic-bezier(0.7, 0, 0.2, 1) infinite;
    }

    .craft-gallery__sub-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: var(--space-2);
        transform: translate3d(100%, 0, 0);
        animation: craft-mobile-slide-secondary 10s cubic-bezier(0.7, 0, 0.2, 1) infinite;
    }

    .craft-gallery__row {
        display: contents;
    }

    .craft-gallery__item--hero,
    .craft-gallery__item--bed,
    .craft-gallery__item--nightstand,
    .craft-gallery__item--bedc {
        grid-column: unset;
        grid-row: unset;
        width: 100%;
        height: auto;
        min-height: 0;
        touch-action: pan-y;
    }

    .craft-gallery__item--hero {
        height: 100%;
        aspect-ratio: auto;
    }

    .craft-gallery__item--bed {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
    }

    .craft-gallery__item--nightstand {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .craft-gallery__item--bedc {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .about-teaser {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        width: 100%;
        min-width: 0;
    }

    .about-teaser > *,
    .store-teaser > * {
        min-width: 0;
        max-width: 100%;
    }

    .about-teaser__content {
        padding-right: 0;
        order: 1;
    }

    .about-teaser__image {
        order: 2;
    }

    .about-teaser__content .btn--luxury-dark {
        width: 100%;
        justify-content: center;
    }

    .store-teaser {
        grid-template-columns: 1fr;
    }

    .store-teaser__image {
        min-height: 280px;
    }

    .store-teaser__info {
        padding: var(--space-5) var(--space-4);
    }

    .category-card {
        aspect-ratio: 16 / 9;
    }

    /* Bed Showcase — stack on mobile */
    .bed-showcase {
        grid-template-columns: 1fr;
        min-height: 100vh;
        min-height: 100svh;
    }

    .bed-showcase:nth-child(even) {
        direction: ltr;
    }

    .bed-showcase__image {
        min-height: 50vh;
        min-height: 50svh;
    }

    .bed-showcase__content {
        padding: var(--space-6) var(--space-4);
    }

    .bed-showcase__name {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    /* Grid view responsive */
    .bed-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .bed-view-switcher {
        display: none;
    }
}

@media (max-width: 480px) {

    .btn--primary,
    .btn--secondary {
        padding: 12px 24px;
        font-size: 0.75rem;
    }

    .beds-topbar__configurator {
        padding: 7px 12px;
        font-size: 0.625rem;
        gap: 5px;
    }

    .beds-topbar__configurator svg {
        width: 12px;
        height: 12px;
    }

    .product-card__image-wrap {
        border-radius: 0;
    }

    .category-card {
        border-radius: 0;
    }
}

/* ── Short mobile landscape hero ──
   Keep the hero copy below the fixed header on phones with little vertical space.
   The hero may grow past the viewport, so the page remains normally scrollable. */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .shop-hero {
        align-items: flex-start;
        overflow: hidden;
    }

    .shop-hero__content {
        width: 100%;
        max-width: 560px;
        padding: calc(var(--shop-header-height) + 8px) var(--space-4) var(--space-3);
    }

    .shop-hero__label {
        margin-bottom: var(--space-1);
    }

    .shop-hero__title {
        font-size: 2rem;
        margin-bottom: var(--space-1);
    }

    .shop-hero__subtitle {
        line-height: 1.45;
        margin-bottom: var(--space-2);
    }

    .shop-hero .btn--luxury {
        padding-block: 10px;
    }

    .shop-hero__scroll {
        display: none;
    }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .product-card:hover {
        transform: none;
    }

    .product-card:hover .product-card__image {
        transform: none;
    }

    .category-card:hover .category-card__image {
        transform: none;
    }

    .bed-showcase:hover .bed-showcase__image img {
        transform: none;
    }

    .shop-hero__scroll svg {
        animation: none;
    }

    .sound-toggle.is-playing .sound-toggle__eq span {
        animation: none;
        height: 8px;
    }

    .craft-gallery__hero-wrap,
    .craft-gallery__sub-wrap {
        animation: none;
        transform: none;
    }

    .craft-gallery__sub-wrap {
        display: none;
    }
}
/* ── Consultation CTA Section ── */
.consultation-cta {
    position: relative;
    padding: var(--space-10) var(--space-6);
    background: var(--color-graphite);
    text-align: center;
    overflow: hidden;
}

.consultation-cta__bg {
    position: absolute;
    inset: 0;
    background: url('/images/hero/hero-bedroom.png') center / cover no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.consultation-cta__inner {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.consultation-cta__label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent-gold);
    opacity: 0.9;
}

.consultation-cta__title {
    color: var(--color-white);
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.3;
    margin: 0;
}

.consultation-cta__sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
    max-width: 480px;
}

/* ── Room Concept Sections (Bedroom Page) ── */
.room-concept {
    display: grid;
    /* Image column = a perfect square sized to the section height (so the
       moodboard fills it without letterbox), text fills the remaining width. */
    grid-template-columns: min(calc(100vh - 80px), 56vw) 1fr;
    height: calc(100vh - 80px);
    min-height: calc(100vh - 80px);
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Snap container: applied to the document scroll on bedroom concepts page.
   `mandatory` so mouse-wheel ticks always snap to the next section. CTA gets
   a snap-align too, so the footer stays reachable after the concepts. */
html:has(body.bedroom-concepts-page) {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body.bedroom-concepts-page .concept-hero,
body.bedroom-concepts-page .consultation-cta {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Keep the sticky header always visible on this page — the hide-on-scroll
   behaviour conflicts with the snap transitions. */
body.bedroom-concepts-page .shop-header.shop-header--hidden {
    top: 0 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.bedroom-concepts-page .shop-header.shop-header--hidden .shop-header__inner {
    opacity: 1 !important;
}

@media (max-width: 768px) {
    html:has(body.bedroom-concepts-page) {
        scroll-snap-type: none;
        scroll-padding-top: 0;
    }
}

.room-concept:nth-child(even) {
    direction: rtl;
}

.room-concept:nth-child(even) > * {
    direction: ltr;
}

/* Mirror the content alignment for even (image-on-right) concepts so the
   text block sits adjacent to the image, not flush against the viewport's
   outer edge. Magazine-spread symmetry. */
.room-concept:nth-child(even) .room-concept__content {
    text-align: right;
    align-items: flex-end;
}

/* Override the inline `align-self: flex-start` on the CTA button so it
   also anchors to the inner edge (next to the image) on even concepts. */
.room-concept:nth-child(even) .room-concept__content > .btn {
    align-self: flex-end !important;
}

.room-concept > * {
    min-width: 0;
    min-height: 0;
}

.room-concept:nth-child(odd) {
    background: var(--color-white);
}

.room-concept:nth-child(even) {
    background: color-mix(in srgb, var(--color-cream) 60%, white);
}

.room-concept__image {
    position: relative;
    overflow: hidden;
}

.room-concept__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-concept:hover .room-concept__image img {
    transform: scale(1.025);
}

.room-concept__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-10) var(--space-8);
    gap: var(--space-4);
    /* Constrain the reading column so text never stretches across very wide
       text-side cells on big monitors. */
    max-width: 520px;
    width: 100%;
    /* Anchor to the inline-start of the grid cell so it sits next to the
       image. With `direction: rtl` on even concepts this start flips to the
       right, keeping the text adjacent to the (now right-side) image. */
    justify-self: start;
}

.room-concept__label {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-warm-grey-dark);
}

.room-concept__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
}

.room-concept__title em {
    font-style: italic;
    font-weight: 300;
}

.room-concept__divider {
    width: 40px;
    height: 1px;
    background: var(--color-accent-gold);
    border: none;
    margin: 0;
}

.room-concept__desc {
    font-size: 0.9375rem;
    line-height: 1.8;
    opacity: 0.7;
    margin: 0;
    max-width: 360px;
}

.room-concept__tagline {
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.01em;
    color: var(--color-accent-gold);
    margin: 0;
    line-height: 1.4;
}

.room-concept__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 380px;
}

.room-concept__tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-warm-grey-dark);
    background: color-mix(in srgb, var(--color-cream) 70%, white);
    border: 1px solid color-mix(in srgb, var(--color-warm-grey-dark) 12%, transparent);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Moodboard variant: lock the image cell to a perfect square so the 1:1
   moodboard fills it without any cropping, regardless of viewport ratio.
   When the grid cell is taller than wide (narrow viewports), the cell stays
   square and is centered vertically — the section background fills the
   remaining space. */
.room-concept__image--moodboard {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-height: 100%;
    align-self: center;
}

.room-concept__image--moodboard img {
    object-fit: cover;
    object-position: center;
}

/* ── Cinematic Reveal (Bedroom Concepts) ──
   When a section snaps into view, the image fades + scales in, then the text
   stagger-reveals from the side. Toggled by an IntersectionObserver setting
   .is-active on each .room-concept. */
body.bedroom-concepts-page .room-concept__image img,
body.bedroom-concepts-page .room-concept__content > * {
    opacity: 0;
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

body.bedroom-concepts-page .room-concept__image img {
    transform: scale(0.97);
}

body.bedroom-concepts-page .room-concept__content > * {
    transform: translateX(24px);
}

/* Mirror the slide direction on alternating sections so text always
   travels in from the side adjacent to the image. */
body.bedroom-concepts-page .room-concept:nth-child(even) .room-concept__content > * {
    transform: translateX(-24px);
}

body.bedroom-concepts-page .room-concept.is-active .room-concept__image img,
body.bedroom-concepts-page .room-concept.is-active .room-concept__content > * {
    opacity: 1;
    transform: none;
}

/* Stagger the content reveal (label / title / tagline / divider / desc / button) */
body.bedroom-concepts-page .room-concept.is-active .room-concept__content > *:nth-child(1) { transition-delay: 0.18s; }
body.bedroom-concepts-page .room-concept.is-active .room-concept__content > *:nth-child(2) { transition-delay: 0.26s; }
body.bedroom-concepts-page .room-concept.is-active .room-concept__content > *:nth-child(3) { transition-delay: 0.34s; }
body.bedroom-concepts-page .room-concept.is-active .room-concept__content > *:nth-child(4) { transition-delay: 0.42s; }
body.bedroom-concepts-page .room-concept.is-active .room-concept__content > *:nth-child(5) { transition-delay: 0.50s; }
body.bedroom-concepts-page .room-concept.is-active .room-concept__content > *:nth-child(6) { transition-delay: 0.58s; }

/* Respect reduced-motion: no transforms / no transitions */
@media (prefers-reduced-motion: reduce) {
    body.bedroom-concepts-page .room-concept__image img,
    body.bedroom-concepts-page .room-concept__content > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Narrow viewports (small laptops, tablets, narrow windows) and portrait-ish
   aspect ratios: switch to a stacked vertical layout. Image stays square and
   text reads below it — no more cropped images or pinched columns. Snap is
   disabled here because mid-viewport-height sections don't make sense when
   the section is taller than the viewport. */
@media (max-width: 1024px), (max-aspect-ratio: 5/4) {
    .room-concept {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: 0;
        direction: ltr !important;
    }

    .room-concept > * {
        direction: ltr !important;
    }

    .room-concept__image {
        aspect-ratio: 4 / 3;
        max-height: none;
        align-self: stretch;
    }

    .room-concept__image--moodboard {
        aspect-ratio: 1 / 1;
        max-width: min(640px, 100%);
        margin: 0 auto;
        justify-self: center;
        align-self: stretch;
    }

    .room-concept__content {
        padding: var(--space-10) var(--space-8);
        max-width: 640px;
        margin: 0 auto !important;
        justify-self: center !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .room-concept:nth-child(even) .room-concept__content > .btn {
        align-self: flex-start !important;
    }

    html:has(body.bedroom-concepts-page) {
        scroll-snap-type: none;
        scroll-padding-top: 0;
    }

    /* On stacked layouts the sticky-header hide-on-scroll is the normal,
       expected behaviour — undo the always-visible override. */
    body.bedroom-concepts-page .shop-header.shop-header--hidden {
        top: -120px !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.bedroom-concepts-page .shop-header.shop-header--hidden .shop-header__inner {
        opacity: 0 !important;
    }
}

@media (max-width: 768px) {
    .room-concept__content {
        padding: var(--space-8) var(--space-5);
        max-width: 100%;
    }

    .consultation-cta {
        padding: var(--space-8) var(--space-5);
    }
}


/* Reveal: only fade in when JS is enabled (graceful degradation) */
html.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* Disable hover image scale animations when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .category-card:hover .category-card__image,
    .collection-fullscreen .category-card:hover .category-card__image,
    .bed-showcase:hover .bed-showcase__image img,
    .bed-grid-card:hover .bed-grid-card__image img,
    .room-concept:hover .room-concept__image img,
    .store-gallery a:hover img,
    .concept-card:hover img,
    .product-card:hover .product-card__image--primary,
    .product-card:hover .product-card__image--secondary,
    .product-card:hover .product-card__image--primary:only-child {
        transform: none !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Keep unreleased editorial imagery fully obscured even when hover or
   reduced-motion rules disable the normal showcase transforms. */
.bed-showcase__image > .model-l-coming-soon > .model-l-coming-soon__image,
.bed-showcase:hover .bed-showcase__image > .model-l-coming-soon > .model-l-coming-soon__image {
    filter: blur(46px) saturate(0.18) contrast(0.48) brightness(0.68) !important;
    transform: scale(1.28) !important;
}
