/* Wrapper obrazka musi pozwolić na overlay */
.eql-thumb { position: relative; }

/* Overlay pełnoekranowy na obrazku */
.eql-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(4px);
  z-index: 9;
  animation: eqlFade .15s ease-out;
}

@keyframes eqlFade { from { opacity:0 } to { opacity:1 } }

.eql-overlay__inner {
  width: calc(100% - 24px);
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.15);
  padding: 16px;
}

.eql-overlay__close {
  position: absolute;
  top: 4px; right: 8px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: .65;
}

.eql-attr { margin-bottom: 12px; }
.eql-attr__label {
  font-weight: 600;
  margin-bottom: 6px;
}

.eql-attr__swatches { display: flex; flex-wrap: wrap; gap: 8px; }

.eql-swatch {
  border: 1px solid #d7dbe0;
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}
.eql-swatch.is-selected {
  border-color: #2b6de0;
  box-shadow: 0 0 0 2px rgba(43,109,224,.15) inset;
}
.eql-swatch.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.eql-cta { display: flex; justify-content: center; margin-top: 8px; }
.eql-add-to-cart[disabled] { opacity:.5; cursor:not-allowed; }

.eql-add-to-cart {
  background: #2b6de0;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

/* === Loader === */
.eql-loader {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(255,255,255,.65);
  z-index: 10;
}
.eql-loader.is-active { display: grid; }
.eql-spinner {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #2b6de0;
  border-right-color: #2b6de0;
  animation: eqlSpin 0.75s linear infinite;
}
@keyframes eqlSpin { to { transform: rotate(360deg); } }

/* Gdy overlay ładuje – przyciemnij zawartość */
.eql-overlay.is-loading .eql-content { opacity: .4; pointer-events: none; }

/* Po dodaniu do koszyka pokaż CTA, ukryj swatche */
.eql-overlay.is-added .eql-attrs,
.eql-overlay.is-added .eql-cta { display: none; }
.eql-overlay.is-added .eql-go-cart { display: inline-flex; }

.eql-go-cart {
  display: none;
  align-items: center;
  justify-content: center;
  background: #16a34a;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.eql-add-to-cart[disabled] { opacity: .5; cursor: not-allowed; }
