/* Calvin Klein — Denim Fit Guide (global parity) */
.jeans-guide {
    width: 100%;
    background: #fff;
    color: #000;
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
}

    .jeans-guide a:hover,
    .jeans-guide a:focus {
        text-decoration: none;
    }

#department:has(#jeans-guide) {
    padding: 0;
    margin: 0;
    max-width: none;
}

/* ===== HERO ===== */
.jg-hero {
    position: relative;
    width: 100%;
    /* Top banner (~50) + sticky header (~70 desktop / ~50 mobile) */
    height: calc(100dvh - 120px);
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: #111;
}

.jg-hero__full-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.jg-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

    .jg-hero__video,
    .jg-hero__image,
    .jg-hero__media img,
    .jg-hero__media picture {
        width: 100%;
        height: 100%;
        display: block;
    }

    .jg-hero__video,
    .jg-hero__image,
    .jg-hero__media img {
        object-fit: cover;
    }

.jg-hero__content {
    position: relative;
    z-index: 3;
    padding: 2.5rem 2.5rem 3rem;
    max-width: 720px;
    color: #fff;
    pointer-events: none;
}

    .jg-hero__content a {
        pointer-events: auto;
    }

.jg-hero__eyebrow {
    display: block;
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: 0.02em;
}

.jg-hero__title {
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 72px;
    font-weight: 300;
    line-height: 1;
    margin: 0 0 0.75rem;
    letter-spacing: 0;
    color: #fff;
}

.jg-hero__subtitle {
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 1rem;
    color: #fff;
    max-width: 420px;
}

.jg-hero__cta {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 5px;
}

    .jg-hero__cta:hover,
    .jg-hero__cta:focus {
        color: #fff !important;
        opacity: 0.85;
    }

@media (max-width: 1024px) {
    /* Hero sits below top banner (~50) + header (50); full 100dvh overflows CTA */
    .jg-hero {
        height: calc(100dvh - 100px);
        min-height: 420px;
        box-sizing: border-box;
    }

    .jg-hero__content {
        padding: 12px 16px 20px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .jg-hero__title {
        font-size: 32px;
        line-height: 1.05;
        margin: 0 0 8px;
    }

    .jg-hero__subtitle {
        font-size: 14px;
        line-height: 1.4;
        margin: 0 0 10px;
        max-width: 100%;
    }

    .jg-hero__cta {
        font-size: 14px;
    }
}

/* ===== TABS ===== */
.jg-tabs {
    position: sticky;
    top: 70px; /* .header sticky height (desktop) */
    z-index: 100;
    background: #fff;
    width: 100%;
    border-bottom: 1px solid #eee;
}

.jg-tabs__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 0 2.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .jg-tabs__inner::-webkit-scrollbar {
        display: none;
    }

.jg-tabs__item {
    flex: 0 0 auto;
    padding: 1rem 0;
    color: #999 !important;
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    line-height: 1.375;
}

    .jg-tabs__item:hover,
    .jg-tabs__item:focus {
        color: #222 !important;
        text-decoration: none !important;
    }

    .jg-tabs__item.active {
        border-bottom-color: #000;
        color: #222 !important;
    }

@media (max-width: 1024px) {
    .jg-tabs {
        top: 50px; /* .header sticky height (mobile/tablet) */
    }
}

@media (max-width: 768px) {
    .jg-tabs__inner {
        gap: 1.25rem;
        padding: 0 1.25rem;
    }

    .jg-tabs__item {
        font-size: 13px;
        padding: 0.875rem 0;
    }
}

/* ===== FIT SECTION ===== */
.jg-fit {
    width: 100%;
}

.jg-fit__layout {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.jg-fit__media {
    position: sticky;
    top: 124px; /* header 70 + tabs ~54 */
    width: 50%;
    height: calc(100dvh - 124px);
    overflow: hidden;
    background: #e8e8e8;
    flex-shrink: 0;
    align-self: flex-start;
}

.jg-fit__video,
.jg-fit__image,
.jg-fit__media picture {
    width: 100%;
    height: 100%;
    display: block;
}

.jg-fit__video,
.jg-fit__image {
    object-fit: cover;
}

.jg-fit__model-note {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    font-size: 10px;
    line-height: 1.35;
    padding: 12px;
    max-width: 70%;
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
}

.jg-fit__content {
    width: 50%;
    padding: 200px 40px 80px;
    background: #fff;
    box-sizing: border-box;
}

.jg-fit__heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.jg-fit__title {
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 34px;
    font-weight: 400;
    margin: 0;
    line-height: 1.15;
    color: #000;
    letter-spacing: 0;
}

.jg-fit__shop-link {
    color: #000 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    margin-top: 0.5rem;
    padding-bottom: 5px;
}

    .jg-fit__shop-link:hover,
    .jg-fit__shop-link:focus {
        color: #000 !important;
        opacity: 0.7;
    }

.jg-fit__subtitle {
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 1.25rem;
    color: #000;
}

.jg-fit__bullets {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    list-style: disc;
    list-style-position: outside;
    padding-left: 1.25rem;
    margin: 0 0 2rem;
    width: 100%;
    float: none !important;
    clear: both;
}

    .jg-fit__bullets li {
        display: list-item !important;
        float: none !important;
        width: auto !important;
        max-width: 100%;
        font-family: "Klein Regular", Helvetica, Arial, sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.6;
        margin: 0 0 0.15rem;
        padding: 0;
        color: #000;
        list-style: disc;
        list-style-position: outside;
    }

.jg-fit__details {
    clear: both;
    width: 100%;
    float: none;
}

.jg-fit__details-title {
    display: block;
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 16px;
    color: #000;
    letter-spacing: normal;
    text-transform: none !important;
    font-weight: 500;
}

.jg-fit__details-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 0.5rem) / 2.5);
    justify-content: start;
    gap: 0.25rem;
    overflow: hidden;
}

.jg-fit__details-item {
    display: block;
    overflow: hidden;
}

    .jg-fit__details-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 5 / 7;
        display: block;
        object-fit: cover;
    }

/* Products */
.jg-fit__products {
    margin-top: 3rem;
    padding-top: 0.5rem;
}

.jg-fit__products-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
}

.jg-fit__products-title {
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    color: #000;
}

.jg-fit__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.jg-fit__filter {
    appearance: none;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    border-radius: 0;
    padding: 4px 12px;
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.3;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .jg-fit__filter:hover {
        background: #000;
        color: #fff;
    }

    .jg-fit__filter.active {
        background: #000;
        color: #fff;
    }

.jg-fit__panel {
    display: none;
}

    .jg-fit__panel.active {
        display: block;
    }

.jg-product-slider {
    margin: 0;
    position: relative;
}

    .jg-product-slider .slick-list {
        margin: 0;
    }

    .jg-product-slider .slick-track {
        display: flex !important;
        margin-left: 0;
    }

    .jg-product-slider .slick-slide {
        height: auto;
        float: none;
    }

        .jg-product-slider .slick-slide > div {
            height: 100%;
        }

    .jg-product-slider .slick-arrow,
    .jg-product-slider .jg-slider-arrow {
        position: absolute;
        top: 38%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 2px;
        background: #f5f5f5 !important;
        border: none;
        z-index: 3;
        box-shadow: none;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
        font-size: 0;
        color: transparent;
        line-height: 0;
    }

        .jg-product-slider .slick-arrow:before,
        .jg-product-slider .jg-slider-arrow:before {
            display: none !important;
            content: none !important;
        }

        .jg-product-slider .jg-slider-arrow .svg-icon,
        .jg-product-slider .jg-slider-arrow svg {
            display: block;
            width: 13px;
            height: 20px;
            color: #000;
            fill: #000;
        }

    .jg-product-slider .slick-disabled {
        opacity: 0.35;
        pointer-events: none;
    }

    .jg-product-slider .slick-next,
    .jg-product-slider .jg-slider-arrow--next {
        right: 8px;
        left: auto;
    }

    .jg-product-slider .slick-prev,
    .jg-product-slider .jg-slider-arrow--prev {
        left: 8px;
        right: auto;
    }

/* Product card — CK: name left / price right */
.jg-p-item {
    padding: 0 4px;
    box-sizing: border-box;
    max-width: 100%;
}

.jg-p-item__media {
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 3 / 4;
}

.jg-p-item__fav {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 5;
}

    .jg-p-item__fav .btn-fav {
        display: block;
        padding: 4px;
        cursor: pointer;
        line-height: 0;
        background: transparent;
        border: none;
    }

        .jg-p-item__fav .btn-fav .svg-icon {
            display: none;
            width: 20px;
            height: 20px;
        }

            .jg-p-item__fav .btn-fav .svg-icon svg {
                width: 20px;
                height: 20px;
                display: block;
            }

            .jg-p-item__fav .btn-fav .svg-icon.empty {
                display: block;
            }

            .jg-p-item__fav .btn-fav .svg-icon.filled {
                display: none;
            }

        .jg-p-item__fav .btn-fav.js-active .svg-icon.empty {
            display: none;
        }

        .jg-p-item__fav .btn-fav.js-active .svg-icon.filled {
            display: block;
        }

.jg-p-item__image {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

    .jg-p-item__image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        background: #f5f5f5;
    }

.jg-p-item__state {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    bottom: auto;
    right: auto;
    z-index: 4;
    pointer-events: none;
}

    .jg-p-item__state .p-badges {
        position: static;
        display: block;
    }

    .jg-p-item__state .badge {
        position: static !important;
        display: inline-block;
        width: auto;
        margin: 0 0 4px;
        padding: 0.25rem 0.5rem;
        border-radius: 0;
        background: #fff;
        color: #000;
        font-family: "Klein Regular", Helvetica, Arial, sans-serif;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0;
        line-height: 1.2;
        text-align: left;
    }

        .jg-p-item__state .badge.discount,
        .jg-p-item__state .badge.soldout,
        .jg-p-item__state .badge.soon {
            background: #000;
            color: #fff;
        }

.jg-p-item .product-media-holder,
.jg-p-item .product-media-wrapper,
.jg-p-item [data-js=slider-product-media] {
    display: block !important;
    width: 100% !important;
}

    .jg-p-item .product-media.other-image,
    .jg-p-item .slick-dots,
    .jg-p-item .product-media-holder > .slick-arrow,
    .jg-p-item [data-js=slider-product-media] > .slick-arrow {
        display: none !important;
    }

.jg-p-item__info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 8px 0;
}

.jg-p-item__name {
    display: block;
    color: #000 !important;
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none !important;
    flex: 1 1 auto;
    min-width: 0;
}

    .jg-p-item__name:hover,
    .jg-p-item__name:focus {
        color: #000 !important;
        text-decoration: underline !important;
    }

.jg-p-item__price {
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #000;
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

.jg-p-item__price--old {
    display: block;
    text-decoration: line-through;
    color: #777;
}

.jg-p-item__price--current.discounted {
    color: #000;
}

.jg-fit__cta-wrap {
    margin-top: 1.75rem;
}

.jg-fit__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    min-height: 56px;
    background: #000;
    color: #fff !important;
    text-decoration: none !important;
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    border: none;
    box-sizing: border-box;
}

    .jg-fit__cta-btn:hover,
    .jg-fit__cta-btn:focus {
        color: #fff !important;
        opacity: 0.88;
        text-decoration: none !important;
    }

@media (max-width: 1024px) {
    .jg-fit__layout {
        flex-direction: column;
    }

    .jg-fit__media {
        position: relative;
        top: auto;
        width: 100%;
        height: 120vw;
        max-height: 560px;
    }

    .jg-fit__content {
        width: 100%;
        padding: 1.5rem 1.25rem 2.5rem;
    }

    .jg-fit__title {
        font-size: 28px;
    }

    .jg-fit__heading-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .jg-fit__shop-link {
        margin-top: 0;
    }

    .jg-fit__products-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .jg-fit__details-grid {
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 0.25rem) / 2);
        overflow: hidden;
    }
}

/* ===== WASHES ===== */
.jg-washes {
    padding: 3rem 40px 0;
    box-sizing: border-box;
}

.jg-washes__title {
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 1.25rem;
    color: #000;
}

.jg-washes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
}

.jg-washes__item {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff !important;
    text-decoration: none !important;
}

.jg-washes__image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.jg-washes__item:hover .jg-washes__image {
    transform: scale(1.04);
}

.jg-washes__overlay {
    position: absolute;
    left: 2.5rem;
    bottom: 2.5rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.jg-washes__name {
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: #fff !important;
}

.jg-washes__shop {
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: #fff !important;
}

.jg-disclaimer {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 2rem 1.25rem 3rem;
    margin: 0;
    font-family: "Klein Regular", Helvetica, Arial, sans-serif;
}

@media (max-width: 768px) {
    .jg-washes {
        padding: 2rem 1.25rem 0;
        margin-bottom: 40px;
    }

    .jg-washes__title {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }

    .jg-washes__grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .jg-washes__image {
        min-height: 280px;
    }

    .jg-washes__overlay {
        left: 1.25rem;
        bottom: 1.25rem;
    }
}
