.ps-product-layout { min-width: 0; }
.ps-detail-controls { display: grid; gap: 14px; }
.ps-detail-controls .ps-btn { min-height: 48px; }
.ps-product-layout .ps-detail-desc { min-width: 0; overflow-wrap: anywhere; }
.ps-product-layout .ps-detail-desc iframe { max-width: 100%; }
@media (min-width: 901px) {
  .ps-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 22px 28px;
    align-items: start;
  }
  .ps-product-layout > .ps-detail { display: contents; }
  .ps-product-layout .ps-detail-media { grid-column: 1; grid-row: 1; }
  .ps-product-layout .ps-detail-info {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .ps-product-layout > .ps-detail-desc { grid-column: 1; grid-row: 2; }
  .ps-product-layout > .nl-delivery { grid-column: 1; grid-row: 3; }
  .ps-detail-controls.ps-purchase-docked {
    position: fixed;
    bottom: 20px;
    z-index: 90;
    padding: 16px;
    border: 1px solid #d8e3df;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 24px rgb(24 52 59 / 14%);
  }
}
@media (max-width: 900px) {
  body { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .ps-product-layout > .ps-detail-desc { margin-bottom: 22px; }
  .ps-detail-controls {
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    gap: 10px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #d8e3df;
    background: #fff;
    box-shadow: 0 -4px 18px rgb(24 52 59 / 10%);
  }
  .ps-detail-controls .ps-field { display: flex; align-items: center; gap: 14px; margin: 0; }
  .ps-detail-controls .ps-field span { margin: 0; }
  .ps-detail-controls .ps-field input { width: 92px; min-height: 44px; font-size: 16px; text-align: center; }
  .ps-detail-controls .ps-detail-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-detail-controls .ps-btn { min-width: 0; padding: 8px; font-size: 15px; }
}
