.product-detail-body {
    min-height: 100vh;
    margin: 0;
    border: 1px solid var(--action);
    box-sizing: border-box;
}

.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 34px;
}

.product-header-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.product-header #logo {
    width: 245px;
    margin: 0;
}

.product-header .search-wrapper {
    position: relative;
    margin: 0;
}

.product-header #search {
    width: 465px;
    height: 50px;
    box-sizing: border-box;
    border: 0;
    border-radius: 10px;
    background-color: #d9d9d9;
    color: #666;
    font-size: 18px;
    text-align: center;
    outline: none;
}

.product-header #linkBasket {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background-color: #ef5b6d !important;
}

.product-header #basket {
    width: 42px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.product-page {
    width: calc(100% - 68px);
    margin: 150px auto 80px;
    display: block;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.92fr) minmax(520px, 1.32fr);
    gap: 18px;
    align-items: start;
}

.product-main-column {
    min-width: 0;
}

.product-card-detail,
.price-history,
.similar-section {
    background-color: white;
}

.product-card-detail {
    min-height: 586px;
    padding: 8px 20px 28px;
    box-sizing: border-box;
}

.product-card-detail h1 {
    margin: 0 0 26px;
    color: #000;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 440px;
}

.product-image img {
    max-width: 88%;
    max-height: 100%;
    object-fit: contain;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    color: #111;
    font-size: 14px;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
}

.product-actions .btnPrice {
    width: 323px;
    height: 58px;
    border-radius: 4px;
    background-color: #ed1028;
    color: #000;
    font-size: 18px;
}

.scan-button {
    width: 178px;
    height: 36px;
    padding: 0 20px;
    border-radius: 22px;
    background-color: #ef5b6d;
    color: #000;
    font-size: 13px;
}

.price-history {
    min-height: 579px;
    margin-top: 7px;
    overflow: hidden;
}

.price-history h2 {
    height: 35px;
    margin: 0;
    background-color: #ef5b6d;
    color: #000;
    font-size: 12px;
    font-weight: 400;
    line-height: 35px;
    text-align: center;
}

.chart-wrapper {
    height: 360px;
    padding: 24px 28px 18px;
    box-sizing: border-box;
}

.price-summary {
    padding: 0 28px 26px;
}

.price-summary table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.price-summary th,
.price-summary td {
    padding: 9px 10px;
    text-align: left;
    border-bottom: 1px solid #ededed;
}

.price-summary th {
    color: #777;
    font-weight: 400;
}

.price-summary td {
    color: #111;
}

.price-summary td:not(:first-child),
.price-summary th:not(:first-child) {
    text-align: right;
}

.chart-error,
.price-history>p {
    margin: 0;
    padding: 180px 20px;
    color: #999;
    text-align: center;
}

.similar-section {
    min-height: 576px;
    margin-top: 10px;
    padding: 28px 24px 20px;
    box-sizing: border-box;
}

.similar-section h2 {
    margin: 0 0 52px;
    color: #9f9f9f;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
}

.similar-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 44px;
}

.similar-placeholder {
    grid-column: 1 / -1;
    margin: 0;
    color: #999;
    text-align: center;
}

.similar-product-card {
    min-width: 0;
}

.similar-product-card a {
    display: grid;
    color: #000;
    text-decoration: none;
}

.similar-product-card img {
    width: 100%;
    height: 118px;
    object-fit: contain;
    margin-bottom: 10px;
}

.similar-product-card h3 {
    min-height: 32px;
    margin: 0 0 3px;
    overflow: hidden;
    color: #000;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
}

.similar-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    min-height: 18px;
    color: #333;
    font-size: 12px;
}

.similar-card-buy {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.similar-card-price {
    min-width: 0;
    height: 23px;
    border-radius: 4px;
    background-color: #f1f1f1;
    color: #000;
    font-size: 12px;
    line-height: 23px;
    text-align: center;
}

.similar-card-button {
    height: 23px;
    border-radius: 4px;
    background-color: #ed1028;
    color: white;
    font-size: 10px;
    line-height: 23px;
    text-align: center;
}

.similar-card-date {
    margin: 6px 0 0;
    color: #777;
    font-size: 12px;
}

.product-card-link {
    color: inherit;
}

@media (max-width: 1200px) {
    .product-page {
        margin-top: 60px;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-card-detail,
    .price-history,
    .similar-section {
        min-height: auto;
    }

    .similar-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .product-header {
        flex-direction: column;
        gap: 18px;
        padding: 22px;
    }

    .product-header-main {
        width: 100%;
        flex-direction: column;
    }

    .product-header #logo {
        width: 190px;
    }

    .product-header .search-wrapper,
    .product-header #search {
        width: 100%;
    }

    .product-page {
        width: calc(100% - 28px);
        margin-top: 28px;
    }

    .product-card-detail {
        padding: 14px;
    }

    .product-image {
        height: 290px;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-actions .btnPrice,
    .scan-button {
        width: 100%;
    }

    .chart-wrapper {
        height: 340px;
        padding: 12px;
    }

    .price-summary {
        padding: 0 12px 18px;
        overflow-x: auto;
    }

    .price-summary table {
        min-width: 420px;
    }

    .similar-section h2 {
        margin-bottom: 28px;
    }

    .similar-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
    }
}
