/* =============================================================
   BIKE SHOWCASE / GALLERY
   bike-detail.php
   ============================================================= */

.bike-showcase {
    position: relative;
    width: 100%;
    background: var(--clr-navy-dark);
    overflow: hidden;
}

.bike-showcase-container {
    min-height: 700px;

    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(600px, 1.35fr);
    gap: 70px;

    align-items: center;

    padding-top: 80px;
    padding-bottom: 64px;
}


/* =============================================================
   LEFT INFORMATION
   ============================================================= */

.bike-showcase-info {
    width: 100%;
    max-width: 560px;
}

.bike-showcase-eyebrow {
    display: block;

    margin-bottom: 26px;

    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;

    color: var(--clr-orange);
}

.bike-showcase-title {
    margin: 0 0 12px;

    font-family: var(--font-body);
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1;

    letter-spacing: -1.5px;

    color: var(--clr-white);
}

.bike-showcase-tagline {
    margin: 0;

    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.5;

    color: var(--clr-gray-light);
}


/* =============================================================
   PRICE
   ============================================================= */

.bike-showcase-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 36px;
}

.bike-showcase-price .price-label {
    font-family: var(--font-body);
    font-size: 0.9rem;

    color: var(--clr-white);
}

.bike-showcase-price strong {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 800;

    color: var(--clr-white);
}

.bike-showcase-price .price-note {
    flex-basis: 100%;

    margin-top: -2px;

    font-family: var(--font-body);
    font-size: 0.7rem;

    color: var(--clr-gray-mid);
}


/* =============================================================
   ACTION BUTTONS
   ============================================================= */

.bike-showcase-actions {
    display: flex;

    gap: 12px;

    margin-top: 30px;
}

.showcase-btn {
    min-width: 274px;
    height: 53px;

    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    text-decoration: none;

    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.showcase-btn:hover {
    /* transform: translateY(-2px); */
}

.showcase-btn-primary {
    background: var(--clr-orange-dark);
    border: 1px solid var(--clr-orange-dark);

    color: var(--clr-white);
}

.showcase-btn-primary:hover {
    background: var(--clr-orange-dark);
    border: 1px solid var(--clr-orange-dark);

    color: var(--clr-white);
}

.showcase-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);

    color: var(--clr-white);
}

.showcase-btn-outline:hover {
    border-color: var(--clr-white);
}

.showcase-btn-arrow {
    font-size: 1.25rem;
    line-height: 1;
}


/* =============================================================
   SPECS
   ============================================================= */

.bike-showcase-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    margin-top: 42px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bike-spec {
    min-height: 120px;

    padding: 24px 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.bike-spec:last-child {
    border-right: 0;
}

.bike-spec-icon {
    height: 22px;

    margin-bottom: 10px;

    color: var(--clr-white);
}

.bike-spec-icon span {
    font-size: 1rem;
}

.bike-spec strong {
    display: block;

    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;

    color: var(--clr-white);
}

.bike-spec > span:last-child {
    margin-top: 6px;

    font-family: var(--font-body);
    font-size: 0.68rem;

    color: var(--clr-gray-mid);
}

.bike-showcase-terms {
    margin: 18px 0 0;

    font-family: var(--font-body);
    font-size: 0.65rem;

    color: var(--clr-gray-mid);
}


/* =============================================================
   RIGHT GALLERY
   ============================================================= */

.bike-showcase-gallery {
    width: 100%;
    min-width: 0;
}

.bike-gallery-main {
    position: relative;

    width: 100%;
    height: 440px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.bike-gallery-image-wrap {
    width: min(100%, 550px);
    height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.025);
}

.bike-gallery-main-image {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    transition:
        opacity 0.25s ease,
        transform 0.35s ease;
}


/* =============================================================
   GALLERY ARROWS
   ============================================================= */

.bike-gallery-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 3;

    width: 51px;
    height: 51px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);

    color: var(--clr-white);

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.bike-gallery-arrow span {
    margin-top: -3px;

    font-family: Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
}

.bike-gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--clr-orange);
}

.bike-gallery-prev {
    left: 0;
}

.bike-gallery-next {
    right: 0;
}


/* =============================================================
   THUMBNAILS
   ============================================================= */

.bike-gallery-thumbnails {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(7, minmax(70px, 1fr));

    margin-top: 24px;

    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bike-gallery-thumb {
    position: relative;

    min-width: 0;
    height: 106px;

    padding: 9px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.015);

    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.bike-gallery-thumb:last-child {
    border-right: 0;
}

.bike-gallery-thumb:hover {
    background: rgba(255, 255, 255, 0.045);
}

.bike-gallery-thumb.active {
    outline: 2px solid var(--clr-orange);
    outline-offset: -2px;

    background: rgba(255, 255, 255, 0.045);
}

.bike-gallery-thumb img {
    width: 100%;
    height: 70px;

    object-fit: contain;

    display: block;
}

.bike-gallery-thumb span {
    display: block;

    margin-top: 5px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    max-width: 100%;

    font-family: var(--font-body);
    font-size: 0.62rem;

    color: var(--clr-gray-light);
}


/* =============================================================
   IMAGE TRANSITION
   ============================================================= */

.bike-gallery-main-image.is-changing {
    opacity: 0;
    transform: scale(0.97);
}


/* =============================================================
   TABLET
   ============================================================= */

@media (max-width: 1199px) {

    .bike-showcase-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .bike-showcase-info {
        max-width: 760px;
    }

    .bike-showcase-gallery {
        max-width: 900px;
    }

    .bike-gallery-main {
        height: 500px;
    }

    .bike-gallery-image-wrap {
        height: 490px;
    }

    .bike-gallery-thumbnails {
        grid-template-columns: repeat(7, 1fr);
    }
}


/* =============================================================
   MOBILE
   ============================================================= */

@media (max-width: 767px) {

    .bike-showcase-container {
        padding-top: 55px;
        padding-bottom: 45px;

        gap: 45px;
    }

    .bike-showcase-title {
        font-size: 2.4rem;
    }

    .bike-showcase-actions {
        flex-direction: column;
    }

    .showcase-btn {
        width: 100%;
        min-width: 0;
    }

    .bike-showcase-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .bike-spec:nth-child(2) {
        border-right: 0;
    }

    .bike-spec:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .bike-gallery-main {
        height: 330px;
    }

    .bike-gallery-image-wrap {
        height: 320px;
    }

    .bike-gallery-arrow {
        width: 42px;
        height: 42px;
    }

    .bike-gallery-prev {
        left: 0;
    }

    .bike-gallery-next {
        right: 0;
    }

    .bike-gallery-thumbnails {
        display: flex;

        overflow-x: auto;

        scrollbar-width: thin;
    }

    .bike-gallery-thumb {
        flex: 0 0 100px;
        height: 100px;
    }
}