/*
Theme Name: Spiżarnia Świętokrzyska
Theme URI: https://testsklep.niezadrogastrona.pl
Description: Motyw potomny Astra dla sklepu z tradycyjnymi wyrobami świętokrzyskimi.
Author: Niezadrogastrona
Template: astra
Version: 1.4.3
Text Domain: spizarnia-swietokrzyska
*/

:root {
  --sp-primary-brown: #3d2b1f;
  --sp-secondary-brown: #d2b48c;
  --sp-light-bg: #fdfbf7;
  --sp-accent-white: #ffffff;
  --sp-stone-950: #0c0a09;
  --sp-stone-500: #78716c;
  --sp-amber-400: #fbbf24;
  --sp-amber-800: #92400e;
}

body,
.site {
  background-color: var(--sp-light-bg) !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

/* ── Układ pionowy sklepu (sekcje jedna pod drugą) ── */
.woocommerce-shop .site-content > .ast-container,
.woocommerce-page.post-type-archive-product .site-content > .ast-container,
.tax-product_cat .site-content > .ast-container,
.home .site-content > .ast-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.woocommerce-shop #primary,
.woocommerce-page.post-type-archive-product #primary,
.tax-product_cat #primary,
.home #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

.ast-woocommerce-container,
.spizarnia-shop-stack {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 1152px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  gap: 0;
}

.ast-woocommerce-container > *,
.spizarnia-shop-stack > * {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
}

.spizarnia-shop-stack {
  padding: 0 16px;
}

@media (min-width: 922px) {
  .spizarnia-shop-stack {
    padding: 0;
  }
}

/* ── Ukryj domyślną stopkę Astry ── */
.site-footer#colophon {
  display: none !important;
}

.site-footer .site-below-footer-wrap,
.site-footer .site-primary-footer-wrap,
.site-footer .site-above-footer-wrap {
  display: none !important;
}

/* ── Pasek ogłoszeń ── */
.spizarnia-announcement {
  background: var(--sp-primary-brown);
  color: #fff;
  font-size: 12px;
  padding: 8px 16px;
}

.spizarnia-announcement__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  text-align: center;
}

.spizarnia-announcement span {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .spizarnia-announcement__inner {
    flex-direction: column;
    gap: 4px;
  }
  .spizarnia-announcement span:nth-child(2),
  .spizarnia-announcement span:nth-child(3) {
    display: none;
  }
}

/* ── Nagłówek ── */
.ast-primary-header-bar,
.ast-primary-header-bar .site-primary-header-wrap {
  background-color: var(--sp-primary-brown) !important;
  border-bottom: 1px solid var(--sp-secondary-brown) !important;
}

.ast-primary-header-bar .site-title a,
.ast-primary-header-bar .ast-site-identity .site-title {
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.15rem !important;
  line-height: 1.1 !important;
}

.ast-primary-header-bar .menu-link {
  color: #fff !important;
}

@media (min-width: 922px) {
  .ast-primary-header-bar .site-primary-header-wrap {
    position: relative;
  }

  .spizarnia-header-phone {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
  }
}

.spizarnia-title-accent {
  color: var(--sp-secondary-brown);
}

.ast-site-identity {
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.spizarnia-site-tagline {
  flex-basis: 100%;
  margin: 2px 0 0 52px !important;
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d6d3d1 !important;
  line-height: 1.3;
}

@media (max-width: 921px) {
  .spizarnia-site-tagline {
    margin-left: 0 !important;
    flex-basis: 100%;
  }

  .spizarnia-header-extras {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }

  .site-header-primary-section-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.spizarnia-logo-mark {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.ast-site-identity .site-description {
  display: block !important;
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d6d3d1 !important;
  margin-top: 2px;
}

.ast-builder-grid-row {
  align-items: center !important;
}

.site-header-primary-section-right {
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.spizarnia-header-extras {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.spizarnia-header-phone {
  display: none;
  text-decoration: none;
  color: #e7e5e4;
  font-size: 12px;
}

.spizarnia-header-phone__label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d6d3d1;
}

.spizarnia-header-phone__number {
  font-weight: 700;
  color: #fff;
}

.spizarnia-delivery-badge {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(12, 10, 9, 0.6);
  border: 1px solid #292524;
  border-radius: 2px;
  color: #e7e5e4;
  font-size: 10px;
  position: relative;
  cursor: help;
}

.spizarnia-delivery-badge strong {
  display: block;
  color: #fff;
  font-size: 11px;
}

.spizarnia-delivery-tooltip {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  padding: 14px;
  background: #0c0a09;
  border: 1px solid #292524;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 100;
  font-size: 11px;
  line-height: 1.5;
  color: #d6d3d1;
}

.spizarnia-delivery-tooltip ul {
  margin: 8px 0;
  padding-left: 0;
  list-style: none;
}

.spizarnia-delivery-tooltip li {
  margin-bottom: 4px;
}

.spizarnia-delivery-tooltip__meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #292524;
  color: var(--sp-amber-400);
  font-weight: 600;
}

.spizarnia-delivery-badge:hover .spizarnia-delivery-tooltip {
  display: block;
}

@media (min-width: 922px) {
  .spizarnia-header-phone,
  .spizarnia-delivery-badge {
    display: flex;
  }
  .ast-primary-header-bar .main-header-menu,
  .ast-primary-header-bar .ast-builder-menu-1 {
    display: none !important;
  }
}

@media (max-width: 921px) {
  .spizarnia-header-phone {
    display: flex;
    position: static;
    transform: none;
    width: 100%;
    justify-content: flex-end;
    margin-top: 4px;
  }

  .spizarnia-delivery-badge {
    display: none;
  }
}

.spizarnia-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  color: var(--sp-primary-brown) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.spizarnia-cart-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.spizarnia-cart-btn__icon-svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: var(--sp-primary-brown);
}

.spizarnia-cart-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sp-primary-brown);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.ast-site-header-cart .ast-cart-menu-wrap,
.ast-site-header-cart .ast-addon-cart-wrap {
  display: none !important;
}

/* ── Hero bestsellery ── */
.spizarnia-hero {
  margin: 24px 0 40px;
}

.spizarnia-hero__card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.spizarnia-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .spizarnia-hero__grid {
    grid-template-columns: 5fr 7fr;
  }
}

.spizarnia-hero__visual {
  position: relative;
  min-height: 260px;
  background-color: #451a03;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.spizarnia-hero__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.95), rgba(12, 10, 9, 0.4), transparent);
}

.spizarnia-hero__visual-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.spizarnia-hero__badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: var(--sp-amber-400);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 2px;
  margin-bottom: 8px;
}

.spizarnia-hero__title {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.spizarnia-hero__text {
  font-size: 11px;
  line-height: 1.6;
  color: #d6d3d1;
  margin: 0;
  max-width: 320px;
}

.spizarnia-hero__products {
  padding: 20px 24px;
  background: rgba(250, 250, 249, 0.5);
}

.spizarnia-hero__products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.spizarnia-hero__eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sp-amber-800);
  font-weight: 700;
}

.spizarnia-hero__subtitle {
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 800;
  color: #1c1917;
  margin: 4px 0 0;
}

.spizarnia-hero__season {
  display: none;
  font-size: 10px;
  background: #fef3c7;
  color: var(--sp-amber-800);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .spizarnia-hero__season {
    display: inline-block;
  }
}

.spizarnia-hero__product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 576px) {
  .spizarnia-hero__product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.spizarnia-hero__product {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 12px;
}

.spizarnia-hero__product-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.spizarnia-hero__product-name {
  font-weight: 700;
  color: #1c1917;
}

.spizarnia-hero__product-unit {
  color: #a8a29e;
  font-size: 10px;
  white-space: nowrap;
}

.spizarnia-hero__product-desc {
  color: #78716c;
  font-size: 11px;
  line-height: 1.5;
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spizarnia-hero__product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #f5f5f4;
}

.spizarnia-hero__product-price {
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: #1c1917;
}

.spizarnia-hero__add-btn {
  background: var(--sp-primary-brown) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  padding: 4px 12px !important;
  border-radius: 0 !important;
  text-decoration: none !important;
}

/* ── Kategorie ── */
.spizarnia-categories {
  margin-bottom: 32px;
}

.spizarnia-categories__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #e7e5e4;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.spizarnia-categories__title {
  font-family: Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1c1917;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.spizarnia-categories__hint {
  font-size: 12px;
  color: var(--sp-stone-500);
  margin: 0;
  font-family: ui-monospace, monospace;
}

.spizarnia-categories__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spizarnia-cat-btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e7e5e4;
  background: #fff;
  color: #44403c;
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 8px;
}

.spizarnia-cat-btn:hover,
.spizarnia-cat-btn.is-active {
  background: var(--sp-primary-brown);
  border-color: var(--sp-primary-brown);
  color: #fff;
}

/* ── Nagłówek pętli produktów ── */
.spizarnia-loop-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 24px;
  width: 100%;
}

@media (min-width: 640px) {
  .spizarnia-loop-header {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
}

.spizarnia-loop-header__eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a8a29e;
}

.spizarnia-loop-header__count {
  font-size: 12px;
  color: #57534e;
  margin: 4px 0 0;
}

.spizarnia-search input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  padding: 8px 12px;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .spizarnia-search {
    width: 100%;
    max-width: 280px;
  }

  .spizarnia-search input {
    max-width: 280px;
  }
}

.spizarnia-search input:focus {
  border-color: var(--sp-amber-800);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  display: none;
}

/* ── Karty produktów (wizualizacja) ── */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 640px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.spizarnia-product-card {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  list-style: none;
}

.spizarnia-product-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(231, 229, 228, 0.8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.spizarnia-product-card:hover .spizarnia-product-card__inner {
  box-shadow: 0 4px 14px rgba(61, 43, 31, 0.1);
  border-color: rgba(146, 64, 14, 0.2);
}

.spizarnia-product-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  text-decoration: none;
  overflow: hidden;
}

.spizarnia-product-card__visual--amber {
  background: linear-gradient(135deg, #92400e 0%, #78350f 45%, #451a03 100%);
}

.spizarnia-product-card__visual--green {
  background: linear-gradient(135deg, #065f46 0%, #92400e 55%, #451a03 100%);
}

.spizarnia-product-card__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 16px 16px;
  mix-blend-mode: overlay;
}

.spizarnia-product-card__emoji {
  position: relative;
  z-index: 1;
  font-size: 2.75rem;
  line-height: 1;
  transition: transform 0.25s;
}

.spizarnia-product-card:hover .spizarnia-product-card__emoji {
  transform: scale(1.08);
}

.spizarnia-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(146, 64, 14, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.spizarnia-product-card__origin {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-family: ui-monospace, monospace;
  padding: 2px 8px;
  border-radius: 4px;
}

.spizarnia-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.spizarnia-product-card__cat {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #92400e;
  font-family: ui-monospace, monospace;
  margin-bottom: 4px;
}

.spizarnia-product-card__title {
  margin: 0 0 6px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.spizarnia-product-card__title a {
  color: #1c1917;
  text-decoration: none;
  transition: color 0.2s;
}

.spizarnia-product-card:hover .spizarnia-product-card__title a {
  color: #92400e;
}

.spizarnia-product-card__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #57534e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.spizarnia-product-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f5f5f4;
}

.spizarnia-product-card__price-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a8a29e;
  font-family: ui-monospace, monospace;
  margin-bottom: 2px;
}

.spizarnia-product-card__price {
  font-size: 1rem;
  font-weight: 800;
  color: #1c1917;
  line-height: 1.2;
}

.spizarnia-product-card__price .woocommerce-Price-amount {
  font-weight: 800;
}

.spizarnia-product-card__unit {
  font-size: 12px;
  font-weight: 400;
  color: #78716c;
  font-family: ui-monospace, monospace;
}

.spizarnia-product-card__add.button,
.spizarnia-product-card__add {
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px 14px !important;
  margin: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  background: var(--sp-primary-brown) !important;
  border: none !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 0 !important;
  text-decoration: none !important;
}

.spizarnia-product-card__add:hover {
  background: var(--sp-secondary-brown) !important;
  color: var(--sp-primary-brown) !important;
}

.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.spizarnia-product-card .onsale {
  display: none !important;
}

/* ── Stopka Spiżarnia ── */
.spizarnia-footer {
  margin-top: 64px;
  background: var(--sp-stone-950);
  color: #a8a29e;
  font-size: 12px;
  width: 100%;
  clear: both;
}

.spizarnia-footer__main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  box-sizing: border-box;
}

.spizarnia-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 640px) {
  .spizarnia-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .spizarnia-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 32px;
  }
}

.spizarnia-footer__col {
  min-width: 0;
}

.spizarnia-footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.spizarnia-footer__brand-mark {
  color: var(--sp-amber-400);
  font-size: 1.25rem;
  font-weight: 700;
}

.spizarnia-footer__brand-name {
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
}

.spizarnia-footer__desc {
  font-size: 11px;
  line-height: 1.7;
  color: var(--sp-stone-500);
  margin: 0;
}

.spizarnia-footer__heading {
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 12px;
}

.spizarnia-footer__links,
.spizarnia-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spizarnia-footer__links li,
.spizarnia-footer__list li {
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1.5;
}

.spizarnia-footer__links a {
  color: #a8a29e;
  text-decoration: none;
  transition: color 0.2s;
}

.spizarnia-footer__links a:hover {
  color: #fff;
}

.spizarnia-footer__list li {
  color: var(--sp-stone-500);
}

.spizarnia-footer__contact {
  font-size: 11px;
  line-height: 1.7;
  margin: 0 0 8px;
}

.spizarnia-footer__phone a {
  color: var(--sp-amber-400);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  text-decoration: none;
}

.spizarnia-footer__legal-links {
  margin-top: 12px;
  font-size: 10px;
}

.spizarnia-footer__legal-links a {
  color: #78716c;
  text-decoration: none;
}

.spizarnia-footer__legal-links a:hover {
  color: #fff;
}

.spizarnia-footer__bottom {
  border-top: 1px solid rgba(41, 37, 36, 0.6);
  padding: 24px 16px;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.spizarnia-footer__bottom p {
  margin: 0;
  font-size: 10px;
  color: #57534e;
}

/* ── Kontener sklepu ── */
.woocommerce .ast-woocommerce-container,
#primary .ast-woocommerce-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.ast-separate-container.woocommerce .ast-woocommerce-container {
  padding: 16px 16px 48px !important;
}

.woocommerce-page #primary {
  margin-top: 0;
}

.woocommerce-products-header {
  display: none !important;
}

.woocommerce a.button:not(.spizarnia-product-card__add),
.woocommerce button.button,
.woocommerce input.button {
  background-color: var(--sp-primary-brown) !important;
  border-color: var(--sp-primary-brown) !important;
  color: #fff !important;
  border-radius: 0 !important;
}

.woocommerce a.button:not(.spizarnia-product-card__add):hover,
.woocommerce button.button:hover {
  background-color: var(--sp-secondary-brown) !important;
  border-color: var(--sp-secondary-brown) !important;
  color: var(--sp-primary-brown) !important;
}

/* ── Pływający widget koszyka (prawy dolny róg) ── */
body.spizarnia-cart-panel-open {
  overflow: hidden;
}

.spizarnia-floating-cart {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100000;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.spizarnia-floating-cart__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 9, 0.4);
  z-index: 99998;
  cursor: pointer;
}

.spizarnia-floating-cart.is-open .spizarnia-floating-cart__backdrop {
  display: block;
}

.spizarnia-floating-cart__fab {
  position: relative;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--sp-primary-brown);
  color: #fff;
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.35);
  cursor: pointer;
  transition: box-shadow 0.2s, background-color 0.2s;
  padding: 0;
}

.spizarnia-floating-cart__fab:hover {
  box-shadow: 0 6px 24px rgba(61, 43, 31, 0.45);
  background: #4a3628;
}

.spizarnia-floating-cart.is-open .spizarnia-floating-cart__fab,
.spizarnia-floating-cart.is-open .spizarnia-floating-cart__fab:hover {
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.35);
  background: var(--sp-primary-brown);
}

.spizarnia-floating-cart__fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.spizarnia-floating-cart__fab-icon-svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: #fff;
}

.spizarnia-floating-cart__fab-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sp-amber-400);
  color: var(--sp-primary-brown);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.spizarnia-cart-btn__count.is-empty,
.spizarnia-floating-cart__fab-count.is-empty {
  display: none !important;
}

.spizarnia-floating-cart__panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 40px));
  max-height: min(70vh, 520px);
  flex-direction: column;
  z-index: 100000;
}

.spizarnia-floating-cart.is-open .spizarnia-floating-cart__panel {
  display: flex;
}

.spizarnia-floating-cart__panel-shell {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(12, 10, 9, 0.18);
  overflow: hidden;
}

.spizarnia-floating-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f4;
  background: #fafaf9;
}

.spizarnia-floating-cart__title {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1c1917;
}

.spizarnia-floating-cart__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: #fff;
  color: #78716c;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
  padding: 0;
  line-height: 0;
  box-shadow: 0 0 0 1px #e7e5e4;
}

.spizarnia-floating-cart__close:hover {
  background: #fef2f2;
  color: #b91c1c;
  box-shadow: 0 0 0 1px #fecaca;
}

.spizarnia-floating-cart__close-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.spizarnia-floating-cart__body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.spizarnia-floating-cart__empty {
  padding: 32px 20px;
  text-align: center;
  color: #78716c;
}

.spizarnia-floating-cart__empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.35;
  color: var(--sp-primary-brown);
}

.spizarnia-floating-cart__empty-icon-svg {
  width: 40px;
  height: 40px;
}

.spizarnia-floating-cart__empty p {
  margin: 0 0 12px;
  font-size: 12px;
  font-style: italic;
}

.spizarnia-floating-cart__continue {
  border: none;
  background: none;
  color: var(--sp-amber-800);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.spizarnia-floating-cart__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spizarnia-floating-cart__item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f4;
}

.spizarnia-floating-cart__item.is-removing {
  opacity: 0;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.08s ease, max-height 0.1s ease, padding 0.1s ease;
}

.spizarnia-floating-cart__item.is-updating {
  opacity: 0.6;
}

.spizarnia-floating-cart__item-emoji {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  font-size: 1.25rem;
}

.spizarnia-floating-cart__item-main {
  flex: 1;
  min-width: 0;
}

.spizarnia-floating-cart__item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.spizarnia-floating-cart__item-name {
  font-size: 12px;
  font-weight: 700;
  color: #1c1917;
  text-decoration: none;
  line-height: 1.35;
}

.spizarnia-floating-cart__item-name:hover {
  color: var(--sp-amber-800);
}

.spizarnia-floating-cart__item-price {
  font-size: 12px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: #1c1917;
  white-space: nowrap;
}

.spizarnia-floating-cart__item-origin {
  margin: 2px 0 0;
  font-size: 10px;
  color: #a8a29e;
  font-family: ui-monospace, monospace;
}

.spizarnia-floating-cart__item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
}

.spizarnia-floating-cart__qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  overflow: hidden;
  height: 32px;
}

.spizarnia-floating-cart__qty button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: #fafaf9 !important;
  color: #44403c !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  font-family: system-ui, sans-serif !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: none !important;
}

.spizarnia-floating-cart__qty button:hover {
  background: #f5f5f4 !important;
  color: #1c1917 !important;
}

.spizarnia-floating-cart__qty-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: #1c1917;
  background: #fff;
  border-left: 1px solid #e7e5e4;
  border-right: 1px solid #e7e5e4;
  line-height: 1;
}

.spizarnia-floating-cart__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 2px !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #a8a29e !important;
  cursor: pointer;
  line-height: 0;
  transition: color 0.12s ease;
}

.spizarnia-floating-cart__remove:hover {
  color: #dc2626 !important;
  background: none !important;
  border: none !important;
}

.spizarnia-floating-cart__remove-icon {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: stroke 0.12s ease;
}

.spizarnia-floating-cart__footer {
  padding: 14px 16px;
  border-top: 1px solid #e7e5e4;
  background: #fafaf9;
}

.spizarnia-floating-cart__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #44403c;
  margin-bottom: 8px;
}

.spizarnia-floating-cart__total-row strong {
  font-size: 15px;
  font-family: ui-monospace, monospace;
  color: #1c1917;
}

.spizarnia-floating-cart__note {
  margin: 0 0 12px;
  font-size: 10px;
  line-height: 1.5;
  color: #78716c;
}

.spizarnia-floating-cart__checkout {
  display: block !important;
  width: 100% !important;
  text-align: center;
  padding: 12px 16px !important;
  background: var(--sp-primary-brown) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px !important;
  text-decoration: none !important;
}

.spizarnia-floating-cart__checkout:hover {
  background: var(--sp-secondary-brown) !important;
  color: var(--sp-primary-brown) !important;
}

@media (max-width: 480px) {
  .spizarnia-floating-cart {
    right: 12px;
    bottom: 12px;
  }

  .spizarnia-floating-cart__panel {
    width: calc(100vw - 24px);
    right: -4px;
  }
}
