/* ========================================================================
   Gdzie kupić? — public store-directory page for own brands
   ======================================================================== */

.wtb {
  --wtb-brand: #ed6b84;
  --wtb-brand-dark: #c9445f;
  --wtb-ink: #1f1a22;
  --wtb-muted: #7a7480;
  --wtb-soft: #fdeef1;
  --wtb-border: #f0e2e6;
}

/* ---------- Hero ---------- */
.wtb-hero {
  background: linear-gradient(135deg, #fff 0%, #fdeef1 55%, #fce3ea 100%);
  padding: 56px 24px 64px;
  border-bottom: 1px solid var(--wtb-border);
}

.wtb-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.wtb-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wtb-brand-dark);
  margin-bottom: 10px;
}

.wtb-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  color: var(--wtb-ink);
  margin: 0 0 16px;
}

.wtb-hero h1 span {
  color: var(--wtb-brand);
}

.wtb-hero p {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--wtb-muted);
  margin: 0 0 28px;
}

.wtb-brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.wtb-brand-strip img {
  height: 28px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(15%);
  opacity: .9;
}

/* ---------- Controls (tabs + search) ---------- */
.wtb-controls {
  max-width: 1180px;
  margin: -28px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.wtb-controls-inner {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(31,26,34,.08);
  border: 1px solid var(--wtb-border);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.wtb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wtb-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--wtb-border);
  background: #fff;
  color: var(--wtb-ink);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
}

.wtb-tab:hover {
  border-color: var(--wtb-brand);
  color: var(--wtb-brand-dark);
}

.wtb-tab.is-active {
  background: var(--wtb-brand);
  border-color: var(--wtb-brand);
  color: #fff;
  box-shadow: 0 6px 14px rgba(237,107,132,.32);
}

.wtb-tab .wtb-tab-count {
  font-size: 12px;
  opacity: .75;
}

.wtb-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 320px;
}

.wtb-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--wtb-border);
  border-radius: 999px;
  padding: 0 16px 0 40px;
  font-size: 14px;
  outline: none;
  transition: border-color .18s ease;
  background: #faf8f9 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="%237a7480" stroke-width="2" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.35-4.35"/></svg>') 14px center no-repeat;
}

.wtb-search input:focus {
  border-color: var(--wtb-brand);
  background-color: #fff;
}

/* ---------- Grid ---------- */
.wtb-grid-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 20px;
}

.wtb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.wtb-card {
  background: #fff;
  border: 1px solid var(--wtb-border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.wtb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31,26,34,.09);
}

.wtb-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wtb-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--wtb-border);
  background: #faf8f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.wtb-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.wtb-card-logo-fallback {
  font-size: 20px;
  font-weight: 800;
  color: var(--wtb-brand-dark);
}

.wtb-card-title {
  min-width: 0;
}

.wtb-card-title h3 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 700;
  color: var(--wtb-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wtb-card-desc {
  font-size: 13px;
  color: var(--wtb-muted);
  line-height: 1.45;
  min-height: 0;
}

.wtb-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wtb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--wtb-soft);
  color: var(--wtb-brand-dark);
}

.wtb-card-address {
  font-size: 13px;
  color: var(--wtb-muted);
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.wtb-card-address svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--wtb-brand);
}

.wtb-card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.wtb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--wtb-brand);
  color: var(--wtb-brand-dark);
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: all .18s ease;
}

.wtb-btn:hover {
  background: var(--wtb-brand);
  color: #fff;
  box-shadow: 0 6px 14px rgba(237,107,132,.28);
}

.wtb-btn--solid {
  background: var(--wtb-brand);
  color: #fff;
}

.wtb-btn--solid:hover {
  background: var(--wtb-brand-dark);
  border-color: var(--wtb-brand-dark);
}

/* ---------- Empty state ---------- */
.wtb-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--wtb-muted);
}

.wtb-empty svg {
  opacity: .35;
  margin-bottom: 14px;
}

.wtb-empty p {
  font-size: 15px;
  margin: 0;
}

/* ---------- CTA banner ---------- */
.wtb-cta {
  max-width: 1180px;
  margin: 36px auto 64px;
  padding: 0 24px;
}

.wtb-cta-inner {
  background: linear-gradient(120deg, #fdeef1, #fce3ea);
  border: 1px solid var(--wtb-border);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.wtb-cta-text .wtb-eyebrow { margin-bottom: 6px; }

.wtb-cta-text h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--wtb-ink);
  margin: 0 0 8px;
}

.wtb-cta-text p {
  margin: 0;
  color: var(--wtb-muted);
  font-size: 14px;
  max-width: 520px;
}

.wtb-cta-inner .wtb-btn {
  flex: 0 0 auto;
  padding: 0 22px;
  height: 44px;
  font-size: 14px;
}

@media (max-width: 560px) {
  .wtb-hero { padding: 40px 16px 48px; }
  .wtb-controls { padding: 0 16px; }
  .wtb-controls-inner { flex-direction: column; align-items: stretch; }
  .wtb-search { max-width: none; }
  .wtb-grid-section { padding: 32px 16px 10px; }
  .wtb-cta { padding: 0 16px; }
  .wtb-cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .wtb-cta-inner .wtb-btn { width: 100%; }
}
