/* === ITeB Shopify Bridge – Light Theme CSS === */
:root{
  --fg:#111;          /* Text */
  --muted:#555;       /* Gedämpfter Text */
  --bg:#fff;          /* Seite */
  --link:#0369a1;     /* Links */
  --primary:#0ea5e9;  /* Akzent */
  --danger:#e11d48;   /* Entfernen/Fehler */
  --success:#10b981;  /* Positiv */
  --border:#e5e7eb;   /* Rahmen */
  --card:#fff;        /* Kartenhintergrund */
  --code:#f6f8fa;     /* Code/Pre */
  --shadow:0 6px 20px rgba(0,0,0,.08);
  --shadow-strong:0 8px 20px rgba(0,0,0,.25);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  color:var(--fg);
  background:var(--bg);
}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
img{
  max-width:100%;
  height:auto;
  display:block;
  margin-left:auto;
  margin-right:auto;
}

#custom_html-3 > h2{
   margin-left:auto;
  margin-right:auto;
  
}

.textwidget > .custom-html-widget{
   margin-left:50px;
  margin-right:50px;
  
}





/* ===== Produktgrid / Übersicht ===== */
.spw-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:18px;margin:20px 0;padding:0;list-style:none;
}
.spw-item{
  border:1px solid var(--border);
  border-radius:12px;padding:14px;background:var(--card);
  display:flex;flex-direction:column;gap:8px;
  transition:box-shadow .2s,border-color .2s;
}
.spw-item:hover{box-shadow:var(--shadow);border-color:#e1e5ea}
.spw-thumb{width:100%;border-radius:8px}
.spw-title{font-weight:600;display:block}
.spw-price{opacity:.9}
.spw-item-link{text-decoration:none;color:inherit}

/* Suche */
.spw-search{margin:10px 0}
.spw-search input{
  width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;
}

/* Buttons & Inputs */
.spw-btn{
  background:#111;color:#fff;padding:10px 14px;border:none;border-radius:10px;
  cursor:pointer;text-decoration:none;display:inline-block;
}
.spw-btn:hover{filter:brightness(0.95)}
.spw-btn:focus{outline:2px solid var(--primary);outline-offset:2px}
.spw-btn.ghost{background:#fff;border:1px solid #111;color:#111}
.spw-select,.spw-qty{
  padding:8px 10px;border:1px solid var(--border);border-radius:8px;
}

/* ===== PDP (Produktdetailseite) ===== */
.spw-pdp{
  max-width:1400px;
  margin-left: auto;
  margin-right:auto;
  /*padding:30px;*/
}
.spw-pdp-grid{
  display:grid;gap:30px;align-items:start;
  grid-template-columns:1fr 1fr;
}
@media (max-width:900px){ .spw-pdp-grid{grid-template-columns:1fr} }

.spw-pdp-mainimg{width:100%;border-radius:12px}
.spw-pdp-title{margin:.25rem 0 .5rem;font-size:xxx-large;line-height:1.25}
.spw-pdp-price{margin:.25rem 0 1rem;font-weight:700;font-size:xxx-large}
.spw-label{display:block;margin:.75rem 0 .25rem;font-weight:600;font-size:xx-large}
.spw-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.spw-desc{margin-top:18px;line-height:1.6;font-size:xx-large}
.spw-back{margin-top:10px}

/* PDP Thumbnails – DOM: <img class="spw-thumb"> */
.spw-pdp-thumbs{
  display:flex;
/*  flex-wrap:wrap;*/
  gap:10px;
  margin-top:10px;
 
  height:auto;
  border:thin;
}
.spw-pdp-thumbs img.spw-thumb{
  width:96px;height:96px;object-fit:cover;border-radius:8px;
  border:1px solid var(--border);
  background:#fff;cursor:pointer;
  transition:transform .12s,border-color .12s;
}
.spw-pdp-thumbs img.spw-thumb:hover{transform:translateY(-1px);border-color:#d8dde4}
.spw-pdp-thumbs img.spw-thumb:focus{outline:2px solid var(--primary);outline-offset:2px}

/* ===== Floating Cart Button (FAB) ===== */
.spw-cart-fab{
  position:fixed;right:16px;bottom:16px;z-index:9998;
  background:#111;color:#fff;border-radius:9999px;
  padding:.55rem .85rem;box-shadow:var(--shadow-strong);
  display:flex;align-items:center;gap:.5rem;cursor:pointer;
}
.spw-cart-icon{font-size:1.1rem;line-height:1}
.spw-cart-count{
  min-width:1.5rem;text-align:center;background:#fff;color:#111;
  border-radius:9999px;padding:.1rem .4rem;font-weight:700;
}

/* ===== Warenkorb-Drawer (Variante B) ===== */
.spw-cart{
  position:fixed;top:0;right:0;height:100vh;width:420px;max-width:100vw;
  background:#fff;box-shadow:-2px 0 24px rgba(0,0,0,.2);
  transform:translateX(100%);transition:transform .25s ease;z-index:99999;
  display:flex;flex-direction:column;border-left:1px solid var(--border);
}
.spw-cart.open{transform:translateX(0)}
@media (max-width:480px){ .spw-cart{width:100vw} }

.spw-cart-head,.spw-cart-foot{
  background:#fff;padding:.9rem 1rem;display:flex;justify-content:space-between;align-items:center;
  border-bottom:1px solid var(--border);
}
.spw-cart-foot{border-bottom:0;border-top:1px solid var(--border);margin-top:auto}
.spw-cart-head strong{font-size:1.05rem}
#spw-close{border:0;font-size:1.6rem;cursor:pointer;line-height:1}

.spw-cart-body{
  padding:.75rem 1rem;overflow:auto;max-height:calc(100vh - 140px);
}

/* Zeile im Warenkorb */
.spw-line{
  display:grid;grid-template-columns:64px 1fr auto;gap:.6rem;align-items:center;
  padding:.35rem 0;border-bottom:1px solid #f3f4f6;
}
.spw-line:last-child{border-bottom:0}
.spw-line-thumb{width:64px;height:64px;object-fit:cover;border-radius:8px;border:1px solid var(--border)}
.spw-line-title{font-weight:500}
.spw-remove{color:var(--danger);text-decoration:none}
.spw-remove:hover{text-decoration:underline}

/* Mengensteuerung */
.spw-qtyctrl{
  display:inline-flex;align-items:center;border:1px solid var(--border);
  border-radius:8px;overflow:hidden;margin-top:.4rem;
}
.spw-qtybtn{
  background:#f9fafb;border:0;width:32px;height:32px;cursor:pointer;
}
.spw-qtybtn:hover{background:#f3f4f6}
.spw-qtyval{display:inline-block;min-width:36px;text-align:center}

/* Summen */
.spw-summary{padding:.5rem 0 .25rem;margin:.5rem 0 0;border-top:1px solid var(--border)}
.spw-summary-row{display:flex;justify-content:space-between;margin:.2rem 0}
.spw-summary-row.total{font-weight:700}

/* Status/Info */
.spw-msg{
  padding:10px 12px;border:1px solid var(--border);background:#fafafa;border-radius:8px;
}

/* ===== Verbesserte Fokus/States ===== */
button, [role="button"], .spw-select, .spw-qty, a.spw-item-link{
  outline: none;
}
button:focus,[role="button"]:focus,.spw-select:focus,.spw-qty:focus,a.spw-item-link:focus{
  box-shadow:0 0 0 2px rgba(14,165,233,.35);
  border-color:#cfe8f6;
}

/* ===== Utilities ===== */
.hidden{display:none !important}
.center{display:flex;align-items:center;justify-content:center}


/* === PDP Lightbox === */
.spw-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.85);display:none;align-items:center;justify-content:center;z-index:100000}
.spw-lightbox.open{display:flex}
.spw-lb-wrap{position:relative;max-width:90vw;max-height:90vh}
.spw-lb-img{max-width:90vw;max-height:80vh;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.35);background:#111}
.spw-lb-close,.spw-lb-prev,.spw-lb-next{
  position:absolute;display:flex;align-items:center;justify-content:center;cursor:pointer;
  width:44px;height:44px;border-radius:999px;color:#fff;background:rgba(17,17,17,.6);
  border:1px solid rgba(255,255,255,.25);backdrop-filter:saturate(120%) blur(4px)
}
.spw-lb-close{top:12px;right:12px;font-size:22px;line-height:1}
.spw-lb-prev{left:-56px;top:50%;transform:translateY(-50%)}
.spw-lb-next{right:-56px;top:50%;transform:translateY(-50%)}
@media (max-width:640px){ .spw-lb-prev{left:8px} .spw-lb-next{right:8px} }
.spw-lb-cta{margin-top:12px;display:flex;gap:10px;justify-content:center}
.spw-lb-btn{background:#fff;color:#111;border:0;border-radius:10px;padding:10px 14px;cursor:pointer;text-decoration:none}
.spw-lb-btn.primary{background:#111;color:#fff}
.spw-lb-btn:focus{outline:2px solid var(--primary);outline-offset:2px}


/* Cart: Linienlayout & Preise */
.spw-line{display:grid;grid-template-columns:64px 1fr auto;gap:.6rem;align-items:center;padding:.5rem 0;border-bottom:1px solid #f0f2f4}
.spw-line:last-child{border-bottom:0}
.spw-line-thumb{width:64px;height:64px;object-fit:cover;border-radius:8px;border:1px solid #e5e7eb}
.spw-line-main{min-width:0}
.spw-line-title{font-weight:600;margin-bottom:.25rem}
.spw-line-side{text-align:right}
.spw-line-price{font-weight:700;white-space:nowrap;margin-bottom:.25rem}
.spw-remove{color:#b91c1c;text-decoration:none}
.spw-remove:hover{text-decoration:underline}

/* Qty-Steuerung */
.spw-qtyctrl{display:inline-flex;align-items:center;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}
.spw-qtybtn{background:#f9fafb;border:0;width:32px;height:32px;cursor:pointer;font-size:1.1rem;line-height:1}
.spw-qtyval{width:44px;border:0;border-left:1px solid #e5e7eb;border-right:1px solid #e5e7eb;text-align:center;height:32px}

/* Summenbereich */
.spw-summary{padding:.75rem 0 0;margin:.5rem 0 0;border-top:1px solid #e5e7eb}
.spw-summary-row{display:flex;justify-content:space-between;margin:.25rem 0}
.spw-summary-row.total{font-weight:800}
.spw-summary-row .muted, .muted{color:#6b7280}