/* ═══════════════════════════════════════════════════════════════════════════
   Tom-Drew — theme.css
   Klasyczny motyw WordPress. Bez FSE, bez Elementora.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. RESET / BASE ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }
body { font-family: 'Lato', system-ui, sans-serif; color: #1a1a1a; background: #fff; }
img, video { max-width: 100%; height: auto; display: block; }
a { transition: color 0.2s ease, opacity 0.2s ease; }
ul { list-style: none; margin: 0; padding: 0; }

/* ─── 2. NAGŁÓWEK ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 2px solid var(--wp--preset--color--primary, #5e3c31);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  height: 72px;
}

/* Logo */
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img {
  max-height: 48px;
  width: auto;
  /* Barwi logo na ciemny brąz #4a2e24 */
  filter: brightness(0) saturate(100%)
          invert(17%) sepia(22%) saturate(900%)
          hue-rotate(326deg) brightness(88%);
}

/* Ukryj "Strona główna" z menu — logo już linkuje do home */
.main-nav .menu-item-home { display: none !important; }
.site-logo__text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--wp--preset--color--primary, #5e3c31);
  letter-spacing: 0.5px;
}

/* ─── 3. NAWIGACJA GŁÓWNA ──────────────────────────────────────────────────── */
.main-nav { display: flex; justify-content: center; }

.main-nav .nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 0; padding: 0;
}

.main-nav .nav-list li { position: relative; }

.main-nav .nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list .current-menu-item > a,
.main-nav .nav-list .current-menu-ancestor > a {
  color: var(--wp--preset--color--primary, #5e3c31);
  border-bottom-color: var(--wp--preset--color--primary, #5e3c31);
}

/* Submenu klasyczne */
.main-nav .nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e8ddd6;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  padding: 6px 0;
  z-index: 300;
  flex-direction: column;
  gap: 0;
}

.main-nav .nav-list li:hover > .sub-menu,
.main-nav .nav-list li:focus-within > .sub-menu {
  display: flex;
}

.main-nav .nav-list .sub-menu a {
  padding: 9px 16px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: none;
  border-radius: 0;
  white-space: nowrap;
}

.main-nav .nav-list .sub-menu a:hover {
  background: #f5f1ee;
  border-bottom: none;
}

/* ─── 3a. WYRÓŻNIONE POZYCJE MENU — Sklep producenta / Allegro ──────────── */
@keyframes td-nav-pulse {
  0%,  100% { color: #4a2e24; }
  50%        { color: #9e5c3a; }
}

.main-nav .td-nav-special > a {
  /* BEZ !important — animacja musi móc nadpisywać color */
  color: #4a2e24;
  font-weight: 700;
  animation: td-nav-pulse 2.6s ease-in-out infinite;
}

/* Upewniamy się że bazowy kolor #1a1a1a nie wygrywa ze specyficznością */
.main-nav .nav-list .td-nav-special > a { color: #4a2e24; }

.main-nav .td-nav-special > a:hover {
  color: #4a2e24;
  border-bottom-color: #4a2e24;
  animation: none;             /* zatrzymaj pulsowanie na hover */
}

/* ─── 3b. HEADER SEARCH ──────────────────────────────────────────────────── */
.header-search {
  position: relative;
  width: 220px;
}
.header-search__form {
  display: flex;
  align-items: center;
  background: #f5f0eb;
  border: 1.5px solid #e0d5cc;
  border-radius: 20px;
  padding: 0 12px 0 10px;
  gap: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search__form:focus-within {
  border-color: #7f5f43;
  box-shadow: 0 0 0 3px rgba(127,95,67,.12);
  background: #fff;
}
.header-search__icon {
  color: #7f5f43;
  flex-shrink: 0;
  pointer-events: none;
}
.header-search__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #2c1f1a;
  padding: 8px 0;
  outline: none;
  min-width: 0;
  /* placeholder animowany — kursor migający */
  caret-color: #613a2e;
}
.header-search__input::placeholder {
  color: #7f5f43;
  font-style: italic;
  font-weight: 500;
}

/* Dropdown podpowiedzi */
.header-search__suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #e0d5cc;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  list-style: none;
  margin: 0; padding: 6px 0;
  z-index: 500;
}
.header-search__suggest li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  text-decoration: none;
  color: #2c1f1a;
  font-size: 13px;
  transition: background 0.12s;
}
.header-search__suggest li a:hover,
.header-search__suggest li a:focus {
  background: #faf7f4;
  outline: none;
}
.header-search__suggest li a img {
  width: 38px; height: 38px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.hsr-nothumb {
  width: 38px; height: 38px;
  background: #f0ebe5;
  border-radius: 4px;
  flex-shrink: 0;
}
.hsr-title { flex: 1; line-height: 1.3; }

/* ─── 4. HEADER ACTIONS (koszyk + hamburger) ─────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

/* Koszyk */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--wp--preset--color--primary, #5e3c31);
  text-decoration: none;
  transition: background 0.2s;
}
.cart-btn:hover { background: #f5f1ee; }

/* Konto użytkownika */
.account-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--wp--preset--color--primary, #5e3c31);
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  background: transparent;
  cursor: pointer;
}
.account-btn:hover { background: #f5f1ee; }

/* Mała zielona kropka gdy zalogowany */
.account-btn--logged::after {
  content: '';
  position: absolute;
  bottom: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf50;
  border: 1.5px solid #fff;
}

.cart-count {
  position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary, #5e3c31);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ─── 5. HAMBURGER (mobile) ──────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-toggle:hover { background: #f5f1ee; }
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--wp--preset--color--primary, #5e3c31);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Animacja X */
.nav-toggle.is-active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 72px;
    background: var(--wp--preset--color--primary, #5e3c31);
    z-index: 199;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
    overflow-y: auto;
  }

  .main-nav.is-open { display: flex; }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 400px;
    align-items: stretch;
  }

  .main-nav .nav-list a {
    color: #fff;
    font-size: 1.1rem;
    padding: 14px 24px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    text-align: center;
    letter-spacing: 0.08em;
  }

  .main-nav .nav-list a:hover,
  .main-nav .nav-list .current-menu-item > a {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-bottom-color: rgba(255,255,255,.1);
  }

  /* Submenu w overlay — ukryte na mobile, rodzic klikalny */
  .main-nav .nav-list .sub-menu { display: none !important; }

  /* Mega menu w overlay — też ukryte */
  .main-nav .tdmm-dropdown { display: none !important; }
}

/* ─── 6. IKONA KOSZYKA + PANEL MINI-CART ─────────────────────────────────── */
.cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wp--preset--color--primary, #5e3c31);
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  transition: background 0.2s;
}
.cart-btn:hover { background: #f5f1ee; }

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--wp--preset--color--primary, #5e3c31);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 0 4px;
  line-height: 1;
}
.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

/* Panel wysuwalny */
.mini-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 95vw;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.mini-cart-panel.is-open {
  transform: translateX(0);
}

.mini-cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #ede8e4;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--wp--preset--color--primary, #5e3c31);
}

.mini-cart-panel__close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0 4px;
  transition: color 0.2s;
}
.mini-cart-panel__close:hover { color: #1a1a1a; }

.mini-cart-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* Style zawartości mini-cart */
.mini-cart-panel__body .woocommerce-mini-cart__empty-message {
  text-align: center;
  color: #888;
  margin-top: 40px;
}

.mini-cart-panel__body .mini_cart_item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0ece8;
}

.mini-cart-panel__body .mini_cart_item a img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.mini-cart-panel__body .mini_cart_item .quantity {
  font-size: 13px;
  color: #666;
}

.mini-cart-panel__body .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 4px;
  font-weight: 700;
  font-size: 16px;
  border-top: 2px solid #ede8e4;
  margin-top: 8px;
}

.mini-cart-panel__body .woocommerce-mini-cart__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.mini-cart-panel__body .woocommerce-mini-cart__buttons a {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s;
}

.mini-cart-panel__body .woocommerce-mini-cart__buttons a.checkout {
  background: var(--wp--preset--color--primary, #5e3c31);
  color: #fff;
}
.mini-cart-panel__body .woocommerce-mini-cart__buttons a.checkout:hover { background: #4a2e24; }

.mini-cart-panel__body .woocommerce-mini-cart__buttons a.button:not(.checkout) {
  background: #f5f1ee;
  color: var(--wp--preset--color--primary, #5e3c31);
  border: 1px solid #d5c9c2;
}
.mini-cart-panel__body .woocommerce-mini-cart__buttons a.button:not(.checkout):hover { background: #ede8e4; }

/* Overlay */
.mini-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 999;
  cursor: pointer;
}
.mini-cart-overlay.is-open { display: block; }

/* ─── 7. LAYOUT GŁÓWNY ────────────────────────────────────────────────────── */
.site-main { min-height: 50vh; }

.content-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.content-wrap--narrow {
  max-width: 800px;
}

/* ─── 8. STOPKA ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--wp--preset--color--primary, #5e3c31);
  color: #fff;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand .footer-logo img { max-height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-brand .footer-logo__text { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: #fff; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.65; margin-top: 12px; }
.footer-address { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 10px; font-style: normal; line-height: 1.7; }
.footer-address a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-address a:hover { color: #fff; }

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.55);
  margin: 0 0 14px;
  font-weight: 700;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.8); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }

.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,.3); }

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── 9. KARTY PRODUKTÓW (WooCommerce) ────────────────────────────────────── */
.woocommerce ul.products li.product,
.product-card {
  background: #fff;
  border: 1px solid #d5c9c2;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.woocommerce ul.products li.product:hover,
.product-card:hover {
  box-shadow: 0 6px 24px rgba(94,60,49,.12);
  transform: translateY(-3px);
}

.woocommerce ul.products li.product img,
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
/* zoom na img usunięty — zastąpiony przez hover-image (patrz sekcja Hover image) */

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--wp--preset--color--primary, #5e3c31);
  line-height: 1.35;
  padding: 0 14px;
  margin: 10px 0 5px;
}

.woocommerce ul.products li.product .price,
.product-card .price {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  padding: 0 14px 14px;
  display: block;
}

.woocommerce ul.products li.product .price del,
.product-card .price del {
  font-size: 13px;
  color: #888;
  font-weight: 400;
  margin-right: 6px;
}

/* Dodaj do koszyka */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  display: block;
  margin: 0 14px 14px;
  padding: 8px 12px;
  text-align: center;
  background: var(--wp--preset--color--primary, #5e3c31) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 3px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: #4a2e24 !important;
}

/* Siatka produktów */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .woocommerce ul.products { grid-template-columns: 1fr; } }

/* ─── 10a. MOJE KONTO — sidebar layout ──────────────────────────────────── */

/* Wrapper WooCommerce na stronie konta — flex: nav lewo, content prawo */
.woocommerce-account .woocommerce {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

/* Sidebar nawigacyjny */
.woocommerce-account .woocommerce-MyAccount-navigation {
  flex: 0 0 220px;
  width: 220px;
  background: #613a2e;
  border-radius: 8px;
  padding: 12px 0;
  position: sticky;
  top: 100px;         /* poniżej przyklejonego headera */
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  border-left: 3px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 10px 18px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active {
  background: rgba(255,255,255,.08);
  border-left-color: rgba(255,255,255,.6);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  color: #fff;
}

/* Wyloguj — lekko oddzielony */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 4px;
}

/* Obszar treści konta */
.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1;
  min-width: 0;
}

/* Mobile — stos (nawigacja nad treścią) */
@media (max-width: 760px) {
  .woocommerce-account .woocommerce {
    flex-direction: column;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 auto;
    width: 100%;
    position: static;
  }
}

/* ─── 10. POJEDYNCZY PRODUKT ─────────────────────────────────────────────── */
.woocommerce div.product {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.woocommerce div.product .woocommerce-product-gallery {
  flex: 0 0 calc(50% - 24px);
  max-width: calc(50% - 24px);
}

.woocommerce div.product .summary.entry-summary {
  flex: 0 0 calc(50% - 24px);
  max-width: calc(50% - 24px);
}

@media (max-width: 768px) {
  .woocommerce div.product .woocommerce-product-gallery,
  .woocommerce div.product .summary.entry-summary {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ── Galeria Flexslider ── */
.woocommerce-product-gallery {
  position: relative;
}

.woocommerce-product-gallery .flex-viewport {
  overflow: hidden;
  border-radius: 6px;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Miniatury — poziomy rząd pod głównym zdjęciem */
.woocommerce-product-gallery ol.flex-control-thumbs {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.woocommerce-product-gallery ol.flex-control-thumbs li {
  flex: 0 0 calc(20% - 7px);
  min-width: 60px;
  cursor: pointer;
}

.woocommerce-product-gallery ol.flex-control-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
  cursor: pointer;
}

.woocommerce-product-gallery ol.flex-control-thumbs img.flex-active,
.woocommerce-product-gallery ol.flex-control-thumbs img:hover {
  opacity: 1;
  border-color: var(--wp--preset--color--primary, #5e3c31);
}

/* Strzałki prev/next */
.woocommerce-product-gallery .flex-direction-nav {
  margin: 0; padding: 0; list-style: none;
}

.woocommerce-product-gallery .flex-direction-nav a {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  text-decoration: none;
  font-size: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.woocommerce-product-gallery:hover .flex-direction-nav a { opacity: 1; }
.woocommerce-product-gallery .flex-direction-nav .flex-prev { left: 10px; }
.woocommerce-product-gallery .flex-direction-nav .flex-next { right: 10px; }

.woocommerce-product-gallery .flex-direction-nav a::before {
  content: '';
  display: block;
  width: 9px; height: 9px;
  border-top: 2px solid #5e3c31;
  border-right: 2px solid #5e3c31;
}
.woocommerce-product-gallery .flex-direction-nav .flex-prev::before { transform: rotate(-135deg) translate(-2px, 2px); }
.woocommerce-product-gallery .flex-direction-nav .flex-next::before { transform: rotate(45deg) translate(-2px, 2px); }

/* Trigger lightbox (ikona lupy) */
.woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  position: absolute; top: 12px; right: 12px; z-index: 9;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='7' stroke='%235e3c31' stroke-width='2' fill='none'/%3E%3Cline x1='15.5' y1='15.5' x2='21' y2='21' stroke='%235e3c31' stroke-width='2'/%3E%3C/svg%3E") center/18px no-repeat;
  border-radius: 50%;
  text-indent: -999px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

/* ── Sekcja summary ── */
.woocommerce div.product .product_title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--wp--preset--color--primary, #5e3c31);
  line-height: 1.25;
  margin: 0 0 12px;
}

.woocommerce div.product .woocommerce-product-rating {
  margin-bottom: 14px;
}

.woocommerce div.product .price {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  display: block;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ede8e4;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 15px;
  line-height: 1.7;
  color: #3a3a3a;
  margin-bottom: 24px;
}

.woocommerce div.product form.cart {
  margin-bottom: 20px;
}

.woocommerce form.cart .qty {
  border: 1px solid #d5c9c2;
  border-radius: 3px;
  font-size: 16px;
  padding: 0.75rem 1rem;
  width: 5rem;
  text-align: center;
}

.single_add_to_cart_button,
.woocommerce form.cart .button {
  background: var(--wp--preset--color--primary, #5e3c31) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 3px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.85rem 2rem !important;
  cursor: pointer;
  transition: background 0.2s !important;
}
.single_add_to_cart_button:hover,
.woocommerce form.cart .button:hover { background: #4a2e24 !important; }

/* Meta (SKU, kategoria) */
.woocommerce div.product .product_meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ede8e4;
  font-size: 13px;
  color: #888;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.woocommerce div.product .product_meta a { color: #5e3c31; text-decoration: none; }
.woocommerce div.product .product_meta a:hover { text-decoration: underline; }

/* ── Zakładki produktu ── */
.woocommerce-tabs {
  margin-top: 48px;
  clear: both;
}

.woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #ede8e4;
  margin: 0 0 0;
  padding: 0;
  list-style: none;
}

.woocommerce-tabs ul.tabs li {
  margin: 0;
  position: relative;
}

.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.woocommerce-tabs ul.tabs li a:hover {
  color: var(--wp--preset--color--primary, #5e3c31);
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--wp--preset--color--primary, #5e3c31);
  border-bottom-color: var(--wp--preset--color--primary, #5e3c31);
}

.woocommerce-tabs .woocommerce-Tabs-panel {
  padding: 32px 0;
  font-size: 15px;
  line-height: 1.75;
  color: #3a3a3a;
}

.woocommerce-tabs .woocommerce-Tabs-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--wp--preset--color--primary, #5e3c31);
  margin-bottom: 16px;
}

/* ─── 11. SKLEP — nagłówek i paginacja ───────────────────────────────────── */
.woocommerce-result-count { font-size: 13px; color: #6b5c55; margin: 0; }
.woocommerce-ordering select {
  border: 1px solid #d5c9c2;
  border-radius: 3px;
  font-size: 13px;
  padding: 6px 12px;
  color: #1a1a1a;
  background: #fff;
  cursor: pointer;
}

.woocommerce nav.woocommerce-pagination ul {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px;
  border: 1px solid #d5c9c2;
  border-radius: 3px;
  font-size: 13px; font-weight: 700;
  color: #1a1a1a; text-decoration: none;
  transition: all 0.2s;
}
.woocommerce nav.woocommerce-pagination ul li a:hover { background: #f5f1ee; border-color: #5e3c31; color: #5e3c31; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: #5e3c31; border-color: #5e3c31; color: #fff; }

/* ─── 12. KOSZYK / CHECKOUT ──────────────────────────────────────────────── */
.woocommerce .checkout-button,
.woocommerce .wc-proceed-to-checkout a,
#place_order {
  background: var(--wp--preset--color--primary, #5e3c31) !important;
  color: #fff !important;
  border-radius: 3px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.9rem 2.5rem !important;
  transition: background 0.2s !important;
  border: none !important;
}
.woocommerce .checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a:hover,
#place_order:hover { background: #4a2e24 !important; }

/* ─── 13. FORMULARZE ────────────────────────────────────────────────────── */
.woocommerce form .input-text,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select, textarea {
  border: 1px solid #d5c9c2;
  border-radius: 3px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s;
  color: #1a1a1a;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary, #5e3c31);
  box-shadow: 0 0 0 3px rgba(94,60,49,.1);
}

/* ─── 14. KOMUNIKATY WooCommerce ─────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info { border-top-color: var(--wp--preset--color--primary, #5e3c31); }
.woocommerce-message::before { color: var(--wp--preset--color--primary, #5e3c31); }

/* ─── 15. BLOG — karty wpisów ────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card { background: #fff; border: 1px solid #d5c9c2; border-radius: 4px; overflow: hidden; }
.post-card__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card__body { padding: 20px; }
.post-card__meta { font-size: 12px; color: #888; margin-bottom: 8px; }
.post-card__title { font-family: 'Playfair Display', serif; font-size: 18px; line-height: 1.35; margin: 0 0 12px; }
.post-card__title a { color: var(--wp--preset--color--primary, #5e3c31); text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__excerpt { font-size: 14px; color: #555; line-height: 1.65; margin-bottom: 16px; }

/* Single post */
.single-post .entry-header { margin-bottom: 24px; }
.single-post .entry-title { font-family: 'Playfair Display', serif; font-size: 32px; color: #5e3c31; line-height: 1.2; }
.single-post .entry-meta { font-size: 13px; color: #888; margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.single-post .entry-thumbnail { margin-bottom: 28px; border-radius: 4px; overflow: hidden; }
.single-post .entry-thumbnail img { width: 100%; }
.single-post .entry-content { font-size: 17px; line-height: 1.75; }
.single-post .entry-content h2 { font-size: 1.5rem; color: #5e3c31; margin-top: 2em; }
.single-post .entry-content h3 { font-size: 1.2rem; color: #7f5f43; margin-top: 1.5em; }
.single-post .entry-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.single-post .entry-cat { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; color: #7f5f43; text-decoration: none; }
.single-post .entry-tag { display: inline-block; padding: 3px 10px; background: #f5f1ee; border-radius: 20px; font-size: 12px; color: #5e3c31; text-decoration: none; margin: 2px; }
.single-post .entry-tags { margin-top: 24px; display: flex; flex-wrap: wrap; }

.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #e8ddd6; }
.post-nav a { flex: 1; text-decoration: none; }
.post-nav span { font-size: 12px; color: #888; display: block; }
.post-nav strong { font-size: 14px; color: #5e3c31; display: block; margin-top: 4px; }
.post-nav__next { text-align: right; }

/* Archive header */
.archive-header { margin-bottom: 32px; }
.archive-title { font-family: 'Playfair Display', serif; font-size: 28px; color: #5e3c31; }
.archive-desc { color: #555; margin-top: 8px; }

/* Page header */
.page-header { margin-bottom: 32px; }
.page-title { font-family: 'Playfair Display', serif; font-size: 32px; color: #5e3c31; }

/* Paginacja (blogi) */
.wp-block-query-pagination,
nav.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.page-numbers { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid #d5c9c2; border-radius: 3px; font-size: 13px; font-weight: 700; color: #1a1a1a; text-decoration: none; transition: all 0.2s; }
.page-numbers:hover { background: #f5f1ee; border-color: #5e3c31; color: #5e3c31; }
.page-numbers.current { background: #5e3c31; border-color: #5e3c31; color: #fff; }

/* ─── 16. PRZYCISKI ──────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}
.btn--primary { background: #5e3c31; color: #fff; border-color: #5e3c31; }
.btn--primary:hover { background: #4a2e24; border-color: #4a2e24; color: #fff; }
.btn--outline { background: transparent; color: #5e3c31; border-color: #5e3c31; }
.btn--outline:hover { background: #5e3c31; color: #fff; }
.btn--sm { padding: 7px 16px; font-size: 12px; }

/* 404 */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 h1 { font-family: 'Playfair Display', serif; font-size: 80px; color: #5e3c31; line-height: 1; margin-bottom: 0; }
.error-404 h2 { font-size: 22px; color: #555; margin-bottom: 20px; }

/* ─── 17. MEGA MENU ──────────────────────────────────────────────────────── */

/* Strzałka przy "Oferta" */
li.tdmm-oferta > a::after {
  content: " ▾";
  font-size: 0.7em;
  vertical-align: middle;
  opacity: 0.7;
}

/* Dropdown — fixed, pełna szerokość */
.tdmm-dropdown {
  display: none;
  position: fixed;
  top: var(--tdmm-top, 74px);
  left: 0;
  right: 0;
  z-index: 990;
  background: #fff;
  border-top: 3px solid #5e3c31;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

li.tdmm-oferta:hover .tdmm-dropdown,
li.tdmm-oferta:focus-within .tdmm-dropdown {
  display: block;
}

.tdmm-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 20px;
}

.tdmm-intro { margin-bottom: 16px; }
.tdmm-intro-heading { display: block; font-size: 15px; font-weight: 700; color: #2a2a2a; margin-bottom: 5px; }
.tdmm-intro p { margin: 0; font-size: 14px; color: #555; line-height: 1.6; }

.tdmm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.tdmm-card {
  display: block; position: relative; height: 88px;
  border-radius: 6px; overflow: hidden;
  background-color: #c5d5c5; background-size: cover; background-position: center;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.tdmm-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.68) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
  transition: background 0.22s ease; z-index: 1; border-radius: inherit;
}
.tdmm-card:hover::before { background: linear-gradient(to top, rgba(127,95,67,.85) 0%, rgba(127,95,67,.45) 55%, transparent 100%); }
.tdmm-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(97,58,46,.30); }
.tdmm-card-label {
  position: absolute; bottom: 9px; left: 11px; right: 11px; z-index: 2;
  color: #fff; font-size: 12px; font-weight: 600; line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.tdmm-footer { margin-top: 14px; text-align: right; }
.tdmm-cta-btn {
  display: inline-block; padding: 9px 22px;
  background: #7f5f43; color: #fff !important;
  font-size: 13px; font-weight: 600; border-radius: 5px;
  text-decoration: none !important; transition: background 0.2s;
}
.tdmm-cta-btn:hover { background: #5e3c31 !important; }

/* Na mobile — mega menu ukryte */
@media (max-width: 1024px) {
  li.tdmm-oferta .tdmm-dropdown { display: none !important; }
  li.tdmm-oferta > a::after { display: none; }
}

/* ─── 18. PASKI KATEGORII [tdmm_oferta_strips] ───────────────────────────── */
.tdmm-strips-wrap { width: 100%; padding-bottom: 16px; }
.tdmm-strips-intro { margin-bottom: 32px; text-align: center; }
.tdmm-strips-intro h2 { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; color: #5e3c31; margin: 0 0 10px; font-family: 'Playfair Display', serif; }
.tdmm-strips-intro p { font-size: 15px; color: #555; line-height: 1.7; margin: 0 auto; max-width: 760px; }

.tdmm-strips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 768px) { .tdmm-strips { grid-template-columns: 1fr; } }

.tdmm-strip {
  display: flex; flex-direction: row; height: 150px; border-radius: 8px; overflow: hidden;
  text-decoration: none !important; position: relative; background: #f8f5f0;
  cursor: pointer; transition: box-shadow 0.25s ease;
}
.tdmm-strip:hover { box-shadow: 0 6px 20px rgba(94,60,49,.18); }
.tdmm-strip::before { content: ''; position: absolute; inset: 0; background-image: var(--strip-cover); background-size: cover; background-position: center; clip-path: inset(0 0 0 50%); transition: clip-path 0.4s ease; z-index: 3; }
.tdmm-strip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 50%, transparent 100%); clip-path: inset(0 0 0 50%); transition: clip-path 0.4s ease; z-index: 4; pointer-events: none; }
.tdmm-strip:hover::before { clip-path: inset(0); }
.tdmm-strip:hover::after  { clip-path: inset(0); }

.tdmm-strip-cutout { width: 22%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 12px; background: #fff; position: relative; z-index: 5; }
.tdmm-strip-cutout img { max-height: 126px; max-width: 100%; width: auto; height: auto; object-fit: contain; }

.tdmm-strip-info { width: 28%; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; padding: 16px 18px; background: #7f5f43; position: relative; z-index: 5; transition: background 0.35s ease; }
.tdmm-strip:hover .tdmm-strip-info { background: transparent; }
.tdmm-strip-name { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; display: block; margin-bottom: 5px; }
.tdmm-strip-count { font-size: 12px; color: rgba(255,255,255,.72); display: block; }

/* ─── 19. FAQ [tdmm_oferta_bottom] ─────────────────────────────────────────── */
.tdmm-bottom { display: flex; flex-direction: column; gap: 48px; padding: 40px 0 20px; }
.tdmm-faq { width: 100%; }
.tdmm-faq-heading { font-size: clamp(18px,2vw,23px); font-weight: 700; color: #2a2a2a; margin: 0 0 20px; }
.tdmm-faq-toggle { display: none; }
.tdmm-faq-item { border-bottom: 1px solid #e8e0d8; }
.tdmm-faq-q { display:flex;justify-content:space-between;align-items:center;padding:16px 4px;font-size:15px;font-weight:600;color:#2a2a2a;cursor:pointer;gap:16px;user-select:none;transition:color .2s; }
.tdmm-faq-q:hover { color: #7f5f43; }
.tdmm-faq-icon { width:20px;height:20px;flex-shrink:0;position:relative; }
.tdmm-faq-icon::before,.tdmm-faq-icon::after { content:'';position:absolute;background:currentColor;border-radius:2px;transition:transform .25s,opacity .25s; }
.tdmm-faq-icon::before { width:20px;height:2px;top:9px;left:0; }
.tdmm-faq-icon::after  { width:2px;height:20px;left:9px;top:0; }
.tdmm-faq-a { max-height:0;overflow:hidden;transition:max-height .35s ease; }
.tdmm-faq-a > div { padding:0 4px 18px;font-size:14px;color:#555;line-height:1.75; }
.tdmm-faq-toggle:checked + .tdmm-faq-q { color: #7f5f43; }
.tdmm-faq-toggle:checked + .tdmm-faq-q .tdmm-faq-icon::after { transform:rotate(90deg);opacity:0; }
.tdmm-faq-toggle:checked ~ .tdmm-faq-a { max-height: 400px; }

/* ─── 20. O FIRMIE [tdmm_o_firmie] ─────────────────────────────────────────── */
.tdmm-about { max-width:1100px;margin:0 auto;padding:0 16px; }
.tdmm-about-intro { display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;margin-bottom:64px; }
.tdmm-about-h2 { font-size:clamp(22px,2.6vw,30px);font-weight:700;color:#613a2e;margin:0 0 20px;line-height:1.25; }
.tdmm-about-text p { font-size:15px;line-height:1.75;margin:0 0 14px;color:#3a3a3a; }
.tdmm-about-photo { border-radius:10px;overflow:hidden;background:#f0ebe4;aspect-ratio:4/3; }
.tdmm-about-photo img { width:100%;height:100%;object-fit:cover;display:block; }
.tdmm-about-pillars { display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-bottom:56px; }
.tdmm-about-pillar { background:#faf7f4;border:1px solid #ede5da;border-radius:10px;padding:28px 24px; }
.tdmm-pillar-icon { width:52px;height:52px;background:#7f5f43;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:16px;color:#fff; }
.tdmm-about-pillar h3 { font-size:15px;font-weight:700;color:#613a2e;margin:0 0 8px; }
.tdmm-about-pillar p { font-size:14px;line-height:1.65;color:#555;margin:0; }
.tdmm-about-cta { display:flex;gap:16px;justify-content:center;flex-wrap:wrap;padding-bottom:16px; }
.tdmm-about-btn { display:inline-block;padding:12px 28px;border-radius:6px;font-size:15px;font-weight:600;text-decoration:none !important;transition:background .2s,color .2s,border-color .2s; }
.tdmm-about-btn--primary { background:#7f5f43;color:#fff !important;border:2px solid #7f5f43; }
.tdmm-about-btn--primary:hover { background:#613a2e;border-color:#613a2e; }
.tdmm-about-btn--outline { background:transparent;color:#7f5f43 !important;border:2px solid #7f5f43; }
.tdmm-about-btn--outline:hover { background:#7f5f43;color:#fff !important; }
@media (max-width:860px) {
  .tdmm-about-intro { grid-template-columns:1fr;gap:32px; }
  .tdmm-about-photo { order:-1; }
  .tdmm-about-pillars { grid-template-columns:1fr; }
}

/* ─── 21. HEADER SCROLLED ────────────────────────────────────────────────── */
.site-header--scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

/* ─── 22. ADMIN BAR offset ───────────────────────────────────────────────── */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ─── 23. STRONA GŁÓWNA — Gutenberg Content ─────────────────────────────── */
.front-page .wp-block-group,
.front-page .wp-block-cover { /* Gutenberg bloki działają normalnie */ }

/* ─── 24. WOOCOMMERCE SHOP PAGE ──────────────────────────────────────────── */
.woocommerce-page .content-wrap { max-width: 1320px; }

/* WooCommerce shop — breadcrumb */
.woocommerce .woocommerce-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
  padding: 12px 0;
}
.woocommerce .woocommerce-breadcrumb a { color: #888; text-decoration: none; }
.woocommerce .woocommerce-breadcrumb a:hover { color: #5e3c31; }

/* ─── 24b. HOTSPOT SLOT na stronie głównej — ograniczenie wysokości ─────── */
/* Slot pion1 ma obraz 9:16 (portretowy) → bez max-height zajmuje ~4500px  */
.front-page .tdhs-wrap {
  max-height: 85vh;
  overflow: hidden;
  position: relative;
}
.front-page .tdhs-wrap .tdhs-image {
  width: 100% !important;
  height: 85vh !important;
  object-fit: cover !important;
  object-position: center top !important;
}

/* ─── 25. STRONA GŁÓWNA — "Zobacz wszystkie produkty" ───────────────────── */
.home-see-all {
  text-align: center;
  padding: 28px 24px;
}

/* ─── 26. STRONA GŁÓWNA — Sekcje produktów ──────────────────────────────── */
.td-home-section {
  padding: 60px 0 80px;
  background: #fff;
}
.td-home-section:nth-of-type(even) {
  background: #faf7f4;
}
.td-home-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}
.td-home-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 36px;
}
.td-home-section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: #613a2e;
  text-align: center;
  margin: 0;
}
.td-home-section__cta {
  flex-shrink: 0;
  display: inline-block;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4a2e24;
  border: 2px solid #4a2e24;
  border-radius: 3px;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.td-home-section__cta:hover {
  background: #4a2e24;
  color: #fff;
  text-decoration: none;
}

/* Grid kart produktów */
.td-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ─── 26b. SPLIT — obraz + produkty ─────────────────────────────────────── */
.td-home-section--split {
  padding: 0;
  background: #fff !important;
  overflow: hidden;
  margin-bottom: 60px;
}
.td-home-section--split .td-home-section__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 480px;
}
.td-home-section--split .td-home-section__content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.td-home-section--split .td-home-section__header {
  margin-bottom: 28px;
}
.td-home-section--split .td-home-section__title {
  text-align: left;
}
.td-home-section--split .td-products-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.td-home-section__image {
  position: relative;
  overflow: hidden;
}
.td-home-section__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Hotspot shortcode wewnątrz kolumny split
   bottom:0 — obraz wyrównany do DOŁU kolumny; górna część portretu
   jest przycinana przez overflow:hidden na .td-home-section__image.
   Piny Y% odnoszą się do pełnej wysokości .tdhs-wrap (= obraz height:auto),
   więc trafiają dokładnie tam gdzie zaznaczono w edytorze. */
.td-home-section__image .tdhs-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-height: none;
  overflow: visible;
}
/* 3-klasowa swoistość + późniejsza pozycja bije !important
   z .front-page .tdhs-wrap .tdhs-image (object-fit:cover) */
.td-home-section__image .tdhs-wrap .tdhs-image {
  display: block;
  width: 100% !important;
  height: auto !important;
  object-fit: unset !important;
  object-position: unset !important;
}
/* Hint "kliknij kółka" zawsze nad obrazem — obraz dostaje z-index:1,
   hint ::after ma z-index:50 w frontend.css pluginu */
.tdhs-wrap .tdhs-image {
  position: relative;
  z-index: 1;
}
.td-product-card {
  background: #fff;
  border: 1px solid #e8e0d8;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.td-product-card:hover {
  box-shadow: 0 4px 18px rgba(97, 58, 46, 0.13);
}
.td-product-card__img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f0eb;
}
.td-product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s;
}
/* Broken image fallback — ukryj alt-text, zostaw tło */
.td-product-card__img-wrap img[src=""],
.td-product-card__img-wrap img:not([src]) {
  opacity: 0;
}
.td-product-card:hover .td-product-card__img-wrap img {
  transform: scale(1.04);
}
.td-product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.td-product-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.td-product-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
.td-product-card__title a {
  color: #2c1f1a;
  text-decoration: none;
}
.td-product-card__title a:hover {
  color: #613a2e;
}
.td-product-card__price {
  font-size: 15px;
  font-weight: 700;
  color: #613a2e;
}
.td-product-card__price del {
  color: #999;
  font-weight: 400;
  margin-right: 4px;
  font-size: 13px;
}
.td-product-card__btn {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  background: #613a2e;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.td-product-card__btn:hover {
  background: #7f5f43;
}

/* ─── 27. STRONA GŁÓWNA — Dlaczego Tom-Drew (trust section) ─────────────── */
.home-why {
  padding: 64px 0;
  background: #faf7f4;
  margin-bottom: 30px;
}
.home-why__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.home-why__card {
  text-align: center;
  padding: 36px 24px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e0d8;
  transition: box-shadow 0.2s;
}
.home-why__card:hover {
  box-shadow: 0 6px 20px rgba(97, 58, 46, 0.10);
}
.home-why__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  color: #613a2e;
}
.home-why__icon svg {
  width: 100%;
  height: 100%;
}
.home-why__card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #2c1f1a;
  margin: 0 0 10px;
}
.home-why__card-text {
  font-size: 14px;
  color: #5a5050;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 1024px) {
  .td-home-section--split .td-home-section__inner { grid-template-columns: 1fr; }
  .td-home-section--split .td-home-section__image { min-height: 320px; position: relative; }
  .td-home-section--split .td-home-section__img   { position: relative; inset: auto; height: 320px; width: 100%; }
  .td-home-section--split .td-home-section__content { padding: 40px 24px; max-width: 100%; }
  .td-home-section--split .td-home-section__title  { text-align: center; }
  /* na mobile obraz zawsze na górze */
  .td-home-section--img-left  .td-home-section__image { order: 0; }
  .td-home-section--img-left  .td-home-section__content { order: 1; }
  .td-home-section--img-right .td-home-section__image { order: 0; }
  .td-home-section--img-right .td-home-section__content { order: 1; }
}
@media (max-width: 900px) {
  .td-products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .td-home-section  { padding: 40px 0; }
  .home-why         { padding: 44px 0; }
}
@media (max-width: 480px) {
  .td-products-grid { gap: 12px; }
  .td-home-section--split .td-products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── 28. HOTSPOT SPLIT ──────────────────────────────────────────────────── */
.td-hotspot-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  min-height: 540px;
}
.td-hotspot-split__image {
  overflow: hidden;
  max-height: 540px;
  position: relative;
}
.td-hotspot-split__image .tdhs-wrap {
  max-height: 540px;
  overflow: hidden;
}
.td-hotspot-split__image .tdhs-image {
  display: block;
  width: 100%;
  height: auto;
}
.td-hotspot-split__promo {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #faf7f4;
}
.td-hotspot-split__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.8vw, 38px);
  color: #5e3c31;
  line-height: 1.2;
  margin: 0 0 24px;
}
.td-hotspot-split__text {
  font-size: 16px;
  line-height: 1.75;
  color: #4a3a35;
  margin: 0 0 32px;
}
.td-hotspot-split__cta {
  display: inline-block;
  align-self: flex-start;
  padding: 14px 32px;
  background: #5e3c31;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
}
.td-hotspot-split__cta:hover { background: #4a2e24; color: #fff; }

@media (max-width: 900px) {
  .td-hotspot-split { grid-template-columns: 1fr; }
  .td-hotspot-split__image { max-height: 380px; }
  .td-hotspot-split__image .tdhs-wrap { max-height: 380px; }
  .td-hotspot-split__promo { padding: 40px 24px; }
}

/* ─── Hover image — drugi obraz z galerii pokazywany przy hover ─────────── */

/* Wrapper dla WC loop (sklep, kategorie) */
.td-product-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.td-product-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover image — dotyczy obu kontekstów: .td-product-card i WC loop */
.td-hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

/* Pokaż hover image po najechaniu */
.td-product-card:hover .td-hover-img,
.woocommerce ul.products li.product:hover .td-hover-img {
  opacity: 1;
}

/* ─── Shop layout ────────────────────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.shop-sidebar {
  position: sticky;
  top: 150px;           /* margines od góry — powyżej nawigacji */
  background: #fff;
  border: 1px solid #e8e0d8;
  border-radius: 6px;
  font-size: 14px;
}

/* ── Sidebar: browser kategorii ze stripami ──────────────────────────────── */
.td-cat-browser {
  background: #613a2e;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.td-cat-browser__details { margin: 0; }

.td-cat-browser__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.td-cat-browser__summary::-webkit-details-marker { display: none; }

.td-cat-browser__arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.td-cat-browser__details[open] .td-cat-browser__arrow {
  transform: rotate(180deg);
}

.td-cat-browser__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px 10px;
}

/* Pojedynczy strip kategorii */
.td-cat-strip {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  border-radius: 5px;
  overflow: hidden;
  text-decoration: none !important;
  background: rgba(255,255,255,.06);
  transition: background 0.2s;
}

/* Strip z cover image */
.td-cat-strip--img {
  background-image: var(--sc-img);
  background-size: cover;
  background-position: center;
}

/* Ciemny overlay — zawsze widoczny dla czytelności tekstu */
.td-cat-strip--img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(74,46,36,.82) 0%,
    rgba(74,46,36,.55) 55%,
    rgba(0,0,0,.15) 100%
  );
  transition: background 0.28s ease;
  z-index: 1;
}

/* Hover — brąz ustępuje, obraz bardziej widoczny */
.td-cat-strip--img:hover::before {
  background: linear-gradient(
    90deg,
    rgba(97,58,46,.6) 0%,
    rgba(97,58,46,.28) 55%,
    rgba(0,0,0,.05) 100%
  );
}

/* Strip bez obrazu */
.td-cat-strip:hover {
  background: rgba(255,255,255,.14);
}

/* "Wszystkie produkty" — bez obrazu, ale z lewą bordurą */
.td-cat-strip--all {
  border-left: 3px solid rgba(255,255,255,.5);
}
.td-cat-strip--all:hover {
  border-left-color: #fff;
  background: rgba(255,255,255,.12);
}

/* Tekst nazwy */
.td-cat-strip__name {
  position: relative;
  z-index: 2;
  padding: 0 14px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 5px rgba(0,0,0,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Shop header: tytuł + sortowanie w jednym wierszu ──────────────────── */
.td-shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.td-shop-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.td-shop-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: #613a2e;
  margin: 0;
}
/* Ukryj domyślny tytuł WooCommerce (teraz w td-shop-header) */
.shop-main .page-description .page-title,
.shop-main h1.page-title:not(.td-shop-title) {
  display: none;
}
/* Sortowanie — wymuś inline */
.td-shop-header .woocommerce-ordering {
  margin: 0;
  float: none;
}

/* ── Toggle widoku Kategorie / Produkty ─────────────────────────────────── */
.td-view-toggle {
  display: flex;
  background: #f5f0eb;
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
  border: 1px solid #e0d5cc;
}
.td-view-toggle__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #7a6055;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.td-view-toggle__btn:hover {
  background: rgba(97,58,46,.08);
  color: #4a2e24;
}
.td-view-toggle__btn.is-active {
  background: #4a2e24;
  color: #fff;
}

/* ── Siatka kafelków kategorii ──────────────────────────────────────────── */
.td-cat-grid {
  margin-bottom: 32px;
}
.td-cat-grid[hidden] { display: none; }

.td-cat-grid__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.td-cat-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  background: #c5c5c5;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.td-cat-tile--img {
  background-image: var(--sc-img);
  background-size: cover;
  background-position: center;
}
/* Gradient overlay */
.td-cat-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(74,46,36,.88) 0%,
    rgba(74,46,36,.4) 50%,
    transparent 100%
  );
  transition: background 0.25s ease;
  z-index: 1;
}
.td-cat-tile:hover::before {
  background: linear-gradient(
    to top,
    rgba(97,58,46,.92) 0%,
    rgba(97,58,46,.55) 60%,
    transparent 100%
  );
}
.td-cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74,46,36,.28);
}
.td-cat-tile__name {
  position: relative;
  z-index: 2;
  padding: 12px 14px;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

@media (max-width: 600px) {
  .td-cat-grid__inner { grid-template-columns: 1fr; }
  .td-cat-tile { height: 110px; }
}

/* ─── Filter form ────────────────────────────────────────────────────────── */
.td-shop-filter {
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.td-sf-section {
  padding: 14px 0;
  border-bottom: 1px solid #f0ebe5;
}
.td-sf-section:first-child { padding-top: 0; }
.td-sf-section:last-of-type { border-bottom: none; }
.td-sf-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7f5f43;
  margin: 0 0 10px;
}

/* Szukaj */
.td-sf-search {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #d8cfc7;
  border-radius: 4px;
  overflow: visible;
  background: #faf7f4;
}
.td-sf-search__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-size: 13px;
  color: #2c1f1a;
  outline: none;
  min-width: 0;
}
.td-sf-search__input::placeholder { color: #aaa; }
.td-sf-search__btn {
  background: none;
  border: none;
  padding: 8px 10px;
  cursor: pointer;
  color: #7f5f43;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.td-sf-search__btn:hover { color: #613a2e; }

/* Autocomplete dropdown */
.td-sf-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: -1px; right: -1px;
  background: #fff;
  border: 1px solid #d8cfc7;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  list-style: none;
  margin: 0; padding: 4px 0;
  z-index: 200;
}
.td-sf-suggest li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  text-decoration: none;
  color: #2c1f1a;
  font-size: 13px;
  transition: background 0.12s;
}
.td-sf-suggest li a:hover,
.td-sf-suggest li a:focus { background: #faf7f4; outline: none; }
.td-sf-suggest li a img {
  width: 36px; height: 36px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.td-sug-nothumb {
  width: 36px; height: 36px;
  background: #f0ebe5;
  border-radius: 3px;
  flex-shrink: 0;
}
.td-sug-title { flex: 1; line-height: 1.3; }

/* Cena — dual slider */
.td-ps-wrap {
  position: relative;
  height: 20px;
  margin: 10px 4px 14px;
}
.td-ps-track {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  left: 0; right: 0;
  height: 4px;
  background: #e8e0d8;
  border-radius: 2px;
  pointer-events: none;
}
.td-ps-fill {
  position: absolute;
  height: 100%;
  background: #613a2e;
  border-radius: 2px;
}
.td-ps-range {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 100%;
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  height: 20px;
}
.td-ps-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  background: #fff;
  border: 2px solid #613a2e;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: border-color .15s;
}
.td-ps-range::-webkit-slider-thumb:hover { border-color: #4a2e24; }
.td-ps-range::-moz-range-thumb {
  width: 16px; height: 16px;
  background: #fff;
  border: 2px solid #613a2e;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.td-sf-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.td-sf-price__input {
  width: 0; flex: 1;
  border: 1px solid #d8cfc7;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
  background: #faf7f4;
  color: #2c1f1a;
  outline: none;
  -moz-appearance: textfield;
  text-align: center;
}
.td-sf-price__input::-webkit-outer-spin-button,
.td-sf-price__input::-webkit-inner-spin-button { -webkit-appearance: none; }
.td-sf-price__input:focus { border-color: #7f5f43; }
.td-sf-price__sep { color: #bbb; font-size: 13px; flex-shrink: 0; }

/* Checkbox na stanie */
.td-sf-checkbox {
  display: flex; align-items: center; gap: 9px;
  cursor: pointer; font-size: 13px; color: #2c1f1a;
  user-select: none;
}
.td-sf-checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #613a2e;
  cursor: pointer; flex-shrink: 0;
}

/* Kategorie — BEZ scrollbara */
.td-sf-cats {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 1px;
}
.td-sf-radio {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px; border-radius: 4px;
  cursor: pointer; font-size: 13px; color: #2c1f1a;
  user-select: none; transition: background 0.15s;
}
.td-sf-radio:hover { background: #faf7f4; }
.td-sf-radio input[type="radio"] {
  accent-color: #613a2e; flex-shrink: 0; cursor: pointer;
}
.td-sf-cats__count {
  margin-left: auto; font-size: 11px; color: #bbb;
}

/* Wymiary — dual range (reuse .td-ps-wrap styles) */
.td-sf-dim { margin-bottom: 16px; }
.td-sf-dim:last-child { margin-bottom: 0; }
.td-sf-dim__label {
  display: block;
  font-size: 12px; color: #888;
  margin-bottom: 6px;
}
.td-sf-dim .td-dim-wrap { margin-bottom: 6px; }

/* Przyciski */
.td-sf-actions {
  display: flex; gap: 8px; padding-top: 14px;
}
.td-sf-btn {
  flex: 1; padding: 9px 12px; border-radius: 4px;
  font-size: 13px; font-weight: 600; text-align: center;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.td-sf-btn--apply { background: #613a2e; color: #fff; border: none; }
.td-sf-btn--apply:hover { background: #4a2e24; }
.td-sf-btn--reset { background: #f5f0eb; color: #613a2e; border: 1px solid #d8cfc7; }
.td-sf-btn--reset:hover { background: #ece5de; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .shop-layout { grid-template-columns: 220px 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .td-shop-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .td-sf-actions { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .td-shop-filter { grid-template-columns: 1fr; }
}

/* ─── Sidebar — motyw brązowy (#613a2e) ──────────────────────────────────── */
:root {
  --sb-bg:        #613a2e;
  --sb-bg-dark:   #4a2e24;
  --sb-border:    rgba(255,255,255,.13);
  --sb-hover:     rgba(255,255,255,.09);
}

.shop-sidebar {
  background: var(--sb-bg);
  border-color: transparent;
  color: #fff;
}

/* Tytuły sekcji — białe, trochę większe */
.shop-sidebar .td-sf-title {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* Separatory sekcji */
.shop-sidebar .td-sf-section {
  border-bottom-color: var(--sb-border);
}

/* ── Szukaj — biały input ────────────────────────────────────────────────── */
.shop-sidebar .td-sf-search {
  background: #fff;
  border-color: rgba(255,255,255,.3);
}
.shop-sidebar .td-sf-search__input {
  color: #2c1f1a;
  background: transparent;
}
.shop-sidebar .td-sf-search__input::placeholder {
  color: #aaa;
}
.shop-sidebar .td-sf-search__btn {
  color: #7f5f43;
}
.shop-sidebar .td-sf-search__btn:hover {
  color: #613a2e;
}
/* Autocomplete dropdown — biały, floating */
.shop-sidebar .td-sf-suggest {
  background: #fff;
  border-color: #d8cfc7;
  color: #2c1f1a;
}

/* ── Cena — suwaki domyślne (niebieski), białe inputy ───────────────────── */
.shop-sidebar .td-ps-track {
  background: rgba(255,255,255,.25);
}
/* Zostawiamy domyślny kolor thumba przeglądarki (niebieski) — bez nadpisywania */
.shop-sidebar .td-ps-fill {
  background: rgba(255,255,255,.5);
}
.shop-sidebar .td-sf-price__input {
  background: #fff;
  border-color: rgba(255,255,255,.3);
  color: #2c1f1a;
}
.shop-sidebar .td-sf-price__input::placeholder {
  color: #aaa;
}
.shop-sidebar .td-sf-price__sep {
  color: rgba(255,255,255,.5);
}

/* ── Na stanie ──────────────────────────────────────────────────────────── */
.shop-sidebar .td-sf-checkbox {
  color: #fff;
}

/* ── Kategorie — białe nazwy ─────────────────────────────────────────────── */
.shop-sidebar .td-sf-cat-check {
  color: #fff;
}
.shop-sidebar .td-sf-cat-check:hover {
  background: var(--sb-hover);
  border-radius: 4px;
}
.shop-sidebar .td-sf-cats__count {
  color: rgba(255,255,255,.45);
}

/* ── Wymiary — białe etykiety na brązowym tle sidebaru ──────────────────── */
.shop-sidebar .td-sf-dim__label {
  color: rgba(255,255,255,.65);
}

/* ── Przyciski ──────────────────────────────────────────────────────────── */
.shop-sidebar .td-sf-btn--apply {
  background: #fff;
  color: var(--sb-bg);
  border: none;
}
.shop-sidebar .td-sf-btn--apply:hover {
  background: #f5f0eb;
}
.shop-sidebar .td-sf-btn--reset {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.shop-sidebar .td-sf-btn--reset:hover {
  background: var(--sb-hover);
  border-color: rgba(255,255,255,.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   KARTA PRODUKTU — trust badges + notify stock + related
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Trust badges ──────────────────────────────────────────────────────── */
.td-trust-badges {
  display: flex;
  gap: 20px;
  margin: 20px 0 24px;
  padding: 16px 18px;
  background: #faf7f4;
  border-radius: 6px;
  border: 1px solid #ede5de;
}
.td-trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}
.td-trust-badge svg {
  flex-shrink: 0;
  color: #613a2e;
  margin-top: 2px;
}
.td-trust-badge__text {
  font-size: 12.5px;
  font-weight: 700;
  color: #2c1a14;
  line-height: 1.3;
}
.td-trust-badge__text small {
  display: block;
  font-weight: 400;
  color: #7a6055;
  font-size: 11.5px;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .td-trust-badges { flex-direction: column; gap: 12px; }
}

/* ── Notify back-in-stock ──────────────────────────────────────────────── */
.td-notify-stock {
  margin: 18px 0;
  padding: 18px 20px;
  background: #fdf7f0;
  border: 1.5px solid #d4a574;
  border-radius: 6px;
}
.td-notify-stock__info {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #4a2e24;
  line-height: 1.5;
}
.td-notify-stock__form {
  display: flex;
  gap: 8px;
}
.td-notify-stock__input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid #c9a07a;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s;
}
.td-notify-stock__input:focus { border-color: #613a2e; }
.td-notify-stock__btn {
  padding: 9px 18px;
  background: #4a2e24;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.td-notify-stock__btn:hover { background: #613a2e; }
.td-notify-stock__feedback {
  margin: 10px 0 0;
  font-size: 13px;
  color: #4a7c3f;
  font-weight: 600;
}
@media (max-width: 500px) {
  .td-notify-stock__form { flex-direction: column; }
}

/* ── Niski stan magazynowy ─────────────────────────────────────────────── */
.td-low-stock {
  display: flex;
  align-items: center;
  margin: 8px 0 14px;
  padding: 9px 14px;
  background: #fff8ee;
  border: 1.5px solid #e6a830;
  border-radius: 5px;
  font-size: 13.5px;
  color: #7a4e00;
  line-height: 1.4;
}
.td-low-stock strong { color: #c0600a; }

/* ── Sticky Add-to-Cart bar ────────────────────────────────────────────── */
.td-sticky-atc {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  background: #fff;
  border-top: 2px solid #4a2e24;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  will-change: transform;
}
.td-sticky-atc.is-visible { transform: translateY(0); }

.td-sticky-atc__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.td-sticky-atc__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.td-sticky-atc__name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.td-sticky-atc__price {
  font-size: 15px;
  font-weight: 700;
  color: #4a2e24;
}
.td-sticky-atc__btn {
  flex-shrink: 0;
  padding: 11px 28px;
  background: #4a2e24 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s !important;
}
.td-sticky-atc__btn:hover { background: #613a2e !important; }

@media (max-width: 600px) {
  .td-sticky-atc__name { display: none; }
  .td-sticky-atc__price { font-size: 14px; }
}

/* ── Produkty powiązane — 4 kolumny ───────────────────────────────────── */
.related.products > h2,
.upsells.products > h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2vw, 26px);
  color: #613a2e;
  margin: 0 0 24px;
}
.related.products ul.products,
.upsells.products ul.products {
  grid-template-columns: repeat(4, 1fr) !important;
  align-items: stretch !important; /* równa wysokość wierszy */
}

/* Karta — flex column żeby przycisk zawsze przy dolnej krawędzi */
.related.products ul.products li.product,
.upsells.products ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
}

/* Pchnij cenę i przycisk na dół */
.related.products ul.products li.product .price,
.upsells.products ul.products li.product .price {
  margin-top: auto;
}

/* Tytuł — max 2 linie, reszta ucięta */
.related.products ul.products li.product .woocommerce-loop-product__title,
.upsells.products ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em; /* zapewnia identyczną wysokość nawet dla krótkich nazw */
}
@media (max-width: 900px) {
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG — archiwum i pojedynczy post
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Wspólna szerokość ── */
.td-blog-archive__inner,
.td-post-breadcrumb__inner,
.td-post-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════
   ARCHIWUM
══════════════ */

.td-blog-archive { padding-bottom: 80px; }

/* Nagłówek */
.td-blog-header {
  text-align: center;
  padding: 44px 0 28px;
  border-bottom: 1px solid #e8ddd6;
  margin-bottom: 28px;
}
.td-blog-header__label {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #8a5c4e; font-weight: 700; margin-bottom: 10px;
}
.td-blog-header__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px; color: #1a1a1a; margin-bottom: 10px;
}
.td-blog-header__sub {
  font-size: 15px; color: #7a6d67;
  max-width: 500px; margin: 0 auto;
}

/* Kategorie pills */
.td-blog-cats {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 36px;
}
.td-blog-cat-pill {
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: 1.5px solid #d5c9c2; background: transparent; cursor: pointer;
  transition: all .2s; color: #7a6d67; text-decoration: none;
}
.td-blog-cat-pill:hover,
.td-blog-cat-pill.is-active {
  background: #613a2e; color: #fff; border-color: #613a2e;
}

/* Empty */
.td-blog-empty { text-align: center; padding: 60px 0; color: #7a6d67; font-size: 16px; }

/* Featured post */
.td-blog-featured {
  display: grid; grid-template-columns: 1.1fr 1fr;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(94,60,49,.1);
  margin-bottom: 40px; min-height: 400px;
}
.td-blog-featured__img {
  position: relative; overflow: hidden; min-height: 400px;
  background: #c2a98b;
}
.td-blog-featured__img img,
.td-blog-featured__img-el {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.td-blog-featured__img-placeholder {
  width: 100%; height: 100%; position: absolute; inset: 0;
  background: linear-gradient(160deg, #c2a98b 0%, #7a5440 100%);
}
.td-blog-featured__badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: #613a2e; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 11px; border-radius: 3px;
}
.td-blog-featured__content {
  background: #f5f1ee;
  padding: 40px 40px 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.td-blog-featured__meta {
  display: flex; gap: 12px; align-items: center; margin-bottom: 14px;
}
.td-blog-featured__cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.4px; color: #613a2e; text-decoration: none;
}
.td-blog-featured__cat:hover { color: #4a2e24; }
.td-blog-featured__date { font-size: 12px; color: #7a6d67; }
.td-blog-featured__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px; line-height: 1.3; color: #1a1a1a; margin-bottom: 14px;
}
.td-blog-featured__title a { color: inherit; text-decoration: none; }
.td-blog-featured__title a:hover { color: #613a2e; }
.td-blog-featured__excerpt {
  font-size: 15px; line-height: 1.7; color: #7a6d67; margin-bottom: 28px; flex: 1;
}
.td-blog-featured__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.td-blog-featured__author {
  display: flex; align-items: center; gap: 10px;
}
.td-blog-featured__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #613a2e; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.td-blog-featured__author-name { font-size: 13px; font-weight: 600; }
.td-blog-featured__author-role { font-size: 11px; color: #7a6d67; }
.td-blog-cta {
  padding: 10px 20px; background: #613a2e; color: #fff;
  border-radius: 5px; font-size: 13px; font-weight: 700;
  white-space: nowrap; transition: background .2s; text-decoration: none;
}
.td-blog-cta:hover { background: #4a2e24; color: #fff; }

/* Grid label */
.td-blog-grid-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #7a6d67; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.td-blog-grid-label::after {
  content: ''; flex: 1; height: 1px; background: #e8ddd6;
}

/* Post grid */
.td-blog-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
/* Karta standardowa: 2 z 6 kolumn = 1/3 szerokości → 3 w rzędzie */
.td-post-card { grid-column: span 2; }

/* Post card */
.td-post-card {
  border-radius: 8px; overflow: hidden;
  border: 1px solid #e8ddd6; background: #fff;
  display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.td-post-card:hover {
  box-shadow: 0 8px 24px rgba(94,60,49,.13);
  transform: translateY(-3px);
}
.td-post-card__img-wrap {
  display: block; position: relative; overflow: hidden;
  height: 200px; flex-shrink: 0; background: #c2a98b;
}
.td-post-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.td-post-card:hover .td-post-card__img-wrap img { transform: scale(1.03); }
.td-post-card__img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #d9c4b3 0%, #a0785c 100%);
}
.td-post-card__cat-badge {
  position: absolute; bottom: 10px; left: 10px;
  background: #613a2e; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 4px 9px; border-radius: 3px;
}
.td-post-card__body {
  padding: 18px 20px 16px; flex: 1; display: flex; flex-direction: column;
}
.td-post-card__meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 11px; color: #7a6d67; margin-bottom: 8px;
}
.td-post-card__meta-sep { color: #d5c9c2; }
.td-post-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px; line-height: 1.35; color: #1a1a1a; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.td-post-card__title a { color: inherit; text-decoration: none; }
.td-post-card:hover .td-post-card__title a { color: #613a2e; }
.td-post-card__excerpt {
  font-size: 13px; line-height: 1.65; color: #7a6d67; flex: 1; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.td-post-card__footer {
  border-top: 1px solid #f5f1ee; padding-top: 10px;
  display: flex; justify-content: flex-end;
}
.td-post-card__link {
  font-size: 12px; font-weight: 700; color: #613a2e;
  display: flex; align-items: center; gap: 4px; text-decoration: none;
}
.td-post-card__link svg { transition: transform .2s; }
.td-post-card:hover .td-post-card__link svg { transform: translateX(3px); }

/* Karta szeroka: full-width (wszystkie 6 kolumn) */
.td-post-card--wide {
  grid-column: span 6;
  flex-direction: row;
}
.td-post-card--wide .td-post-card__img-wrap {
  width: 360px; height: auto; flex-shrink: 0; min-height: 220px; border-radius: 0;
}
.td-post-card--wide .td-post-card__body { padding: 24px 28px; }
.td-post-card--wide .td-post-card__title { font-size: 20px; -webkit-line-clamp: 2; }
.td-post-card--wide .td-post-card__excerpt { -webkit-line-clamp: 2; }

/* Karta półszeroka: 3 z 6 kolumn = 50% → 2 obok siebie w ostatnim rzędzie */
.td-post-card--half { grid-column: span 3; }

/* Paginacja */
.td-blog-pagination { padding-top: 8px; }
.td-blog-pagination .nav-links {
  display: flex; justify-content: center; gap: 6px;
}
.td-blog-pagination .page-numbers {
  width: 38px; height: 38px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1.5px solid #d5c9c2; color: #1a1a1a;
  transition: all .2s;
}
.td-blog-pagination .page-numbers:hover { border-color: #613a2e; color: #613a2e; }
.td-blog-pagination .page-numbers.current {
  background: #613a2e; color: #fff; border-color: #613a2e;
}
.td-blog-pagination .page-numbers.prev,
.td-blog-pagination .page-numbers.next { width: auto; padding: 0 14px; }
.td-blog-pagination .page-numbers.dots { border: none; background: transparent; }


/* ══════════════
   POJEDYNCZY POST
══════════════ */

/* Hero */
.td-post-hero {
  position: relative; height: 460px; overflow: hidden;
  background: linear-gradient(160deg, #c2a98b 0%, #7a5440 50%, #3e2218 100%);
  background-size: cover; background-position: center;
}
.td-post-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,7,3,.70) 0%, rgba(15,7,3,.18) 55%, transparent 100%);
}
.td-post-hero__inner {
  position: absolute; bottom: 0; left: 0; right: 0;
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px 40px;
  color: #fff;
}
.td-post-hero__cats { display: flex; gap: 8px; margin-bottom: 12px; }
.td-post-hero__cat {
  background: #613a2e; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 4px 11px; border-radius: 3px;
  text-decoration: none; transition: background .2s;
}
.td-post-hero__cat:hover { background: #4a2e24; color: #fff; }
.td-post-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px; line-height: 1.22; max-width: 720px;
  margin-bottom: 14px; color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.td-post-hero__meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.8);
}
.td-post-hero__sep { color: rgba(255,255,255,.35); }

/* Breadcrumb */
.td-post-breadcrumb { background: #faf7f4; border-bottom: 1px solid #e8ddd6; }
.td-post-breadcrumb__inner {
  display: flex; gap: 6px; align-items: center;
  font-size: 12px; color: #7a6d67;
  padding-top: 10px; padding-bottom: 10px;
}
.td-post-breadcrumb a { color: #7a6d67; text-decoration: none; }
.td-post-breadcrumb a:hover { color: #613a2e; }

/* Layout treść + sidebar */
.td-post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* ── Treść artykułu ── */
.td-post-content {}

.td-post-body { font-size: 16px; line-height: 1.8; color: #333; margin-bottom: 32px; }
.td-post-body h2 {
  font-family: 'Playfair Display', Georgia, serif; font-size: 24px;
  color: #1a1a1a; margin: 36px 0 14px;
  padding-bottom: 8px; border-bottom: 2px solid #e8ddd6;
}
.td-post-body h3 {
  font-family: 'Playfair Display', Georgia, serif; font-size: 19px;
  color: #613a2e; margin: 28px 0 10px;
}
.td-post-body p { margin-bottom: 18px; }
.td-post-body ul, .td-post-body ol { margin: 0 0 18px 22px; }
.td-post-body li { margin-bottom: 6px; line-height: 1.7; }
.td-post-body img { border-radius: 6px; margin: 8px 0 20px; max-width: 100%; }
.td-post-body blockquote {
  border-left: 4px solid #613a2e;
  margin: 28px 0; padding: 18px 24px;
  background: #f5f1ee; border-radius: 0 6px 6px 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-size: 17px; color: #613a2e; line-height: 1.6;
}
.td-post-body a { color: #613a2e; text-decoration: underline; }
.td-post-body a:hover { color: #4a2e24; }

/* Share */
.td-post-share {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 28px;
}
.td-post-share__label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #7a6d67;
}
.td-share-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: opacity .2s;
}
.td-share-btn:hover { opacity: .8; }
.td-share-btn--fb { background: #613a2e; color: #fff; }
.td-share-btn--tw { background: #1a1a1a; color: #fff; }

/* Author box */
.td-post-author {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px; margin-bottom: 32px;
  background: #f5f1ee; border-radius: 8px;
  border: 1px solid #e8ddd6;
}
.td-post-author__avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: #613a2e; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.td-post-author__name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.td-post-author__role {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
  color: #613a2e; font-weight: 700; margin-bottom: 8px;
}
.td-post-author__bio { font-size: 13px; line-height: 1.65; color: #7a6d67; }

/* Post nav */
.td-post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.td-post-nav__item {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 18px; border: 1.5px solid #d5c9c2;
  border-radius: 7px; text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.td-post-nav__item:hover { border-color: #613a2e; box-shadow: 0 2px 12px rgba(94,60,49,.1); }
.td-post-nav__item--next { text-align: right; }
.td-post-nav__dir { font-size: 10px; text-transform: uppercase; letter-spacing: 1.3px; color: #7a6d67; font-weight: 700; }
.td-post-nav__title { font-family: 'Playfair Display', Georgia, serif; font-size: 14px; color: #1a1a1a; line-height: 1.3; }
.td-post-nav__item:hover .td-post-nav__title { color: #613a2e; }

/* ── Sidebar ── */
.td-post-sidebar { position: sticky; top: 100px; }

/* Widget ogólny */
.td-sidebar-widget { margin-bottom: 24px; }
.td-sidebar-widget__head {
  background: #613a2e; color: #fff;
  padding: 10px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase;
  border-radius: 6px 6px 0 0;
  display: flex; align-items: center; gap: 7px;
}
.td-sidebar-widget__body {
  border: 1px solid #e8ddd6; border-top: none;
  border-radius: 0 0 6px 6px; overflow: hidden;
}

/* Produkty w sidebarze */
.td-sidebar-product {
  display: flex; gap: 11px; align-items: center;
  padding: 11px 13px; text-decoration: none;
  border-bottom: 1px solid #f5f1ee;
  transition: background .15s;
}
.td-sidebar-product:last-child { border-bottom: none; }
.td-sidebar-product:hover { background: #faf7f4; }
.td-sidebar-product__img {
  width: 54px; height: 54px; border-radius: 5px; flex-shrink: 0; overflow: hidden;
  background: #e8ddd6;
}
.td-sidebar-product__img img { width: 100%; height: 100%; object-fit: cover; }
.td-sidebar-product__no-img {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, #d9c4b3 0%, #a0785c 100%);
}
.td-sidebar-product__info { flex: 1; min-width: 0; }
.td-sidebar-product__name {
  font-size: 12px; font-weight: 600; color: #1a1a1a; line-height: 1.3;
  margin-bottom: 3px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.td-sidebar-product:hover .td-sidebar-product__name { color: #613a2e; }
.td-sidebar-product__price { font-size: 12px; font-weight: 700; color: #613a2e; }
.td-sidebar-product__price .woocommerce-Price-amount { font-size: 12px; }
.td-sidebar-product__arrow { color: #d5c9c2; flex-shrink: 0; transition: color .15s, transform .15s; }
.td-sidebar-product:hover .td-sidebar-product__arrow { color: #613a2e; transform: translateX(2px); }

/* CTA box */
.td-sidebar-cta {
  background: linear-gradient(135deg, #613a2e 0%, #3a2018 100%);
  padding: 22px 16px; text-align: center;
  border-radius: 8px; margin-bottom: 24px;
}
.td-sidebar-cta__icon { font-size: 32px; margin-bottom: 10px; }
.td-sidebar-cta__title {
  font-family: 'Playfair Display', Georgia, serif; font-size: 17px;
  color: #fff; margin-bottom: 8px; line-height: 1.3;
}
.td-sidebar-cta__sub {
  font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 16px; line-height: 1.6;
}
.td-sidebar-cta__btn {
  display: inline-block; padding: 9px 18px;
  background: #fff; color: #613a2e;
  border-radius: 5px; font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background .2s;
}
.td-sidebar-cta__btn:hover { background: #f5f1ee; }

/* Facebook widget */
.td-sidebar-fb { padding: 14px 16px; }
.td-sidebar-fb__text { font-size: 13px; color: #7a6d67; margin-bottom: 12px; line-height: 1.55; }
.td-sidebar-fb__btn {
  display: inline-block; padding: 8px 16px;
  background: #613a2e; color: #fff;
  border-radius: 5px; font-size: 12px; font-weight: 700; text-decoration: none;
  transition: background .2s;
}
.td-sidebar-fb__btn:hover { background: #4a2e24; }

/* Ostatnie wpisy */
.td-sidebar-recent {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 13px; text-decoration: none;
  border-bottom: 1px solid #f5f1ee; transition: background .15s;
}
.td-sidebar-recent:last-child { border-bottom: none; }
.td-sidebar-recent:hover { background: #faf7f4; }
.td-sidebar-recent__img {
  width: 50px; height: 50px; border-radius: 5px; flex-shrink: 0; overflow: hidden;
  background: #e8ddd6;
}
.td-sidebar-recent__img img { width: 100%; height: 100%; object-fit: cover; }
.td-sidebar-recent__no-img {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, #c4b898 0%, #7a6040 100%);
}
.td-sidebar-recent__title {
  font-size: 12px; font-weight: 600; color: #1a1a1a; line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.td-sidebar-recent:hover .td-sidebar-recent__title { color: #613a2e; }
.td-sidebar-recent__date { font-size: 11px; color: #7a6d67; }


/* ══════════════
   RESPONSIVE
══════════════ */
@media (max-width: 1024px) {
  .td-blog-featured { grid-template-columns: 1fr; min-height: auto; }
  .td-blog-featured__img { min-height: 280px; }
  /* tablet: 4 kolumny wirtualne, karty po 2 → 2 w rzędzie */
  .td-blog-grid { grid-template-columns: repeat(4, 1fr); }
  .td-post-card { grid-column: span 2; }
  .td-post-card--wide { grid-column: span 4; }
  .td-post-card--half { grid-column: span 2; }
  .td-post-layout { grid-template-columns: 1fr 260px; gap: 32px; }
}

@media (max-width: 768px) {
  .td-blog-header__title { font-size: 26px; }
  .td-blog-grid { grid-template-columns: 1fr; }
  .td-post-card { grid-column: span 1; }
  .td-post-card--wide { grid-column: span 1; flex-direction: column; }
  .td-post-card--half { grid-column: span 1; }
  .td-post-card--wide .td-post-card__img-wrap { width: 100%; height: 220px; }
  .td-post-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .td-post-sidebar { position: static; }
  .td-post-hero { height: 360px; }
  .td-post-hero__title { font-size: 24px; }
  .td-post-nav { grid-template-columns: 1fr; }
}
