.product-detail-page {
    padding: 32px 0 70px;
}

.product-detail-back {
    display: inline-flex;
    margin-bottom: 22px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.product-detail-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(360px, .95fr);
    gap: 48px;
    align-items: start;
}

.product-detail-media {
    position: sticky;
    top: 25px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    aspect-ratio: 1 / 1;
}

.product-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-detail-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    background: #f8fafc;
}

.product-detail-info {
    min-width: 0;
}

.product-detail-category {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.product-detail-featured {
    display: inline-flex;
    margin-top: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
}

.product-detail-info h1 {
    margin: 12px 0 16px;
    font-size: 34px;
    line-height: 1.15;
    color: #0f172a;
}

.product-detail-price {
    font-size: 32px;
    font-weight: 900;
    color: #111827;
}

.product-detail-stock {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
}

.product-detail-stock span {
    color: #b42318;
    font-weight: 700;
}

.product-detail-description {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.product-detail-complements {
    margin-top: 28px;
}

.product-detail-complements > h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.detail-complement-group {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.detail-complement-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.detail-complement-heading strong,
.detail-complement-heading small {
    display: block;
}

.detail-complement-heading small {
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
}

.detail-complement-heading > span {
    height: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 9px;
    font-weight: 800;
}

.detail-complement-options {
    display: grid;
    gap: 8px;
}

.detail-complement-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    cursor: pointer;
}

.detail-complement-option input {
    flex-shrink: 0;
}

.detail-complement-option span {
    flex: 1;
    font-size: 13px;
}

.detail-complement-option strong {
    font-size: 12px;
}

.product-detail-error {
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}

.product-detail-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}

.product-detail-quantity > span {
    font-weight: 800;
}

.product-detail-quantity > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.product-detail-quantity button {
    width: 40px;
    height: 40px;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    background: #fff;
    font-size: 21px;
    cursor: pointer;
}

.product-detail-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
}

.product-detail-total span {
    color: #64748b;
}

.product-detail-total strong {
    font-size: 22px;
}

.product-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.product-detail-actions button {
    min-height: 52px;
    border-radius: 13px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.product-detail-add {
    border: 1px solid #111827;
    background: #fff;
    color: #111827;
}

.product-detail-buy {
    border: 0;
    background: #111827;
    color: #fff;
}

.product-detail-actions button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.detail-cart-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 13px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.detail-cart-button span {
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 10px;
}

.related-products {
    margin-top: 65px;
}

.related-products-heading span {
    font-size: 10px;
    font-weight: 900;
    color: #64748b;
    letter-spacing: .08em;
}

.related-products-heading h2 {
    margin: 5px 0 20px;
    font-size: 25px;
}

.related-products-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.related-product-card {
    min-width: 0;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    text-decoration: none;
}

.related-product-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #f8fafc;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-image span {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
}

.related-product-card > strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
    font-size: 13px;
}

.related-product-card > b {
    display: block;
    margin-top: 8px;
    font-size: 15px;
}

@media (max-width: 800px) {

    .product-detail-page {
        padding-top: 18px;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .product-detail-media {
        position: static;
        border-radius: 16px;
    }

    .product-detail-info h1 {
        font-size: 25px;
    }

    .product-detail-price {
        font-size: 27px;
    }

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

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

    .related-products {
        margin-top: 45px;
    }

    .detail-cart-button {
        min-width: 48px;
        justify-content: center;
    }
}
