/* ========================================
   PAGE
======================================== */

.product-page {
    width: 100%;

    padding: 34px 40px 100px;
}


/* ========================================
   HERO
======================================== */

.product-hero {
    width: 100%;
    max-width: 1480px;

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 0.7fr)
        minmax(380px, 0.7fr);

    gap: 64px;

    align-items: start;
}


/* ========================================
   SHOWCASE
======================================== */

.product-showcase {
    position: relative;

    min-width: 0;
}


/* ========================================
   GALLERY
======================================== */

.product-gallery {
    width: 100%;

    display: flex;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    background: #f3f3f1;

    border-radius: 18px;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
}

.product-gallery::-webkit-scrollbar {
    display: none;
}


/* ========================================
   SLIDE
======================================== */

.product-gallery__slide {
    position: relative;

    width: 100%;
    min-width: 100%;

    flex: 0 0 100%;

    margin: 0;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    background: #f3f3f1;
}

.product-gallery__slide img,
.product-gallery__slide video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.product-gallery__slide img {
    user-select: none;

    -webkit-user-drag: none;
}


/* ========================================
   GALLERY CONTROLS
======================================== */

.product-gallery__controls {
    position: absolute;

    right: 18px;
    bottom: 18px;
    left: 18px;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    pointer-events: none;
}

.product-gallery__arrows {
    display: flex;
    align-items: center;

    gap: 8px;

    pointer-events: auto;
}


/* ========================================
   GALLERY BUTTON
======================================== */

.product-gallery__button {
    width: 44px;
    height: 44px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #111;

    font-size: 18px;
    font-weight: 400;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        transform 180ms ease,
        opacity 180ms ease;
}

.product-gallery__button:hover {
    background: #fff;

    transform: scale(1.04);
}

.product-gallery__button:active {
    transform: scale(0.94);
}


/* ========================================
   COUNTER
======================================== */

.product-gallery__counter {
    min-width: 62px;
    height: 38px;

    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #222;

    font-size: 12px;
    font-weight: 500;

    pointer-events: auto;
}


/* ========================================
   PRODUCT INFO
======================================== */

.product-info {
    min-width: 0;
}

.product-info__inner {
    position: sticky;

    top: 110px;

    padding: 18px 0 12px;
}


/* ========================================
   PRODUCT TYPE
======================================== */

.product-type {
    display: inline-flex;
    align-items: center;

    margin-bottom: 22px;

    color: #999;

    font-size: 11px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* ========================================
   TITLE
======================================== */

.product-info h1 {
    max-width: 620px;

    margin: 0;

    color: #111;

    font-size: clamp(42px, 4.2vw, 68px);
    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -0.045em;

    text-wrap: balance;
}


/* ========================================
   CREATOR
======================================== */

.product-user {
    margin-top: 34px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.product-user img {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: block;

    border-radius: 50%;

    background: #f1f1f1;

    object-fit: cover;
}

.product-user__content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.product-user__content strong {
    overflow: hidden;

    color: #171717;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-user__content span {
    color: #999;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.35;
}


/* ========================================
   PRICE
======================================== */

.product-price {
    margin-top: 38px;

    padding: 24px 0;

    display: flex;
    align-items: baseline;

    gap: 8px;

    border-top: 1px solid rgba(17, 17, 17, 0.08);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.product-price__currency {
    color: #888;

    font-size: 14px;
    font-weight: 500;

    text-transform: uppercase;
}

.product-price strong {
    color: #111;

    font-size: 30px;
    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.035em;
}


/* ========================================
   DESCRIPTION
======================================== */

.product-description {
    max-width: 560px;

    margin: 34px 0 0;

    color: #666;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.75;

    letter-spacing: -0.01em;
}


/* ========================================
   CATEGORY
======================================== */

.product-category {
    margin-top: 46px;

    padding: 24px;

    background: #f5f5f3;

    border-radius: 18px;
}

.product-category__label {
    display: block;

    margin-bottom: 14px;

    color: #999;

    font-size: 10px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.product-category__items {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.product-category__items span {
    min-height: 34px;

    padding: 0 13px;

    display: inline-flex;
    align-items: center;

    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 18px;

    background: #fff;

    color: #333;

    font-size: 12px;
    font-weight: 500;

    line-height: 1;
}


/* ========================================
   SMALL DESKTOP
======================================== */

@media (max-width: 1100px) {

    .product-page {
        padding:
            28px
            24px
            80px;
    }

    .product-hero {
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(330px, 0.92fr);

        gap: 38px;
    }

    .product-info h1 {
        font-size: clamp(38px, 4.5vw, 54px);
    }

    .product-description {
        font-size: 15px;
    }

}


/* ========================================
   TABLET / MOBILE
======================================== */

@media (max-width: 820px) {

    .product-page {
        padding:
            18px
            16px
            70px;
    }

    .product-hero {
        display: block;
    }

    .product-gallery__slide {
        aspect-ratio: 4 / 5;
    }

    .product-info {
        margin-top: 42px;
    }

    .product-info__inner {
        position: static;

        padding: 0 6px;
    }

    .product-info h1 {
        max-width: 680px;

        font-size: clamp(38px, 9vw, 58px);

        line-height: 1;
    }

    .product-description {
        max-width: 640px;

        font-size: 16px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 560px) {

    .product-page {
        padding:
            12px
            12px
            58px;
    }

    .product-gallery {
        border-radius: 18px;
    }

    .product-gallery__slide {
        aspect-ratio: 4 / 5;
    }

    .product-gallery__controls {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .product-gallery__button {
        width: 40px;
        height: 40px;

        font-size: 16px;
    }

    .product-gallery__counter {
        height: 36px;

        padding: 0 12px;
    }

    .product-info {
        margin-top: 36px;
    }

    .product-info__inner {
        padding: 0 4px;
    }

    .product-type {
        margin-bottom: 18px;
    }

    .product-info h1 {
        font-size: clamp(36px, 11vw, 48px);
    }

    .product-user {
        margin-top: 26px;
    }

    .product-user img {
        width: 42px;
        height: 42px;
    }

    .product-price {
        margin-top: 30px;

        padding: 20px 0;
    }

    .product-price strong {
        font-size: 27px;
    }

    .product-description {
        margin-top: 28px;

        font-size: 15px;

        line-height: 1.7;
    }

    .product-category {
        margin-top: 36px;

        padding: 20px;

        border-radius: 18px;
    }

}
