/* Product page only. Loaded from catalog_product_view. */
#html-body.catalog-product-view .columns {
    width: 100%;
    max-width: 1280px;
}

#html-body.catalog-product-view .product-info-main {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#html-body.catalog-product-view .mp-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

#html-body.catalog-product-view #gallery {
    width: 100%;
    max-width: 400px;
    margin: 0;
}

#html-body.catalog-product-view #gallery-main {
    height: 280px;
    max-height: 300px;
    aspect-ratio: auto;
    background: var(--mp-paper);
}

#html-body.catalog-product-view #gallery-main img {
    width: 100%;
    height: 100%;
    max-height: 300px;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
}

#html-body.catalog-product-view .mp-product-panel {
    min-width: 0;
    padding: 4px 0 0;
    background: transparent;
}

#html-body.catalog-product-view .mp-product-name-wrap {
    display: block;
    width: auto;
    max-width: none;
    margin: 0 0 12px;
    padding: 0;
}

#html-body.catalog-product-view h1.mp-product-name {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    color: var(--mp-ink);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-align: left;
    white-space: normal;
}

#html-body.catalog-product-view .mp-product-summary {
    margin: 0 0 16px;
    color: var(--mp-ink);
    font-size: 1.0625rem;
    line-height: 1.6;
}

#html-body.catalog-product-view .mp-product-summary :is(p, ul, ol) {
    margin: 0 0 8px;
}

#html-body.catalog-product-view .mp-product-stock,
#html-body.catalog-product-view .mp-product-facts {
    color: var(--mp-soft);
    font-size: 0.875rem;
    line-height: 1.4;
}

#html-body.catalog-product-view .mp-product-stock {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin: 0 0 12px;
}

#html-body.catalog-product-view .mp-product-stock:not(:has(*)) {
    display: none;
}

#html-body.catalog-product-view .mp-product-facts {
    margin: 0 0 12px;
}

#html-body.catalog-product-view .mp-product-fact {
    display: flex;
    gap: 8px;
    margin: 0;
}

#html-body.catalog-product-view .mp-product-fact dt {
    font-weight: 550;
    flex: 0 0 auto;
}

#html-body.catalog-product-view .mp-product-fact dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

#html-body.catalog-product-view .mp-product-purchase {
    margin: 8px 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
}

#html-body.catalog-product-view .mp-product-purchase-title,
#html-body.catalog-product-view .mp-download-title {
    margin: 0 0 8px;
    color: var(--mp-ink);
    font-size: 1rem;
    font-weight: 700;
}

#html-body.catalog-product-view .mp-product-choice,
#html-body.catalog-product-view .mp-download-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 44px;
}

#html-body.catalog-product-view .mp-product-plan {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

#html-body.catalog-product-view .mp-product-plan-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 650;
}

#html-body.catalog-product-view .mp-product-plan :is(.form-input, .form-select) {
    width: 100%;
}

#html-body.catalog-product-view .mp-product-plan-facts {
    display: grid;
    grid-template-columns: minmax(8rem, 40%) minmax(0, 1fr);
    gap: 6px 12px;
    margin: 4px 0;
    color: var(--mp-soft);
    font-size: 0.9375rem;
}

#html-body.catalog-product-view .mp-product-plan-facts dd {
    margin: 0;
}

#html-body.catalog-product-view .mp-product-buy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--mp-line);
}

#html-body.catalog-product-view .mp-product-buy:not(:has(.price-box, #product-addtocart-button, input)) {
    display: none;
}

#html-body.catalog-product-view .mp-product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

#html-body.catalog-product-view .mp-product-price .price {
    font-size: 1.75rem;
    font-weight: 750;
    letter-spacing: -0.03em;
}

#html-body.catalog-product-view .mp-product-actions :is(button, input) {
    min-width: 44px;
    min-height: 44px;
}

#html-body.catalog-product-view .mp-product-shortcuts,
#html-body.catalog-product-view .mp-product-extra-actions,
#html-body.catalog-product-view .mp-product-tiers {
    margin-top: 12px;
}

#html-body.catalog-product-view .mp-product-sections {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 36px;
}

#html-body.catalog-product-view .mp-product-section-title {
    margin: 0 0 12px;
    color: var(--mp-ink);
    font-size: 1.5rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: left;
}

#html-body.catalog-product-view .mp-product-section-body {
    min-width: 0;
    padding: 8px 0 0;
    border: 0;
    background: transparent;
}

#html-body.catalog-product-view #description .mp-long-description {
    color: var(--mp-ink);
    font-size: 1.0625rem;
    line-height: 1.7;
}

#html-body.catalog-product-view #description .mp-long-description :is(h2, h3) {
    max-width: none;
    margin-top: 1.4em;
}

#html-body.catalog-product-view #description .mp-long-description :is(p, li) {
    max-width: none;
    line-height: 1.7;
}

#html-body.catalog-product-view #description .mp-long-description :is(ul, ol) {
    padding-left: 1.25rem;
}

#html-body.catalog-product-view #product-attributes {
    max-width: none;
}

#html-body.catalog-product-view .mp-product-related {
    margin-top: 36px;
}

#html-body.catalog-product-view .mp-product-reviews {
    margin-top: 28px;
    border-top: 1px solid var(--mp-line);
}

#html-body.catalog-product-view .mp-product-reviews-summary {
    display: list-item;
    list-style: disclosure-closed inside;
    align-items: center;
    min-height: 44px;
    padding: 12px 0;
    color: var(--mp-ink);
    font-size: 1.25rem;
    font-weight: 750;
    cursor: pointer;
}

#html-body.catalog-product-view .mp-product-reviews[open] > .mp-product-reviews-summary {
    list-style-type: disclosure-open;
}

#html-body.catalog-product-view .mp-product-reviews-summary:focus-visible {
    outline: 3px solid var(--mp-accent);
    outline-offset: 2px;
}

#html-body.catalog-product-view .mp-product-reviews .card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

#html-body.catalog-product-view .mp-product-reviews :is(input, textarea, button, select) {
    min-height: 44px;
}

#html-body.catalog-product-view .mp-product-reviews .rating-summary input {
    min-height: 0;
}

@media (min-width: 960px) {
    #html-body.catalog-product-view .mp-product-hero {
        grid-template-columns: minmax(240px, 400px) minmax(0, 1fr);
        gap: 40px;
    }

    #html-body.catalog-product-view #gallery-main,
    #html-body.catalog-product-view #gallery-main img {
        height: 360px;
        max-height: 360px;
    }
}

@media (min-width: 1100px) {
    #html-body.catalog-product-view #description .mp-long-description:not(:has(table)):not(:has([data-content-type="column-group"])) {
        column-count: 2;
        column-gap: 48px;
    }

    #html-body.catalog-product-view #description .mp-long-description :is(h2, h3, h4, ul, ol, table, figure, img, blockquote) {
        break-inside: avoid;
    }

    #html-body.catalog-product-view #description .mp-long-description :is(h2, h3, h4) {
        break-after: avoid;
    }

    #html-body.catalog-product-view #description .mp-long-description [data-content-type="column-group"] {
        display: flex;
        flex-wrap: wrap;
        gap: 24px 40px;
    }

    #html-body.catalog-product-view #description .mp-long-description [data-content-type="column"] {
        flex: 1 1 280px;
        min-width: 0;
    }
}
