/*
Theme Name: eZoologiczny
Description: Autorski, lekki motyw WooCommerce sklepu ezoologiczny.pl. Kierunek „Ciepła sierść" — krem, sosnowa zieleń, terakota; Bricolage Grotesque + Instrument Sans (self-hosted).
Version: 1.0.0
Author: Growth Hub
Text Domain: ezoologiczny
*/

/* ===== Fonty (self-hosted, variable) ===== */
@font-face {
  font-family: 'Bricolage';
  src: url('assets/fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage';
  src: url('assets/fonts/bricolage-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'InstrumentSans';
  src: url('assets/fonts/instrument-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'InstrumentSans';
  src: url('assets/fonts/instrument-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Zmienne ===== */
:root {
  --bg: #FAF5EC;
  --bg-soft: #F4EDDE;
  --card: #FFFDF8;
  --sage: #E5EBD7;
  --sage-deep: #CDDCBE;
  --straw: #F2E5C8;
  --pine: #17402D;
  --pine-soft: #24543C;
  --ink: #23291F;
  --muted: #5D6355;
  --terra: #B5501F;
  --terra-dark: #96411A;
  --terra-soft: #F7E0D2;
  --line: #E8E0CD;
  --ok: #2F7D4F;
  --warn: #A96A12;
  --danger: #B3402F;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --shadow-1: 0 1px 2px rgba(23, 64, 45, .05), 0 10px 28px -14px rgba(23, 64, 45, .18);
  --shadow-2: 0 2px 4px rgba(23, 64, 45, .06), 0 18px 44px -18px rgba(23, 64, 45, .26);
  --f-disp: 'Bricolage', 'InstrumentSans', system-ui, sans-serif;
  --f-body: 'InstrumentSans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1240px;
}

/* ===== Reset / baza ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-decoration: none; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 {
  font-family: var(--f-disp);
  font-weight: 700;
  line-height: 1.12;
  color: var(--pine);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(30px, 4.6vw, 52px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
button { font-family: inherit; }
input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  padding: 11px 14px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pine-soft);
  box-shadow: 0 0 0 3px rgba(36, 84, 60, .12);
}
::placeholder { color: #A6AB9D; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
  position: absolute !important;
  clip-path: inset(50%);
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ===== Przyciski ===== */
.btn, .button, button[type="submit"], .single_add_to_cart_button, #place_order,
.wc-block-components-button, .checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s, color .12s;
  text-align: center;
  white-space: nowrap;
}
.btn-primary, .button.alt, .single_add_to_cart_button, #place_order, .checkout-button,
button[type="submit"] {
  background: var(--terra);
  color: #fff;
}
.btn-primary:hover, .button.alt:hover, .single_add_to_cart_button:hover, #place_order:hover,
.checkout-button:hover, button[type="submit"]:hover {
  background: var(--terra-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}
.btn-ghost, .button {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}
.btn-ghost:hover, .button:hover { background: var(--pine); color: #FDF9F0; }
.btn-light { background: #fff; color: var(--pine); border-color: var(--line); }
.btn-light:hover { border-color: var(--pine); }
.btn:active { transform: translateY(0) scale(.99); }

/* ===== Pasek zaufania (top) ===== */
.topbar {
  background: var(--pine);
  color: #EDE7D6;
  font-size: 13px;
  letter-spacing: .01em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar a { color: #EDE7D6; }
.topbar a:hover { color: #fff; }
.topbar .tb-right { display: flex; gap: 18px; }
@media (max-width: 700px) { .topbar .tb-right span:not(:last-child) { display: none; } }

/* ===== Header ===== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 245, 236, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-head.is-stuck { box-shadow: 0 8px 30px -18px rgba(23, 64, 45, .3); }
.head-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  padding: 14px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -.02em;
  color: var(--pine);
}
.logo:hover { color: var(--pine); }
.logo .paw {
  width: 36px; height: 36px;
  background: var(--terra);
  border-radius: 12px 12px 12px 4px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  transform: rotate(-6deg);
}
.logo .tld { color: var(--terra); }

.head-search { position: relative; }
.head-search input[type="search"] {
  border-radius: 999px;
  padding: 13px 52px 13px 20px;
  border-width: 2px;
  background: #fff;
}
.head-search button {
  position: absolute;
  right: 5px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 0;
  background: var(--pine);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s;
}
.head-search button:hover { background: var(--terra); }

/* Autocomplete */
.ac-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 90;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  max-height: min(62vh, 520px);
  overflow-y: auto;
}
.ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.ac-item:hover, .ac-item:focus { background: var(--bg); color: var(--pine); outline: none; }
.ac-item img {
  width: 44px; height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex: none;
}
.ac-item .ac-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ac-item .ac-body small {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.ac-item .ac-body span {
  font-size: 13.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac-item strong { font-family: var(--f-disp); color: var(--pine); white-space: nowrap; }
.ac-all {
  display: block;
  padding: 11px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--terra);
  background: var(--bg-soft);
}
.ac-all:hover, .ac-all:focus { background: var(--sage); outline: none; }

/* Cena jednostkowa */
.unit-price { font-weight: 600; color: var(--pine-soft); }

/* Kupon zwinięty */
.coupon.is-collapsed { display: none !important; }
.coupon-toggle {
  background: none;
  border: 0;
  padding: 6px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.coupon-toggle:hover { color: var(--terra); }

/* Brak wyników */
.no-results-help { padding: 10px 0 40px; }
.woocommerce-info.woocommerce-no-products-found { margin-bottom: 18px; }

.head-actions { display: flex; align-items: center; gap: 6px; }
.head-icon {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 10px;
  border-radius: var(--r-s);
  color: var(--pine);
  font-size: 11.5px;
  font-weight: 600;
}
.head-icon:hover { background: var(--sage); color: var(--pine); }
.cart-count {
  position: absolute;
  top: 2px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--terra);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* Nav kategorii */
.cat-nav { border-top: 1px solid var(--line); position: relative; }
.cat-nav > ul, .cat-nav .cat-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  gap: 4px;
}
.cat-nav a {
  display: inline-block;
  padding: 11px 14px;
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  border-radius: 10px 10px 0 0;
  position: relative;
  white-space: nowrap;
}
.cat-nav a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.cat-nav a:hover { color: var(--pine); }
.cat-nav a:hover::after, .cat-nav .current-menu-item a::after { transform: scaleX(1); }
.cat-nav .has-mega:hover > a::after, .cat-nav .has-mega:focus-within > a::after { transform: scaleX(1); }

/* ===== Mega menu ===== */
.has-mega > a { padding-right: 26px; position: relative; }
.has-mega > a::before {
  content: '';
  position: absolute;
  right: 11px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .55;
  transition: transform .18s, margin-top .18s;
}
.has-mega:hover > a::before, .has-mega:focus-within > a::before {
  transform: rotate(225deg);
  margin-top: -1px;
}
.mega {
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 75;
  background: var(--card);
  border-top: 3px solid var(--terra);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--r-l) var(--r-l);
  box-shadow: 0 30px 60px -25px rgba(23, 64, 45, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .16s ease .06s, transform .16s ease .06s, visibility 0s linear .22s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: .04s, .04s, 0s;
}
.mega-inner {
  display: grid;
  grid-template-columns: 216px 1fr;
  gap: clamp(20px, 2.6vw, 36px);
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 30px;
}
.mega-rail {
  background: var(--sage);
  border-radius: var(--r-m);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  align-self: start;
}
.mega-rail .mr-ico {
  width: 62px; height: 62px;
  border-radius: 20px 20px 20px 6px;
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--pine);
  margin-bottom: 6px;
}
.mega-rail strong {
  font-family: var(--f-disp);
  font-size: 19px;
  color: var(--pine);
}
.mega-rail .mr-count { font-size: 13px; color: var(--pine-soft); }
.mega-rail .mr-all {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pine);
  color: #FDF9F0;
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 999px;
}
.mega-rail .mr-all:hover { background: var(--terra); color: #fff; }
.mega-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 18px 26px;
  align-items: start;
}
.mega-col .mc-head {
  display: block;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 15px;
  color: var(--pine);
  padding: 0 0 8px;
  margin-bottom: 8px;
  border-bottom: 1.5px solid var(--line);
}
.mega-col .mc-head:hover { color: var(--terra); border-color: var(--terra); }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-col li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink);
  padding: 4px 6px;
  border-radius: 7px;
}
.mega-col li a:hover { background: var(--bg); color: var(--terra); }
.mega-col .mc-cnt { font-size: 11.5px; color: var(--muted); }
.mega-col .mc-more { color: var(--terra); font-weight: 600; }
@media (max-width: 900px) {
  .mega { display: none; }
}

/* Burger + drawer mobile */
.nav-toggle { display: none; }
.mobile-drawer { display: none; }
.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  color: var(--pine);
  cursor: pointer;
  padding: 8px;
}
@media (max-width: 900px) {
  .head-main { grid-template-columns: auto auto 1fr auto; }
  .burger { display: grid; place-items: center; }
  .head-search { grid-column: 1 / -1; grid-row: 2; }
  .cat-nav { display: none; }
  .head-icon span { display: none; }
  body:has(#nav-toggle:checked) { overflow: hidden; }
  .mobile-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
  }
  #nav-toggle:checked ~ .mobile-drawer { visibility: visible; }
  .mobile-drawer .md-bg {
    position: absolute;
    inset: 0;
    background: rgba(23, 41, 31, .5);
    opacity: 0;
    transition: opacity .2s;
  }
  #nav-toggle:checked ~ .mobile-drawer .md-bg { opacity: 1; }
  .mobile-drawer nav {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: min(320px, 85vw);
    background: var(--bg);
    padding: 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .22s ease;
  }
  #nav-toggle:checked ~ .mobile-drawer nav { transform: none; }
  .mobile-drawer ul { list-style: none; padding: 0; margin: 18px 0; }
  .mobile-drawer li a {
    display: block;
    padding: 13px 8px;
    font-family: var(--f-disp);
    font-weight: 600;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
  }
}

/* ===== Hero ===== */
.hero { padding: clamp(30px, 6vw, 70px) 0 clamp(26px, 4vw, 54px); overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage);
  color: var(--pine);
  font-weight: 600;
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl {
  color: var(--terra);
  position: relative;
  white-space: nowrap;
}
.hero h1 .hl svg {
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  width: 100%; height: 10px;
}
.hero-sub { font-size: 18px; color: var(--muted); max-width: 46ch; margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--ok); flex: none; }

.hero-vis { position: relative; min-height: 340px; }
.hero-blob {
  position: absolute;
  inset: -4%;
  background: radial-gradient(120% 120% at 70% 20%, var(--sage-deep) 0%, var(--sage) 55%, transparent 100%);
  border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
  box-shadow: 0 24px 60px -24px rgba(23, 64, 45, .35);
}
.hero-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-2);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 15px;
  color: var(--pine);
  transition: transform .18s ease;
}
.hero-card:hover { transform: translateY(-3px) rotate(-.5deg); color: var(--pine); }
.hero-card .hc-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--sage);
  display: grid;
  place-items: center;
  color: var(--pine);
  flex: none;
}
.hero-card small { display: block; font-family: var(--f-body); font-weight: 400; color: var(--muted); }
.hc-1 { top: 6%; left: 4%; animation: floaty 7s ease-in-out infinite; }
.hc-2 { top: 30%; right: 0; animation: floaty 8s .6s ease-in-out infinite; }
.hc-3 { bottom: 22%; left: 0; animation: floaty 7.5s .3s ease-in-out infinite; }
.hc-4 { bottom: 0; right: 8%; animation: floaty 8.5s .9s ease-in-out infinite; }
.paw-path { position: absolute; inset: 10% 15%; color: var(--pine); opacity: .16; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-vis { min-height: 300px; order: 2; }
}

/* wejście hero */
.hero-copy > * { animation: rise .6s cubic-bezier(.2, .7, .3, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .07s; }
.hero-copy > *:nth-child(3) { animation-delay: .14s; }
.hero-copy > *:nth-child(4) { animation-delay: .21s; }
.hero-copy > *:nth-child(5) { animation-delay: .28s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ===== Marquee ===== */
.marquee {
  background: var(--pine);
  color: #F2ECD9;
  overflow: hidden;
  padding: 12px 0;
}
.marquee .mq-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: mq 34s linear infinite;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee svg { opacity: .55; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ===== Sekcje ===== */
.section { padding: clamp(34px, 5.5vw, 64px) 0; }
.section-alt { background: var(--bg-soft); }
.sec-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.sec-head p { color: var(--muted); margin: 6px 0 0; }
.sec-link {
  font-family: var(--f-disp);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.sec-link svg { transition: transform .15s; }
.sec-link:hover svg { transform: translateX(3px); }

/* ===== Kafle działów ===== */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dept {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 26px 22px 22px;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.dept:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--sage-deep); }
.dept .d-ico {
  width: 64px; height: 64px;
  border-radius: 20px 20px 20px 6px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--pine);
  background: var(--sage);
  transition: transform .16s ease;
}
.dept:hover .d-ico { transform: rotate(-5deg) scale(1.06); }
.dept:nth-child(2) .d-ico { background: var(--straw); }
.dept:nth-child(3) .d-ico { background: var(--terra-soft); }
.dept:nth-child(4) .d-ico { background: var(--sage-deep); }
.dept h3 { margin-bottom: 4px; font-size: 20px; }
.dept p { color: var(--muted); font-size: 14px; margin: 0; }
.dept .d-count {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .dept-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .dept { padding: 18px 14px; } }

/* ===== Karty produktów ===== */
.prod-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
/* clearfix z woocommerce-general.css robił się itemem grida (pusta 1. komórka) */
.prod-grid::before, .prod-grid::after { display: none !important; content: none !important; }
.woocommerce .prod-grid.products { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card-img {
  display: block;
  position: relative;
  background: #fff;
  aspect-ratio: 1 / 1;
  padding: 14px;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}
.card:hover .card-img img { transform: scale(1.045); }
.card .tag {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--straw);
  color: var(--warn);
}
.card .tag.sale { background: var(--terra); color: #fff; }
.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.card .brand-mini {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.card h3 {
  font-family: var(--f-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--pine); }
.card .price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card .price {
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: 18px;
  color: var(--pine);
}
.card .price del { font-size: 13px; color: var(--muted); font-weight: 400; margin-right: 6px; }
.card .price ins { text-decoration: none; color: var(--terra); }
.card .price .unit {
  display: block;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.card .add {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 999px;
  background: var(--sage);
  color: var(--pine);
  display: grid;
  place-items: center;
  transition: background .15s, color .15s, transform .12s;
}
.card .add:hover { background: var(--terra); color: #fff; transform: scale(1.07); }
.card .add.added { background: var(--ok); color: #fff; }
.card .add.loading { opacity: .6; pointer-events: none; }
@media (max-width: 1000px) {
  .prod-grid, .woocommerce .prod-grid.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .prod-grid, .woocommerce .prod-grid.products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ===== USP band ===== */
.usp-band { background: var(--pine); color: #EFE9D8; }
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: clamp(26px, 4vw, 44px) 0;
}
.usp { display: flex; gap: 14px; align-items: flex-start; }
.usp .u-ico {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: rgba(255, 253, 248, .1);
  display: grid;
  place-items: center;
  color: #F2C94C;
}
.usp h3 { color: #fff; font-size: 16.5px; margin-bottom: 2px; }
.usp p { font-size: 13.5px; margin: 0; color: #C9CDB9; }
@media (max-width: 860px) { .usp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .usp-grid { grid-template-columns: 1fr; } }

/* ===== Banery kategorii ===== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-card {
  position: relative;
  border-radius: var(--r-l);
  padding: clamp(24px, 3.4vw, 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 240px;
  border: 1px solid var(--line);
  transition: transform .16s, box-shadow .16s;
}
.duo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.duo-dogs {
  background:
    linear-gradient(93deg, #DCE7D4 30%, rgba(220, 231, 212, .88) 48%, rgba(220, 231, 212, 0) 75%),
    url('assets/img/strefa-psa.jpg') 88% center / cover no-repeat;
}
.duo-cats {
  background:
    linear-gradient(93deg, #F0E3C6 30%, rgba(240, 227, 198, .88) 48%, rgba(240, 227, 198, 0) 75%),
    url('assets/img/strefa-kota.jpg') right center / cover no-repeat;
}
.duo-card { min-height: 265px; }
.duo-card p { max-width: 30ch; }
.duo-card h3 { font-size: clamp(21px, 2.4vw, 27px); }
.duo-card p { color: var(--pine-soft); max-width: 34ch; font-size: 15px; }
.duo-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.duo-links a {
  background: rgba(255, 253, 248, .85);
  border: 1px solid rgba(23, 64, 45, .12);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}
.duo-links a:hover { background: var(--pine); color: #fff; }
.duo-card .duo-ico {
  position: absolute;
  right: -12px; bottom: -16px;
  width: 150px; height: 150px;
  color: var(--pine);
  opacity: .13;
  transform: rotate(-8deg);
}
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ===== Marki ===== */
.brand-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chips a {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 14.5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--ink);
  transition: border-color .14s, transform .14s, background .14s;
}
.brand-chips a:hover { border-color: var(--terra); color: var(--terra); transform: translateY(-2px); }

/* ===== Breadcrumb ===== */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--terra); }

/* ===== PLP (archiwum sklepu) ===== */
.shop-wrap {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding-bottom: 60px;
}
.shop-head { margin: 6px 0 18px; }
.shop-head h1 { margin-bottom: 4px; }
.shop-head .result-count { color: var(--muted); font-size: 14px; margin: 0; }
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.shop-toolbar .woocommerce-result-count { margin: 0; color: var(--muted); font-size: 14px; }
.shop-toolbar .woocommerce-ordering { margin: 0; }
.shop-toolbar select {
  width: auto;
  padding: 9px 34px 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  background: var(--card);
}

/* Sidebar filtrów */
.filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 6px 18px 14px;
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.filters details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.filters details:last-of-type { border-bottom: 0; }
.filters summary {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--pine);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .15s;
}
.filters details[open] summary::after { transform: rotate(-135deg); }
.f-body { padding: 4px 0 8px; }
.f-list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.f-list li { margin: 2px 0; }
.f-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 4px;
  border-radius: 8px;
  cursor: pointer;
}
.f-list label:hover { background: var(--bg); }
.f-list input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: var(--pine);
  margin: 0;
  flex: none;
}
.f-list .cnt { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.f-scroll { max-height: 232px; overflow-y: auto; scrollbar-width: thin; }
.f-search { margin-bottom: 8px; }
.f-search input { padding: 8px 12px; font-size: 14px; border-radius: 8px; }
.f-cats { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.f-cats ul { list-style: none; padding-left: 14px; }
.f-cats a { display: block; padding: 5px 4px; border-radius: 8px; color: var(--ink); }
.f-cats a:hover { background: var(--bg); color: var(--pine); }
.f-cats .current > a { font-weight: 700; color: var(--pine); }
.f-price { display: flex; gap: 8px; align-items: center; }
.f-price input { padding: 8px 10px; font-size: 14px; }
.f-apply {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  font-size: 15px;
}
.f-active { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.f-active a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sage);
  color: var(--pine);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.f-active a:hover { background: var(--terra-soft); color: var(--terra-dark); }
.f-active .f-clear { background: transparent; border: 1px dashed var(--line); color: var(--muted); }

.filters-toggle-btn { display: none; }
#filters-toggle { display: none; }
.f-overlay { display: none; }
@media (max-width: 900px) {
  .shop-wrap { grid-template-columns: 1fr; }
  .filters-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pine);
    color: #fff;
    border-radius: 999px;
    padding: 11px 20px;
    font-family: var(--f-disp);
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
  }
  .filters {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(340px, 88vw);
    z-index: 110;
    border-radius: 0;
    max-height: none;
    transform: translateX(-102%);
    transition: transform .22s ease;
    padding-bottom: 90px;
  }
  #filters-toggle:checked ~ .filters { transform: none; box-shadow: var(--shadow-2); }
  .filters .f-close {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-family: var(--f-disp);
    font-weight: 700;
    font-size: 17px;
    color: var(--pine);
  }
  .f-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(23, 41, 31, .5);
    z-index: 105;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }
  #filters-toggle:checked ~ .f-overlay { opacity: 1; pointer-events: auto; }
}
@media (min-width: 901px) { .filters .f-close { display: none; } }

/* Paginacja */
.woocommerce-pagination { margin: 34px 0 10px; text-align: center; }
.woocommerce-pagination .page-numbers {
  list-style: none;
  display: inline-flex;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
  display: grid;
  place-items: center;
  min-width: 42px; height: 42px;
  padding: 0 8px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-family: var(--f-disp);
  font-weight: 600;
}
.woocommerce-pagination .page-numbers li span.current { background: var(--pine); border-color: var(--pine); color: #fff; }
.woocommerce-pagination .page-numbers li a:hover { border-color: var(--pine); }

/* ===== PDP (karta produktu) ===== */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-bottom: 40px;
}
.pdp-gallery { position: sticky; top: 96px; }
.pdp-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.pdp-main img { max-height: 100%; object-fit: contain; }
.pdp-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.pdp-thumbs button {
  width: 74px; height: 74px;
  border-radius: var(--r-s);
  border: 2px solid var(--line);
  background: #fff;
  padding: 6px;
  cursor: pointer;
  transition: border-color .14s;
}
.pdp-thumbs button.active, .pdp-thumbs button:hover { border-color: var(--terra); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pdp-sum .brand-link {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra);
}
.pdp-sum h1 { font-size: clamp(24px, 2.8vw, 34px); margin: 6px 0 14px; }
.pdp-sum .price {
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--pine);
  display: block;
  margin-bottom: 4px;
}
.pdp-sum .price del { color: var(--muted); font-size: .6em; font-weight: 400; margin-right: 10px; }
.pdp-sum .price ins { text-decoration: none; color: var(--terra); }
.pdp-vat { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.stock-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.stock-line .dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(47, 125, 79, .15);
}
.stock-line.low .dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(169, 106, 18, .15); }
.stock-line.out .dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(179, 64, 47, .12); }
.stock-line small { color: var(--muted); font-weight: 400; }

.pdp-buy, .pdp-sum form.cart {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin: 8px 0 18px;
}
.qty-box {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  flex: none;
}
.qty-box button {
  width: 42px; height: 50px;
  border: 0;
  background: none;
  font-size: 20px;
  font-weight: 600;
  color: var(--pine);
  cursor: pointer;
}
.qty-box button:hover { background: var(--sage); }
.qty-box input {
  width: 52px;
  border: 0;
  text-align: center;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 17px;
  padding: 0;
  -moz-appearance: textfield;
}
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-buy .single_add_to_cart_button, .pdp-sum form.cart .single_add_to_cart_button { flex: 1; font-size: 17px; }
.single_add_to_cart_button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 860px) {
  .pdp-sum form.cart { position: sticky; bottom: 10px; z-index: 40; }
  .pdp-sum form.cart .single_add_to_cart_button { box-shadow: var(--shadow-2); }
}
/* koszyk: siatka strony */
body.woocommerce-cart .container > .woocommerce {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  align-items: start;
  padding: 10px 0 50px;
}
body.woocommerce-cart .container > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; padding: 0; }
body.woocommerce-cart .cart-collaterals { position: sticky; top: 96px; }
body.woocommerce-cart .free-ship-bar { grid-column: 1 / -1; margin-bottom: 0; }
body.woocommerce-cart .cart-empty-page, body.woocommerce-cart .wc-empty-cart-message, body.woocommerce-cart .return-to-shop { grid-column: 1 / -1; text-align: center; }
@media (max-width: 900px) {
  body.woocommerce-cart .container > .woocommerce { grid-template-columns: 1fr; }
}

.pdp-trust {
  list-style: none;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-radius: var(--r-m);
  display: grid;
  gap: 9px;
  font-size: 14.5px;
}
.pdp-trust li { display: flex; align-items: center; gap: 10px; }
.pdp-trust svg { color: var(--ok); flex: none; }
.pdp-trust strong { font-weight: 700; }

.product_meta {
  display: grid;
  gap: 4px;
  font-size: 13.5px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.product_meta a { color: var(--pine); font-weight: 600; }
.ezoo-ean { font-size: 13.5px; color: var(--muted); }
.ezoo-gpsr { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.ezoo-gpsr summary { cursor: pointer; font-weight: 600; color: var(--pine); }
.ezoo-gpsr-body { padding: 8px 0 0; }

/* sekcje opisu (z tabów WC robimy stack) */
.pdp-sections { margin: 10px 0 40px; }
.pdp-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  margin-bottom: 14px;
  overflow: hidden;
}
.pdp-section > summary {
  padding: 18px 22px;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 17px;
  color: var(--pine);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pdp-section > summary::-webkit-details-marker { display: none; }
.pdp-section > summary::after {
  content: '+';
  font-size: 22px;
  color: var(--terra);
  transition: transform .15s;
}
.pdp-section[open] > summary::after { transform: rotate(45deg); }
.pdp-section .ps-body { padding: 0 22px 22px; max-width: 76ch; }
.pdp-section .ps-body h2, .pdp-section .ps-body h3 { font-size: 17px; margin-top: 1.2em; }
.pdp-section .ps-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pdp-section .ps-body table td, .pdp-section .ps-body table th {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.pdp-section .ps-body table tr:nth-child(odd) { background: var(--bg); }

.woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.woocommerce-product-attributes th { width: 40%; color: var(--muted); font-weight: 600; }
.woocommerce-product-attributes tr:nth-child(odd) { background: var(--bg); }
.woocommerce-product-attributes p { margin: 0; }

.related.products > h2, .up-sells > h2 { margin-bottom: 18px; }

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .pdp-buy { position: sticky; bottom: 10px; z-index: 40; }
  .pdp-buy .single_add_to_cart_button { box-shadow: var(--shadow-2); }
}

/* ===== Koszyk ===== */
.cart-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; padding-bottom: 60px; }
@media (max-width: 900px) { .cart-wrap { grid-template-columns: 1fr; } }
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.woocommerce table.shop_table thead th {
  font-family: var(--f-disp);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  background: var(--bg-soft);
}
.cart_item .product-thumbnail img {
  width: 76px; height: 76px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 6px;
}
.cart_item .product-name a { font-weight: 600; color: var(--ink); }
.cart_item .product-remove a {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  color: var(--danger) !important;
  font-size: 20px;
  font-weight: 400;
  text-decoration: none;
}
.cart_item .product-remove a:hover { background: #F7DDD6; }
.woocommerce .quantity .qty { width: 74px; text-align: center; padding: 9px 6px; }
.cart_totals {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 22px;
  position: sticky;
  top: 96px;
}
.cart_totals h2 { font-size: 21px; }
.cart_totals table { border: 0; }
.cart_totals .order-total td, .cart_totals .order-total th { font-size: 18px; font-family: var(--f-disp); font-weight: 800; color: var(--pine); }
.wc-proceed-to-checkout { margin-top: 16px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; font-size: 17px; }
.coupon { display: flex; gap: 8px; }
.coupon input { max-width: 200px; }
.free-ship-bar {
  background: var(--sage);
  border-radius: var(--r-m);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 14.5px;
}
.free-ship-bar .fsb-track {
  height: 8px;
  background: rgba(23, 64, 45, .14);
  border-radius: 999px;
  margin-top: 9px;
  overflow: hidden;
}
.free-ship-bar .fsb-fill {
  height: 100%;
  background: var(--pine);
  border-radius: 999px;
  transition: width .3s ease;
}
.cart-empty-page { text-align: center; padding: 70px 20px; }
.cart-empty-page .cart-empty { font-family: var(--f-disp); font-size: 24px; color: var(--pine); font-weight: 700; }

/* ===== Checkout ===== */
form.checkout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { form.checkout { grid-template-columns: 1fr; } }
#customer_details { display: block; }
.woocommerce-billing-fields h3, #order_review_heading {
  font-size: 20px;
}
form .form-row { margin: 0 0 14px; padding: 0; display: block; }
form .form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
form .form-row .required { color: var(--terra); text-decoration: none; }
form .form-row-first, form .form-row-last { width: 48%; display: inline-block; }
form .form-row-first { margin-right: 3.5%; }
@media (max-width: 560px) { form .form-row-first, form .form-row-last { width: 100%; margin-right: 0; } }
.checkout-review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 22px;
  position: sticky;
  top: 96px;
}
#payment { background: transparent; }
#payment ul.wc_payment_methods {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}
#payment ul.wc_payment_methods li {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  padding: 12px 14px;
}
#payment ul.wc_payment_methods li:has(input:checked) { border-color: var(--pine); background: var(--sage); }
#payment ul.wc_payment_methods label { font-weight: 600; margin-left: 4px; cursor: pointer; }
#payment .payment_box {
  font-size: 13.5px;
  color: var(--muted);
  margin: 8px 0 0;
  padding: 0;
}
#payment input[type="radio"] { accent-color: var(--pine); }
#place_order { width: 100%; font-size: 17px; margin-top: 8px; }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--muted); margin: 10px 0; }
.woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--muted); }
.woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; }

/* ===== Powiadomienia WC ===== */
.woocommerce-notices-wrapper { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none;
  background: var(--sage);
  border: 0;
  border-left: 4px solid var(--ok);
  color: var(--ink);
  border-radius: var(--r-s);
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 14.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.woocommerce-info { background: var(--bg-soft); border-left-color: var(--pine); }
.woocommerce-error { background: #F9E3DD; border-left-color: var(--danger); flex-direction: column; align-items: flex-start; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button {
  order: 2;
  padding: 8px 16px;
  font-size: 13.5px;
}

/* ===== Moje konto / logowanie ===== */
.woocommerce-account .woocommerce {
  display: block;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.woocommerce-MyAccount-navigation a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
}
.woocommerce-MyAccount-navigation .is-active a { background: var(--pine); color: #fff; border-color: var(--pine); }
.login, .woocommerce-ResetPassword, .register {
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 26px;
}

/* ===== Stopka ===== */
.site-foot { background: var(--pine); color: #C9CDB9; margin-top: 60px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: clamp(36px, 5vw, 56px) 0 30px;
}
.site-foot h3.foot-h {
  color: #fff;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: #C9CDB9; font-size: 14.5px; }
.site-foot a:hover { color: #fff; }
.foot-brand .logo { color: #fff; font-size: 22px; margin-bottom: 12px; }
.foot-brand p { font-size: 14px; max-width: 34ch; }
.foot-bottom {
  border-top: 1px solid rgba(255, 253, 248, .12);
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 13px;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ===== Strony treści / blog ===== */
.page-wrap { max-width: 800px; margin: 0 auto; padding: 20px 20px 70px; }
.page-wrap h1 { margin: 20px 0 24px; }
.page-wrap h2 { font-size: 23px; margin-top: 1.6em; }
.page-wrap a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content table td, .entry-content table th { border: 1px solid var(--line); padding: 9px 12px; }

/* ===== 404 ===== */
.err-404 { text-align: center; padding: 80px 20px 100px; }
.err-404 .paw-big { color: var(--sage-deep); margin: 0 auto 20px; width: 90px; }
.err-404 h1 { font-size: clamp(34px, 5vw, 54px); }
.err-404 p { color: var(--muted); max-width: 44ch; margin: 0 auto 26px; }

/* ===== Nadpisanie domyślnych przycisków WC (specificity woocommerce-general.css) ===== */
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce div.product form.cart .button, .woocommerce .cart .button,
.woocommerce a.checkout-button, .woocommerce #place_order,
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] {
  background: var(--terra);
  color: #fff;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 0;
}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce div.product form.cart .button:hover, .woocommerce a.checkout-button:hover, .woocommerce #place_order:hover {
  background: var(--terra-dark);
  color: #fff;
}
.woocommerce a.button.add_to_cart_button { padding: 0; }
/* dubel informacji o stanie z WC (mamy własny .stock-line) */
.pdp-sum p.stock { display: none; }

/* ===== Drobiazgi ===== */
.onsale {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: var(--terra);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2317402D' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.woocommerce form .show-password-input { display: none; }

@media (max-width: 480px) {
  .logo { font-size: 19px; gap: 6px; }
  .logo .paw { width: 30px; height: 30px; border-radius: 10px 10px 10px 3px; }
  .head-main { padding: 10px 12px; gap: 8px; }
  .head-icon { padding: 6px; }
  .topbar .container { justify-content: center; }
  .topbar .tb-right { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
