/* =========================
   PRODUCT PAGE
========================= */

.product-breadcrumbs {
    padding: 28px 60px 20px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
    color: #8b95a5;
}

.product-breadcrumbs a {
    color: #8b95a5;
    text-decoration: none;
}

.product-breadcrumbs a:hover {
    color: #e67c2e;
}
/* =========================
   PRODUCT MAIN
========================= */
.product-main {
    padding: 20px 60px 50px;
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    gap: 50px;
    align-items: start;
}
/* =========================
   PRODUCT GALLERY
========================= */

.product-main__gallery {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
/* MAIN PHOTO */

.product-main__image {
    position: relative;
    width: 100%;
    height: 300px;
    background: #fff;
    border: 1px solid #d88732;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main__image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}
/* FAVORITE */

.product-main__favorite {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #f4f5f7;
    font-size: 25px;
    cursor: pointer;
}
/* THUMBNAILS */

.product-main__thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
}

.product-main__thumbnail {
    height: 90px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    cursor: pointer;
    box-sizing: border-box;
}

.product-main__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    object-fit: cover;
    border-radius: 8px;
}

.product-main__thumbnail:hover {
    border-color: #e39a42;
}

.product-main__thumbnail.active {
    border: 2px solid #e39a42;
}


/* =========================
   PRODUCT INFO
========================= */

.product-main__info {
    min-width: 0;
    padding: 20px 30px;
}

.product-main__title {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.2;
    color: #1f2937;
}
/* STATUS */

.product-main__status {
    display: inline-block;
    margin-bottom: 28px;
    padding: 7px 13px;
    background: #e39a42;
    color: #fff;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}
/* DETAILS */

.product-main__details {
    margin-bottom: 30px;
}

.product-main__details p {
    margin: 0 0 12px;

    font-size: 16px;
    color: #667085;
}

.product-main__details p > span {
    display: inline-block;
    width: 120px;

    color: #8b95a5;
}

.product-main__available {
    color: #2f855a;
}


/* PRICE */

.product-main__price {
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
}
.product-price-old {
    color: #888;
    font-size: 0.75em;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.product-price-sale__top {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.product-price-discount {
    color: #E8943A;
    font-size: 24px;
    font-weight: 700;
}
.product-price-current {
    display: block;
    margin-top: 4px;
    color: #E8943A;
}

/* CART */

.product-main__cart {
    width: 260px;
    padding: 16px 30px;
    border: none;
    border-radius: 10px;
    background: #e39a42;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.product-main__cart:hover {
    background: #d88732;
}

/* DELIVERY / PAYMENT */

.product-main__purchase-info {
    width: 100%;
    max-width: 480px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #e1e5ea;
}
.product-main__purchase-info p {
    margin: 0 0 14px;
    font-size: 15px;
    color: #667085;
}
.product-main__purchase-info strong {
    display: inline-block;
    width: 100px;
    color: #1f2937;
}
/* =========================
   PRODUCT DETAILS
========================= */
.product-details {
    padding: 10px 60px 60px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}
/* COMMON TITLE */

.product-section-title {
    margin: 0 0 24px;
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    padding-left: 24px;
    margin-top: 24px;
}
/* DESCRIPTION */

.product-description,
.product-specifications {
    padding: 30px;
    background: #fff;
    border: 1px solid #e39a42;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.10);
}
.product-description p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.7;
    color: #667085;
}
.product-description p:last-child {
    margin-bottom: 0;
}
/* SPECIFICATIONS */
.product-specifications__list {
    display: flex;
    flex-direction: column;
}
.product-specifications__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px 0;
    border-bottom: 1px solid #e8ebef;
}
.product-specifications__row:first-child {
    padding-top: 0;
}
.product-specifications__row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.product-specifications__row span {
    color: #8b95a5;
}
.product-specifications__row strong {
    color: #1f2937;
    font-weight: 600;
}
/* =========================
   PRODUCT COMPATIBILITY
========================= */

.product-compatibility {
    margin: 0 60px 60px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e39a42;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.10);
}
/* HEADER */
.product-compatibility__header {
    margin-bottom: 26px;
}

.product-compatibility__header .product-section-title {
    margin-bottom: 8px;
}

.product-compatibility__hint {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #8b95a5;
}


/* TABLE */

.product-compatibility__table {
    width: 100%;
    border: 1px solid #e8ebef;
    border-radius: 10px;
    overflow: hidden;
}


/* ROW */

.product-compatibility__row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1.5fr;
    align-items: center;
    min-height: 58px;
    padding: 0 22px;
    border-bottom: 1px solid #e8ebef;
    font-size: 15px;
    color: #667085;
}

.product-compatibility__row:last-child {
    border-bottom: none;
}


/* TABLE HEADER */

.product-compatibility__row--head {
    min-height: 52px;

    background: #f6f7f9;

    font-size: 14px;
    font-weight: 600;

    color: #8b95a5;
}


/* BRAND */

.product-compatibility__row strong {
    color: #1f2937;
    font-weight: 600;
}
/* =========================
   PRODUCT RELATED
   З ЦИМ ТОВАРОМ КУПУЮТ
========================= */

.product-related {
    padding: 50px 60px 70px;
}

.product-related__container {
    max-width: 1600px;
    margin: 0 auto;
}

.product-related__title {
    margin: 0 0 28px;

    font-size: 30px;
    font-weight: 700;

    color: #1f2937;
}


/* GRID */

.product-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}


/* CARD */

.related-card {
    overflow: hidden;

    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 14px;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 10px 25px rgba(31, 41, 55, 0.10);
}


/* IMAGE */

.related-card__image {
    position: relative;

    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
}

.related-card__image img {
    width: 90%;
    height: 90%;

    object-fit: contain;
}


/* CONDITION */

.related-card__condition {
    position: absolute;
    top: 14px;
    left: 14px;

    padding: 6px 10px;

    background: #e39a42;
    color: #fff;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 700;
}


/* FAVORITE */

.related-card__favorite {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: #f4f5f7;

    font-size: 21px;

    cursor: pointer;
}


/* CONTENT */

.related-card__content {
    padding: 18px 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-card__title {
    min-height: 47px;
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f2937;
     display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
     line-clamp: 2;
    overflow: hidden;

}

.related-card__car {
    margin: 0 0 7px;

    font-size: 15px;
    color: #667085;
}

.related-card__oem {
    margin: 0 0 20px;

    font-size: 14px;
    color: #8b95a5;
}


/* BOTTOM */

.related-card__bottom {
   margin-top: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.related-card__price {
    font-size: 20px;
    color: #1f2937;
}

.related-card__cart {
    padding: 11px 17px;

    border: none;
    border-radius: 8px;

    background: #e39a42;
    color: #fff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: background 0.2s ease;
}

.related-card__cart:hover {
    background: #d88732;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .product-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 650px) {

    .product-related {
        padding: 40px 20px 40px;
    }

    .product-related__grid {
        grid-template-columns: 1fr;
    }

}
