/* Dla zieleni — sklep (brand z dlazieleni.pl) */
:root {
  --color-brand: #a6ce37;
  --color-brand-dark: #8ab42a;
  --color-brand-deep: #5a7a18;
  --color-brand-soft: #e8f4c8;
  --color-brand-glow: rgba(166, 206, 55, 0.35);
  --color-bg: #f4f6f1;
  --color-bg-hero: #1e2418;
  --color-surface: #fff;
  --color-text: #222222;
  --color-muted: #5a5f56;
  --color-border: #e2e6dc;
  --color-primary: var(--color-brand);
  --color-primary-dark: var(--color-brand-deep);
  --color-primary-light: var(--color-brand-soft);
  --color-accent: var(--color-brand-dark);
  --color-danger: #c1121f;
  --color-danger-bg: #fff0f2;
  --shadow-sm: 0 1px 2px rgba(30, 36, 24, 0.06);
  --shadow-md: 0 8px 32px rgba(30, 36, 24, 0.1);
  --shadow-lg: 0 20px 48px rgba(30, 36, 24, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --header-h: 72px;
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
  --container: 1240px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body.shop-body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.shop-body a { color: var(--color-brand-deep); transition: color 0.15s var(--ease); }
body.shop-body a:hover { color: var(--color-brand-dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand) 0%, var(--color-brand-dark) 50%, var(--color-brand) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 6px 0;
}

.site-logo:hover { opacity: 0.92; }

.logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  object-position: left center;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  margin-left: 8px;
}

.nav-link {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s;
}

.nav-link:hover {
  background: var(--color-brand-soft);
  color: var(--color-text);
}

.nav-link.active {
  background: var(--color-brand);
  color: var(--color-text);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--color-brand-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* —— Kontakt w nagłówku (e-mail / WhatsApp) —— */
.header-contact {
  position: relative;
  flex-shrink: 0;
}

.header-actions .header-contact {
  margin-right: 4px;
}

@keyframes header-contact-pulse {
  0%, 100% {
    background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.45), 0 0 0 0 rgba(249, 115, 22, 0.5);
    color: #fff;
  }
  50% {
    background: linear-gradient(180deg, #fdba74 0%, #c2410c 100%);
    box-shadow: 0 8px 28px rgba(234, 88, 12, 0.55), 0 0 0 12px rgba(249, 115, 22, 0);
    color: #fff;
  }
}

.header-contact--prominent .header-contact-toggle {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  animation: header-contact-pulse 1.8s ease-in-out infinite;
}

.header-contact--prominent .header-contact-toggle-icon {
  width: 20px;
  height: 20px;
  color: #fff;
}

.header-contact--prominent .header-contact-toggle-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.header-contact--prominent .header-contact-chevron {
  color: #fff;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .header-contact--prominent .header-contact-toggle {
    animation: none;
    background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.4);
  }
}

.header-contact-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-brand);
  background: var(--color-brand-soft);
  color: var(--color-text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.header-contact-toggle:hover,
.header-contact.is-open .header-contact-toggle {
  background: var(--color-brand);
  box-shadow: 0 4px 16px var(--color-brand-glow);
}

.header-contact--prominent .header-contact-toggle:hover,
.header-contact--prominent.is-open .header-contact-toggle {
  animation-play-state: paused;
  background: linear-gradient(180deg, #fb923c 0%, #c2410c 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(234, 88, 12, 0.5), 0 3px 8px rgba(30, 36, 24, 0.12);
  color: #fff;
}

.header-contact-toggle-icon {
  display: flex;
  width: 18px;
  height: 18px;
  color: var(--color-brand-deep);
}

.header-contact-toggle-icon svg {
  width: 18px;
  height: 18px;
}

.header-contact-chevron {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s var(--ease);
}

.header-contact.is-open .header-contact-chevron {
  transform: rotate(180deg);
}

.header-contact-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 120;
}

.header-contact-menu[hidden] {
  display: none !important;
}

.header-contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 23, 10, 0.45);
  -webkit-tap-highlight-color: transparent;
}

.header-contact-backdrop[hidden] {
  display: none !important;
}

body.contact-menu-open {
  overflow: hidden;
}

.header-contact-menu--sheet {
  position: fixed !important;
  left: 16px !important;
  right: 16px !important;
  top: auto !important;
  bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
  min-width: 0;
  max-width: none;
  margin: 0;
  z-index: 510;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
}

.header-contact-menu-title {
  margin: 0 0 10px;
  padding: 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.header-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.15s var(--ease);
}

.header-contact-item:hover {
  background: var(--color-brand-soft);
  color: var(--color-text);
}

.header-contact-item + .header-contact-item {
  margin-top: 4px;
}

.header-contact-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.header-contact-item--email .header-contact-item-icon {
  background: #eef4ff;
  color: #2563eb;
}

.header-contact-item--wa .header-contact-item-icon {
  background: #e7f8ef;
  color: #25d366;
}

.header-contact-item--wa .header-contact-item-icon svg {
  width: 22px;
  height: 22px;
}

.header-contact-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.header-contact-item-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.header-contact-item-value {
  font-size: 0.8rem;
  color: var(--color-muted);
  word-break: break-all;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.cart-link:hover {
  border-color: var(--color-brand);
  box-shadow: 0 4px 16px var(--color-brand-glow);
  color: var(--color-text);
}

.cart-link.active {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
}

.cart-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--color-brand-deep);
}

.cart-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-badge:empty,
.cart-badge[data-zero="1"] { display: none; }

.lang-switch {
  display: flex;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.lang-switch button {
  min-width: 42px;
  padding: 8px 12px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.04em;
}

.lang-switch button + button { border-left: 2px solid var(--color-border); }

.lang-switch button.active {
  background: var(--color-brand);
  color: var(--color-text);
}

.lang-switch button:not(.active):hover { background: var(--color-brand-soft); }

/* —— Zielone menu główne (jak #_desktop_top_menu) —— */
.site-top-nav {
  background: var(--color-brand);
  border-bottom: 1px solid var(--color-brand-dark);
  position: relative;
  z-index: 90;
}

.top-nav-inner { padding: 0; }

.top-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.top-nav-item {
  position: relative;
  border-right: 1px solid rgba(34, 34, 34, 0.08);
}

.top-nav-item:last-child { border-right: none; }

.top-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.top-nav-link:hover,
.top-nav-item.active > .top-nav-link,
.top-nav-item:hover > .top-nav-link {
  background: var(--color-brand);
  color: #fff;
}

.top-nav-item.has-dropdown:hover > .top-nav-link,
.top-nav-item.has-dropdown:focus-within > .top-nav-link {
  color: #fff;
}

.nav-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0.85;
}

.top-nav-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 280px;
  max-width: min(92vw, 720px);
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
  pointer-events: none;
}

@media (hover: hover) {
  .top-nav-item.has-dropdown:hover .top-nav-dropdown,
  .top-nav-item.has-dropdown:focus-within .top-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.top-nav-dropdown-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 16px 0;
}

.top-nav-sub {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  flex: 1;
  min-width: 220px;
}

.top-nav-sub li { margin: 0; }

.top-nav-sub a {
  display: block;
  padding: 9px 12px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.top-nav-sub a:hover {
  background: var(--color-brand);
  color: #fff;
}

.top-nav-sub.depth-2 {
  padding-left: 12px;
  margin-top: 4px;
  border-left: 2px solid var(--color-brand-soft);
}

.top-nav-sub.depth-2 a {
  font-size: 0.82rem;
  padding: 6px 10px;
}

@media (max-width: 900px) {
  .site-top-nav {
    position: sticky;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    z-index: 95;
  }

  .top-nav-inner {
    overflow: hidden;
  }

  .top-nav-menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .top-nav-menu::-webkit-scrollbar {
    display: none;
  }

  .top-nav-item {
    flex: 0 0 auto;
    min-width: 0;
    border-right: 1px solid rgba(34, 34, 34, 0.08);
    border-bottom: none;
    scroll-snap-align: start;
  }

  .top-nav-link {
    padding: 10px 14px;
    font-size: 0.72rem;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    min-height: 40px;
  }

  .top-nav-item.has-dropdown .top-nav-dropdown {
    position: absolute;
    left: 0;
    right: auto;
    top: 100%;
    max-width: min(92vw, 320px);
    min-width: 240px;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: none;
    display: none;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    background: #fff;
    z-index: 210;
  }

  .top-nav-item.has-dropdown.mobile-open .top-nav-dropdown {
    display: block;
    pointer-events: auto;
  }

  .top-nav-item.has-dropdown.mobile-open > .top-nav-link {
    background: var(--color-brand-dark);
    color: #fff;
  }

  .top-nav-sub {
    min-width: 0;
    padding: 8px 12px 12px;
  }

  .top-nav-sub a {
    padding: 10px 12px;
    font-size: 0.88rem;
  }
}

/* —— Strona główna (banery z dlazieleni.pl) —— */
.home-extras.hidden,
.home-bottom.hidden { display: none !important; }

.home-slider-wrap { background: #fff; padding: 0 0 4px; }

.home-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #111;
}

.home-slider-track {
  position: relative;
  aspect-ratio: 1920 / 600;
  max-height: min(52vh, 520px);
}

.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.home-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }

.home-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.home-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.home-slider-prev { left: 12px; }
.home-slider-next { right: 12px; }
.home-slider-arrow:hover { background: var(--color-brand); transform: translateY(-50%); }

.home-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.home-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
}

.home-slider-dot.active { background: var(--color-brand); border-color: var(--color-brand); }

.home-banners-section { padding: 16px 0 8px; background: #fff; }

.home-banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.home-banner-item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.home-banner-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.home-banner-item img { width: 100%; height: auto; display: block; }

.home-featured-section { padding: 28px 0 8px; background: var(--color-bg); }

.home-section-title {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
}

.home-section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-brand);
  margin: 10px auto 0;
  border-radius: 2px;
}

.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-cat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.home-cat-card:hover { box-shadow: var(--shadow-md); }

.home-cat-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 118px;
  padding: 10px 12px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.home-cat-card-img img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s;
}

.home-cat-card:hover .home-cat-card-img img { transform: scale(1.03); }

.home-cat-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px 14px;
  text-align: center;
}

.home-cat-card-body h3 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-cat-card-body h3 a { color: var(--color-text); text-decoration: none; }
.home-cat-card-body h3 a:hover { color: var(--color-brand-deep); }

.home-cat-more {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-brand-deep);
}

.home-cat-more:hover { text-decoration: underline; }

.catalog-search-wrap {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.catalog-search-wrap .search-bar { margin-bottom: 0; }

.home-parallax {
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}

.home-parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 24, 16, 0.88) 0%, rgba(20, 24, 16, 0.45) 100%);
}

.home-parallax-inner {
  position: relative;
  z-index: 1;
  padding: 56px 24px;
  max-width: 560px;
}

.home-parallax h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
}

.home-parallax p { margin: 0 0 24px; line-height: 1.6; opacity: 0.9; }

.home-brands-section {
  padding: 36px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.home-brands-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.home-brands-row li img {
  max-height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.home-brands-row li img:hover { opacity: 1; }

.home-trust {
  background: #fff;
  color: var(--color-text);
  padding: 36px 0 32px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid #e8e8e8;
}

.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.home-trust-item {
  padding: 0 12px;
}

.home-trust-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--color-brand);
}

.home-trust-icon svg {
  width: 52px;
  height: auto;
  max-height: 44px;
}

.home-trust-item h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.home-trust-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.45;
}

/* —— Strony informacyjne (FB / RODO) —— */
.static-page { max-width: 780px; margin: 0 auto; }

.static-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin: -8px 0 32px;
}

.static-block {
  margin-bottom: 32px;
  padding: 24px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.static-block h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 700;
}

.static-block p { margin: 0 0 12px; line-height: 1.65; }
.static-block p:last-child { margin-bottom: 0; }

.static-list { margin: 8px 0 0; padding-left: 1.25rem; line-height: 1.7; }
.static-list li { margin-bottom: 6px; }

.static-contact-list { list-style: none; margin: 12px 0 0; padding: 0; }
.static-contact-list li { margin-bottom: 10px; }
.static-contact-list a { font-weight: 600; color: var(--color-brand-deep); }

.static-note { font-size: 0.9rem; color: var(--color-muted); margin-top: 8px; }
.static-back { margin-top: 24px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 14px;
}

.footer-links a {
  color: #95d5b2;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover { text-decoration: underline; color: #fff; }

/* —— Main —— */
.page-main {
  flex: 1;
  max-width: none;
  margin: 0;
  padding: 32px 0 56px;
}

.page-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.page-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--color-brand);
  border-radius: 2px;
  margin-top: 10px;
}

/* —— Footer —— */
.site-footer {
  background: var(--color-bg-hero);
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 40px 0 28px;
  align-items: start;
}

.footer-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(1.1);
  margin-bottom: 12px;
}

.footer-tagline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  max-width: 360px;
}

.footer-note {
  margin: 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-brand);
  line-height: 1.55;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: var(--color-brand);
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom a:hover { text-decoration: underline; }

/* —— Buttons (nie dotyczy strzałek slidera, języka, menu) —— */
body.shop-body .btn,
body.shop-body button:not(.home-slider-arrow):not(.home-slider-dot):not(.header-contact-toggle):not(.category-toggle):not(.qty-btn):not(.icon-btn):not(.lang-switch button) {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s var(--ease), transform 0.15s, box-shadow 0.2s;
}

.btn-primary,
body.shop-body button:not(.secondary):not(.danger):not(.btn-outline):not(.category-toggle):not(.qty-btn):not(.icon-btn):not(.home-slider-arrow):not(.home-slider-dot):not(.header-contact-toggle):not(.lang-switch button) {
  background: var(--color-brand);
  color: var(--color-text);
  box-shadow: 0 2px 8px var(--color-brand-glow);
}

.btn-primary:hover,
body.shop-body button:not(.secondary):not(.danger):not(.btn-outline):not(.category-toggle):not(.qty-btn):not(.icon-btn):not(.home-slider-arrow):not(.home-slider-dot):not(.header-contact-toggle):not(.lang-switch button):not(:disabled):hover {
  background: var(--color-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--color-brand-glow);
}

body.shop-body .home-slider-arrow,
body.shop-body .home-slider-dot {
  all: unset;
  box-sizing: border-box;
  font-family: var(--font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}

body.shop-body .home-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

body.shop-body .home-slider-prev { left: 10px; }
body.shop-body .home-slider-next { right: 10px; }

body.shop-body .home-slider-arrow:hover {
  background: var(--color-brand);
  color: var(--color-text);
  transform: translateY(-50%);
}

body.shop-body .home-slider-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.45);
}

body.shop-body .home-slider-dot.active {
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.btn-outline,
.btn.secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  box-shadow: none;
}

.btn-outline:hover,
.btn.secondary:hover {
  border-color: var(--color-brand);
  color: var(--color-text);
}

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

button.danger, .btn-danger {
  background: var(--color-danger);
  color: #fff;
  box-shadow: none;
}

.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-muted);
  box-shadow: none;
}

.icon-btn:hover {
  background: var(--color-danger-bg);
  border-color: var(--color-danger);
  color: var(--color-danger);
  transform: none;
}

button:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* —— Search —— */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.search-bar input[type="search"] {
  flex: 1;
  min-width: 200px;
  max-width: 480px;
  padding: 13px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font: inherit;
  margin: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px var(--color-brand-glow);
}

.search-bar label { display: none; }

/* —— Product grid —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(166, 206, 55, 0.4);
}

.product-card-image {
  display: block;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #fafcf7 0%, #eef2e8 100%);
  padding: 20px;
  position: relative;
}

.product-card-image::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--color-brand);
  opacity: 0;
  transition: opacity 0.2s;
}

.product-card:hover .product-card-image::after { opacity: 1; }

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

.product-card:hover .product-card-image img { transform: scale(1.03); }

.product-card-image.placeholder {
  background: linear-gradient(145deg, #eef2e8, #e0e6d8);
}

.product-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.product-card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.product-card-title a {
  color: var(--color-text);
  text-decoration: none;
}

.product-card-title a:hover { color: var(--color-brand-deep); }

.product-card-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.product-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 4px 0 0;
}

.stock-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stock-badge.in-stock {
  background: var(--color-brand-soft);
  color: var(--color-brand-deep);
}

.stock-badge.out-of-stock {
  background: #eee;
  color: var(--color-muted);
}

.product-card .btn {
  margin-top: auto;
  border-radius: var(--radius-pill);
}

/* —— Catalog —— */
.catalog-layout {
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 32px;
  align-items: start;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-brand-deep);
  text-decoration: underline;
}

.category-sidebar {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
}

.category-sidebar-toggle {
  display: none;
}

.category-sidebar-toggle-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: auto;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid currentColor;
  transition: transform 0.2s var(--ease);
}

.category-sidebar.is-open .category-sidebar-toggle-chevron {
  transform: rotate(180deg);
}

.category-sidebar-title {
  margin: 0;
  padding: 16px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #fafcf8, var(--color-surface));
}

.category-all { margin: 0; padding: 0; border-bottom: 1px solid var(--color-border); }

.category-all a {
  display: block;
  padding: 13px 18px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.category-all a:hover,
.category-all a.active {
  background: var(--color-brand-soft);
  color: var(--color-text);
  border-left-color: var(--color-brand);
}

.category-menu-item { border-bottom: 1px solid var(--color-border); }

.category-row.active {
  background: var(--color-brand-soft);
  border-left: 3px solid var(--color-brand);
}

.category-link:hover { color: var(--color-brand-deep); }

.category-toggle {
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
}

.category-submenu { background: #fafcf8; }

/* —— Cart —— */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.cart-items-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cart-empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--color-muted);
}

.cart-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.35;
}

.cart-line {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

.cart-line:last-child { border-bottom: none; }

.cart-line-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, #fafcf7, #eef2e8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-line-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-line-info h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.cart-line-info h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.cart-line-info h3 a:hover { color: var(--color-brand-deep); }

.cart-line-price-unit {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

.cart-line-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cart-line-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--color-surface);
}

.qty-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--color-bg);
  border: none;
  color: var(--color-text);
  font-size: 1.1rem;
  box-shadow: none;
}

.qty-btn:hover { background: var(--color-brand-soft); transform: none; }

.qty-control input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  padding: 8px 4px;
  margin: 0;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-summary { position: sticky; top: calc(var(--header-h) + 20px); }

.summary-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.summary-box h2 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  font-weight: 700;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.summary-row.total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--color-brand);
}

.summary-box .btn { margin-top: 12px; border-radius: var(--radius-pill); }
.summary-box .btn:first-of-type { margin-top: 20px; }

/* —— Product page —— */
.product-page {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  gap: 44px;
  align-items: start;
}

.product-gallery {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.product-info h1 {
  font-size: 1.55rem;
  margin: 0 0 16px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.product-meta {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.product-meta li {
  display: flex;
  gap: 8px;
  font-size: 0.95rem;
}

.product-meta strong {
  min-width: 100px;
  color: var(--color-muted);
  font-weight: 500;
}

.product-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
  padding: 22px;
  background: var(--color-brand-soft);
  border: 2px solid rgba(166, 206, 55, 0.35);
  border-radius: var(--radius);
}

.product-buy .btn { border-radius: var(--radius-pill); }

.product-description {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  line-height: 1.7;
}

.product-description h2 {
  font-size: 1.05rem;
  margin: 0 0 14px;
  font-weight: 700;
}

.gallery-main {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border: none;
  background: transparent;
}

.gallery-thumbs img { border-radius: var(--radius-sm); }

.gallery-thumbs img.active {
  border-color: var(--color-brand);
  border-width: 2px;
}

/* —— Checkout —— */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}

.checkout-form-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.checkout-form-panel .form-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0;
}

.checkout-form-panel input,
.checkout-form-panel textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin: 0;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-form-panel input:focus,
.checkout-form-panel textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px var(--color-brand-glow);
}

.checkout-intro {
  color: var(--color-muted);
  margin: -8px 0 28px;
  line-height: 1.65;
  max-width: 640px;
}

.order-summary-lines {
  font-size: 0.9rem;
  margin-bottom: 16px;
  max-height: 240px;
  overflow-y: auto;
}

.order-summary-lines div {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

/* —— Toast & messages —— */
.shop-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  padding: 14px 22px;
  background: var(--color-bg-hero);
  color: #fff;
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  animation: toast-in 0.35s var(--ease);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.msg.error {
  border-color: #f5c2c7;
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.msg.ok {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  color: var(--color-brand-deep);
}

.loading-state {
  padding: 56px;
  text-align: center;
  color: var(--color-muted);
  font-weight: 500;
}

/* —— Pagination —— */
.pagination {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.pagination button,
.pagination a.page-num {
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
}

.pagination a.page-num.active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-text);
  font-weight: 700;
}

.pagination button:hover,
.pagination a.page-num:hover {
  border-color: var(--color-brand);
  color: var(--color-text);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .category-sidebar { position: static; max-height: none; }
  .cart-layout,
  .checkout-layout,
  .product-page { grid-template-columns: 1fr; }
  .cart-summary,
  .product-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-line {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }
  .cart-line-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .home-banners-grid { grid-template-columns: repeat(2, 1fr); }
  .home-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .home-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* —— Mobile (tablet + phone) —— */
@media (max-width: 768px) {
  :root {
    --header-h: 52px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header::after {
    height: 2px;
  }

  .header-inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 6px 0;
    min-height: var(--header-h);
  }

  .site-logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 42%;
    padding: 2px 0;
  }

  .logo-img {
    height: 32px;
    max-width: 100%;
  }

  .header-nav {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 4px;
  }

  .header-nav .nav-link[data-nav="catalog"],
  .header-nav .nav-link[data-nav="about"] {
    display: none;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .header-actions {
    flex: 0 0 auto;
    margin-left: 0;
    gap: 4px;
  }

  .header-contact--prominent .header-contact-toggle {
    padding: 8px 10px;
    font-size: 0;
    gap: 0;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
    animation: none;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
  }

  .header-contact--prominent .header-contact-toggle-label {
    display: none;
  }

  .header-contact--prominent .header-contact-toggle-icon {
    width: 20px;
    height: 20px;
  }

  .header-contact--prominent .header-contact-toggle-icon svg {
    width: 20px;
    height: 20px;
  }

  .header-contact-chevron {
    display: none;
  }

  .lang-switch button {
    min-width: 34px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .cart-link {
    padding: 8px 10px;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
  }

  .cart-link span:not(.cart-badge) {
    display: none;
  }

  .cart-icon {
    width: 20px;
    height: 20px;
  }

  .page-main {
    padding: 20px 0 48px;
  }

  .page-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
  }

  .catalog-search-wrap {
    padding: 12px 14px;
    margin-bottom: 16px;
  }

  .search-bar {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
  }

  .search-bar input[type="search"] {
    width: 100%;
    max-width: none;
    min-width: 0;
    font-size: 16px;
    padding: 14px 16px;
  }

  .search-bar .btn-primary {
    width: 100%;
    min-height: 48px;
    border-radius: var(--radius-sm);
  }

  .category-sidebar {
    position: static;
    max-height: none;
    top: auto;
  }

  .category-sidebar-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    padding: 14px 16px;
    margin: 0;
    border: none;
    background: linear-gradient(180deg, var(--color-brand-soft), var(--color-surface));
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
  }

  .category-sidebar:not(.is-open) .category-sidebar-panel {
    display: none;
  }

  .category-sidebar.is-open .category-sidebar-panel {
    display: block;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .category-sidebar-title {
    display: none;
  }

  .category-toggle {
    flex: 0 0 48px;
    width: 48px;
    min-height: 48px;
  }

  .category-link {
    padding: 12px 14px 12px 16px;
    min-height: 48px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    border-radius: var(--radius-sm);
  }

  .product-card:hover {
    transform: none;
  }

  .product-card-image {
    padding: 12px;
  }

  .product-card-body {
    padding: 10px 12px 14px;
  }

  .product-card-title {
    font-size: 0.8rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card-price {
    font-size: 1.05rem;
  }

  .product-card .btn {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
  }

  .pagination {
    justify-content: center;
    gap: 6px;
  }

  .pagination .pagination-info {
    width: 100%;
    text-align: center;
    margin: 0 0 8px;
    font-size: 0.8rem;
  }

  .pagination button,
  .pagination a.page-num {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }

  .home-slider-wrap {
    padding: 0;
  }

  .home-slider {
    border-radius: var(--radius-sm);
  }

  .home-slider-track {
    aspect-ratio: 2.1 / 1;
    max-height: 170px;
  }

  body.shop-body .home-slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  body.shop-body .home-slider-dot {
    width: 7px;
    height: 7px;
  }

  .home-slider-dots {
    bottom: 8px;
    gap: 6px;
  }

  .home-banners-section {
    padding: 8px 0 4px;
  }

  .home-banners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .home-banner-item img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    object-position: center;
  }

  .home-featured-section {
    padding: 14px 0 6px;
  }

  .home-section-title {
    margin-bottom: 12px;
    font-size: 1.05rem;
  }

  .home-featured-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-cat-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 80px;
  }

  .home-cat-card-img {
    width: 80px;
    height: auto;
    min-height: 80px;
    align-self: stretch;
    flex: 0 0 80px;
    padding: 8px;
    border-bottom: none;
    border-right: 1px solid var(--color-border);
  }

  .home-cat-card-img img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 64px;
    margin: auto;
    object-fit: contain;
  }

  .home-cat-card-body {
    flex: 1;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 10px 12px;
  }

  .home-cat-card-body h3 {
    margin-bottom: 4px;
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .home-cat-more {
    font-size: 0.75rem;
  }

  .home-slider-prev,
  .home-slider-next {
    display: none !important;
  }

  .product-card-image {
    aspect-ratio: 1;
    padding: 8px;
  }

  .product-card-image img {
    object-fit: contain;
  }

  .home-brands-row li img {
    max-height: 36px;
    width: auto;
  }

  .home-trust {
    padding: 20px 0;
  }

  .home-trust-grid {
    gap: 16px;
  }

  .home-trust-icon svg {
    width: 36px;
    height: 36px;
  }

  .home-parallax {
    min-height: 0;
    padding: 24px 0;
  }

  .home-parallax-inner {
    padding: 32px 16px;
  }

  .static-block {
    padding: 18px 16px;
  }

  .static-lead {
    font-size: 1rem;
  }

  .checkout-layout .form-row input,
  .checkout-layout .form-row textarea,
  .checkout-layout .form-row select {
    font-size: 16px;
  }

  .gallery-thumbs img {
    width: 56px;
    height: 56px;
  }

  .floating-cart {
    width: 56px;
    height: 56px;
    right: max(12px, env(safe-area-inset-right, 12px));
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
  }

  .shop-toast {
    left: 16px;
    right: 16px;
    bottom: max(80px, calc(72px + env(safe-area-inset-bottom, 0px)));
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 48px;
  }

  .logo-img {
    height: 28px;
  }

  .header-contact--prominent .header-contact-toggle,
  .cart-link,
  .lang-switch button {
    min-width: 36px;
    min-height: 36px;
    padding: 6px 8px;
  }

  .top-nav-link {
    padding: 8px 12px;
    font-size: 0.68rem;
    min-height: 36px;
  }

  .nav-link {
    padding: 8px;
    font-size: 0.78rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card-image {
    aspect-ratio: 4 / 3;
  }

  .home-slider-track {
    max-height: 150px;
  }

  .home-banners-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-banners-grid::-webkit-scrollbar {
    display: none;
  }

  .home-banner-item {
    flex: 0 0 78%;
    max-width: 260px;
  }

  .home-banner-item img {
    height: 64px;
  }

  .home-cat-card-img {
    width: 72px;
    flex: 0 0 72px;
    min-height: 72px;
    padding: 6px;
  }

  .home-cat-card-img img {
    max-height: 58px;
  }

  .home-banners-section {
    display: none;
  }

  .home-trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .cart-line {
    grid-template-columns: 72px 1fr;
    padding: 16px;
    gap: 12px;
  }

  .cart-line-image {
    width: 72px;
    height: 72px;
  }

  .footer-grid {
    padding: 28px 0 20px;
  }
}

/* —— Pływająca koszyk (jak na dlazieleni.pl) —— */
@keyframes floating-cart-blink {
  0%, 100% {
    background-color: var(--color-brand);
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.22),
      0 0 0 0 rgba(166, 206, 55, 0.55);
  }
  50% {
    background-color: #8bc928;
    box-shadow:
      0 10px 32px rgba(0, 0, 0, 0.26),
      0 0 0 14px rgba(166, 206, 55, 0);
  }
}

.floating-cart {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 250;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.floating-cart--has-items {
  animation: floating-cart-blink 1.6s ease-in-out infinite;
}

.floating-cart--has-items:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .floating-cart--has-items {
    animation: none;
    box-shadow:
      0 10px 32px rgba(0, 0, 0, 0.24),
      0 0 0 4px rgba(166, 206, 55, 0.45);
  }
}

@media (min-width: 769px) {
  .floating-cart {
    width: 72px;
    height: 72px;
    right: 28px;
    bottom: 28px;
    border: 3px solid #fff;
    box-shadow:
      0 10px 32px rgba(0, 0, 0, 0.24),
      0 4px 12px rgba(0, 0, 0, 0.12),
      0 0 0 1px rgba(0, 0, 0, 0.06);
  }

  .floating-cart:hover {
    box-shadow:
      0 14px 40px rgba(0, 0, 0, 0.28),
      0 6px 16px rgba(0, 0, 0, 0.14),
      0 0 0 1px rgba(0, 0, 0, 0.06);
  }

  .floating-cart-icon {
    width: 34px;
    height: 34px;
  }

  .floating-cart-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.25;
  }

  .floating-cart-badge {
    min-width: 26px;
    height: 26px;
    font-size: 13px;
    line-height: 26px;
    top: -4px;
    left: -4px;
  }
}

.floating-cart:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  color: var(--color-text);
}

.floating-cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.floating-cart-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-text);
}

.floating-cart-badge {
  position: absolute;
  top: -2px;
  left: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 50%;
  background: #f06a4d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
}

.floating-cart-badge[data-zero="1"] {
  display: none;
}

body.shop-body:has(.cart-link.active) .floating-cart,
body.shop-body:has(.page-main .cart-layout) .floating-cart {
  opacity: 0.92;
}
