/* =======================================
   STYLIZACJE TRENDU - CONTENT PREVIEW
======================================= */

.trend-stylizations-block {
    margin: 40px 0;
}

.trend-stylizations-slider {
    position: relative;
    padding: 0 56px 0 0;
}

.trend-stylizations-slider .swiper-slide {
    height: auto;
}

.trend-stylizations-slider__nav {
    pointer-events: none;
}

.trend-title {
    font-size: 40px !important;
}

.trend-stylizations-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: #000;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    font-size: 28px;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-stylizations-slider__arrow--prev {
    left: 3px;
}

.trend-stylizations-slider__arrow--next {
    right: 3px;
}

.trend-stylizations-preview {
    position: relative;
    background: #fff;
}

.trend-stylizations-preview__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    border-radius: 8px;
    overflow: hidden;
}

.trend-stylizations-preview__item {
    position: relative;
    background: #f8f8f8;
    min-width: 0;
}

.trend-stylizations-preview__item:nth-child(1)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: linear-gradient(to top, rgba(0,0,0,0.22), rgba(0,0,0,0));
    pointer-events: none;
}

.trend-stylizations-preview__item:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 3;
}

.trend-stylizations-preview__item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.trend-stylizations-preview__item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.trend-stylizations-preview__item:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
}

.trend-stylizations-preview__item:nth-child(n+5) {
    display: none;
}

.trend-stylizations-preview__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
}

.trend-stylizations-preview__item:nth-child(1) .trend-stylizations-preview__image {
    min-height: 420px;
}

.trend-stylizations-preview__name {
    display: none;
}

.trend-stylizations-preview__footer {
    position: absolute;
    left: calc((100% - 150px) / 2);
    transform: translateX(-50%);
    bottom: 16px;
    z-index: 3;
    margin-top: 0;
    display: flex;
    justify-content: flex-start;
}

.trend-stylizations-preview__button {
    min-height: 46px;
    padding: 12px 24px;
    border: 0;
    border-radius: 8px;
    background: #DA3169;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.5;
}

.trend-stylizations-preview__button:hover {
    background: #DA3169;
    opacity: 0.92
}

/* =======================================
   STYLIZACJE TRENDU - MODAL
======================================= */

.trend-stylizations-modal[hidden] {
    display: none !important;
}

.trend-stylizations-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.trend-stylizations-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.trend-stylizations-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: min(1100px, calc(100% - 40px));
    max-height: calc(100vh - 60px);
    overflow: visible;
    background: #fff;
    border-radius: 10px;
    padding: 18px;
}

.trend-stylizations-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.ts-modal-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
}

.ts-modal-products-wrap {
    position: relative;
    overflow: visible;
    padding: 0;
}

.ts-modal-products {
    overflow: hidden;
}

.ts-modal-products .swiper-slide {
    height: auto;
}

.ts-modal-product {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ts-modal-products-nav {
    pointer-events: none;
}

.ts-modal-products-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #000;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    font-size: 24px;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-modal-products-arrow.swiper-button-disabled {
    opacity: 0.28;
    cursor: default;
    pointer-events: auto;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.ts-modal-products-arrow--prev {
    left: 1px;
}

.ts-modal-products-arrow--next {
    right: 1px;
}

.ts-modal-product {
    text-decoration: none;
    color: inherit;
}

.ts-modal-product__image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.ts-modal-product__name {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
}

.ts-modal-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.ts-modal-nav button {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.ts-modal-nav .ts-next {
    background: #DA3169;
    border-color: #DA3169;
    color: #fff;
}

body.trend-stylizations-modal-open {
    overflow: hidden;
}

/* =======================================
   RESPONSIVE
======================================= */

@media (max-width: 991px) {
    .trend-stylizations-slider {
        padding: 0;
    }

    .trend-stylizations-slider__arrow {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .trend-stylizations-content {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        padding: 16px;
    }

    .trend-stylizations-preview__grid {
        grid-template-columns: minmax(0, 1fr) 88px;
    }

    .trend-stylizations-preview__item:nth-child(1) .trend-stylizations-preview__image {
        min-height: 280px;
    }

    .trend-stylizations-preview__image {
        min-height: 92px;
    }

    .trend-stylizations-preview__button {
        width: 100%;
    }

    .ts-modal-products-arrow {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .ts-modal-products-arrow--prev {
        left: 1px;
    }

    .ts-modal-products-arrow--next {
        right: 1px;
    }

    .ts-modal-nav {
        flex-direction: column;
    }

    .ts-modal-nav button {
        width: 100%;
    }
    .trend-stylizations-slider {
        padding: 0;
    }

    .trend-stylizations-slider__arrow {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .trend-stylizations-preview__footer {
        left: calc((100% - 88px) / 2);
        transform: translateX(-50%);
        bottom: 18px;
    }

    .trend-stylizations-preview__button {
        font-size:14px;
        padding: 10px 14px;
    }

    .trend-title {
        font-size: 28px !important;
    }
}


.related-trends {
    margin-top: 60px;
}

.related-trends__title {
    font-size: 22px !important;
    font-weight: 700;
    margin-bottom: 24px;
}

.related-trend-card {
    display: block;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.related-trend-card__image img {
    width: 100%;
    object-fit: cover;
}

.related-trend-card__content {
    padding: 16px;
}

.related-trend-card h3 {
    font-size: 16px;
    margin: 0 0 6px;
}

.related-trend-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.related-trend-card .btn {
    display: inline-block;
    padding: 10px 16px;
    background: #DA3169;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
}

.related-trends__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2;
}

.related-trends__arrow--prev {
    left: -20px;
}

.related-trends__arrow--next {
    right: -20px;
}