.sn-page-details { min-width: 0; }
.sn-page-details > .page-menu { gap: 16px; }
.sn-page-details > .page-menu .menu-item { min-height: 44px; }
.sn-page-details .sn-page-actions a { min-height: 44px; box-sizing: border-box; }
.sn-page-details .detail-wrap { display: grid; grid-template-columns: minmax(240px, 30%) minmax(0, 1fr); gap: 20px; margin-top: 16px; align-items: start; }
.sn-page-details .basic-info, .sn-page-details .post-container { min-width: 0; box-sizing: border-box; }
.sn-page-details .basic-info { overflow-wrap: anywhere; }
.sn-page-details .about i.fa-solid { width: 20px; text-align: center; }
.sn-page-details .sn-page-intro, .sn-page-details .sn-page-products { padding: 16px; margin-bottom: 20px; }
.sn-page-details .sn-page-block-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.sn-page-details .sn-page-block-heading h2 { margin: 0; font-size: 22px; line-height: 1.35; }
.sn-page-details .sn-page-block-heading a { display: inline-flex; align-items: center; min-height: 44px; }
.sn-page-details .sn-page-intro-viewport { --intro-height: 420px; position: relative; }
.sn-page-details .sn-page-intro.is-collapsed .sn-page-intro-viewport { max-height: var(--intro-height); overflow: hidden; overflow: clip; }
.sn-page-details .sn-page-intro.is-collapsed .sn-page-intro-viewport::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 32px; background: linear-gradient(transparent, white); pointer-events: none; }
.sn-page-details .sn-page-intro-toggle { min-height: 44px; max-width: 100%; margin-top: 12px; white-space: normal; }
.sn-page-details .sn-page-intro-toggle[hidden] { display: none; }
.sn-page-details #page-posts, .sn-page-details .sn-page-intro { scroll-margin-top: var(--page-scroll-offset, 130px); }
.sn-page-details :is(.sn-page-intro-toggle, .menu-item, .sn-page-block-heading a):focus-visible { outline: 2px solid var(--main-color); outline-offset: 3px; }

/* Only the stored rich text is normalized. Inline widths from CKEditor may
   require these narrow overrides; the shell, product and feed styles are untouched. */
.sn-page-details .sn-page-rich-text { display: flow-root; overflow-wrap: anywhere; line-height: 1.65; }
.sn-page-details .sn-page-rich-text * { box-sizing: border-box; }
.sn-page-details .sn-page-rich-text :is(div, p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, pre) { max-width: 100% !important; min-width: 0; }
.sn-page-details .sn-page-rich-text div { flex-wrap: wrap; }
.sn-page-details .sn-page-rich-text img { max-width: 100% !important; height: auto !important; }
.sn-page-details .sn-page-rich-text pre { white-space: pre-wrap; }
.sn-page-details .sn-page-rich-text .sn-page-table-scroll { width: 100%; overflow-x: auto; margin: 12px 0; }
.sn-page-details .sn-page-rich-text table { border-collapse: collapse; }
.sn-page-details .sn-page-rich-text td, .sn-page-details .sn-page-rich-text th { padding: 8px; }
.sn-page-details .sn-page-rich-text > :first-child { margin-top: 0; }
.sn-page-details .sn-page-rich-text > :last-child { margin-bottom: 0; }

.sn-page-details .sn-page-product-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sn-page-details .sn-page-product-preview .product-item { display: flex; flex-direction: column; width: auto; height: auto; min-height: 0; min-width: 0; margin: 0; text-align: left; }
.sn-page-details .sn-page-product-preview .product-item:hover { transform: none; }
.sn-page-details .sn-page-product-preview .product-item img, .sn-page-details .sn-page-product-preview .product-photo-placeholder { width: 100%; height: auto; aspect-ratio: 226 / 170; object-fit: cover; }
.sn-page-details .sn-page-product-preview .product-item .item-name { height: auto; min-height: 40px; max-height: 40px; margin: 10px 10px 6px; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.sn-page-details .sn-page-product-preview .item-price { display: block; margin: auto 10px 12px; overflow-wrap: anywhere; }
.sn-page-details .sn-page-product-preview .item-code { max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-page-details .sn-page-product-preview .promotion-badge { font-size: 10px; }
@media (max-width: 980px) {
    .sn-page-details .detail-wrap { grid-template-columns: minmax(0, 1fr); }
    .sn-page-details .basic-info { order: 2; }
}
@media (max-width: 768px) {
    .sn-page-details .sn-page-block-heading h2 { font-size: 20px; }
    .sn-page-details > .page-menu { gap: 12px; }
    .sn-page-details .detail-wrap { gap: 16px; }
    .sn-page-details .sn-page-intro, .sn-page-details .sn-page-products { padding: 12px; margin-bottom: 16px; }
    .sn-page-details .sn-page-intro-viewport { --intro-height: 280px; }
    .sn-page-details .sn-page-rich-text div { grid-template-columns: minmax(0, 1fr) !important; flex-wrap: wrap !important; }
    .sn-page-details .sn-page-product-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sn-page-details .sn-page-product-preview .product-item:nth-child(n+3) { display: none; }
}
