/* ============================================
   Single product page
   ============================================ */

.single-page {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    color: #2f2f2f;
    overflow: hidden;
}

.single-header {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

.single-title {
    position: absolute;
    top: 100px;
    left: 100px;
    font-size: 52px;
    font-weight: 300;
    color: #6f6f6f;
    letter-spacing: 0.01em;
}

.single-menu {
    position: absolute;
    top: 112px;
    right: 130px;
    display: flex;
    align-items: center;
    gap: 44px;
}

.single-menu-item {
    position: relative;
    font-size: 32px;
    font-weight: 400;
    color: #9a9a9a;
    text-decoration: none;
    padding-bottom: 6px;
}

.single-menu-item.is-active {
    color: #5c5c5c;
    font-weight: 600;
}

.single-menu-item.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #5c5c5c;
}

.single-carousel {
    position: absolute;
    left: 50%;
    top: 250px;
    transform: translateX(-50%);
    width: 1520px;
    height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 48px;
}

.single-viewport {
    width: 1320px;
    height: 500px;
    overflow: hidden;
}

.single-track {
    display: flex;
    align-items: flex-end;
    gap: 13.75px;
    transition: transform 0.5s ease;
}

.single-track.is-jump .single-image {
    transition: none;
}

.single-card {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 225px;
    height: 500px;
    text-decoration: none;
    color: inherit;
}

.single-image {
    width: 100%;
    height: 310px;
    object-fit: cover;
    background: #e0e0e0;
    display: block;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    opacity: 0.5;
    transition: opacity 0.4s ease, height 0.4s ease;
}

.single-card.is-active {
    width: 365px;
}

.single-card.is-active .single-image {
    height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.single-arrow {
    position: absolute;
    top: 320px;
    border: none;
    background: transparent;
    font-size: 32px;
    color: #7a7a7a;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    touch-action: manipulation;
}

.single-arrow.is-left {
    left: 0;
}

.single-arrow.is-right {
    right: 0;
}

.single-arrow:hover {
    color: #4e4e4e;
    transform: translateY(-1px);
}

.single-meta {
    position: absolute;
    left: 50%;
    top: 770px;
    transform: translateX(-50%);
    text-align: center;
}

.single-name {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2f2f2f;
}

.single-color {
    font-size: 22px;
    font-weight: 400;
    color: #6c6c6c;
    margin-top: 6px;
}

.single-color.is-hidden {
    display: none;
    margin-top: 0;
}

.single-slider {
    position: absolute;
    left: 50%;
    top: 860px;
    transform: translateX(-50%);
    width: 1320px;
    height: 24px;
    cursor: pointer;
    touch-action: none;
}

.single-slider-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #d2d2d2;
    transform: translateY(-50%);
}

.single-slider-thumb {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 6px;
    background: #bdbdbd;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.single-slider:hover .single-slider-thumb {
    background: #9d9d9d;
    transform: translate(-50%, -50%) scale(1.18);
}

.single-back {
    position: absolute;
    left: 90px;
    bottom: 70px;
}


@media (max-width: 1280px) {
    .single-title {
        top: 70px;
        left: 70px;
        font-size: 42px;
    }

    .single-menu {
        top: 80px;
        right: 70px;
        gap: 30px;
    }

    .single-menu-item {
        font-size: 24px;
    }

    .single-carousel {
        width: 1520px;
        gap: 32px;
    }

    .single-viewport {
        width: 1320px;
    }

    .single-slider {
        width: 1320px;
    }
}
