.s4p-product-page{
  max-width:1440px;
  margin:0 auto;
  padding:28px 18px 60px;
}

.s4p-product-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.08fr) minmax(380px, .92fr);
  gap:34px;
  align-items:start;
}

.s4p-gallery,
.s4p-buybox,
.s4p-description{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:28px;
  box-shadow:0 18px 60px rgba(15,23,42,.08);
}

.s4p-gallery{
  padding:24px;
}

.s4p-gallery-main{
  min-height:660px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#f8fbff 0%,#eef5fb 100%);
  border-radius:22px;
  overflow:hidden;
}

.s4p-main-image{
  width:100%;
  height:100%;
  max-height:660px;
  object-fit:contain;
}

.s4p-thumbs{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}

.s4p-thumb{
  width:82px;
  height:82px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:16px;
  background:#f8fafc;
  cursor:pointer;
  padding:5px;
}

.s4p-thumb.is-active{
  border-color:#0b66ff;
  box-shadow:0 0 0 3px rgba(11,102,255,.16);
}

.s4p-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.s4p-buybox{
  padding:30px;
  position:sticky;
  top:18px;
}

.s4p-buybox .product_title{
  font-size:clamp(28px,3vw,44px);
  line-height:1.05;
  margin:0 0 14px;
  color:#0f172a;
}

.s4p-price,
.s4p-selected-price{
  font-size:24px;
  font-weight:900;
  color:#0b66ff;
  margin:12px 0;
}

.s4p-shortdesc{
  color:#475569;
  line-height:1.65;
  margin:18px 0 24px;
}

.s4p-option-block{
  margin:22px 0;
}

.s4p-option-block h3{
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#0f172a;
  margin:0 0 12px;
}

.s4p-color-options,
.s4p-size-options{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.s4p-color-btn,
.s4p-size-btn{
  border:1px solid rgba(15,23,42,.14);
  background:#f8fafc;
  color:#0f172a;
  border-radius:14px;
  padding:12px 15px;
  font-weight:800;
  cursor:pointer;
}

.s4p-color-btn{
  width:100%;
  text-align:left;
}

.s4p-color-btn.is-active,
.s4p-size-btn.is-active{
  background:#0b66ff;
  color:#fff;
  border-color:#0b66ff;
  box-shadow:0 10px 28px rgba(11,102,255,.22);
}

.s4p-size-btn.is-disabled,
.s4p-size-btn:disabled{
  opacity:.35;
  cursor:pointer;
}

.s4p-qty-row{
  display:flex;
  gap:14px;
  align-items:center;
  margin-top:24px;
}

.s4p-qty-row .quantity input{
  height:52px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.18);
  padding:0 10px;
}

.s4p-add-to-cart{
  flex:1;
  min-height:54px;
  border-radius:16px !important;
  font-weight:900 !important;
}

.s4p-add-to-cart:disabled{
  opacity:.45;
  cursor:pointer;
}

.s4p-variant-hint{
  margin-top:12px;
  color:#64748b;
  font-weight:700;
}

.s4p-meta{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(15,23,42,.10);
  color:#64748b;
}

.s4p-description{
  margin-top:34px;
  padding:32px;
  line-height:1.7;
}

.s4p-description h2{
  margin-top:0;
  font-size:28px;
}

@media (max-width: 980px){
  .s4p-product-grid{
    grid-template-columns:1fr;
  }

  .s4p-buybox{
    position:relative;
    top:auto;
  }

  .s4p-gallery-main{
    min-height:420px;
  }

  .s4p-main-image{
    max-height:420px;
  }
}

/* S4P Fix: kein Drag-/Verbotssymbol auf Variantenbuttons */
.s4p-color-btn,
.s4p-size-btn,
.s4p-color-btn *,
.s4p-size-btn * {
  cursor: pointer !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

.s4p-color-btn img,
.s4p-size-btn img {
  pointer-events: none !important;
  -webkit-user-drag: none !important;
}

/* S4P Button-State ohne echtes disabled */
.s4p-add-to-cart.is-disabled {
  opacity: .45;
  cursor: pointer !important;
}

/* S4P Fix: Warenkorb-Button nie als gesperrt anzeigen */
.s4p-add-to-cart,
.s4p-add-to-cart *,
.s4p-add-to-cart.is-disabled,
.s4p-add-to-cart:disabled {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.s4p-multipack-hint{
  margin:10px 0 0;
  padding:12px 14px;
  border-radius:14px;
  background:#fff7ed;
  border:1px solid rgba(251,146,60,.35);
  color:#9a3412;
  font-weight:800;
}
.s4p-multipack-hint:empty{
  display:none;
}
