.product-page {
    padding-top: 28px;
    padding-bottom: 56px;
}

.product-page > .product-row {
    margin-top: 48px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 40px 56px;
    align-items: start;
}

.product-detail-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    background: #f6f6f6;
}

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

.product-detail-info {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-width: 0;
}

.product-detail-info h1 {
    margin-bottom: 20px;
    font-size: 2.6rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.product-detail-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.product-description {
    margin-bottom: 28px;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.product-detail-info .product-price {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: clamp(26px, 2vw, 32px);
    font-weight: 700;
}

.product-detail-info .product-price span {
    font-size: .7em;
}

.product-pack-price {
    color: #737373;
    font-size: 15px;
    font-weight: 400;
}

.product-pack-price span,
.product-weight-note {
    display: block;
    margin-top: 6px;
    color: #737373;
    font-size: 14px;
    font-weight: 400;
}

.product-purchase {
    margin-top: auto;
}

.product-purchase > label {
    margin: 12px 0 8px;
    font-size: 14px;
}

.product-purchase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-purchase-actions .product-quantity {
    width: 140px;
}

.product-purchase-actions .product-cart-button {
    width: 180px;
    max-width: 100%;
}

.product-purchase input[type="number"] {
    width: 48px;
    min-width: 0;
    border: 0;
    background: transparent;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.product-purchase input::-webkit-inner-spin-button,
.product-purchase input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-detail-categories {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.product-detail-categories h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.product-detail-categories ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.product-detail-categories a {
    display: block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #f3f3f3;
    color: inherit;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.product-detail-categories a:hover,
.product-detail-categories a:focus-visible {
    background: var(--brand-red);
    color: #fff;
}

@media (max-width: 767.98px) {
    .product-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}
