/* Steinbrüder elegant technical product details — staging */

.sb15-detail-panel{
  overflow-y:auto !important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#c9c5be transparent;
  padding-right:4px;
}

.sb15-short-description{
  color:#686963 !important;
  font-size:13px !important;
  line-height:1.5 !important;
}

.sb15-product-details{
  width:100%;
  margin:16px 0 14px;
  padding-top:14px;
  border-top:1px solid #e5e2dc;
}

.sb15-section{
  margin-top:16px;
}

.sb15-section:first-child{
  margin-top:0;
}

.sb15-section h3{
  margin:0 0 9px;
  color:#1f201e;
  font-size:12px;
  font-weight:850;
  letter-spacing:-.015em;
}

.sb15-key-grid{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:7px;
}

.sb15-key{
  min-width:0;
  padding:10px 11px;
  border:1px solid #e3dfd8;
  border-radius:11px;
  background:#f7f5f1;
}

.sb15-key span{
  display:block;
  overflow:hidden;
  color:#87837c;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:8px;
  font-weight:700;
}

.sb15-key strong{
  display:block;
  margin-top:4px;
  color:#20211f;
  font-size:12px;
  font-weight:850;
  line-height:1.2;
}

.sb15-description p{
  margin:0;
  color:#666761;
  font-size:10px;
  line-height:1.58;
}

.sb15-spec-list{
  overflow:hidden;
  border-top:1px solid #e7e3dd;
}

.sb15-spec-row{
  min-height:36px;
  display:grid;
  grid-template-columns:
    minmax(120px,1fr)
    minmax(90px,auto);
  align-items:center;
  gap:14px;
  padding:8px 1px;
  border-bottom:1px solid #ece9e3;
}

.sb15-spec-row span{
  color:#777873;
  font-size:9px;
}

.sb15-spec-row strong{
  color:#242521;
  font-size:9px;
  font-weight:850;
  text-align:right;
  overflow-wrap:anywhere;
}

@media(max-width:720px){
  .sb15-key-grid{
    grid-template-columns:1fr 1fr;
  }

  .sb15-spec-row{
    grid-template-columns:1fr auto;
  }
}

/* =========================================================
   STEINBRÜDER PRODUCT MODAL — LARGE PROFESSIONAL LAYOUT V15B
   ========================================================= */

.sb15-modal-expanded{
  width:min(1180px,calc(100vw - 48px)) !important;
  max-width:1180px !important;

  height:min(820px,calc(100vh - 48px)) !important;
  max-height:calc(100vh - 48px) !important;

  overflow:hidden !important;
  border-radius:24px !important;
}

/*
 * Keep the product image/left side visually stable while the
 * information column can scroll independently.
 */
.sb15-modal-expanded .sb15-detail-panel{
  height:100% !important;
  max-height:calc(100vh - 84px) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;

  padding-right:12px !important;

  scrollbar-width:thin;
  scrollbar-color:#bdb8b0 transparent;
}

.sb15-modal-expanded .sb15-detail-panel::-webkit-scrollbar{
  width:7px;
}

.sb15-modal-expanded .sb15-detail-panel::-webkit-scrollbar-track{
  background:transparent;
}

.sb15-modal-expanded .sb15-detail-panel::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:#c6c1b9;
}

.sb15-modal-expanded .sb15-detail-panel::-webkit-scrollbar-thumb:hover{
  background:#a9a39a;
}

/* Bigger product typography */
.sb15-modal-expanded .sb15-short-description{
  font-size:15px !important;
  line-height:1.55 !important;
  color:#62635d !important;
}

/* Bigger generated information section */
.sb15-modal-expanded .sb15-product-details{
  margin-top:22px !important;
  padding-top:20px !important;
  border-top:1px solid #dfddd7 !important;
}

.sb15-modal-expanded .sb15-section{
  margin-top:22px !important;
}

.sb15-modal-expanded .sb15-section h3{
  margin-bottom:12px !important;
  font-size:15px !important;
  line-height:1.2 !important;
  letter-spacing:-.02em !important;
}

/* Quick facts become large visual numbers */
.sb15-modal-expanded .sb15-key-grid{
  grid-template-columns:
    repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
}

.sb15-modal-expanded .sb15-key{
  min-height:76px;
  padding:14px 15px !important;
  border-radius:14px !important;
  background:#f6f4f0 !important;
}

.sb15-modal-expanded .sb15-key span{
  font-size:10px !important;
  font-weight:750 !important;
}

.sb15-modal-expanded .sb15-key strong{
  margin-top:6px !important;
  font-size:17px !important;
  line-height:1.15 !important;
}

/* Description is readable, not tiny */
.sb15-modal-expanded .sb15-description p{
  max-width:720px;
  font-size:12px !important;
  line-height:1.65 !important;
  color:#60615b !important;
}

/* Technical specifications become a proper compact table */
.sb15-modal-expanded .sb15-spec-list{
  border-top:1px solid #dedbd5 !important;
}

.sb15-modal-expanded .sb15-spec-row{
  min-height:48px !important;
  grid-template-columns:
    minmax(150px,1fr)
    minmax(130px,auto) !important;

  padding:11px 2px !important;
  gap:18px !important;
}

.sb15-modal-expanded .sb15-spec-row span{
  font-size:11px !important;
  line-height:1.35 !important;
}

.sb15-modal-expanded .sb15-spec-row strong{
  font-size:11px !important;
  line-height:1.35 !important;
}

/*
 * Give the right information column more room on large screens.
 * This is intentionally generic: it only applies while this
 * Steinbrüder product modal is active.
 */
@media(min-width:900px){
  .sb15-modal-expanded{
    min-width:min(1080px,calc(100vw - 48px)) !important;
  }

  .sb15-modal-expanded .sb15-detail-panel{
    min-width:470px !important;
  }
}

@media(max-width:899px){
  .sb15-modal-expanded{
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px) !important;

    height:calc(100vh - 24px) !important;
    max-height:calc(100vh - 24px) !important;

    border-radius:18px !important;
  }

  .sb15-modal-expanded .sb15-detail-panel{
    max-height:calc(100vh - 48px) !important;
  }
}

@media(max-width:650px){
  .sb15-modal-expanded{
    width:100vw !important;
    max-width:100vw !important;
    height:100vh !important;
    max-height:100vh !important;
    border-radius:0 !important;
  }

  .sb15-modal-expanded .sb15-key-grid{
    grid-template-columns:1fr 1fr !important;
  }

  .sb15-modal-expanded .sb15-key{
    min-height:68px;
  }

  .sb15-modal-expanded .sb15-key strong{
    font-size:15px !important;
  }

  .sb15-modal-expanded .sb15-detail-panel{
    max-height:100vh !important;
    padding-right:8px !important;
  }
}

/* =========================================================
   STEINBRÜDER PRODUCT MODAL — ALWAYS VISIBLE SCROLL V15C
   ========================================================= */

.sb15-modal-expanded .sb15-detail-panel{
  position:relative !important;
  overflow-y:scroll !important;
  overflow-x:hidden !important;

  /*
   * Reserve a real gutter even on browsers/desktop themes
   * that use overlay scrollbars.
   */
  scrollbar-gutter:stable !important;

  padding-right:22px !important;
}

/* Keep native scrollbar subtle; custom rail remains visible. */
.sb15-modal-expanded .sb15-detail-panel{
  scrollbar-width:thin !important;
  scrollbar-color:#a9a39a #efede8 !important;
}

.sb15-modal-expanded
.sb15-detail-panel::-webkit-scrollbar{
  width:8px !important;
}

.sb15-modal-expanded
.sb15-detail-panel::-webkit-scrollbar-track{
  background:#efede8 !important;
  border-radius:999px !important;
}

.sb15-modal-expanded
.sb15-detail-panel::-webkit-scrollbar-thumb{
  background:#a9a39a !important;
  border-radius:999px !important;
  border:2px solid #efede8 !important;
}

/*
 * Explicit visual scroll rail.
 * This stays visible even if Ubuntu/Chrome auto-hides the native bar.
 */
.sb15-scroll-rail{
  position:sticky;
  z-index:60;

  top:8px;
  float:right;

  width:8px;
  height:calc(100% - 16px);

  margin-top:-100%;
  margin-right:-17px;

  border-radius:999px;
  background:#ece9e3;

  opacity:1;
  transition:opacity .16s ease;
  cursor:pointer;
}

.sb15-scroll-rail.is-hidden{
  opacity:0;
  pointer-events:none;
}

.sb15-scroll-thumb{
  width:8px;
  min-height:44px;

  border-radius:999px;
  background:#9a795d;

  box-shadow:
    0 1px 3px rgba(32,33,31,.16);

  cursor:grab;

  transition:
    background .14s ease;
}

.sb15-scroll-thumb:hover{
  background:#7e624c;
}

.sb15-scroll-dragging,
.sb15-scroll-dragging *{
  cursor:grabbing !important;
  user-select:none !important;
}

@media(max-width:650px){
  .sb15-modal-expanded .sb15-detail-panel{
    padding-right:18px !important;
  }

  .sb15-scroll-rail{
    margin-right:-14px;
  }
}

/* =========================================================
   STEINBRÜDER PRODUCT MODAL — SCROLL FIX V15D
   ========================================================= */

/* Disable the previous experimental rail. */
.sb15-scroll-rail,
.sb15-scroll-thumb{
  display:none !important;
}

/*
 * The modal itself stays fixed.
 * Only the product-information column scrolls.
 */
.sb15-scroll-fixed-modal{
  position:fixed !important;
  overflow:hidden !important;
}

.sb15-scroll-fixed-panel{
  position:relative !important;
  min-height:0 !important;
  overflow-y:scroll !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain !important;

  scrollbar-gutter:stable !important;

  /* Native fallback */
  scrollbar-width:thin !important;
  scrollbar-color:#b8b2aa #f1eee9 !important;
}

.sb15-scroll-fixed-panel::-webkit-scrollbar{
  width:8px !important;
}

.sb15-scroll-fixed-panel::-webkit-scrollbar-track{
  background:#f1eee9 !important;
  border-radius:999px !important;
}

.sb15-scroll-fixed-panel::-webkit-scrollbar-thumb{
  background:#b8b2aa !important;
  border-radius:999px !important;
}

/*
 * Always-visible custom rail.
 * It is a sibling overlay in the modal, not part of the scrolling
 * content, so it never scrolls away.
 */
.sb15d-scroll-rail{
  position:absolute;
  z-index:120;

  width:8px;

  border-radius:999px;
  background:#ece8e2;

  box-shadow:
    inset 0 0 0 1px rgba(32,33,31,.035);

  opacity:1;
  pointer-events:auto;
  cursor:pointer;
}

.sb15d-scroll-rail.is-hidden{
  opacity:0;
  pointer-events:none;
}

.sb15d-scroll-thumb{
  position:absolute;
  top:0;
  left:0;

  width:8px;
  min-height:48px;

  border-radius:999px;

  background:#9a795d;

  box-shadow:
    0 2px 6px rgba(32,33,31,.18);

  cursor:grab;
  will-change:transform;
}

.sb15d-scroll-thumb:hover{
  background:#7d614b;
}

.sb15d-scroll-dragging,
.sb15d-scroll-dragging *{
  cursor:grabbing !important;
  user-select:none !important;
}

@media(max-width:650px){
  .sb15d-scroll-rail{
    width:7px;
  }

  .sb15d-scroll-thumb{
    width:7px;
  }
}

/* =========================================================
   HOTFIX V15E — RESTORE PRODUCT MODAL VISIBILITY
   ========================================================= */

/*
 * IMPORTANT:
 * Never change the product modal from its original fixed layout.
 * v15d accidentally changed it to position:relative.
 */
.sb15-modal-expanded.sb15-scroll-fixed-modal{
  position:fixed !important;
}

/*
 * Preserve the already-approved enlarged modal dimensions.
 */
.sb15-modal-expanded{
  width:min(1180px,calc(100vw - 48px)) !important;
  max-width:1180px !important;
  height:min(820px,calc(100vh - 48px)) !important;
  max-height:calc(100vh - 48px) !important;
  overflow:hidden !important;
}

/*
 * Only the right information column scrolls.
 */
.sb15-modal-expanded .sb15-detail-panel,
.sb15-modal-expanded .sb15-scroll-fixed-panel{
  position:relative !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain !important;
  scrollbar-gutter:stable !important;
}

/*
 * Keep the custom scrollbar overlay visible without affecting
 * modal layout or centering.
 */
.sb15-modal-expanded .sb15d-scroll-rail{
  position:absolute !important;
  z-index:150 !important;
}

/*
 * Fallback visible native scrollbar.
 */
.sb15-modal-expanded .sb15-scroll-fixed-panel{
  scrollbar-width:auto !important;
  scrollbar-color:#9a795d #eeeae4 !important;
}

.sb15-modal-expanded
.sb15-scroll-fixed-panel::-webkit-scrollbar{
  width:10px !important;
}

.sb15-modal-expanded
.sb15-scroll-fixed-panel::-webkit-scrollbar-track{
  background:#eeeae4 !important;
  border-radius:999px !important;
}

.sb15-modal-expanded
.sb15-scroll-fixed-panel::-webkit-scrollbar-thumb{
  background:#9a795d !important;
  border-radius:999px !important;
  border:2px solid #eeeae4 !important;
}

.sb15-modal-expanded
.sb15-scroll-fixed-panel::-webkit-scrollbar-thumb:hover{
  background:#7d614b !important;
}

@media(max-width:899px){
  .sb15-modal-expanded{
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px) !important;
    height:calc(100vh - 24px) !important;
    max-height:calc(100vh - 24px) !important;
  }
}

@media(max-width:650px){
  .sb15-modal-expanded{
    width:100vw !important;
    max-width:100vw !important;
    height:100vh !important;
    max-height:100vh !important;
  }
}

/* =========================================================
   STEINBRÜDER PRODUCT MODAL — STABLE NATIVE SCROLL V15F
   ========================================================= */

/*
 * Stop using the experimental independent-column scroll.
 * The complete product dialog is now the scroll container.
 *
 * This is intentionally simpler and more reliable:
 * - mouse wheel works
 * - touchpad works
 * - drag scrollbar works
 * - browser handles scroll physics
 */
.sb15-modal-expanded{
  position:fixed !important;

  width:min(1180px,calc(100vw - 48px)) !important;
  max-width:1180px !important;

  height:min(820px,calc(100vh - 48px)) !important;
  max-height:calc(100vh - 48px) !important;

  overflow-y:scroll !important;
  overflow-x:hidden !important;

  overscroll-behavior:contain !important;
  scrollbar-gutter:stable !important;

  scrollbar-width:auto !important;
  scrollbar-color:#9a795d #eeeae4 !important;
}

/*
 * Undo all previous right-column forced scroll dimensions.
 * Let its content contribute naturally to the modal height.
 */
.sb15-modal-expanded .sb15-detail-panel,
.sb15-modal-expanded .sb15-scroll-fixed-panel{
  height:auto !important;
  max-height:none !important;

  overflow:visible !important;

  padding-right:4px !important;

  scrollbar-width:auto !important;
}

/* Hide all old custom rails permanently. */
.sb15-scroll-rail,
.sb15-scroll-thumb,
.sb15d-scroll-rail,
.sb15d-scroll-thumb{
  display:none !important;
}

/* Visible Steinbrüder scrollbar in Chromium/WebKit */
.sb15-modal-expanded::-webkit-scrollbar{
  width:12px !important;
}

.sb15-modal-expanded::-webkit-scrollbar-track{
  margin:16px 0;
  background:#eeeae4 !important;
  border-radius:999px !important;
}

.sb15-modal-expanded::-webkit-scrollbar-thumb{
  min-height:64px;
  background:#9a795d !important;
  border:3px solid #eeeae4 !important;
  border-radius:999px !important;
}

.sb15-modal-expanded::-webkit-scrollbar-thumb:hover{
  background:#7d614b !important;
}

/*
 * The close button stays reachable while the user scrolls.
 * Covers the common existing Steinbrüder close-button shapes.
 */
.sb15-modal-expanded button[aria-label*="cerr" i],
.sb15-modal-expanded button[title*="cerr" i],
.sb15-modal-expanded .modal-close,
.sb15-modal-expanded [class*="close"]{
  position:sticky !important;
  top:14px !important;
  z-index:250 !important;
}

/*
 * Slight bottom breathing room so request controls are not
 * pressed against the end of the scrollable dialog.
 */
.sb15-modal-expanded .sb15-detail-panel{
  padding-bottom:22px !important;
}

@media(max-width:899px){
  .sb15-modal-expanded{
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px) !important;

    height:calc(100vh - 24px) !important;
    max-height:calc(100vh - 24px) !important;
  }
}

@media(max-width:650px){
  .sb15-modal-expanded{
    width:100vw !important;
    max-width:100vw !important;

    height:100vh !important;
    max-height:100vh !important;

    border-radius:0 !important;
  }
}

/* =========================================================
   STEINBRÜDER PRODUCT MODAL — POSITION + BACKGROUND FIX V15G
   ========================================================= */

/*
 * Force the product dialog to be centered in the viewport.
 * Do not inherit top/right/bottom positioning from old patches.
 */
html body .sb15-modal-expanded{
  position:fixed !important;

  top:50% !important;
  left:50% !important;
  right:auto !important;
  bottom:auto !important;

  transform:translate(-50%,-50%) !important;

  margin:0 !important;

  width:min(1180px,calc(100vw - 48px)) !important;
  max-width:1180px !important;

  height:min(820px,calc(100vh - 48px)) !important;
  max-height:calc(100vh - 48px) !important;

  /*
   * Make the MODAL itself the reliable scroll container.
   */
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain !important;
  scrollbar-gutter:stable !important;

  /*
   * Critical: opaque Steinbrüder product-sheet background.
   * This prevents catalog cards from appearing through the modal.
   */
  background:#ffffff !important;
  background-color:#ffffff !important;
  opacity:1 !important;

  border:1px solid rgba(32,33,31,.08) !important;
  border-radius:24px !important;

  box-shadow:
    0 28px 80px rgba(24,24,22,.24),
    0 3px 12px rgba(24,24,22,.08) !important;

  z-index:100000 !important;

  isolation:isolate !important;

  scrollbar-width:auto !important;
  scrollbar-color:#9a795d #eeeae4 !important;
}

/*
 * Right information column must also be opaque.
 * Undo old independent-scroll experiments.
 */
html body .sb15-modal-expanded .sb15-detail-panel,
html body .sb15-modal-expanded .sb15-scroll-fixed-panel{
  position:relative !important;

  height:auto !important;
  max-height:none !important;
  min-height:0 !important;

  overflow:visible !important;

  background:#ffffff !important;
  background-color:#ffffff !important;
  opacity:1 !important;

  padding-right:8px !important;
  padding-bottom:28px !important;
}

/*
 * Left media area remains the warm Steinbrüder neutral.
 */
html body .sb15-modal-expanded
:is(
  .product-image,
  .product-media,
  .product-detail-image,
  [class*="image-wrap"],
  [class*="media-wrap"]
){
  background:#f3f0eb;
}

/* Hide every obsolete custom scrollbar rail. */
html body .sb15-modal-expanded .sb15-scroll-rail,
html body .sb15-modal-expanded .sb15-scroll-thumb,
html body .sb15-modal-expanded .sb15d-scroll-rail,
html body .sb15-modal-expanded .sb15d-scroll-thumb{
  display:none !important;
}

/* Visible native scrollbar. */
html body .sb15-modal-expanded::-webkit-scrollbar{
  width:11px !important;
}

html body .sb15-modal-expanded::-webkit-scrollbar-track{
  margin:18px 0 !important;
  background:#eeeae4 !important;
  border-radius:999px !important;
}

html body .sb15-modal-expanded::-webkit-scrollbar-thumb{
  min-height:72px !important;
  background:#9a795d !important;
  border:3px solid #eeeae4 !important;
  border-radius:999px !important;
}

html body .sb15-modal-expanded::-webkit-scrollbar-thumb:hover{
  background:#7d614b !important;
}

/*
 * Keep close button visible and crisp.
 */
html body .sb15-modal-expanded
:is(
  button[aria-label*="cerr" i],
  button[title*="cerr" i],
  .modal-close,
  [class*="close"]
){
  z-index:250 !important;
}

/*
 * Prevent any inherited translucent/modal overlay styling
 * from contaminating the actual product sheet.
 */
html body .sb15-modal-expanded::before,
html body .sb15-modal-expanded::after{
  pointer-events:none !important;
}

/*
 * Responsive placement.
 */
@media(max-width:899px){
  html body .sb15-modal-expanded{
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px) !important;

    height:calc(100vh - 24px) !important;
    max-height:calc(100vh - 24px) !important;

    border-radius:18px !important;
  }
}

@media(max-width:650px){
  html body .sb15-modal-expanded{
    top:0 !important;
    left:0 !important;

    transform:none !important;

    width:100vw !important;
    max-width:100vw !important;

    height:100vh !important;
    max-height:100vh !important;

    border-radius:0 !important;
  }
}
