/*
    Brand Food Section — Stacking Cards
    Pinning handled by GSAP ScrollTrigger (not CSS sticky).
    Cards are direct children of section — no wrappers needed.
*/

.bfd-section {
    position: relative;
    z-index: 2;
    background: var(--bsb-color-bg);
}

/* ── Card ── */
.bfd-card {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bsb-color-bg);
    overflow: hidden;
    /* will-change applied dynamically via JS during animation */
}

.bfd-card[data-card="1"] {
    z-index: 1;
}

.bfd-card[data-card="2"] {
    z-index: 2;
}

.bfd-card[data-card="3"] {
    z-index: 3;
}

/* Subtle top shadow to enhance stacking depth */
.bfd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06), transparent);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

.bfd-card[data-card="2"]::before,
.bfd-card[data-card="3"]::before {
    opacity: 0;
}

/* ── Full-Width Inner Layout ── */
.bfd-card__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
    align-items: center;
}

/* ── Image — Edge-to-edge on left ── */
.bfd-card__image {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.bfd-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* ── Content — Padded on right ── */
.bfd-card__content {
    padding: 4rem 20px;
    max-width: 500px;
    margin-inline: auto;
}

.bfd-card__title {
    font-family: var(--bsb-font-display);
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--bsb-color-text);
    margin: 0 0 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.bfd-card__title--secondary {
    margin-top: 2rem;
}

.bfd-card__price {
    font-family: var(--bsb-font-primary);
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    font-weight: 600;
    color: #000000;
    margin: 0 0 1.5rem;
}

.bfd-card__desc {
    font-family: var(--bsb-font-primary);
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    line-height: 1.55;
    color: #000000;
    margin: 0 0 1.25rem;
    font-weight: 400;
}

.bfd-card__desc--highlight {
    font-weight: 600;
    color: var(--bsb-color-text);
}

/* ── Features List ── */
.bfd-card__features {
    list-style: none;
    padding: 1rem;
    margin: 0 0 2rem;
}

.bfd-card__features li {
    font-family: var(--bsb-font-primary);
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    line-height: 1.7;
    color: #000000;
    padding-left: 1rem;
    position: relative;
}

.bfd-card__features li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--bsb-color-text);
    font-weight: 700;
}

/* ── Quantity Selector — Pill Shape ── */
.bfd-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: clamp(1rem, 2vw, 2.375rem);
}

.bfd-qty {
    display: inline-flex;
    align-items: center;
    justify-content: space-around;
    border: 1.5px solid #F0F0F0;
    background-color: #F0F0F0;
    border-radius: 999px;
    overflow: hidden;
    width: 158px;
}

.bfd-qty__btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    font-size: 1.375rem;
    cursor: pointer;
    color: var(--bsb-color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.bfd-qty__btn:hover {
    background: #f5f5f5;
}

.bfd-qty__value {
    width: 32px;
    text-align: center;
    font-family: var(--bsb-font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bsb-color-text);
    line-height: 38px;
}

/* ── Add to Cart Button — Pill Shape ── */
.bfd-add-to-cart {
    width: 230px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2.25rem;
    height: 42px;
    background: var(--bsb-color-text);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: var(--bsb-font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.bfd-add-to-cart:hover {
    background: #333;
}

/* ── Payment Methods ── */
.bfd-card__pay {
    margin-top: .8rem;
    text-align: center;
}

.bfd-card__pay img {
    height: 18px;
    width: auto;
}

/* ── Link with Down Arrow ── */
.bfd-card__link-wrapper {
    text-align: right;
    margin-top: clamp(1.25rem, 5vw, 5rem);
}

.bfd-card__link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--bsb-font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bsb-color-text);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.bfd-card__link:hover {
    gap: 0.75rem;
}

.bfd-card__link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.bfd-card__link:hover svg {
    transform: translateY(3px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .bfd-card__content {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .bfd-card {
        height: auto;
        min-height: auto;
    }

    .bfd-card__inner {
        grid-template-columns: 1fr;
        height: auto;
    }

    .bfd-card__image {
        min-height: 50vh;
        height: 50vh;
    }

    .bfd-card__content {
        padding: 2.5rem 20px;
        max-width: 100%;
    }

    .bfd-card__title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }
}

@media (max-width: 480px) {
    .bfd-card__image {
        min-height: 40vh;
        height: 40vh;
    }

    .bfd-card__content {
        padding: 2rem 16px;
    }

    .bfd-card__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .bfd-add-to-cart {
        width: 100%;
    }
}