/* ===================================
   Products Page — Editorial Redesign
   =================================== */

/* --- Page Header --- */
.products-header {
    padding: clamp(7rem, 14vw, 11rem) 0 clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}

.products-header-eyebrow {
    display: block;
    margin-bottom: 1.2rem;
    color: rgba(22, 22, 22, 0.42);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.products-header-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #161616;
    margin: 0 0 1.5rem;
}

.products-header-sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    font-weight: 300;
    line-height: 1.9;
    color: rgba(22, 22, 22, 0.5);
    letter-spacing: 0.04em;
}

/* --- Bento Grid --- */
.products-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-bottom: clamp(4rem, 8vw, 8rem);
}

/* Card base */
.bento-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: transparent;
    border: none;
    text-decoration: none;
    color: inherit;
}

.bento-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bento-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bento-card:hover .bento-card-image img {
    transform: scale(1.03);
}

/* Card aspect ratios */
.bento-card--wide .bento-card-image {
    aspect-ratio: 16 / 9;
}

.bento-card--tall .bento-card-image {
    aspect-ratio: 3 / 4;
}

.bento-card--square .bento-card-image {
    aspect-ratio: 1 / 1;
}

.bento-card--hero .bento-card-image {
    aspect-ratio: 21 / 9;
}

/* Card info */
.bento-card-info {
    padding: 1rem 0.15rem 0;
}

.bento-card-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1b1b1b;
}

.bento-card-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(22, 22, 22, 0.38);
    margin-top: 0.35rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bento-card:hover .bento-card-category {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive: Tablet (2 cols) --- */
@media (min-width: 768px) {
    .products-bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .bento-card--wide .bento-card-image {
        aspect-ratio: 4 / 3;
    }

    .bento-card--tall .bento-card-image {
        aspect-ratio: 3 / 4;
    }
}

/* --- Responsive: Desktop — Asymmetric Bento --- */
@media (min-width: 1024px) {
    .products-bento {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto auto;
        gap: 1.5rem;
    }

    /* Row 1: large card spans 2 + small card */
    .bento-card:nth-child(1) {
        grid-column: 1 / 3;
    }

    .bento-card:nth-child(2) {
        grid-column: 3 / 4;
    }

    /* Row 2: small card + large card spans 2 */
    .bento-card:nth-child(3) {
        grid-column: 1 / 2;
    }

    .bento-card:nth-child(4) {
        grid-column: 2 / 4;
    }

    /* Row 3: center (full width or centered) */
    .bento-card:nth-child(5) {
        grid-column: 1 / 4;
    }

    /* Adjust aspect ratios for desktop bento */
    .bento-card:nth-child(1) .bento-card-image {
        aspect-ratio: 16 / 9;
    }

    .bento-card:nth-child(2) .bento-card-image {
        aspect-ratio: 3 / 4;
    }

    .bento-card:nth-child(3) .bento-card-image {
        aspect-ratio: 3 / 4;
    }

    .bento-card:nth-child(4) .bento-card-image {
        aspect-ratio: 16 / 9;
    }

    .bento-card:nth-child(5) .bento-card-image {
        aspect-ratio: 21 / 9;
    }
}

/* --- Fade-in stagger overrides for bento cards --- */
.bento-card.fade-in {
    transition-delay: 0s;
}

.bento-card.fade-in:nth-child(2) {
    transition-delay: 0.1s;
}

.bento-card.fade-in:nth-child(3) {
    transition-delay: 0.2s;
}

.bento-card.fade-in:nth-child(4) {
    transition-delay: 0.3s;
}

.bento-card.fade-in:nth-child(5) {
    transition-delay: 0.4s;
}

/* --- Divider line between header and grid --- */
.products-divider {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(22, 22, 22, 0.08);
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}
