* { box-sizing: border-box; }

:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --primary-dark: #3730a3;
  --success: #059669;
  --dark: #0b1220;
  --dark-soft: #121c2d;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-lg: 0 28px 80px rgba(16, 24, 40, .16);
  --shadow-md: 0 14px 40px rgba(16, 24, 40, .10);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, .24), transparent 34%),
    radial-gradient(circle at 85% 35%, rgba(124, 58, 237, .22), transparent 31%),
    linear-gradient(145deg, #0b1220 0%, #111a2c 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

a { color: inherit; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 18, 32, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(99, 102, 241, .35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  color: #fff;
  font-size: 1.08rem;
  letter-spacing: -.02em;
}

.brand-text small {
  margin-top: 4px;
  color: #b9c2d0;
  font-size: .78rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topnav a {
  color: #d9e0ea;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
}

.topnav a:hover { color: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 86px;
  background:
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, .24), transparent 34%),
    radial-gradient(circle at 85% 35%, rgba(124, 58, 237, .22), transparent 31%),
    linear-gradient(145deg, #0b1220 0%, #111a2c 100%);
  color: #fff;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .5;
  pointer-events: none;
}

.hero-glow-one {
  width: 240px;
  height: 240px;
  right: 10%;
  top: -80px;
  background: rgba(99, 102, 241, .28);
}

.hero-glow-two {
  width: 180px;
  height: 180px;
  left: 5%;
  bottom: -70px;
  background: rgba(139, 92, 246, .2);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: start;
  gap: 54px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 13px;
  color: #a5b4fc;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--primary); }

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.hero-lead {
  max-width: 660px;
  margin: 26px 0 30px;
  color: #c8d1df;
  font-size: 1.13rem;
  line-height: 1.72;
}

.smart-search {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.search-label {
  margin-bottom: 10px;
  color: #d6deea;
  font-size: .9rem;
  font-weight: 800;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
}

.search-icon {
  margin-left: 8px;
  color: #667085;
  font-size: 1.4rem;
}

.search-box input {
  min-width: 0;
  flex: 1;
  height: 48px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-box button {
  min-width: 126px;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(79, 70, 229, .28);
}

.search-box button:hover { transform: translateY(-1px); }

.prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.prompt-list button {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #d9e1ec;
}

.prompt-list button:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  color: #aeb9c9;
  font-size: .9rem;
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
}

.panel-badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(16,185,129,.13);
  color: #6ee7b7;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel h2 {
  margin: 0 0 22px;
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.mini-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 15px;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255,255,255,.1);
  font-size: 1.5rem;
}

.mini-result strong,
.mini-result span {
  display: block;
}

.mini-result span {
  margin-top: 4px;
  color: #aab6c6;
  font-size: .82rem;
}

.mini-result b {
  color: #c7d2fe;
  font-size: .78rem;
  white-space: nowrap;
}

.panel-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #aab6c6;
  font-size: .9rem;
  line-height: 1.6;
}

.quick-categories {
  padding: 62px 0 34px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.section-head.compact { margin-bottom: 20px; }

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  min-height: 142px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(16,24,40,.05);
  transition: .22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: var(--shadow-md);
}

.category-card span,
.category-card strong,
.category-card small {
  display: block;
}

.category-card span { font-size: 2rem; }

.category-card strong {
  margin-top: 18px;
  font-size: 1rem;
}

.category-card small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.results-section {
  padding: 46px 0 80px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(16,24,40,.07);
  transition: .22s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  background:
    radial-gradient(circle at 75% 25%, rgba(99,102,241,.16), transparent 32%),
    linear-gradient(145deg, #f6f8ff, #edf1ff);
  font-size: 4.2rem;
}

.product-rank {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  border-radius: 11px;
  background: rgba(255,255,255,.9);
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(16,24,40,.10);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-badge {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--success);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.38;
}

.product-description {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.56;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.product-tags span {
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #475467;
  font-size: .73rem;
  font-weight: 700;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.product-price {
  font-size: 1.3rem;
  font-weight: 900;
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.product-link:hover { filter: brightness(.95); }

.empty-state {
  padding: 54px 22px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  background: var(--surface);
}

.empty-icon { font-size: 2.5rem; }

.empty-state h3 { margin: 14px 0 8px; }

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.how-section {
  padding: 76px 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(79,70,229,.18), transparent 30%),
    var(--dark);
  color: #fff;
}

.section-head.light .eyebrow { color: #a5b4fc; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.steps-grid article {
  padding: 25px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(255,255,255,.05);
}

.step-number {
  color: #a5b4fc;
  font-size: .9rem;
  font-weight: 900;
}

.steps-grid h3 {
  margin: 20px 0 9px;
  font-size: 1.25rem;
}

.steps-grid p {
  margin: 0;
  color: #aeb9c9;
  line-height: 1.65;
}

.site-footer {
  padding: 34px 0;
  background: #070c15;
  color: #fff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.footer-brand { margin-bottom: 14px; }

.footer-grid p {
  margin: 0;
  color: #9eabbc;
  line-height: 1.55;
}

.disclosure {
  max-width: 520px;
  text-align: right;
  font-size: .9rem;
}

@media (max-width: 980px) {
  .topnav { display: none; }

  .hero-grid { grid-template-columns: 1fr; }

  .hero-panel { max-width: 720px; }

  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1180px); }

  .topbar { position: static; }

  .topbar-inner { min-height: 66px; }

  .hero { padding: 58px 0 52px; }

  .hero h1 { font-size: clamp(2.7rem, 15vw, 4.6rem); }

  .hero-grid { gap: 32px; }

  .smart-search { padding: 14px; }

  .search-box {
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
  }

  .search-icon { display: none; }

  .search-box input {
    width: 100%;
    height: 48px;
    padding: 0 7px;
  }

  .search-box button {
    width: 100%;
  }

  .trust-row { gap: 10px 16px; }

  .mini-result {
    grid-template-columns: auto 1fr;
  }

  .mini-result b {
    grid-column: 2;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .product-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: auto;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .disclosure { text-align: left; }
}

/* === ETAP A1 v7 - 2 LINIE + BEZ GRADIENTU === */

/* Ukryj stara strukture */
.brand-text {
  display: none !important;
}
.brand-title {
  display: none !important;
}

/* Ikonka misia - jednolita 56px */
.brand-mark-misio {
  display: inline-block !important;
  width: 56px !important;
  height: 56px !important;
  background-image: url("miboy-art.jpg") !important;
  background-size: 180% auto;
  background-position: 50% 15%;
  background-repeat: no-repeat;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  color: transparent !important;
  text-indent: -9999px;
  flex-shrink: 0;
}

/* 2-liniowy napis - wspolna klasa dla obu stron */
.brand-lines {
  display: inline-flex !important;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  gap: 4px;
}

.brand-line-top {
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand-line-bottom {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

/* Brand link po lewej */
.brand {
  display: inline-flex !important;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

/* Miboy Kupony - BEZ GRADIENTU, przejrzyste tlo */
.miboy-kupony-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 14px;
  padding: 6px 14px 6px 6px !important;
  background: transparent !important;
  color: white !important;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: none !important;
}

.miboy-kupony-link::before {
  display: none !important;
}

.miboy-kupony-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08) !important;
}

.miboy-kupony-text {
  display: none !important;
}

/* Delikatny misio w tle hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("miboy-art.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
  display: block !important;
}

.hero-glow,
.hero-glow-one,
.hero-glow-two {
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
}

/* === ETAP A2 - TOP SEARCHES LIST === */
.top-searches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 12px;
}

.top-searches-loading,
.top-searches-empty {
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.top-search-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: left;
}

.top-search-item:hover {
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateX(2px);
}

.top-search-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 900;
  font-size: 0.85rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.top-search-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.top-search-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-search-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(118, 75, 162, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  align-self: flex-start;
}

.top-search-count {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* === ETAP A2 - EXPAND PANEL === */
.top-search-item {
  position: relative;
}

.top-search-item.expanded {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.65);
}

.top-search-item.expanded::after {
  content: "▼";
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
}

.top-expand-panel {
  margin: 6px 0 12px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(102, 126, 234, 0.35);
  border-radius: 12px;
  animation: expandFadeIn 0.3s ease;
}

@keyframes expandFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.top-expand-loading,
.top-expand-empty {
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.top-expand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.top-expand-card {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: all 0.15s ease;
}

.top-expand-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-1px);
}

.top-expand-img {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-expand-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-expand-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.top-expand-shop {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top-expand-title {
  font-size: 0.78rem;
  color: white;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.top-expand-price {
  font-size: 0.9rem;
  font-weight: 900;
  color: #a5b4fc;
  margin-top: auto;
}

.top-expand-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.top-expand-search-btn {
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.top-expand-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.5);
}

@media (max-width: 700px) {
  .top-expand-grid {
    grid-template-columns: 1fr;
  }
}

/* === ETAP C1 - COOKIES + FOOTER + LEGAL === */

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  padding: 40px 0;
}
.footer-brand-col .brand { margin-bottom: 12px; }
.footer-tagline {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 280px;
}
.footer-links-col h4, .footer-newsletter-col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 14px;
}
.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-links-col a:hover { color: white; }
.footer-links-col li { color: rgba(255,255,255,0.5); font-size: 0.88rem; }
.newsletter-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 0.88rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus {
  border-color: #667eea;
  background: rgba(255,255,255,0.12);
}
.newsletter-form button {
  padding: 10px 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
}
.newsletter-msg { margin-top: 8px; font-size: 0.82rem; }
.newsletter-msg.success { color: #86efac; }
.newsletter-msg.error { color: #fca5a5; }
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.disclosure { color: rgba(255,255,255,0.55); font-size: 0.82rem; margin: 0; }
.copyright { color: rgba(255,255,255,0.75); font-size: 0.85rem; font-weight: 700; margin: 0; }

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(102,126,234,0.4);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner-visible { opacity: 1; transform: translateY(0); }
.cookie-banner-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 240px; color: white; }
.cookie-text strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.cookie-text p { color: rgba(255,255,255,0.75); font-size: 0.85rem; line-height: 1.4; margin: 0; }
.cookie-text a { color: #a5b4fc; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  padding: 12px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
}
.cookie-accept:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102,126,234,0.5); }

.legal-page {
  padding: 40px 0 80px;
  background: #f8fafc;
  color: #1e293b;
  min-height: 60vh;
}
.legal-page h1 { color: #0f172a; font-size: 2.4rem; margin-bottom: 10px; }
.legal-page h2 { color: #1e293b; font-size: 1.4rem; margin: 32px 0 12px; }
.legal-page h3 { color: #334155; font-size: 1.1rem; margin: 20px 0 8px; }
.legal-page p, .legal-page li { line-height: 1.6; color: #475569; margin-bottom: 8px; }
.legal-page ul { padding-left: 24px; margin-bottom: 12px; }
.legal-page a { color: #667eea; text-decoration: underline; }
.legal-date { color: #94a3b8; font-size: 0.9rem; font-style: italic; margin-bottom: 20px; }
.legal-footer-nav {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.legal-footer-nav a { color: #667eea; font-weight: 700; text-decoration: none; }

@media (max-width: 800px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cookie-banner-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 500px) {
  .footer-main { grid-template-columns: 1fr; }
  .cookie-banner { left: 10px; right: 10px; padding: 16px; }
}

/* === ETAP C1 - ADSENSE PLACEHOLDER === */
.adsense-placeholder { padding: 40px 0; }
.adsense-placeholder-box {
  padding: 40px 20px;
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 16px;
  text-align: center;
}
.adsense-label {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(102,126,234,0.2);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  margin-bottom: 12px;
}
.adsense-note {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin: 0;
}

/* === ETAP A3 - CATEGORIES + PRODUCTS === */

/* Kafelek kategorii */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
}
.category-card:hover {
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102,126,234,0.25);
}
.category-card .category-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.category-card strong {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
}
.category-card small {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.3;
}
.categories-loading {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  color: #64748b;
}

/* Sekcja wynikow kategorii */
.category-results {
  padding: 40px 0;
  background: #f8fafc;
  border-top: 3px solid #667eea;
  animation: catFadeIn 0.4s ease;
}
@keyframes catFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.category-results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.category-results-header h2 {
  color: #0f172a;
  font-size: 2rem;
  margin: 6px 0;
}
.category-results-header p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}
.category-close-btn {
  width: 44px;
  height: 44px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.category-close-btn:hover {
  color: #ef4444;
  border-color: #ef4444;
}

/* Filtry */
.category-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px;
  background: white;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}
.cf-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cf-item label {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cf-item select, .cf-item input {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #0f172a;
  background: white;
  outline: none;
}
.cf-item input:focus, .cf-item select:focus {
  border-color: #667eea;
}
.cf-item button {
  padding: 11px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  align-self: end;
  margin-top: 22px;
}

/* Grid produktow */
.category-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.cat-product-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.2s ease;
}
.cat-product-card:hover {
  transform: translateY(-2px);
  border-color: #667eea;
  box-shadow: 0 10px 26px rgba(102,126,234,0.2);
}
.cat-product-img {
  height: 180px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cat-product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cat-product-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.cat-product-shop {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cat-product-title {
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 3em;
}
.cat-product-price {
  color: #667eea;
  font-size: 1.1rem;
  font-weight: 900;
  margin-top: auto;
}

/* Paginacja + loading + empty */
.category-pagination {
  margin-top: 30px;
  text-align: center;
}
.cf-load-more {
  padding: 14px 40px;
  background: white;
  border: 2px solid #667eea;
  border-radius: 12px;
  color: #667eea;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}
.cf-load-more:hover {
  background: #667eea;
  color: white;
}
.category-loading, .category-empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: #64748b;
  background: white;
  border-radius: 12px;
  border: 1px dashed #e2e8f0;
}

@media (max-width: 700px) {
  .category-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .category-filters { grid-template-columns: 1fr; }
  .cf-item button { margin-top: 0; }
}


/* === FIX: Wyszukiwanie - kazdy sklep na cala szerokosc + karty poziomo === */
#results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shop-section {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.shop-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-icon {
  font-size: 24px;
}

.shop-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.shop-description {
  font-size: 13px;
  color: #666;
  margin: 2px 0 0 0;
}

.shop-count-badge {
  background: #667eea;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.shop-count-badge.empty {
  background: #ccc;
}

/* Karty w siatce poziomej */
.shop-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  color: #666;
}

.shop-empty p {
  margin: 0 0 12px 0;
}

.shop-search-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.shop-search-btn:hover {
  background: #5568d3;
}


/* Przycisk "Zobacz wiecej na [sklep]" pod sekcja */
.shop-more-wrap {
  margin-top: 16px;
  text-align: center;
}
.shop-more-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}
.shop-more-btn:hover {
  background: #5568d3;
}


/* === TLA FIRMOWE dla pustych sklepow === */
/* Bazowa sekcja pusta - overwrite jasnego tla */
.shop-section:has(.shop-empty) {
  border: 2px dashed rgba(0,0,0,0.08);
}

.shop-empty {
  border-radius: 8px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

/* Allegro - pomaranczowe */
.shop-section:has(.shop-empty).shop-allegro,
[data-shop="allegro"] .shop-empty {
  background: linear-gradient(135deg, #fff4e6 0%, #ffe4c4 100%);
}

/* Ceneo - zielone */
[data-shop="ceneo"] .shop-empty {
  background: linear-gradient(135deg, #f0fff4 0%, #d4f4dd 100%);
}

/* Erli - fioletowe */
[data-shop="erli"] .shop-empty {
  background: linear-gradient(135deg, #f5f0ff 0%, #e6dcff 100%);
}

/* Amazon - zolte */
[data-shop="amazon"] .shop-empty {
  background: linear-gradient(135deg, #fffbe6 0%, #fff2b8 100%);
}

/* AliExpress - czerwone */
[data-shop="aliexpress"] .shop-empty {
  background: linear-gradient(135deg, #fff0f0 0%, #ffdcdc 100%);
}

/* Ikona sklepu w tle (duza, przezroczysta) */
.shop-empty::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
}

/* Loga sklepow jako watermark */
[data-shop="allegro"] .shop-empty::before {
  background-image: url("logos/allegro.svg");
}
[data-shop="ceneo"] .shop-empty::before {
  background-image: url("logos/ceneo.svg");
}
[data-shop="erli"] .shop-empty::before {
  background-image: url("logos/erli.svg");
}
[data-shop="amazon"] .shop-empty::before {
  background-image: url("logos/amazon.svg");
}
[data-shop="aliexpress"] .shop-empty::before {
  background-image: url("logos/aliexpress.svg");
}

.shop-empty p {
  position: relative;
  z-index: 1;
  color: #333;
  font-weight: 500;
}

.shop-empty .shop-search-btn {
  position: relative;
  z-index: 1;
}


/* === TLO MIBOY-ART na calej stronie === */
/* Ciemne tlo bazowe + delikatna grafika miboy-art fixed */
body {
  background:
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, .18), transparent 34%),
    radial-gradient(circle at 85% 35%, rgba(124, 58, 237, .16), transparent 31%),
    linear-gradient(145deg, #0b1220 0%, #111a2c 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}

/* Delikatne watermark z miboy-art na CALEJ stronie */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("miboy-art.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
}

/* Zapewniamy ze cala tresc jest nad tlem */
body > * {
  position: relative;
  z-index: 1;
}


/* === TEKST na ciemnym tle - sekcja wynikow #promocje === */
#promocje h2,
#promocje #resultsTitle {
  color: #fff !important;
}

#promocje .eyebrow,
#promocje .eyebrow.dark {
  color: #a78bfa !important;  /* jasnofioletowy - zeby wybijal sie */
}

#promocje #resultsInfo,
#promocje .results-info {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* === TEKST na ciemnym tle - sekcja kategorii #categoryResults === */
#categoryResults h2,
#categoryResults #categoryResultsTitle {
  color: #fff !important;
}

#categoryResults .eyebrow,
#categoryResults .eyebrow.dark {
  color: #a78bfa !important;
}

#categoryResults #categoryResultsInfo {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* === Naglowek "Popularne kategorie" === */
.quick-categories h2,
.quick-categories .eyebrow {
  color: #fff !important;
}

.quick-categories .eyebrow {
  color: #a78bfa !important;
}


/* === KATEGORIE: spojne tlo z wyszukiwarka === */
/* Kontener kategorii - przezroczysty, zeby widac bylo ciemne tlo strony */
.category-results {
  background: transparent !important;
  border-top: none !important;
  padding: 40px 0 !important;
}

/* Naglowek kategorii - bialy tekst na ciemnym */
#categoryResultsTitle {
  color: #fff !important;
  font-size: 32px !important;
  font-weight: 700 !important;
}

#categoryResultsInfo {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Panel filtrow - biala karta jak sklepy w wyszukiwarce */
.category-filters {
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
  border: none !important;
}

/* Karty produktow - biale (juz beda z boxu) */
.cat-product-card {
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cat-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}

/* Przycisk "Zaladuj wiecej" widoczny na ciemnym */
#cfLoadMoreBtn {
  background: #667eea !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 32px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

#cfLoadMoreBtn:hover {
  background: #5568d3 !important;
}

/* Przycisk X (zamknij) widoczny na ciemnym */
#categoryResults .close-btn,
#categoryResults button[aria-label*="Zamknij"],
#categoryResults button[aria-label*="close"] {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Loading i empty state */
.category-loading,
.category-empty {
  color: rgba(255, 255, 255, 0.8) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  padding: 24px !important;
  border-radius: 12px !important;
  text-align: center;
}


/* === BACK TO TOP button === */
#backToTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s;
  pointer-events: none;
}

#backToTopBtn:not([hidden]) {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#backToTopBtn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 28px rgba(102, 126, 234, 0.6);
}

#backToTopBtn:active {
  transform: translateY(0) scale(0.95);
}

#backToTopBtn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  #backToTopBtn {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
  #backToTopBtn svg {
    width: 20px;
    height: 20px;
  }
}


/* === BEST PRICE POPUP === */
#bestPricePopup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 998;
  width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 16px;
  animation: bppSlideIn 0.4s ease;
  border: 2px solid #667eea;
}

@keyframes bppSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.bpp-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #333;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.bpp-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.bpp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #667eea;
  font-size: 14px;
}

.bpp-icon {
  font-size: 20px;
}

.bpp-card {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: #111;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s;
}

.bpp-card:hover {
  background: #f5f5fa;
}

.bpp-img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bpp-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bpp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bpp-shop {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #667eea;
  letter-spacing: 0.5px;
}

.bpp-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #222;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bpp-price {
  font-size: 18px;
  font-weight: 700;
  color: #667eea;
}

.bpp-cta {
  margin-top: 10px;
  text-align: center;
}

.bpp-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.bpp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

@media (max-width: 640px) {
  #bestPricePopup {
    bottom: 12px;
    left: 8px;
    right: auto;
    width: calc(50vw - 12px);
    max-width: 220px;
    min-width: 180px;
    padding: 8px;
    border-radius: 12px;
  }
  #bestPricePopup .bpp-header { font-size: 12px; margin-bottom: 6px; }
  #bestPricePopup .bpp-img { width: 56px; height: 56px; }
  #bestPricePopup .bpp-name { font-size: 12px; -webkit-line-clamp: 1; }
  #bestPricePopup .bpp-price { font-size: 15px; }
  #bestPricePopup .bpp-shop { font-size: 10px; }
  #bestPricePopup .bpp-cta { margin-top: 6px; }
  #bestPricePopup .bpp-btn { padding: 7px 14px; font-size: 12px; }
  #bestPricePopup .bpp-close { width: 24px; height: 24px; font-size: 16px; top: 6px; right: 6px; }
}


/* HINT CARD - trik "nie widze w bazie" */
.cat-product-card.hint-card-forced {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #fff !important;
  border: 2px solid #a78bfa !important;
}
.hint-img-forced {
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 3.5rem !important;
}
.hint-shop-forced {
  color: #e0e7ff !important;
  font-weight: 700 !important;
}
.hint-title-forced {
  color: #fff !important;
  font-weight: 700 !important;
}
.hint-price-forced {
  color: #fff !important;
  background: rgba(255,255,255,0.2) !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  display: inline-block !important;
}


/* PROMPT LIST - 3 kolumny x 2 wiersze */
.prompt-list {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 12px !important;
}
.prompt-list button {
  padding: 8px 10px !important;
  font-size: 0.82rem !important;
  border-radius: 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
}
@media (max-width: 700px) {
  .prompt-list {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* KOMPAKTOWY prawy panel + top searches */
.hero-panel {
  padding: 18px 20px !important;
}
.top-searches-list {
  gap: 6px !important;
}
.top-searches-item {
  padding: 8px 12px !important;
  font-size: 0.9rem !important;
}
.panel-badge {
  margin-bottom: 8px !important;
  padding: 5px 10px !important;
  font-size: 0.72rem !important;
}
.hero-panel h2 {
  font-size: 1.35rem !important;
  margin: 0 0 12px !important;
}
.panel-note {
  margin-top: 10px !important;
  font-size: 0.8rem !important;
}


/* NOWOCZESNY LOADING KATEGORII */
.category-loading {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  color: #a78bfa !important;
  text-align: center !important;
  padding: 40px 20px !important;
  letter-spacing: -0.01em !important;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(124,58,237,0.08)) !important;
  border-radius: 16px !important;
  border: 1px dashed rgba(167,139,250,0.4) !important;
  animation: pulse-loading 1.8s ease-in-out infinite !important;
}

@keyframes pulse-loading {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}


/* DUZE UPPERCASE NAZWY SKLEPOW w wynikach wyszukiwarki */
.shop-section .shop-name {
  font-size: 1.9rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin: 0 0 4px !important;
  color: #fff !important;
}
.shop-section .shop-description {
  font-size: 0.88rem !important;
  color: #a8b1c7 !important;
  margin: 0 !important;
}


/* PRIORITY OVERRIDE dla nazw sklepow - wysoka specyficznosc */
#promocje .shop-section h2.shop-name,
body .shop-section h2.shop-name {
  font-size: 2rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin: 0 0 4px !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
}
#promocje .shop-section .shop-description,
body .shop-section .shop-description {
  font-size: 0.9rem !important;
  color: #a8b1c7 !important;
  margin: 0 !important;
}


/* HIDE shop-count-badge */
.shop-count-badge {
  display: none !important;
}


/* HINT CARD BIGGER TEXT */
.hint-title-forced {
  font-size: 0.95rem !important;
  line-height: 1.35 !important;
  margin-top: 8px !important;
  color: #fff !important;
}
.hint-shop-forced {
  font-size: 0.75rem !important;
  color: #ffe066 !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}
.cat-product-card.hint-card-forced .cat-product-body {
  padding-top: 12px !important;
}

/* SHOP NAME BIGGER */
.shop-name {
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  margin: 0 !important;
  line-height: 1 !important;
}


/* SHOP TAG BIG */
.shop-section .shop-tag {
  display: inline-block !important;
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
  color: #fff !important;
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  padding: 6px 16px !important;
  border-radius: 8px !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}
.shop-section .shop-description {
  margin: 0 !important;
  font-size: initial !important;
  color: inherit !important;
}


/* HIDE SHOP DESC TEXT - ukryj tekst obok tagu */
.shop-section .shop-description {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}
.shop-section .shop-description .shop-tag {
  font-size: 1.4rem !important;
  line-height: 1.2 !important;
  color: #fff !important;
}


/* HEADER COMPACT V3 - schludny naglowek sklepu */

/* Ukryj ikonke sklepu (pomaranczowa kropka, torba, itd.) */
body .shop-section .shop-header .shop-icon {
  display: none !important;
}

/* Ukryj tekst opisu, zostaw tylko fioletowy tag */
body .shop-section .shop-header .shop-description {
  font-size: 0 !important;
  line-height: 1 !important;
  color: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .shop-section .shop-header .shop-description .shop-tag {
  font-size: 1.2rem !important;
  line-height: 1.3 !important;
  color: #fff !important;
  display: inline-block !important;
}

/* Kompaktowy naglowek - mniej paddingu */
body .shop-section .shop-header {
  padding: 12px 16px !important;
  min-height: auto !important;
}
body .shop-section .shop-header-left {
  gap: 8px !important;
}


/* NUCLEAR HIDE DESC - najsilniejsza specyficznosc */
html body #promocje .shop-section .shop-header .shop-description,
html body .shop-section .shop-header .shop-description,
html body div.shop-section header.shop-header p.shop-description {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  height: auto !important;
  overflow: visible !important;
}

html body #promocje .shop-section .shop-header .shop-description .shop-tag,
html body .shop-section .shop-header .shop-description .shop-tag,
html body div.shop-section header.shop-header p.shop-description span.shop-tag {
  font-size: 1.15rem !important;
  line-height: 1.3 !important;
  color: #fff !important;
  display: inline-block !important;
}


/* HEADER WIDTH FIX - tag ALLEGRO do lewej, bez pustej przestrzeni po prawej */
html body .shop-section .shop-header {
  justify-content: flex-start !important;
}


/* HIDE H2 SHOP-NAME - calkowicie ukryj h2, tag i tak jest w opisie */
html body .shop-section .shop-header h2.shop-name,
html body #promocje .shop-section .shop-header h2.shop-name {
  display: none !important;
}


/* FAV HEART BUTTON SAFE */
.fav-heart-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #ef4444;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s, background 0.15s;
  padding: 0;
  font-family: 'Arial', sans-serif;
}
.fav-heart-btn:hover {
  transform: scale(1.15);
  background: #fff;
}
.fav-heart-btn.fav-active {
  color: #ef4444;
  background: #fff;
}


/* === PANEL ULUBIONYCH (C3) === */
.fav-panel {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  align-items: stretch;
  font-family: inherit;
  transition: all 0.3s ease;
}

.fav-panel.fav-collapsed .fav-body { display: none; }

.fav-toggle {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 0 14px 14px 0;
  padding: 18px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 4px 4px 20px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
  min-width: 56px;
}

.fav-toggle:hover {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 6px 6px 24px rgba(124, 58, 237, 0.5);
  padding-left: 14px;
}

.fav-toggle .fav-icon { font-size: 22px; line-height: 1; }

.fav-toggle .fav-count {
  background: #fff;
  color: #4f46e5;
  font-weight: 800;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
}

.fav-toggle .fav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  margin-top: 4px;
}

.fav-toggle .fav-arrow {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 6px;
  transition: transform 0.3s ease;
}

.fav-panel:not(.fav-collapsed) .fav-toggle .fav-arrow { transform: rotate(180deg); }

.fav-body {
  background: rgba(20, 25, 50, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-left: none;
  border-radius: 0 14px 14px 0;
  padding: 0;
  width: 300px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 8px 30px rgba(0, 0, 0, 0.5);
  animation: favSlideIn 0.25s ease;
}

@keyframes favSlideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.fav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(79,70,229,0.2));
}

.fav-header-title { color: #fff; font-weight: 700; font-size: 14px; }

.fav-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.7;
}
.fav-close:hover { opacity: 1; }

.fav-list {
  overflow-y: auto;
  padding: 8px;
  flex: 1;
}
.fav-list::-webkit-scrollbar { width: 6px; }
.fav-list::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.5);
  border-radius: 3px;
}

.fav-empty {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 30px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.fav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: background 0.15s ease;
  position: relative;
}
.fav-item:hover { background: rgba(124, 58, 237, 0.2); }

.fav-item-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  flex-shrink: 0;
}

.fav-item-info {
  flex: 1;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.fav-item-shop {
  font-size: 10px;
  font-weight: 700;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fav-item-name {
  font-size: 12px;
  color: #fff;
  line-height: 1.3;
  margin: 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fav-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #c4b5fd;
}

.fav-item-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.fav-item:hover .fav-item-remove { opacity: 1; }
.fav-item-remove:hover { background: rgba(239, 68, 68, 1); }

@media (max-width: 768px) {
  .fav-panel {
    left: auto;
    right: 12px;
    top: auto;
    bottom: 180px;
    transform: none;
  }
  .fav-toggle {
    flex-direction: row;
    border-radius: 24px;
    padding: 10px 16px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
  }
  .fav-toggle .fav-label { display: none; }
  .fav-toggle .fav-arrow { display: none; }
  .fav-body {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 140px;
    width: auto;
    max-height: 60vh;
    border-radius: 14px;
    border-left: 1px solid rgba(124, 58, 237, 0.4);
  }
}


/* === MOBILE-2 FIX: 2 kolumny + fav-panel mniejszy === */
@media (max-width: 640px) {
  /* Karty produktow: WYMUSZONE 2 kolumny */
  .shop-products,
  .category-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  
  /* Mniejsze karty na mobile */
  .cat-product-card,
  .product-card {
    border-radius: 10px !important;
    font-size: 12px !important;
  }
  
  /* Mniejsze obrazki w kartach */
  .cat-product-card img,
  .product-card img {
    max-height: 120px !important;
    object-fit: contain !important;
  }
  
  /* Mniejszy padding w kartach */
  .cat-product-body,
  .product-card > *:not(img):not(picture) {
    padding: 6px 8px !important;
  }
  
  /* Mniejsze tytuly */
  .cat-product-card h3,
  .product-card h3 {
    font-size: 12px !important;
    line-height: 1.25 !important;
    margin: 4px 0 !important;
  }
  
  /* Ceny mniejsze */
  .cat-product-card .price,
  .product-card .price {
    font-size: 14px !important;
  }
  
  /* Shop-section mniejszy padding */
  .shop-section {
    padding: 10px !important;
    border-radius: 10px !important;
  }
  
  /* Fav-panel: SUPER MALY, w rogu, nie zasłania */
  .fav-panel {
    left: auto !important;
    right: 8px !important;
    top: auto !important;
    bottom: 200px !important;
    transform: none !important;
  }
  .fav-toggle {
    padding: 8px 10px !important;
    min-width: auto !important;
  }
  .fav-toggle .fav-icon { font-size: 16px !important; }
  .fav-toggle .fav-count { font-size: 11px !important; padding: 1px 5px !important; min-width: 18px !important; }
}
/* === END MOBILE-2 === */


/* === MOBILE-3 FIX: karty - wieksze obrazki === */
@media (max-width: 640px) {
  /* Karty - obrazek zajmuje wiecej miejsca */
  .cat-product-card img,
  .product-card img {
    width: 100% !important;
    height: auto !important;
    max-height: 160px !important;
    min-height: 120px !important;
    object-fit: contain !important;
    padding: 4px !important;
    background: #fff !important;
  }
  
  /* Kontener obrazka (jesli jest) */
  .cat-product-card picture,
  .product-card picture,
  .cat-product-media,
  .product-media {
    width: 100% !important;
    display: block !important;
    background: #fff !important;
    padding: 0 !important;
  }
  
  /* Mniej biale zeby karta byla pelniejsza */
  .cat-product-body {
    padding: 8px !important;
  }
  
  /* Tytul karty - 2 linie max */
  .cat-product-card h3,
  .product-card h3 {
    font-size: 12px !important;
    line-height: 1.3 !important;
    margin: 4px 0 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  
  /* Cena - wyrazna */
  .cat-product-card .price,
  .product-card .price,
  .cat-product-price {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #4f46e5 !important;
    margin-top: auto !important;
  }
  
  /* Serduszko ulubione w karcie - mniejsze */
  .cat-product-card .fav-heart,
  .product-card .fav-heart,
  .cat-product-card [class*="favorite"],
  .product-card [class*="favorite"] {
    width: 26px !important;
    height: 26px !important;
    top: 4px !important;
    right: 4px !important;
  }
}
/* === END MOBILE-3 === */


/* === MOBILE-5 FIX: header - oba loga na mobile === */
@media (max-width: 980px) {
  /* Pokaz topnav (byl ukryty) */
  .topnav {
    display: flex !important;
    gap: 8px !important;
  }
}

@media (max-width: 640px) {
  /* Header - kompaktowy */
  .topbar-inner {
    min-height: 60px !important;
    gap: 8px !important;
    padding: 8px 12px !important;
  }
  
  /* Oba loga - mniejsze na mobile */
  .brand-mark-misio {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
  }
  
  .brand-line-top {
    font-size: 1rem !important;
  }
  
  .brand-line-bottom {
    font-size: 0.75rem !important;
  }
  
  .brand {
    gap: 8px !important;
  }
  
  /* Link Miboy Kupony - kompaktowy */
  .miboy-kupony-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    padding: 4px 8px !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.05) !important;
    transition: background 0.2s;
  }
  
  .miboy-kupony-link:hover {
    background: rgba(255,255,255,0.1) !important;
  }
  
  .miboy-kupony-link .brand-mark-misio {
    width: 40px !important;
    height: 40px !important;
  }
  
  .miboy-kupony-link .brand-line-top {
    font-size: 1rem !important;
  }
  
  .miboy-kupony-link .brand-line-bottom {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 400px) {
  /* Bardzo male ekrany - jeszcze mniejsze */
  .brand-mark-misio {
    width: 34px !important;
    height: 34px !important;
  }
  
  .brand-line-top {
    font-size: 0.9rem !important;
  }
  
  .brand-line-bottom {
    font-size: 0.7rem !important;
  }
  
  .miboy-kupony-link .brand-mark-misio {
    width: 34px !important;
    height: 34px !important;
  }
  
  .miboy-kupony-link .brand-line-top {
    font-size: 0.9rem !important;
  }
  
  .miboy-kupony-link .brand-line-bottom {
    font-size: 0.7rem !important;
  }
}
/* === END MOBILE-5 === */


/* === MOBILE-6 FIX: rozwijka 'Najczesciej szukane' - 2 kolumny + kompakt === */
@media (max-width: 640px) {
  /* WYMUS 2 kolumny w rozwijce (przewaga nad L1065) */
  .top-expand-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  
  /* Karty w rozwijce - pionowe zamiast poziomych */
  .top-expand-card {
    flex-direction: column !important;
    gap: 6px !important;
    padding: 6px !important;
  }
  
  /* Obrazek na cala szerokosc karty */
  .top-expand-img {
    width: 100% !important;
    height: 90px !important;
  }
  
  /* Info kompaktowe */
  .top-expand-info {
    gap: 2px !important;
  }
  
  .top-expand-shop {
    font-size: 0.62rem !important;
  }
  
  .top-expand-title {
    font-size: 0.72rem !important;
    -webkit-line-clamp: 2 !important;
  }
  
  .top-expand-price {
    font-size: 0.82rem !important;
  }
  
  /* Padding panelu mniejszy */
  .top-expand-panel {
    padding: 8px !important;
    margin: 4px 0 8px !important;
  }
  
  /* Przycisk "Zobacz wszystkie" mniejszy */
  .top-expand-search-btn {
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
  }
  
  .top-expand-footer {
    margin-top: 8px !important;
    padding-top: 8px !important;
  }
}
/* === END MOBILE-6 === */






