.department-index-page,
.department-products-page {
    background: var(--white);
}

.department-index {
    max-width: var(--max-width);
    margin: 0 auto;
}

.department-index__item {
    scroll-margin-top: 110px;
    padding-bottom: 3rem;
}

.department-index__item+.department-index__item {
    border-top: 1px solid #eef2f7;
}

.department-index-page .department-story {
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.department-index-page .department-story__text h2 {
    color: #0f172a;
    font-size: 40px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid #cbd5e1;
}

.department-index-page .department-story--reversed .department-story__images {
    order: -1;
}

.department-index-page .department-products {
    padding-top: 1rem;
    padding-bottom: 4.5rem;
}

.department-index-page .department-products h2 {
    margin-bottom: 3.2rem;
    color: #0f172a;
    font-size: 36px;
}

.department-index-page .department-product-card {
    text-decoration: none;
}

/* ── Principal products (products.blade) ─────────────────────────────────── */

.principal-products {
    max-width: 1160px;
    margin: 0 auto;
    padding: 5rem 2rem 8rem;
}

.principal-products__heading {
    color: #0f172a;
    text-align: center;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 5.5rem;
}

/* Category divider between grouped products */
.principal-products__category-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3.5rem 0 2.5rem;
}

.principal-products__category-divider::before,
.principal-products__category-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #cbd5e1;
}

.principal-products__category-divider span {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0 .25rem;
}

.principal-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
    gap: 6rem;
    align-items: center;
    margin-bottom: 6.5rem;
    scroll-margin-top: 110px;
}

.principal-product--reversed .principal-product__copy {
    order: 2;
}

.principal-product--reversed .principal-product__image-wrap {
    order: 1;
}

/* Product category (small label above title in copy column) */
.principal-product__category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary-color);
    opacity: 0.6;
    margin-bottom: 6px;
    line-height: 1.3;
}

.principal-product__copy h3 {
    color: var(--primary-color);
    font-size: 36px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem;
}

/* Label badge inline with the product title */
.product-label-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.5;
    vertical-align: middle;
    white-space: nowrap;
    flex-shrink: 0;
}

.principal-product__rule {
    width: 100%;
    height: 1px;
    background: #b9c2cf;
    margin-bottom: 1rem;
}

.principal-product__copy p {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.85;
    text-align: justify;
}

/* Image wrapper — needed so the label badge can be positioned over the image */
.principal-product__image-wrap {
    position: relative;
    width: 100%;
}

.principal-product__label-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #004a9f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.5;
    white-space: nowrap;
    pointer-events: none;
}

.principal-product__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.principal-products__empty {
    color: #64748b;
    text-align: center;
    padding: 4rem 0;
}

@media (max-width: 1180px) {
    .principal-product {
        gap: 4rem;
    }
}

@media (max-width: 900px) {

    .department-index-page .department-story--reversed .department-story__images,
    .principal-product--reversed .principal-product__copy,
    .principal-product--reversed .principal-product__image-wrap {
        order: initial;
    }

    .principal-products {
        padding: 4rem 2rem 6rem;
    }

    .principal-products__heading {
        font-size: 34px;
        margin-bottom: 4rem;
    }

    .principal-product {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 5rem;
    }

    .principal-product__copy h3 {
        font-size: 30px;
    }
}

@media (max-width: 560px) {
    .department-index-page .department-story__text h2 {
        font-size: 30px;
    }

    .department-index-page .department-products h2 {
        font-size: 28px;
    }

    .principal-products {
        padding: 3rem 1.5rem 5rem;
    }

    .principal-products__heading {
        font-size: 28px;
    }

    .principal-product__copy h3 {
        font-size: 26px;
    }

    .principal-products__category-divider {
        margin: 2.5rem 0 2rem;
    }
}
