/* assets/css/shop.css — Olaj V4.1 Shop (mobile-first) */

/* ───── Reset / baza ───── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 30%, #020617 60%, #020617 100%);
  color: #e5e7eb;
  min-height: 100vh;
}

/* ───── Layout ogólny ───── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(to right, rgba(15,23,42,0.95), rgba(2,6,23,0.95));
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.page-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #22c55e, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #020617;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.6);
}

.brand-text-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.brand-text-sub {
  font-size: 0.7rem;
  color: #9ca3af;
}

.brand-text-sub span {
  opacity: 0.9;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-wrapper {
  position: relative;
  flex: 1 1 auto;
  max-width: 220px;
}

.search-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem 0.35rem 2.1rem;
  outline: none;
}

.search-input::placeholder {
  color: #6b7280;
}

.search-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #6b7280;
}

.header-pill {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #9ca3af;
  white-space: nowrap;
}

/* ───── Main content ───── */
.page-main {
  flex: 1 1 auto;
}

.page-main-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1rem 1.5rem;
}

/* Hero / intro */
.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6ee7b7;
  margin-bottom: 0.35rem;
}

.hero-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.hero-sub {
  font-size: 0.8rem;
  color: #9ca3af;
  max-width: 480px;
}

/* ───── Grid butików ───── */
.shops-section {
  margin-top: 1.2rem;
}

.shops-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.shops-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.shops-meta {
  font-size: 0.72rem;
  color: #9ca3af;
}

.shops-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

/* Karta butiku */
.shop-card {
  border-radius: 1rem;
  border: 1px solid rgba(30, 64, 175, 0.6);
  background: radial-gradient(circle at top left, rgba(37,99,235,0.25), rgba(15,23,42,0.96));
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  position: relative;
  overflow: hidden;
}

.shop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56,189,248,0.25), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.shop-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.shop-avatar {
  width: 34px;
  height: 34px;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #020617;
  flex-shrink: 0;
}

.shop-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.shop-sub {
  font-size: 0.7rem;
  color: #cbd5f5;
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  position: relative;
  z-index: 1;
}

.shop-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.shop-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: #cbd5e1;
  position: relative;
  z-index: 1;
}

.shop-stats span {
  opacity: 0.9;
}

.shop-meta-badge {
  font-size: 0.67rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(8,47,73,0.9);
  border: 1px solid rgba(56,189,248,0.7);
  color: #e0f2fe;
}

/* CTA */
.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: none;
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(to right, #22c55e, #0ea5e9);
  color: #020617;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary span.icon {
  font-size: 0.8rem;
}

.btn-secondary-link {
  font-size: 0.7rem;
  color: #a5b4fc;
  text-decoration: none;
}

/* ───── Stopka ───── */
.page-footer {
  border-top: 1px solid rgba(30,64,175,0.6);
  background: rgba(15,23,42,0.95);
}

.page-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  color: #6b7280;
}

/* ───── Breakpointy ───── */

/* >= 640px (tablet / mały laptop) */
@media (min-width: 640px) {
  .page-header-inner {
    padding: 0.9rem 1.2rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .shops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-card {
    padding: 1rem 1.1rem;
  }
}

/* >= 1024px (desktop) */
@media (min-width: 1024px) {
  .page-header-inner {
    padding: 1rem 1.5rem;
  }

  .page-main-inner {
    padding: 1.2rem 1.5rem 2rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-sub {
    font-size: 0.85rem;
  }

  .shops-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .shop-card {
    transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
  }

  .shop-card:hover {
    transform: translateY(-3px);
    box-shadow:
      0 24px 70px rgba(15, 23, 42, 0.95),
      0 0 0 1px rgba(59,130,246,0.8);
    border-color: rgba(59,130,246,0.9);
  }
 


}

/* Karta produktu – obrazek/placeholder: zawsze kwadrat, działa też na mobile */
.shop-card-img {
  position: relative;
  width: 100%;
  padding-top: 100%;    /* kwadrat 1:1 na wszystkich szerokościach */
  border-radius: 0.8rem;
  overflow: hidden;
  background: #0f172a;  /* domyślny fallback, theme'y mogą nadpisać */
}

/* Obrazek wypełnia cały kwadrat */
.shop-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border-radius: 0.6rem;
    font-size: 0.78rem;
    text-transform: lowercase;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.page-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
}

.page-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.page-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-footer-links a {
    text-decoration: none;
    opacity: 0.85;
}

.page-footer-links a:hover {
    text-decoration: underline;
}

.footer-meta {
    opacity: 0.7;
    margin-right: 0.75rem;
}

.footer-brand a {
    font-weight: 500;
    text-decoration: none;
}

.shop-card-main {
    display: block;
    text-decoration: none;
    color: inherit;
}

.shop-card-main:hover .shop-card-title {
    text-decoration: underline;
}

/* ───── Sklep wyłączony (shop_enabled = 0) ───── */
.shop-card--disabled {
  opacity: 0.55;
  filter: grayscale(0.2);
}

.shop-card--disabled .shop-card-footer {
  justify-content: flex-start;
}

.shop-disabled-note {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px dashed rgba(248, 250, 252, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.shop-meta-badge-off {
  background: rgba(127,29,29,0.85);
  border-color: rgba(248,113,113,0.9);
  color: #fee2e2;
}