/* a'Gusto — WooCommerce v2: karta produktu, kategoria, proces zakupowy.
 * Arkusz ładuje się po woocommerce.css i nadpisuje układ tych trzech widoków.
 * Podglądy źródłowe: Produkt v2.dc.html, Kategoria v2.dc.html,
 * Koszyk v2.dc.html, Zamowienie v2.dc.html, Potwierdzenie.dc.html
 * ------------------------------------------------------------------------- */

/* --- wspólne --------------------------------------------------------------- */

.ag-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ag-green-600);
}
.ag-eyebrow span {
  width: 24px;
  height: 2px;
  background: var(--ag-green-500);
}

.ag-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ag-body-soft);
  text-wrap: pretty;
}
.ag-note svg { flex-shrink: 0; margin-top: 1px; }

/* --- karta produktu: układ ------------------------------------------------- */

.ag-product__top {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 3.4vw, 52px);
  padding: clamp(24px, 3vw, 40px) var(--ag-gutter) clamp(36px, 4vw, 56px);
}
.ag-product__gallery { position: sticky; top: 132px; align-self: start; }

.ag-product__summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ag-product__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  row-gap: 6px;
  margin: 0;
  font-size: 13px;
  color: var(--ag-muted);
}
.ag-product__brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ag-green-600);
}
.ag-product__sep { width: 1px; height: 12px; background: var(--ag-line-grid); }

.ag-product .product_title {
  margin: 0;
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -.028em;
  color: var(--ag-ink);
  text-wrap: balance;
}

/* Dwie równe kolumny: opis / dane techniczne. */
.ag-product__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 56px);
  padding: clamp(40px, 5vw, 64px) var(--ag-gutter);
  background: var(--ag-paper);
  border-top: 1px solid var(--ag-line-grid);
}
.ag-product__desc,
.ag-product__specs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.ag-product__h2 {
  margin: 0;
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -.028em;
  color: var(--ag-ink);
  text-wrap: balance;
}

.ag-prose { font-size: 16.5px; line-height: 1.65; color: #33465C; }
.ag-prose > * + * { margin-top: 14px; }
.ag-prose p { margin: 0; text-wrap: pretty; }
.ag-prose ul { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.ag-prose li { display: flex; align-items: flex-start; gap: 11px; line-height: 1.55; }
.ag-prose li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  margin-top: 9px;
  background: var(--ag-green-500);
  border-radius: 3px;
}

/* --- kafle kluczowych parametrów ------------------------------------------ */

.ag-keyspecs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ag-line-grid);
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  overflow: hidden;
}
.ag-keyspec {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  background: #F9FAF8;
}
.ag-keyspec__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 18px;
}
.ag-keyspec__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ag-keyspec__label { font-size: 12px; color: var(--ag-muted); }
.ag-keyspec__value {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--ag-ink);
}

/* --- blok zakupowy --------------------------------------------------------- */

.ag-buybox {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
}
.ag-buybox .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--ag-navy);
}
.ag-buybox .price .woocommerce-Price-taxLabel,
.ag-buybox .price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--ag-muted);
}
.ag-buybox .price del { font-size: 20px; font-weight: 500; color: #A6B3C0; }

.ag-leasing {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: -8px 0 0;
}
.ag-leasing__label { font-size: 13.5px; color: var(--ag-muted); }
.ag-leasing__value {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ag-ink);
}

.ag-stock {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 14px;
  border-radius: var(--ag-radius);
  font-size: 14.5px;
  font-weight: 500;
}
.ag-stock__dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 4px; }
.ag-stock--ok { background: var(--ag-green-soft); color: var(--ag-ink); }
.ag-stock--ok .ag-stock__dot { background: var(--ag-green-500); }
.ag-stock--low { background: #FFF7EC; color: #7A4F12; }
.ag-stock--low .ag-stock__dot { background: #D9902B; }
.ag-stock--order { background: var(--ag-field); color: var(--ag-body-soft); }
.ag-stock--order .ag-stock__dot { background: #A6B3C0; }

.ag-product .cart {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  row-gap: 10px;
  margin: 0;
}
.ag-product .cart .quantity {
  display: flex;
  align-items: center;
  height: 54px;
  border: 1px solid var(--ag-line);
  border-radius: 27px;
  overflow: hidden;
}
.ag-product .cart .quantity input {
  width: 74px;
  height: 52px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--ag-ink);
}
.ag-product .cart .single_add_to_cart_button {
  flex: 1 1 230px;
  height: 54px;
  padding: 0 22px;
  background: var(--ag-green-500);
  border: 0;
  border-radius: 27px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background .15s ease;
}
.ag-product .cart .single_add_to_cart_button:hover { background: #009354; }

.ag-buybox__contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  row-gap: 10px;
  margin: 0;
}
.ag-buybox__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ag-navy);
  text-decoration: none;
}
.ag-buybox__link:hover { color: var(--ag-green-600); }
.ag-buybox__sep { width: 1px; height: 14px; background: var(--ag-line-grid); }

/* --- dane techniczne: sekcje z ikonami ------------------------------------- */

.ag-attrgroup { display: flex; flex-direction: column; gap: 2px; }
.ag-attrgroup + .ag-attrgroup { margin-top: 16px; }
.ag-attrgroup__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ag-green-600);
}
.ag-attrgroup__head i { flex: 1; height: 1px; background: var(--ag-line-grid); }
.ag-attrgroup__body {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  overflow: hidden;
}

.ag-attr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
}
.ag-attr + .ag-attr { border-top: 1px solid var(--ag-line-soft); }
.ag-attr__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--ag-green-soft);
  border-radius: 19px;
}
.ag-attr__label {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ag-body-soft);
}
.ag-attr__value {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.008em;
  color: var(--ag-ink);
  text-align: right;
}

/* --- akcesoria i pliki ----------------------------------------------------- */

.ag-crosssell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 24px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
}
.ag-crosssell__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ag-ink);
}
.ag-crosssell__list { display: flex; flex-direction: column; }
.ag-crosssell__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--ag-line-soft);
  font-size: 15px;
  color: #33465C;
  text-decoration: none;
}
.ag-crosssell__row:hover { color: var(--ag-green-600); }
.ag-crosssell__row strong {
  font-weight: 600;
  color: var(--ag-navy);
  white-space: nowrap;
}

.ag-files { display: flex; flex-wrap: wrap; gap: 10px; }
.ag-filelink {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--ag-line-warm);
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ag-ink);
  text-decoration: none;
}
.ag-filelink:hover { border-color: var(--ag-ink); color: var(--ag-ink); }

/* --- kafelek w pętli sklepu ------------------------------------------------ */

.ag-card__meta,
.ag-card__chips { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.ag-card__meta { justify-content: space-between; }
.ag-card__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ag-green-600);
}
.ag-card__sku { font-size: 11.5px; color: #B4BDC7; }

.ag-card__chips { flex-wrap: wrap; gap: 5px; }
.ag-card__chip {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  background: var(--ag-paper);
  border: 1px solid var(--ag-line-soft);
  border-radius: var(--ag-radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--ag-body-soft);
}

.ag-card__stock {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 10px;
  border-radius: 13px;
  font-size: 11.5px;
  font-weight: 600;
}
.ag-card__dot { width: 6px; height: 6px; border-radius: 3px; }
.ag-card__stock--ok {
  background: var(--ag-green-soft);
  border: 1px solid var(--ag-green-border);
  color: #00814A;
}
.ag-card__stock--ok .ag-card__dot { background: var(--ag-green-500); }
.ag-card__stock--low {
  background: #FFF7EC;
  border: 1px solid #F3E1C4;
  color: #96631A;
}
.ag-card__stock--low .ag-card__dot { background: #D9902B; }
.ag-card__stock--order {
  background: var(--ag-field);
  border: 1px solid var(--ag-line);
  color: var(--ag-body-soft);
}
.ag-card__stock--order .ag-card__dot { background: #A6B3C0; }

.woocommerce ul.products li.product { position: relative; }

/* --- kategoria: kolumna filtrów -------------------------------------------- */

.ag-shop__body {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 34px);
  padding: clamp(22px, 2.6vw, 32px) var(--ag-gutter) clamp(40px, 5vw, 64px);
}
.ag-shop__filters {
  position: sticky;
  top: 132px;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ag-shop__filters .widget { padding: 18px 0; border-top: 1px solid var(--ag-line-soft); }
.ag-shop__filters .widget:first-child { border-top: 0; padding-top: 0; }
.ag-shop__filters .widgettitle,
.ag-shop__filters .widget-title {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ag-ink);
}
.ag-shop__filters ul { margin: 0; padding: 0; list-style: none; }
.ag-shop__filters li a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 0;
  font-size: 14.5px;
  color: #33465C;
  text-decoration: none;
}
.ag-shop__filters li a:hover { color: var(--ag-green-600); }
.ag-shop__filters li a::before {
  content: "";
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #D5DCE3;
  border-radius: 3px;
}
.ag-shop__filters li.chosen a::before,
.ag-shop__filters li.wc-layered-nav-term.chosen a::before {
  background: var(--ag-green-500) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'><path d='M13.5 4.5L6.4 11.6 2.5 7.7' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center;
  border-color: var(--ag-green-500);
}
.ag-shop__filters .count { margin-left: auto; font-size: 12.5px; color: #A6B3C0; }

.ag-shop__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  row-gap: 12px;
  margin-bottom: 16px;
}
.ag-shop__toolbar .woocommerce-result-count {
  margin: 0;
  font-size: 14.5px;
  color: var(--ag-body-soft);
}
.ag-shop__toolbar .woocommerce-ordering select {
  height: 42px;
  padding: 0 34px 0 13px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 9 6' fill='none'><path d='M1 1.5L4.5 5L8 1.5' stroke='%236E7B89' stroke-width='1.7' stroke-linecap='round'/></svg>") no-repeat right 13px center;
  border: 1px solid var(--ag-line);
  border-radius: 21px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ag-ink);
  appearance: none;
  cursor: pointer;
}

/* --- koszyk i zamówienie --------------------------------------------------- */

.ag-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 26px);
  flex-wrap: wrap;
  row-gap: 12px;
  padding: 20px var(--ag-gutter);
  background: var(--ag-paper);
  border-bottom: 1px solid var(--ag-line-grid);
}
.ag-flow__step {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ag-flow__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: #fff;
  border: 1.5px solid #D5DCE3;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  color: #A6B3C0;
}
.ag-flow__label { font-size: 15px; font-weight: 500; color: #A6B3C0; white-space: nowrap; }
.ag-flow__step--done .ag-flow__num { background: var(--ag-green-500); border-color: var(--ag-green-500); color: #fff; }
.ag-flow__step--done .ag-flow__label { color: #33465C; }
.ag-flow__step--now .ag-flow__num { background: var(--ag-navy); border-color: var(--ag-navy); color: #fff; }
.ag-flow__step--now .ag-flow__label { font-weight: 600; color: var(--ag-ink); }
.ag-flow i { width: clamp(20px, 4vw, 64px); height: 1px; background: #D5DCE3; }

.woocommerce-cart .ag-cartgrid,
.woocommerce-checkout .ag-cartgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: clamp(20px, 2.6vw, 34px);
  padding: clamp(26px, 3vw, 40px) var(--ag-gutter) clamp(40px, 5vw, 64px);
}
.ag-cartgrid__side {
  position: sticky;
  top: 132px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.woocommerce table.shop_table {
  border: 0;
  border-radius: 0;
}
.woocommerce table.shop_table th {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--ag-line-grid);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ag-muted);
}
.woocommerce table.shop_table td {
  padding: 20px 0;
  border-top: 1px solid var(--ag-line-soft);
  vertical-align: top;
}
.woocommerce table.shop_table .product-thumbnail img {
  width: 104px;
  height: 104px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  object-fit: contain;
}
.woocommerce table.shop_table .product-name a {
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.012em;
  color: var(--ag-ink);
  text-decoration: none;
}
.woocommerce table.shop_table .product-name a:hover { color: var(--ag-green-600); }
.woocommerce table.shop_table .product-subtotal {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ag-navy);
  text-align: right;
  white-space: nowrap;
}

.ag-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
}
.ag-summary__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ag-ink);
}
.ag-summary table,
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; }
.ag-summary th,
.woocommerce-checkout-review-order-table th {
  padding: 5px 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--ag-body-soft);
  text-align: left;
}
.ag-summary td,
.woocommerce-checkout-review-order-table td {
  padding: 5px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ag-ink);
  text-align: right;
}
.ag-summary .order-total th,
.woocommerce-checkout-review-order-table .order-total th {
  padding-top: 14px;
  border-top: 1px solid var(--ag-line-soft);
  font-size: 14px;
}
.ag-summary .order-total td,
.woocommerce-checkout-review-order-table .order-total td {
  padding-top: 14px;
  border-top: 1px solid var(--ag-line-soft);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.032em;
  color: var(--ag-navy);
  white-space: nowrap;
}

.woocommerce .checkout-button,
.woocommerce #place_order {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  background: var(--ag-green-500);
  border: 0;
  border-radius: 28px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.woocommerce .checkout-button:hover,
.woocommerce #place_order:hover { background: #009354; }

.woocommerce form .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.woocommerce form .form-row label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ag-body-soft);
}
.woocommerce form .form-row .required { color: var(--ag-green-600); text-decoration: none; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-container .select2-selection--single {
  height: 50px;
  padding: 0 15px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  font-size: 15.5px;
  color: var(--ag-ink);
}
.woocommerce form .form-row textarea { height: auto; padding: 14px 15px; line-height: 1.5; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--ag-green-500);
}
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.woocommerce-billing-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }

.woocommerce-checkout #payment {
  background: transparent;
  border-radius: 0;
}
.woocommerce-checkout #payment ul.payment_methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
}
.woocommerce-checkout #payment ul.payment_methods li {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
}
.woocommerce-checkout #payment ul.payment_methods li label {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ag-ink);
}
.woocommerce-checkout #payment div.payment_box {
  margin: 10px 0 0;
  padding: 0;
  background: transparent;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ag-body-soft);
}
.woocommerce-checkout #payment div.payment_box::before { display: none; }

/* --- potwierdzenie --------------------------------------------------------- */

.ag-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(44px, 5.5vw, 76px) var(--ag-gutter) clamp(32px, 4vw, 48px);
  text-align: center;
}
.ag-thanks__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  background: var(--ag-green-soft);
  border: 1px solid var(--ag-green-border);
  border-radius: 38px;
}
.ag-thanks h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--ag-ink);
  text-wrap: balance;
}
.ag-thanks p {
  margin: 0;
  max-width: 600px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ag-body-soft);
  text-wrap: pretty;
}

/* --- responsywność --------------------------------------------------------- */

@media (max-width: 1080px) {
  .ag-product__top,
  .ag-product__split,
  .ag-shop__body,
  .woocommerce-cart .ag-cartgrid,
  .woocommerce-checkout .ag-cartgrid { grid-template-columns: 1fr; }
  .ag-product__gallery,
  .ag-shop__filters,
  .ag-cartgrid__side { position: static; }
}

@media (max-width: 620px) {
  .ag-keyspecs { grid-template-columns: 1fr; }
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
  .ag-attr { gap: 11px; padding: 12px 13px; }
  .ag-attr__badge { width: 34px; height: 34px; }
  .ag-attr__label { font-size: 14px; }
  .ag-attr__value { font-size: 15px; }
}

/* --- proces zakupowy: koszyk, zamówienie, potwierdzenie -------------------- */

.ag-cartgrid__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.ag-cart__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  row-gap: 10px;
}
.ag-cart__title {
  margin: 0;
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.034em;
  color: var(--ag-ink);
}
.ag-cart__count { font-size: 14.5px; color: var(--ag-body-soft); }
.ag-cart__login { font-size: 14.5px; font-weight: 600; color: var(--ag-navy); text-decoration: none; }
.ag-cart__login:hover { color: var(--ag-green-600); }
.ag-cart__collaterals:empty { display: none; }

/* wiersz koszyka */
.ag-line__meta { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; }
.ag-line__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ag-green-600);
}
.ag-line__sku { font-size: 11.5px; color: #B4BDC7; }
.ag-line__unit { margin: 6px 0 0; font-size: 13.5px; color: var(--ag-muted); }
.woocommerce table.shop_table td.product-name a.ag-line__remove {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 400;
  color: #8A9AAB;
  text-decoration: none;
}
.woocommerce table.shop_table td.product-name a.ag-line__remove:hover { color: #C0392B; }
.woocommerce table.shop_table .quantity input.qty {
  width: 84px;
  height: 46px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--ag-ink);
}
.woocommerce table.shop_table td.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 0 0;
}
.woocommerce table.shop_table td.actions .coupon { display: flex; gap: 10px; }
.woocommerce table.shop_table td.actions .input-text {
  width: 190px;
  height: 46px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  font-size: 15px;
}
.woocommerce table.shop_table td.actions .button {
  height: 46px;
  padding: 0 20px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 23px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ag-ink);
  cursor: pointer;
}
.woocommerce table.shop_table td.actions .button:hover { border-color: var(--ag-ink); }
.woocommerce table.shop_table td.actions .button[disabled] { opacity: .45; cursor: default; }

.ag-summary__note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ag-muted); }
.ag-summary__qty { color: var(--ag-muted); font-weight: 400; }
.woocommerce-checkout-review-order-table tbody th {
  padding: 10px 0;
  border-bottom: 1px solid var(--ag-line-soft);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ag-ink);
}
.woocommerce-checkout-review-order-table tbody td {
  padding: 10px 0;
  border-bottom: 1px solid var(--ag-line-soft);
  font-size: 14.5px;
  white-space: nowrap;
  vertical-align: top;
}

/* sekcje formularza zamówienia */
.ag-fset {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 26px);
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
}
.ag-fset__head { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; row-gap: 4px; }
.ag-fset__n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: var(--ag-green-soft);
  border-radius: 15px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ag-green-600);
}
.ag-fset__title { font-size: 18px; font-weight: 600; letter-spacing: -.018em; color: var(--ag-ink); }
.ag-fset__sub { font-size: 13.5px; color: var(--ag-muted); }

.ag-hint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 11px 14px;
  background: var(--ag-green-soft);
  border-radius: var(--ag-radius);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ag-ink);
  text-wrap: pretty;
}
.ag-hint svg { flex-shrink: 0; margin-top: 1px; }

.woocommerce form .form-row .description {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ag-muted);
}

.ag-check { display: flex; }
.ag-check label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ag-ink);
  cursor: pointer;
}
.ag-check input { width: 18px; height: 18px; accent-color: var(--ag-green-500); }

/* karty wyboru: dostawa i płatność */
.ag-shipopts { display: flex; flex-direction: column; gap: 10px; }
.ag-shipopts:empty { display: none; }
.ag-opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.ag-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ag-opt__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  background: #fff;
  border: 1.5px solid #D5DCE3;
  border-radius: 10px;
}
.ag-opt__mark::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--ag-green-500);
  border-radius: 5px;
  transform: scale(0);
  transition: transform .12s ease;
}
.ag-opt:has(input:checked) { border-color: var(--ag-green-500); background: var(--ag-green-soft); }
.ag-opt:has(input:checked) .ag-opt__mark { border-color: var(--ag-green-500); }
.ag-opt:has(input:checked) .ag-opt__mark::after { transform: scale(1); }
.ag-opt:has(input:focus-visible) { border-color: var(--ag-green-500); box-shadow: 0 0 0 3px rgba(0, 176, 101, .18); }
.ag-opt__text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ag-opt__name { font-size: 15.5px; font-weight: 600; color: var(--ag-ink); }
.ag-opt__desc { font-size: 13.5px; line-height: 1.45; color: var(--ag-body-soft); text-wrap: pretty; }
.ag-opt__price { font-size: 15.5px; font-weight: 600; color: var(--ag-navy); white-space: nowrap; }
.ag-opt__free { color: var(--ag-green-600); font-weight: 600; }

.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
  border-color: var(--ag-green-500);
  background: var(--ag-green-soft);
}
.woocommerce-checkout #payment .form-row.place-order { margin: 6px 0 0; padding: 0; }
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper { margin-bottom: 14px; }

/* bloki w kolumnie obok */
.ag-sidebox {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 22px 24px 24px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
}
.ag-sidebox--green { background: var(--ag-green-soft); border-color: var(--ag-green-border); }
.ag-sidebox--dark { background: #0F2438; border-color: #0F2438; }
.ag-sidebox__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ag-ink);
}
.ag-sidebox__text { margin: 0; font-size: 14.5px; line-height: 1.55; color: #33465C; text-wrap: pretty; }
.ag-sidebox__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ag-green-600);
  text-decoration: none;
}
.ag-sidebox__link:hover { color: var(--ag-ink); }
.ag-sidebox--dark .ag-sidebox__head { color: #fff; }
.ag-sidebox--dark .ag-sidebox__text { color: #9FB3C8; }
.ag-sidebox__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-top: 4px;
  background: #fff;
  border-radius: 23px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ag-navy);
  text-decoration: none;
}
.ag-sidebox__btn:hover { background: var(--ag-paper); }

.ag-dl { display: flex; flex-direction: column; gap: 11px; margin: 0; }
.ag-dl div { display: flex; flex-direction: column; gap: 2px; }
.ag-dl dt { font-size: 13px; color: var(--ag-muted); }
.ag-dl dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--ag-ink); }
.ag-dl__mono { font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.ag-dl__sum { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--ag-navy); }

/* pusty koszyk */
.ag-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(44px, 5.5vw, 76px) var(--ag-gutter) clamp(44px, 5.5vw, 72px);
  text-align: center;
}
.ag-empty__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-radius: 38px;
}
.ag-empty__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.032em;
  color: var(--ag-ink);
}
.ag-empty__text { margin: 0; max-width: 560px; font-size: 16.5px; line-height: 1.6; color: var(--ag-body-soft); text-wrap: pretty; }
.ag-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.ag-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 26px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.ag-cta--green { background: var(--ag-green-500); color: #fff; }
.ag-cta--green:hover { background: #009354; color: #fff; }
.ag-cta--line { background: #fff; border: 1px solid var(--ag-line); color: var(--ag-ink); }
.ag-cta--line:hover { border-color: var(--ag-ink); color: var(--ag-ink); }

/* potwierdzenie */
.ag-thanks__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.ag-thanks__facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  text-align: left;
}
.ag-thanks__facts span { font-size: 12px; color: var(--ag-muted); }
.ag-thanks__facts strong { font-size: 16px; font-weight: 600; color: var(--ag-ink); }
.ag-thanks--failed .ag-thanks__mark { display: none; }

.ag-nextwrap {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vw, 30px);
  padding: clamp(40px, 5vw, 64px) var(--ag-gutter);
  background: var(--ag-paper);
  border-top: 1px solid var(--ag-line-grid);
}
.ag-nextwrap__head { display: flex; flex-direction: column; gap: 11px; max-width: 720px; }
.ag-nextwrap__title {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ag-ink);
  text-wrap: balance;
}
.ag-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ag-line-grid); }
.ag-next__item { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; background: #fff; }
.ag-next__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--ag-green-soft);
  border-radius: 22px;
}
.ag-next__title { font-size: 17px; font-weight: 600; line-height: 1.22; letter-spacing: -.018em; color: var(--ag-ink); text-wrap: pretty; }
.ag-next__text { font-size: 14.5px; line-height: 1.55; color: var(--ag-body-soft); text-wrap: pretty; }

@media (max-width: 1080px) {
  .woocommerce-order .ag-cartgrid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .ag-next { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .woocommerce table.shop_table td.actions { flex-direction: column; align-items: stretch; }
  .woocommerce table.shop_table td.actions .coupon { flex-direction: column; }
  .woocommerce table.shop_table td.actions .input-text { width: 100%; }
  .ag-opt { flex-wrap: wrap; }
  .ag-thanks__facts li { flex: 1 1 140px; }
}

/* --- głowa kategorii ------------------------------------------------------- */

/* Bez widgetów w „Sklep - filtry" kolumna filtrów się nie renderuje, a siatka
   produktów wpadała w pas 272 px przewidziany na filtry. Stąd modyfikator. */
.ag-shop__body--wide { grid-template-columns: minmax(0, 1fr); }

.ag-shop__crumbs { padding: 16px var(--ag-gutter) 0; }

.ag-cathead {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 2.2vw, 26px) var(--ag-gutter) clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--ag-line-grid);
}
.ag-cathead__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  row-gap: 14px;
}
.ag-cathead__text { display: flex; flex-direction: column; gap: 11px; max-width: 720px; }
.ag-cathead__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--ag-ink);
  text-wrap: balance;
}
.ag-cathead__desc { font-size: 16.5px; line-height: 1.6; color: var(--ag-body-soft); text-wrap: pretty; }
.ag-cathead__desc p { margin: 0; }
.ag-cathead__desc p + p { margin-top: 10px; }
.ag-cathead__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  background: #fff;
  border: 1px solid #D5DCE3;
  border-radius: 26px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ag-ink);
  text-decoration: none;
  white-space: nowrap;
}
.ag-cathead__cta:hover { border-color: var(--ag-ink); color: var(--ag-ink); }
.ag-cathead__cta .ag-icon { color: var(--ag-green-600); }

.ag-subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ag-sub {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  text-decoration: none;
  transition: border-color .15s ease;
}
.ag-sub:hover { border-color: var(--ag-green-500); }
.ag-sub__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--ag-green-soft);
  border-radius: 21px;
  color: var(--ag-green-600);
}
.ag-sub__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-sub__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--ag-ink);
  text-wrap: pretty;
}
.ag-sub__count { font-size: 12.5px; color: #8A9AAB; }

@media (max-width: 780px) {
  .ag-subs { grid-template-columns: 1fr; }
  .ag-cathead__cta { width: 100%; justify-content: center; }
}

/* --- okno negocjacji ceny -------------------------------------------------- */

.ag-neg {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}
.ag-neg::backdrop { background: rgba(15, 36, 56, .55); }
.ag-neg__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - 48px);
  padding: clamp(22px, 3vw, 32px);
  background: #fff;
  border-radius: var(--ag-radius);
  overflow-y: auto;
}
.ag-neg__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 18px;
  color: var(--ag-body-soft);
  cursor: pointer;
}
.ag-neg__close:hover { border-color: var(--ag-ink); color: var(--ag-ink); }

.ag-neg__head { display: flex; flex-direction: column; gap: 9px; padding-right: 44px; }
.ag-neg__title {
  margin: 0;
  font-size: clamp(23px, 2.6vw, 28px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.028em;
  color: var(--ag-ink);
  text-wrap: balance;
}
.ag-neg__lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ag-body-soft); text-wrap: pretty; }

.ag-neg__product {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--ag-paper);
  border-radius: var(--ag-radius);
}
.ag-neg__pname { font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--ag-ink); text-wrap: pretty; }
.ag-neg__pmeta { display: flex; align-items: baseline; gap: 12px; font-size: 13.5px; color: var(--ag-muted); }
.ag-neg__pmeta strong { font-size: 15px; font-weight: 700; color: var(--ag-navy); }

.ag-neg__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ag-neg__field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ag-neg__field--wide { grid-column: 1 / -1; }
.ag-neg__field label { font-size: 13.5px; font-weight: 500; color: var(--ag-body-soft); }
.ag-neg__req { color: var(--ag-green-600); }
.ag-neg__field input,
.ag-neg__field textarea {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ag-ink);
}
.ag-neg__field textarea { height: auto; padding: 13px 15px; line-height: 1.5; resize: vertical; }
.ag-neg__field input:focus,
.ag-neg__field textarea:focus { outline: none; border-color: var(--ag-green-500); }
.ag-neg__hint { font-size: 12.5px; line-height: 1.45; color: var(--ag-muted); text-wrap: pretty; }
.ag-neg__unit { position: relative; display: flex; align-items: center; }
.ag-neg__unit input { padding-right: 44px; font-size: 19px; font-weight: 600; }
.ag-neg__unit span {
  position: absolute;
  right: 15px;
  font-size: 15px;
  color: var(--ag-muted);
  pointer-events: none;
}

.ag-neg__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ag-body-soft); }
.ag-neg__consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--ag-green-500); }
.ag-neg__consent a { color: var(--ag-green-600); }

.ag-neg__status { margin: 0; font-size: 14.5px; line-height: 1.5; }
.ag-neg__status:empty { display: none; }
.ag-neg__status.is-ok { color: var(--ag-green-600); font-weight: 600; }
.ag-neg__status.is-bad { color: #C0392B; font-weight: 600; }

.ag-neg__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.ag-neg__actions .ag-cta { height: 48px; font-size: 15.5px; }
.ag-neg__actions button { cursor: pointer; border: 0; font-family: inherit; }
.ag-neg__actions .ag-cta--line { border: 1px solid var(--ag-line); }
.ag-neg__actions .ag-cta[disabled] { opacity: .6; cursor: default; }

@media (max-width: 620px) {
  .ag-neg__grid { grid-template-columns: 1fr; }
  .ag-neg__actions { flex-direction: column-reverse; }
  .ag-neg__actions .ag-cta { width: 100%; }
}

/* --- karta produktu: zakładki, łamy, karuzela (1:1 z podglądem) ------------ */

.ag-product__tabsec {
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 4vw, 52px) var(--ag-gutter) clamp(44px, 5vw, 68px);
  background: var(--ag-paper);
  border-top: 1px solid var(--ag-line-grid);
}

.ag-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ag-line-grid);
}
.ag-tab {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 22px;
  margin-bottom: -1px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--ag-radius) var(--ag-radius) 0 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--ag-body-soft);
  white-space: nowrap;
  cursor: pointer;
}
.ag-tab:hover { color: var(--ag-ink); }
.ag-tab.is-on {
  background: #fff;
  border-color: var(--ag-line-grid);
  border-bottom-color: #fff;
  font-weight: 600;
  color: var(--ag-ink);
}
.ag-tab:focus-visible { outline: 2px solid var(--ag-green-500); outline-offset: -2px; }

.ag-panes { padding-top: clamp(26px, 3vw, 38px); min-width: 0; }
.ag-pane { display: flex; flex-direction: column; gap: 16px; }
.ag-pane[hidden] { display: none; }
.ag-pane .ag-product__h2 { margin: 0; }

/* Dwa łamy: opis, dane techniczne, karty w zakładkach. */
.ag-cols { column-count: 2; column-gap: clamp(24px, 3vw, 44px); }
.ag-cols > * { break-inside: avoid; }
.ag-cols .ag-attrgroup { margin: 0 0 20px; }
.ag-cols .ag-attrgroup + .ag-attrgroup { margin-top: 0; }
.ag-prose.ag-cols > * + * { margin-top: 0; }
.ag-prose.ag-cols p,
.ag-prose.ag-cols ul { margin: 0 0 15px; }
.ag-prose.ag-cols li { break-inside: avoid; margin-bottom: 9px; }
.ag-cols .ag-crosssell,
.ag-cols .ag-card { margin: 0 0 20px; }

.ag-card--pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 24px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
}
.ag-card--pane .ag-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ag-ink);
}
.ag-card--pane .ag-card__text { font-size: 14.5px; line-height: 1.55; color: var(--ag-body-soft); text-wrap: pretty; }
.ag-card--pane .ag-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #00814A;
  text-decoration: none;
}
.ag-card--pane .ag-card__link:hover { color: var(--ag-ink); }
.ag-card--pane .ag-files { margin-top: 2px; }

/* Argumenty pod przyciskiem zakupu: dwie kolumny, dwa wiersze, bez ramek. */
.ag-product__summary .ag-trust,
.ag-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  row-gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  background: none;
  border: 0;
  list-style: none;
}
.ag-trust li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 0;
  background: none;
}
.ag-trust__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--ag-green-soft);
  border-radius: 18px;
}
.ag-trust li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-trust b { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ag-ink); }
.ag-trust li > span:last-child > span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ag-body-soft);
  text-wrap: pretty;
}

/* Karuzela miniatur galerii. */
.ag-strip__wrap { position: relative; min-width: 0; }
.ag-product__gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 1px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.ag-product__gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
.ag-product__gallery .flex-control-thumbs li {
  flex: 0 0 calc((100% - 40px) / 6);
  scroll-snap-align: start;
  margin: 0;
}
.ag-product__gallery .flex-control-thumbs img {
  display: flex;
  width: 100%;
  height: 82px;
  padding: 6px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  opacity: 1;
  cursor: pointer;
}
.ag-product__gallery .flex-control-thumbs img:hover,
.ag-product__gallery .flex-control-thumbs .flex-active { border-color: var(--ag-green-500); }
.ag-strip__nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--ag-line-grid);
  border-radius: 17px;
  box-shadow: 0 2px 8px rgba(20, 32, 46, .10);
  color: var(--ag-navy);
  cursor: pointer;
  z-index: 2;
}
.ag-strip__nav:hover { border-color: var(--ag-green-500); }
.ag-strip__nav--prev { left: -4px; }
.ag-strip__nav--next { right: -4px; }
.is-start .ag-strip__nav--prev,
.is-end .ag-strip__nav--next,
.is-full .ag-strip__nav { display: none; }

@media (max-width: 1080px) {
  .ag-product__gallery .flex-control-thumbs li { flex: 0 0 calc((100% - 32px) / 5); }
}
@media (max-width: 900px) {
  .ag-cols { column-count: 1; }
}
@media (max-width: 620px) {
  .ag-trust { grid-template-columns: 1fr; }
  .ag-product__gallery .flex-control-thumbs li { flex: 0 0 calc((100% - 24px) / 4); }
  .ag-tab { height: 46px; padding: 0 15px; font-size: 15px; }
}


/* --- opinie w zakładce karty produktu -------------------------------------- */

.ag-tab__n {
  margin-left: 8px;
  padding: 1px 7px;
  background: var(--ag-green-soft);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ag-green-600);
}

.ag-pane--rev { gap: clamp(18px, 2.2vw, 26px); }

.ag-revsum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
  row-gap: 14px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
}
.ag-revsum__score { display: flex; align-items: center; gap: 13px; }
.ag-revsum__num { font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.035em; color: var(--ag-ink); }
.ag-revsum__count { font-size: 14.5px; color: var(--ag-body-soft); }
.ag-revsum__note { margin: 0; max-width: 540px; font-size: 14.5px; line-height: 1.55; color: var(--ag-body-soft); text-wrap: pretty; }

/* Gwiazdki rysuje motyw: arkusze WooCommerce są wyłączone, więc font ikon nie istnieje. */
.ag-product .star-rating {
  position: relative;
  display: block;
  width: 5.6em;
  height: 1em;
  flex: none;
  overflow: hidden;
  font-size: 16px;
  line-height: 1;
  text-indent: -999em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M10 1.2l2.63 5.33 5.87.85-4.25 4.14 1 5.85L10 14.65l-5.25 2.72 1-5.85L1.5 7.38l5.87-.85z' fill='%23D5DCE3'/%3E%3C/svg%3E") left center / 1.12em 1em repeat-x;
}
.ag-product .star-rating span {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  text-indent: -999em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M10 1.2l2.63 5.33 5.87.85-4.25 4.14 1 5.85L10 14.65l-5.25 2.72 1-5.85L1.5 7.38l5.87-.85z' fill='%2300B065'/%3E%3C/svg%3E") left center / 1.12em 1em repeat-x;
}

.ag-pane--rev #reviews { display: flex; flex-direction: column; gap: clamp(18px, 2.2vw, 26px); }
.ag-pane--rev .woocommerce-Reviews-title { display: none; }
.ag-pane--rev .woocommerce-noreviews {
  margin: 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  font-size: 15.5px;
  color: var(--ag-body-soft);
}

.ag-pane--rev ol.commentlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-pane--rev ol.commentlist li { list-style: none; }
.ag-pane--rev .comment_container {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 22px 24px 24px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
}
.ag-pane--rev .comment_container img.avatar {
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid var(--ag-line);
  border-radius: 50%;
}
.ag-pane--rev .comment-text { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.ag-pane--rev .comment-text p.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  color: var(--ag-muted);
}
.ag-pane--rev .comment-text p.meta strong { font-size: 15.5px; font-weight: 600; color: var(--ag-ink); }
.ag-pane--rev .comment-text .woocommerce-review__verified {
  padding: 2px 8px;
  background: var(--ag-green-soft);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ag-green-600);
  font-style: normal;
}
.ag-pane--rev .comment-text .description p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.6; color: var(--ag-body); text-wrap: pretty; }
.ag-pane--rev .comment-text .description p:last-child { margin-bottom: 0; }

.ag-pane--rev #review_form_wrapper { max-width: 720px; }
.ag-pane--rev #respond {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 28px 28px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
}
.ag-pane--rev .comment-reply-title { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--ag-ink); }
.ag-pane--rev .comment-reply-title small { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--ag-muted); }
.ag-pane--rev .comment-form { display: flex; flex-direction: column; gap: 16px; }
.ag-pane--rev .comment-notes, .ag-pane--rev .comment-form-cookies-consent label { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ag-muted); }
.ag-pane--rev .comment-form p { margin: 0; }
.ag-pane--rev .comment-form label { display: block; margin-bottom: 7px; font-size: 14.5px; font-weight: 600; color: var(--ag-ink); }
.ag-pane--rev .comment-form .required { color: var(--ag-green-600); }
.ag-pane--rev .comment-form input[type="text"],
.ag-pane--rev .comment-form input[type="email"],
.ag-pane--rev .comment-form select,
.ag-pane--rev .comment-form textarea {
  width: 100%;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid #D8DDD6;
  border-radius: var(--ag-radius);
  font: inherit;
  font-size: 15.5px;
  color: var(--ag-ink);
}
.ag-pane--rev .comment-form textarea { min-height: 130px; resize: vertical; }
.ag-pane--rev .comment-form :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--ag-green-500);
  outline-offset: -2px;
  border-color: var(--ag-green-500);
}
.ag-pane--rev .comment-form-author, .ag-pane--rev .comment-form-email { min-width: 0; }
.ag-pane--rev .comment-form-rating select { max-width: 260px; }

/* Wybór oceny: gwiazdki podmienia skrypt WooCommerce, select zostaje bez JS. */
.ag-pane--rev p.stars { display: flex; align-items: center; gap: 4px; margin: 0; }
.ag-pane--rev p.stars a {
  width: 24px;
  height: 24px;
  text-indent: -999em;
  overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M10 1.2l2.63 5.33 5.87.85-4.25 4.14 1 5.85L10 14.65l-5.25 2.72 1-5.85L1.5 7.38l5.87-.85z' fill='%23D5DCE3'/%3E%3C/svg%3E") center / 22px 20px no-repeat;
}
.ag-pane--rev p.stars:hover a, .ag-pane--rev p.stars.selected a.active ~ a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M10 1.2l2.63 5.33 5.87.85-4.25 4.14 1 5.85L10 14.65l-5.25 2.72 1-5.85L1.5 7.38l5.87-.85z' fill='%23D5DCE3'/%3E%3C/svg%3E"); }
.ag-pane--rev p.stars a:hover, .ag-pane--rev p.stars a:hover ~ a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M10 1.2l2.63 5.33 5.87.85-4.25 4.14 1 5.85L10 14.65l-5.25 2.72 1-5.85L1.5 7.38l5.87-.85z' fill='%23D5DCE3'/%3E%3C/svg%3E"); }
.ag-pane--rev p.stars.selected a:not(.active), .ag-pane--rev p.stars a.active { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M10 1.2l2.63 5.33 5.87.85-4.25 4.14 1 5.85L10 14.65l-5.25 2.72 1-5.85L1.5 7.38l5.87-.85z' fill='%2300B065'/%3E%3C/svg%3E"); }
.ag-pane--rev p.stars.selected a.active ~ a:not(.active) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M10 1.2l2.63 5.33 5.87.85-4.25 4.14 1 5.85L10 14.65l-5.25 2.72 1-5.85L1.5 7.38l5.87-.85z' fill='%23D5DCE3'/%3E%3C/svg%3E"); }

.ag-pane--rev .form-submit { margin: 0; }
.ag-pane--rev .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 26px;
  background: var(--ag-green-500);
  border: 0;
  border-radius: var(--ag-pill);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background .18s;
}
.ag-pane--rev .form-submit input[type="submit"]:hover { background: #009354; }

@media (max-width: 640px) {
  .ag-revsum { padding: 18px 20px; }
  .ag-pane--rev .comment_container { padding: 18px 20px 20px; gap: 13px; grid-template-columns: 38px minmax(0, 1fr); }
  .ag-pane--rev .comment_container img.avatar { width: 38px; height: 38px; }
  .ag-pane--rev #respond { padding: 20px 20px 22px; }
}

/* --- widgety filtrów (import widgety-sklep.wie) ------------------------- */

.ag-shop__filters .price_slider_wrapper { padding-top: 6px; }
.ag-shop__filters .price_slider {
  position: relative;
  height: 4px;
  margin: 10px 8px 18px 8px;
  background: var(--ag-line);
  border-radius: 2px;
}
.ag-shop__filters .price_slider .ui-slider-range { position: absolute; top: 0; height: 4px; background: var(--ag-green-500); border-radius: 2px; }
.ag-shop__filters .price_slider .ui-slider-handle {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  transform: translateY(-50%);
  background: #fff;
  border: 2px solid var(--ag-green-500);
  border-radius: 8px;
  cursor: pointer;
}
.ag-shop__filters .price_slider_amount { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ag-ink); }
.ag-shop__filters .price_slider_amount .price_label { margin-left: auto; }
.ag-shop__filters .price_slider_amount .button {
  height: 34px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 17px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ag-ink);
  cursor: pointer;
}
.ag-shop__filters .price_slider_amount .button:hover { border-color: var(--ag-green-500); color: var(--ag-green-600); }

.ag-shop__filters select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ag-ink);
}
.ag-shop__filters select:focus { outline: none; border-color: var(--ag-green-500); }
.ag-shop__filters .woocommerce-widget-layered-nav-dropdown__submit {
  height: 34px;
  margin-top: 8px;
  padding: 0 16px;
  background: var(--ag-green-500);
  border: 0;
  border-radius: 17px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.ag-shop__filters .woocommerce-widget-layered-nav-dropdown__submit:hover { background: #009354; }

.ag-shop__filters .woocommerce-product-search { display: flex; gap: 8px; }
.ag-shop__filters .woocommerce-product-search .search-field {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 22px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ag-ink);
}
.ag-shop__filters .woocommerce-product-search .search-field:focus { outline: none; border-color: var(--ag-green-500); }
.ag-shop__filters .woocommerce-product-search button {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 18px;
  background: var(--ag-green-500);
  border: 0;
  border-radius: 22px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.ag-shop__filters .woocommerce-product-search button:hover { background: #009354; }

.ag-shop__filters .widget_layered_nav_filters ul { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-shop__filters .widget_layered_nav_filters li a {
  padding: 7px 12px;
  background: #F1F9F4;
  border: 1px solid var(--ag-green-500);
  border-radius: 16px;
  font-size: 13px;
  color: var(--ag-green-600);
}
.ag-shop__filters .widget_layered_nav_filters li a::before {
  content: "\00d7";
  width: auto;
  height: auto;
  border: 0;
  background: none;
  font-size: 15px;
  line-height: 1;
  color: var(--ag-green-600);
}
.ag-shop__filters .widget_layered_nav_filters li a:hover { background: #E2F3E9; }

.ag-shop__filters .widget_product_categories .children { width: 100%; margin: 6px 0 0; padding-left: 27px; }
.ag-shop__filters .widget_product_categories li { display: flex; flex-wrap: wrap; }
.ag-shop__filters .widget_product_categories li a { flex: 1 1 auto; }
.ag-shop__filters .widget_product_categories li.current-cat > a { font-weight: 600; color: var(--ag-green-600); }

/* --- filtry: rytm i dwie kolumny list ------------------------------------ */

.ag-shop__filters .widget { padding: 14px 0; }
.ag-shop__filters .widget_layered_nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px 12px;
  max-height: 232px;
  overflow: auto;
}
.ag-shop__filters .widget_layered_nav li { display: flex; align-items: center; min-width: 0; }
.ag-shop__filters .widget_layered_nav li a { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ag-shop__filters .widget_layered_nav li a::before { flex-shrink: 0; }
.ag-shop__filters .widget_layered_nav li .count { flex: 0 0 auto; margin-left: auto; padding-left: 6px; font-size: 12px; color: #A6B3C0; }
.ag-shop__filters .widget_product_categories li .count { margin-left: auto; padding-left: 6px; }
.ag-shop__filters .woocommerce-widget-layered-nav-dropdown { display: flex; align-items: center; gap: 8px; }
.ag-shop__filters .woocommerce-widget-layered-nav-dropdown select { flex: 1 1 auto; min-width: 0; height: 40px; }
.ag-shop__filters .woocommerce-widget-layered-nav-dropdown__submit { margin-top: 0; flex: 0 0 auto; height: 40px; }
