.department-detail-page .department-hero {
    height: 330px;
    min-height: 330px;
}

.department-detail-page .department-hero .breadcrumb {
    font-size: 20px;
    gap: 10px;
    margin-bottom: 28px;
}

.department-detail-page .department-hero h1 {
    font-size: 44px;
    font-weight: 500;
    margin-bottom: 14px;
}

.department-detail-page .department-hero p {
    max-width: 680px;
    font-size: 19px;
}

.department-story {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 100px 4.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
    gap: 4rem;
    align-items: center;
}

.department-story__text {
    color: var(--primary-color);
    font-size: 19px;
    line-height: 1.45;
    text-align: justify;
}

.department-story__text p+p {
    margin-top: 1.4rem;
}

.department-story__images {
    --tile-size: clamp(220px, 17vw, 285px);
    position: relative;
    width: min(100%, calc(var(--tile-size) * 1.72));
    height: calc(var(--tile-size) * 2.28);
    min-height: 0;
    justify-self: center;
}

.department-story__image {
    position: absolute;
    width: var(--tile-size);
    height: var(--tile-size);
    object-fit: cover;
    border-radius: 8px;
}

.department-story__image--one {
    top: 0;
    left: calc(var(--tile-size) * .17);
}

.department-story__image--two {
    top: calc(var(--tile-size) * .55);
    right: 0;
    z-index: 2;
}

.department-story__image--three {
    left: 0;
    bottom: 0;
    z-index: 2;
}

.department-products {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 80px 7rem;
}

.department-products h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 4.5rem;
}

.department-products__carousel {
    position: relative;
    width: 100%;
}

.department-products-swiper {
    overflow: hidden;
    padding: 0 56px 4px;
}

.department-products-swiper .swiper-wrapper {
    align-items: stretch;
}

.department-products-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.department-product-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #244d9a;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    color: inherit;
    text-decoration: none;
}

.department-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.department-product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 98px;
    z-index: 1;
    height: 100%;

    background: rgba(0, 0, 0, 0.42);
}

.department-product-card__overlay {
    position: absolute;
    top: 24px;
    left: 20px;
    right: 20px;
    z-index: 2;
    color: var(--white);
}

.department-product-card__overlay p {
    position: relative;
    padding-bottom: 18px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.department-product-card__overlay p::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.55);
}

.department-product-card__body {
    min-height: 98px;
    margin-top: auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px;
    background: #244d9a;
    color: var(--white);
    text-align: center;
}

.department-product-card__body h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

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

.department-products__controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.department-products__button {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid #cdd8eb;
    background: var(--white);
    color: var(--primary-color);
    display: inline-grid;
    place-items: center;
    font-size: 1.35rem;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.department-products__button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.department-products__button.swiper-button-disabled,
.department-products__button.swiper-button-lock {
    opacity: 0.55;
    cursor: not-allowed;
}

.department-products__button.swiper-button-lock {
    display: inline-grid !important;
}

.department-products__pagination.swiper-pagination-lock {
    display: flex !important;
}

.department-products__pagination {
    width: auto !important;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.department-products__pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 !important;
    opacity: 1;
    background: #d8e0ef;
}

.department-products__pagination .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 999px;
    background: var(--primary-color);
}

/* ── Label badge on swiper card ───────────────────────────────────────────── */

.department-product-card__label {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.5;
    pointer-events: none;
    white-space: nowrap;
}

/* ── Product category text inside card body ───────────────────────────────── */

.department-product-card__category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 5px;
    line-height: 1.3;
}

@media (max-width: 1180px) {
    .department-story {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .department-story__images {
        --tile-size: clamp(220px, 32vw, 285px);
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (min-width: 1100px) and (max-width: 1350px) {
    .department-story {
        padding-left: 80px;
        padding-right: 80px;
        gap: 3rem;
    }

    .department-story__images {
        --tile-size: clamp(280px, 23vw, 315px);
    }
}

@media (max-width: 900px) {
    .department-detail-page .department-hero {
        height: auto;
        min-height: 280px;
        padding: 4rem 2rem;
    }

    .department-detail-page .department-hero h1 {
        font-size: 34px;
    }

    .department-story {
        padding: 4rem 2rem 3rem;
    }

    .department-story__images {
        --tile-size: clamp(190px, 37vw, 250px);
    }

    .department-products {
        padding: 2rem 2rem 5rem;
    }

    .department-products h2 {
        font-size: 30px;
        margin-bottom: 3rem;
    }

    .department-products-swiper {
        padding: 0 48px 4px;
    }
}

@media (max-width: 560px) {
    .department-detail-page .department-hero {
        padding: 3.5rem 1.5rem;
    }

    .department-story {
        padding: 3rem 1.5rem;
    }

    .department-story__text {
        font-size: 16px;
    }

    .department-story__images {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        height: auto;
    }

    .department-story__image {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .department-products {
        padding: 1rem 1.5rem 4rem;
    }

    .department-products-swiper {
        padding: 0 44px 4px;
    }

    .department-products-swiper .swiper-slide {
        width: 100%;
    }

    .department-product-card {
        min-height: 390px;
    }

    .department-product-card__body {
        min-height: 84px;
        padding: 16px 20px;
    }

    .department-product-card__body h3 {
        font-size: 20px;
    }

    .department-product-card__overlay {
        top: 20px;
        left: 18px;
        right: 18px;
    }

    .department-product-card__overlay p {
        font-size: 14px;
    }

    .department-products__button {
        width: 40px;
        height: 40px;
    }
}
