/* Shared product hierarchy: identity, gallery, selection, purchase, payment, details. */
.px-product > .px-product-heading,
.pm-layout > .pm-product-heading {
    display: block;
    position: static;
    width: 100%;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    z-index: auto;
    grid-column: 1 / -1;
    min-width: 0;
    padding: 0 0 20px;
    border-bottom: 1px solid #e5ebe9;
    text-align: left;
}
.px-product-heading h1,
.pm-product-heading .pm-name {
    margin: 12px 0 10px;
    color: #152c28;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
.px-product-heading .px-category,
.pm-product-heading .pm-category {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 7px;
    background: #eef6f1;
    color: #236447;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: .05em;
    text-decoration: none;
}
.px-product-heading .px-reference,
.pm-product-heading .pm-reference { margin: 0; color: #65736e; font-size: 12px; line-height: 1.5; }
.pm-product-heading .pm-availability { margin: 8px 0 0; font-size: 13px; }
.px-product .px-info,
.pm-layout .pm-info { min-width: 0; }
.pm-layout .pm-info { display: flex !important; flex-direction: column !important; }
.pm-layout .pm-info > .pm-price { order: 1; margin: 0 0 16px !important; }
.pm-layout .pm-info > .pm-options { order: 2; }
.pm-layout .pm-info > .pm-actions { order: 3; }
.pm-layout .pm-info > .pm-secondary-actions { order: 4; }
.pm-layout .pm-info > .pm-trust { order: 5; }
.pm-layout .pm-info > .mc-payment-benefits { order: 6; }
.pm-layout .pm-info > .pm-description { order: 7; }
.pm-layout .pm-info > .pm-more { order: 8; align-self: flex-start; }
.pm-layout .pm-info > .pm-features { order: 9; }
.px-info #productOptions:not(:empty),
.pm-info .pm-options:has(button) {
    padding: 16px;
    margin: 12px 0 16px !important;
    background: #f6f9f7;
    border: 1px solid #dce8e0;
    border-radius: 14px;
}
.px-info .px-options-title,
.pm-info .pm-options h3 { margin: 0 0 12px !important; font-size: 15px !important; line-height: 1.4 !important; color: #183e30; }
.px-info .px-variants,
.pm-info .pm-variant-grid { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.px-info .px-variants button,
.pm-info .pm-variant {
    min-height: 44px !important;
    max-width: 100%;
    padding: 10px 14px !important;
    border-radius: 10px;
    font-size: 14px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere;
    white-space: normal;
    cursor: pointer;
}
.px-info .px-variants .is-active,
.pm-info .pm-variant[aria-pressed="true"] {
    background: #e5f4eb;
    color: #125b38;
    border: 2px solid #237c4c;
    box-shadow: 0 0 0 2px #237c4c14;
}
.px-info .px-buy,
.pm-info .pm-actions {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 16px !important;
    padding: 0;
}
.px-info .px-buy > button,
.pm-info .pm-add {
    flex: 1 1 180px;
    min-height: 52px;
    border-radius: 12px;
    background: #ffd600;
    color: #17231d;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 4px 12px #b99c001a;
}
.px-info .px-buy > button:hover:not(:disabled),
.pm-info .pm-add:hover:not(:disabled) { background: #f4cd00; }
.px-info button:focus-visible,
.pm-info button:focus-visible { outline: 3px solid #278655; outline-offset: 3px; }
.px-info .mc-payment-benefits,
.pm-info .mc-payment-benefits { margin: 18px 0; padding: 14px; border-radius: 12px; box-shadow: none; }
.pm-info .pm-description { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e5ebe9; }
.pm-info .pm-description:not(.collapsed) { display: block !important; max-height: none !important; -webkit-line-clamp: unset !important; }
@media(max-width:900px) {
    .px-product { grid-template-columns: minmax(0,1fr); gap: 18px; }
}
@media(max-width:768px) {
    .pm-layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
    .px-product > .px-product-heading,
    .pm-layout > .pm-product-heading { padding-bottom: 16px; }
    .px-product-heading h1,
    .pm-product-heading .pm-name { font-size: 25px !important; line-height: 1.22 !important; margin: 10px 0 8px !important; }
    .px-product .px-stage,
    .pm-layout .pm-image-wrap { aspect-ratio: 1; height: auto !important; max-height: 340px; min-height: 0 !important; }
    .pm-layout .pm-image-wrap { height: min(76vw,320px) !important; }
    .px-product .px-main-image,
    .pm-layout .pm-main-image { max-height: 340px !important; object-fit: contain; }
    .pm-layout .pm-info { padding-top: 0 !important; }
    .px-info #productOptions:not(:empty),
    .pm-info .pm-options:has(button) { padding: 14px; }
    .pm-info .pm-price { font-size: 30px !important; line-height: 1.2 !important; }
    .pm-info .pm-actions { position: static !important; }
    .px-info .px-buy > button,
    .pm-info .pm-add { flex: 1 1 160px; width: auto; }
    .px-info .px-quantity,
    .pm-info .pm-quantity { flex: 0 0 auto; }
}
