/* giftsell-smycz.css — v1.3.1 */

/* ── Reset / loading ────────────────────────────────────────────── */
.gs-root { font-family: Barlow, sans-serif; color: #1a1a1a; }
.gs-loading { padding: 32px; text-align: center; color: #666; }
.gs-error   { padding: 16px; color: #c8102e; }

/* ── Górny pas akcesoriów ───────────────────────────────────────── */
.gs-akcesoria-top {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.gs-akcesoria-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gs-akcesoria-img-wrap {
  width: 100%;
  aspect-ratio: 330 / 247;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #fff;
}
.gs-akcesoria-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Label z jedną gwiazdką przez CSS — nigdy hardcoded w HTML */
.gs-akcesoria-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1a;
}
.gs-akcesoria-label.gs-req::before {
  content: "* ";
  color: #c8102e;
}
.gs-akcesoria-col .gs-select { width: 100%; }

/* ── Nagłówki sekcji ────────────────────────────────────────────── */
.gs-section-header {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 16px;
  margin-top: 4px;
}

/* ── Dolna sekcja — dwukolumnowy flex ──────────────────────────── */
.gs-wrap { display: flex; gap: 32px; align-items: flex-start; }
.gs-left  { flex: 1; min-width: 0; }
.gs-right { width: 260px; flex-shrink: 0; position: sticky; top: 24px; }

/* ── Pola formularza ────────────────────────────────────────────── */
.gs-field-group { margin-bottom: 20px; }
.gs-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.gs-label.gs-req::before { content: "* "; color: #c8102e; }

.gs-select {
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Barlow, sans-serif;
  font-size: 15px;
  background: #fff;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
}
.gs-select:focus { outline: 2px solid #c8102e; border-color: #c8102e; }

/* Breite — wąski jak na mockupie */
.gs-sel-breite-small { width: 220px; display: block; }

/* ── Menge ──────────────────────────────────────────────────────── */
.gs-menge-row { display: flex; align-items: center; gap: 6px; }
.gs-qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.gs-qty-btn:hover { background: #f0f0f0; border-color: #aaa; }
.gs-qty-input {
  width: 72px;
  height: 36px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Barlow, sans-serif;
  font-size: 15px;
  -moz-appearance: textfield;
}
.gs-qty-input::-webkit-inner-spin-button,
.gs-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.gs-qty-info { font-size: 14px; color: #555; white-space: nowrap; margin-left: 4px; }

/* ── Probeexemplar ──────────────────────────────────────────────── */
.gs-probe-group { margin-bottom: 24px; }
.gs-probe-group .gs-label { margin-bottom: 6px; }
.gs-probe-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.4;
}
.gs-probe-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #c8102e;
  width: 15px;
  height: 15px;
}

/* ── Staffelpreise ──────────────────────────────────────────────── */
.gs-staffel-wrap { margin-bottom: 8px; }
.gs-staffel { width: 100%; border-collapse: collapse; font-size: 14px; }
.gs-staffel thead tr { background: #1a1a1a; color: #fff; }
.gs-staffel th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.gs-staffel td { padding: 10px 14px; border-bottom: 1px solid #eee; color: #444; }
.gs-staffel tbody tr:not(.gs-staffel-active) td:first-child { border-left: 3px solid transparent; }
.gs-staffel-active td {
  border-left: 3px solid #c8102e;
  background: rgba(200,16,46,0.05);
  font-weight: 600;
  color: #1a1a1a;
}
.gs-staffel-hint { font-size: 12px; color: #888; margin-top: 8px; }

/* ── Panel ceny ─────────────────────────────────────────────────── */
.gs-price-panel { background: #1a1a1a; color: #fff; padding: 22px 20px 20px; border-radius: 6px; }
.gs-price-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.gs-price-main {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 2px;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
}
.gs-price-unit { font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.gs-price-breakdown {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
  margin-bottom: 18px;
}
.gs-bd-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 5px;
  gap: 8px;
}
.gs-bd-row span:last-child { white-space: nowrap; color: rgba(255,255,255,0.9); }
.gs-bd-probe { color: #ffd166; }
.gs-bd-hint { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 10px; }

/* ── Przycisk koszyka ───────────────────────────────────────────── */
.gs-btn-cart {
  width: 100%;
  background: #c8102e;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 15px 16px;
  font-family: Barlow, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s;
  line-height: 1.2;
}
.gs-btn-cart:hover    { background: #a50d26; }
.gs-btn-cart:disabled { background: #999; cursor: not-allowed; }

/* ── Lieferzeit ─────────────────────────────────────────────────── */
.gs-lieferzeit {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  padding: 12px 0 2px;
}
.gs-lz-icon { margin-right: 3px; }
.gs-lieferzeit strong { color: #fff; font-weight: 700; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) { .gs-right { width: 240px; } }
@media (max-width: 900px) {
  .gs-akcesoria-top { flex-direction: column; }
  .gs-akcesoria-col .gs-select { width: 100%; }
}
@media (max-width: 768px) {
  .gs-wrap  { flex-direction: column; }
  .gs-right { width: 100%; position: static; }
  .gs-sel-breite-small { width: 100%; }
}
@media (max-width: 480px) { .gs-price-main { font-size: 36px; } }

/* ── Środkowy rząd: opcje | staffelpreise obok siebie ───────────── */
.gs-middle-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.gs-options-col {
  width: 280px;
  flex-shrink: 0;
}
.gs-staffel-col {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .gs-middle-row { flex-direction: column; }
  .gs-options-col { width: 100%; }
}
