/**
 * giftsell-kubek-maxim.css  v1.8.0
 * Styl: trójkolumnowy layout — lewa opcje / środek tabela / prawa panel ceny
 * Zgodny z giftsell.de — Barlow, #c8102e
 */

/* ── Wrapper trójkolumnowy ── */
.gs-root.gs-type-kubek-maxim .gs-wrap {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 28px;
  align-items: start;
}
.gs-root.gs-type-kubek-maxim .gs-loading {
  padding: 40px;
  text-align: center;
  color: #888;
  font-family: 'Barlow', sans-serif;
}
.gs-error {
  color: #c8102e;
  font-size: 14px;
  padding: 12px;
}

/* ── Sekcje i etykiety ── */
.gs-type-kubek-maxim .gs-section {
  margin-bottom: 22px;
}
.gs-type-kubek-maxim .gs-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #767676;
  margin-bottom: 8px;
}
.gs-type-kubek-maxim .gs-req {
  color: #c8102e;
  margin-right: 2px;
}

/* ── Select ── */
.gs-type-kubek-maxim .gs-select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23767676' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  font-family: 'Barlow', sans-serif;
}
.gs-type-kubek-maxim .gs-select:focus {
  outline: none;
  border-color: #c8102e;
}
.gs-type-kubek-maxim .gs-select:disabled {
  background-color: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
}

/* ── Ilość ── */
.gs-type-kubek-maxim .gs-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gs-type-kubek-maxim .gs-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}
.gs-type-kubek-maxim .gs-qty-btn {
  background: #f5f5f5;
  color: #333;
  border: none;
  width: 36px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
  font-family: 'Barlow', sans-serif;
}
.gs-type-kubek-maxim .gs-qty-btn:hover {
  background: #c8102e;
  color: #fff;
}
.gs-type-kubek-maxim .gs-qty-val {
  background: #fff;
  color: #111;
  border: none;
  border-left: 1.5px solid #ddd;
  border-right: 1.5px solid #ddd;
  width: 64px;
  height: 38px;
  text-align: center;
  font-size: 15px;
  font-family: 'Barlow', sans-serif;
}
.gs-type-kubek-maxim .gs-qty-val:focus {
  outline: none;
}
.gs-type-kubek-maxim .gs-qty-hint {
  font-size: 13px;
  color: #888;
}
.gs-type-kubek-maxim .gs-min-note {
  font-size: 12px;
  color: #c8102e;
  margin-top: 4px;
}

/* ── Tabela Staffelpreise ── */
.gs-type-kubek-maxim .gs-tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 4px;
}
.gs-type-kubek-maxim .gs-tier-table thead th {
  padding: 9px 10px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: #2a2a2a;
  border-bottom: 1.5px solid #e0e0e0;
  white-space: nowrap;
}
.gs-type-kubek-maxim .gs-tier-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  color: #767676;
}
.gs-type-kubek-maxim .gs-tier-table tbody tr.gs-row-active td {
  color: #111;
  font-weight: 700;
  background: rgba(200,16,46,.04);
}
.gs-type-kubek-maxim .gs-tier-table tbody tr.gs-row-active td:first-child {
  border-left: 3px solid #c8102e;
  padding-left: 7px;
}
.gs-type-kubek-maxim .gs-tier-table tbody tr.gs-row-active td:last-child {
  color: #c8102e;
}
.gs-type-kubek-maxim .gs-mwst-note {
  font-size: 11px;
  color: #aaa;
  margin-top: 8px;
}

/* ── Panel ceny (prawa kolumna) ── */
.gs-type-kubek-maxim .gs-price-panel {
  background: #1a1a1a;
  color: #fff;
  padding: 24px 20px;
  border-radius: 8px;
}
.gs-type-kubek-maxim .gs-price-empty {
  font-size: 13px;
  color: #666;
  padding: 8px 0;
}
.gs-type-kubek-maxim .gs-price-label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 4px;
}
.gs-type-kubek-maxim .gs-price-main {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.gs-type-kubek-maxim .gs-price-unit {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #333;
}
.gs-type-kubek-maxim .gs-breakdown div {
  font-size: 12px;
  color: #888;
  margin-bottom: 3px;
}
.gs-type-kubek-maxim .gs-einrichtung-row {
  font-size: 12px;
  color: #aaa;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #333;
}
.gs-type-kubek-maxim .gs-price-vat {
  font-size: 11px;
  color: #555;
  margin: 8px 0 16px;
}

/* ── Przycisk koszyka ── */
.gs-type-kubek-maxim .gs-btn-cart {
  width: 100%;
  padding: 16px 20px;
  background: #c8102e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: filter .2s;
  font-family: 'Barlow', sans-serif;
}
.gs-type-kubek-maxim .gs-btn-cart:hover:not(:disabled) {
  filter: brightness(1.12);
}
.gs-type-kubek-maxim .gs-btn-cart:disabled {
  background: #444;
  color: #666;
  cursor: not-allowed;
}

/* ── Termin ── */
.gs-type-kubek-maxim .gs-termin {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,.07);
  border-radius: 6px;
  font-size: 13px;
  color: #ccc;
  text-align: center;
}
.gs-type-kubek-maxim .gs-termin strong {
  color: #fff;
}

/* ── Komunikaty ── */
.gs-type-kubek-maxim .gs-msg {
  margin-top: 10px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 4px;
  display: none;
}
.gs-type-kubek-maxim .gs-msg.success {
  background: #e8f5e9;
  color: #2e7d32;
  display: block;
}
.gs-type-kubek-maxim .gs-msg.error {
  background: #ffebee;
  color: #c62828;
  display: block;
}

/* ── Galeria w opisie produktu ── */
.gkm-galeria-wrap {
  width: 100%;
}
.gkm-gal-color-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.gkm-gal-main {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #f8f8f8;
}
.gkm-gal-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gkm-gal-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.gkm-gal-thumb:hover,
.gkm-gal-thumb.gkm-gal-active {
  border-color: #c8102e;
}
.gkm-gal-loading {
  color: #888;
  font-size: 13px;
  padding: 12px 0;
}

/* ── Galeria w zakładce Produktfotos ── */
.gkm-tab-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  padding: 16px 0;
}
.gkm-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.gkm-tab-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f8f8;
  border: 1.5px solid #eee;
}
.gkm-tab-item span {
  font-size: 12px;
  color: #555;
  text-align: center;
}

/* ── Responsywność ── */
@media (max-width: 900px) {
  .gs-root.gs-type-kubek-maxim .gs-wrap {
    grid-template-columns: 1fr 1fr;
  }
  .gs-root.gs-type-kubek-maxim .gs-middle {
    grid-column: 1 / -1;
    order: 3;
  }
}
@media (max-width: 600px) {
  .gs-root.gs-type-kubek-maxim .gs-wrap {
    grid-template-columns: 1fr;
  }
  .gs-root.gs-type-kubek-maxim .gs-right {
    order: 2;
  }
  .gs-root.gs-type-kubek-maxim .gs-middle {
    order: 3;
  }
}
