/* Bewakoof-style root landing (/) — single viewport, no scroll */
body.page-landing {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.page-landing main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.page-landing .store-footer {
    display: none;
}

@media (max-height: 640px), (max-width: 380px) {
    body.page-landing {
        height: auto;
        max-height: none;
        overflow-x: clip;
        overflow-y: auto;
    }

    body.page-landing main {
        overflow: visible;
        min-height: 100dvh;
    }
}

.bw-shop--root {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bw-shop--root .bw-shop__inner {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vh, 1.25rem) clamp(1rem, 4vw, 2rem) clamp(1.25rem, 3vh, 2rem);
    max-width: none;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.bw-shop--root .bw-shop__brand {
    font-size: clamp(0.95rem, 2.5vw, 1.35rem);
    margin-bottom: 0.05rem;
    flex-shrink: 0;
}

.bw-shop--root .bw-shop__heading {
    font-size: clamp(1.1rem, 3.5vw, 1.85rem);
    margin: 0 0 clamp(0.35rem, 1.5vh, 0.65rem);
    flex-shrink: 0;
}

.bw-shop__sale-strip {
    position: relative;
    width: min(88vw, 1140px);
    height: clamp(88px, 14vh, 140px);
    margin: 0 0 clamp(1rem, 2.5vh, 1.5rem);
    border-radius: clamp(10px, 1.5vw, 16px);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease;
    will-change: transform;
}

.bw-shop--root .bw-shop__sale-strip:hover {
    transform: translateY(-6px) scale(1.02);
}

.bw-sale-banner {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity 0.65s ease-in-out;
}

.bw-sale-banner.is-active {
    opacity: 1;
    z-index: 1;
}

.bw-sale-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.bw-shop--root .bw-shop__cards {
    flex: 1 1 auto;
    min-height: 0;
    width: min(88vw, 1140px);
    height: min(68dvh, calc(100dvh - 10rem));
    max-width: none;
    max-height: none;
    align-content: stretch;
    gap: clamp(1rem, 3vw, 1.75rem);
}

.bw-shop--root .bw-shop-card {
    height: 100%;
    max-height: none;
    min-height: 0;
    border-radius: clamp(10px, 1.5vw, 16px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease;
}

.bw-shop--root .bw-shop-card__img {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: unset;
    background: #2a2a2a;
}

.bw-shop-card__slider {
    position: relative;
    overflow: hidden;
}

.bw-shop-card__slider .bw-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    will-change: opacity;
}

.bw-shop-card__slider .bw-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.bw-shop-card__slider.is-running .bw-slide {
    transition: opacity 0.85s ease-in-out;
}

.bw-shop--root .bw-shop-card__btn {
    font-size: clamp(0.7rem, 1.8vw, 1rem);
    line-height: 1.2;
    letter-spacing: 0.07em;
    padding: clamp(0.5rem, 1.5vh, 0.85rem) 0.35rem;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .bw-shop--root .bw-shop__cards {
        grid-template-columns: 1fr;
        width: min(88vw, 420px);
        height: auto;
        flex: 0 0 auto;
        gap: clamp(1rem, 4vw, 1.35rem);
    }

    .bw-shop--root .bw-shop-card {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .bw-shop--root .bw-shop-card__img {
        aspect-ratio: 4 / 3;
        flex: none;
        min-height: 180px;
    }

    .bw-shop--root .bw-shop__inner {
        justify-content: flex-start;
        padding: clamp(1rem, 3vh, 1.5rem) clamp(1rem, 5vw, 1.5rem) clamp(1.25rem, 4vh, 2rem);
        overflow-y: auto;
    }

    .bw-shop__sale-strip {
        width: min(88vw, 420px);
        margin-bottom: clamp(1rem, 4vw, 1.35rem);
    }
}

@media (min-width: 992px) {
    .bw-shop--root .bw-shop__cards {
        width: min(86vw, 1200px);
        height: min(70dvh, calc(100dvh - 10.5rem));
    }
}

@media (max-height: 640px) {
    .bw-shop--root .bw-shop__brand { font-size: 0.9rem; }
    .bw-shop--root .bw-shop__heading { font-size: 1rem; margin-bottom: 0.25rem; }
    .bw-shop--root .bw-shop__cards {
        height: min(68dvh, calc(100dvh - 6rem));
    }
    .bw-shop--root .bw-shop-card__btn {
        padding: 0.4rem 0.25rem;
        font-size: 0.62rem;
    }
}

.bw-shop__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bw-shop__spark {
    position: absolute;
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(0,0,0,0.15);
}

.bw-shop__spark--1 { top: 18%; left: 12%; }
.bw-shop__spark--2 { top: 28%; right: 15%; font-size: 1.5rem; }
.bw-shop__spark--3 { bottom: 22%; left: 18%; }
.bw-shop__spark--4 { bottom: 30%; right: 12%; }

.bw-shop {
    min-height: 0;
    background: linear-gradient(180deg, #ffe566 0%, #ffd93d 35%, #f5c518 100%);
    position: relative;
    overflow: hidden;
}

.bw-shop::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 28px,
            rgba(0,0,0,0.03) 28px,
            rgba(0,0,0,0.03) 56px
        );
    pointer-events: none;
}

.bw-shop__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 2rem;
    text-align: center;
}

/* default inner padding only when not root landing */
body:not(.page-landing) .bw-shop__inner {
    padding: 2.5rem 1.25rem 2rem;
}

.bw-shop__brand {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
    color: #111;
}

.bw-shop__heading {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0 0 2rem;
    color: #111;
}

.bw-shop__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.5rem, 2vw, 1rem);
    max-width: 520px;
    margin: 0 auto;
}

.bw-shop-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #111;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: transform 0.2s;
}

.bw-shop-card:hover {
    transform: translateY(-6px) scale(1.02);
    color: #111;
}

.bw-shop-card__img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0f0f0;
}

.bw-shop-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.bw-shop-card__btn {
    display: block;
    padding: 0.85rem;
    font-size: clamp(1rem, 3vw, 1.35rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    background: linear-gradient(180deg, #fff9e6 0%, #ffe566 100%);
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* Photo customise lines below */
.bw-photo-lines {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 2rem 0 3rem;
    border-radius: 24px 24px 0 0;
    margin-top: 1rem;
}

.bw-photo-lines__title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    text-align: center;
}

.bw-photo-lines__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .bw-photo-lines__grid { grid-template-columns: repeat(3, 1fr); }
}

.bw-photo-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #222;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bw-photo-line:hover {
    border-color: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: #111;
}

.bw-photo-line img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.bw-photo-line__placeholder {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 1.5rem;
    color: #aaa;
}

.bw-photo-line__name {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
}

.bw-photo-lines .home-container {
    max-width: 900px;
    margin: 0 auto;
    padding-inline: 1rem;
}
