﻿@import url("../../styles/global-style.css");

.gsp-reach {
    margin-top: 2.5rem;
    background: #fff;
    padding: 2.25rem;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    box-shadow: 0 28px 60px rgba(17, 17, 17, 0.08);
    font-family: "Figtree", sans-serif;
    font-size: 1rem;
    color: #111;
}

.gsp-reach-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2.25rem;
    align-items: flex-start;
}

.gsp-right {
    position: sticky;
    top: 120px;
}

.gsp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.6rem;
    background: #f8f8f8;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
}

.gsp-tab {
    padding: 0.45rem 1.2rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #4a4a4a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gsp-tab:hover,
.gsp-tab:focus-visible {
    color: #111;
    background: #fff;
    border-color: #e4e4e4;
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.08);
    outline: none;
}

.gsp-tab.active {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 10px 26px rgba(17, 17, 17, 0.16);
}

.gsp-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.gsp-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.gsp-attribute-group {
    margin-bottom: 1.75rem;
    padding: 1.35rem;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.06);
}

.gsp-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gsp-attr {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.8rem 1rem;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gsp-attr:last-child {
    margin-bottom: 0;
}

.gsp-attr:hover {
    border-color: #dcdcdc;
    box-shadow: 0 12px 26px rgba(17, 17, 17, 0.08);
}

.gsp-attr-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 38%;
}

.gsp-attr-label {
    font-weight: 600;
    font-size: 1rem;
    color: #111;
}

.gsp-attr-right {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1 1 auto;
    justify-content: flex-start;
    text-align: left;
    color: #333;
    flex-wrap: wrap;
}

.gsp-attr-full {
    flex: 1 1 100%;
    text-align: left;
    color: #333;
}

.gsp-sep {
    opacity: 0.4;
}

.gsp-icon {
    width: 20px;
    height: 20px;
}

.gsp-color-box {
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
}

.care-row .gsp-attr-left {
    display: none;
}

.care-row .gsp-attr-right {
    display: none;
}

.gsp-scale {
    margin-bottom: 1.5rem;
    padding: 1.1rem;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
}

.gsp-scale-bar {
    background: #f0f0f0;
    height: 0.55rem;
    width: 100%;
    border-radius: 999px;
    overflow: hidden;
    margin: 0.35rem 0 0.6rem;
}

.gsp-scale-fill {
    height: 100%;
    background: #111;
    width: 0;
    transition: width 1s ease;
}

.gsp-description-wrapper {
    position: relative;
    max-height: 260px;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    background: #fafafa;
}

.gsp-description-wrapper.expanded {
    max-height: none;
}

.gsp-description-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fafafa);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gsp-description-wrapper.expanded .gsp-description-fade {
    opacity: 0;
}

.gsp-description-toggle {
    margin-top: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: #111;
    color: #fff;
    padding: 0.55rem 1.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.gsp-description-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.25);
}

.gsp-description-toggle:hover {
    background: #000;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.15);
}

.gsp-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 18px 36px rgba(17, 17, 17, 0.1);
}

@media (max-width: 1280px) {
    .gsp-reach {
        padding: 2rem;
    }

    .gsp-reach-grid {
        gap: 1.75rem;
    }
}

@media (max-width: 1024px) {
    .gsp-reach-grid {
        grid-template-columns: 1fr;
    }

    .gsp-right {
        position: relative;
        top: auto;
        margin-bottom: 1.5rem;
    }

    .gsp-tabs {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .gsp-reach {
        padding: 1.6rem;
    }

    .gsp-right {
        display: none;
    }
}

@media (max-width: 640px) {
    .gsp-reach {
        padding: 0;
        margin-top: 1.75rem;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    .gsp-reach-grid {
        gap: 1.5rem;
    }

    .gsp-tabs,
    .gsp-attribute-group,
    .gsp-attr,
    .gsp-scale,
    .gsp-description-wrapper {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .gsp-tabs {
        padding: 0;
    }

    .gsp-attribute-group {
        padding: 0;
        gap: 1rem;
    }

    .gsp-attr {
        padding: 0;
        margin-bottom: 0.85rem;
    }

    .gsp-attr:last-child {
        margin-bottom: 0;
    }

    .gsp-description-wrapper {
        padding: 0;
        border-radius: 0;
    }

    .gsp-description-fade {
        background: linear-gradient(transparent, rgba(255, 255, 255, 0.95));
    }

    .gsp-img {
        border: none;
        box-shadow: none;
        border-radius: 12px;
    }
}

@media (max-width: 600px) {
    .gsp-tabs {
        padding: 0.5rem;
    }

    .gsp-tab {
        flex: 1 1 auto;
        text-align: center;
    }

    .gsp-attribute-group {
        padding: 1rem;
    }

    .gsp-attr {
        flex-direction: column;
        align-items: flex-start;
    }

    .gsp-attr-left {
        flex: 1 1 auto;
    }

    .gsp-attr-right {
        width: 100%;
    }
}
