/* ==========================================================================
   Coffee Bro – style WooCommerce (domyślne style WooCommerce są wyłączone)
   ========================================================================== */

:root {
  --star-empty: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath fill='%23e2d9cf' d='M8 0l2.1 4.4 4.9.6-3.6 3.3.9 4.8L8 10.8 3.7 13.1l.9-4.8L1 5l4.9-.6z'/%3E%3C/svg%3E");
  --star-full: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath fill='%23e0a43b' d='M8 0l2.1 4.4 4.9.6-3.6 3.3.9 4.8L8 10.8 3.7 13.1l.9-4.8L1 5l4.9-.6z'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141210' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
  --close-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141210' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  --zoom-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141210' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E");
}

/* ---------- Przyciski ---------- */
.button {
  border: 2px solid var(--c-black);
  background: var(--c-black);
  color: #fff;
  cursor: pointer;
}

.button:hover {
  border-color: var(--c-accent-dark);
  background: var(--c-accent-dark);
  color: #fff;
}

.button.alt,
.checkout-button,
#place_order {
  border-color: var(--c-accent);
  background: var(--c-accent);
}

.button.alt:hover,
.checkout-button:hover,
#place_order:hover {
  border-color: var(--c-accent-dark);
  background: var(--c-accent-dark);
}

.button:disabled,
.button.disabled {
  opacity: .45;
  cursor: not-allowed;
}

.button.loading,
.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.button.loading::after,
.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cb-spin .7s linear infinite;
}

li.product .add_to_cart_button.loading::after {
  border-color: rgba(20, 18, 16, .25);
  border-top-color: var(--c-black);
}

@keyframes cb-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Gwiazdki ---------- */
.star-rating {
  overflow: hidden;
}

.star-rating span {
  overflow: hidden;
  font-size: 0;
  color: transparent;
}

/* ---------- Komunikaty ---------- */
.woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  list-style: none;
}

.woocommerce-info {
  background: var(--c-cream);
  color: var(--c-text);
}

.woocommerce-error {
  flex-direction: column;
  align-items: flex-start;
  background: #fbe4e2;
  color: var(--c-sale);
}

.woocommerce-message .button,
.woocommerce-info .button {
  order: 2;
  margin-left: auto;
  padding: .55em 1.1em;
  font-size: 13px;
}

.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- Kafelek produktu ---------- */
.product__thumb--image {
  background: #f6f3ef;
}

.product__thumb--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .4s;
}

li.product:hover .product__thumb--image img {
  transform: scale(1.04);
}

.product__thumb--placeholder {
  background: linear-gradient(145deg, #f3ede6, #e2d6c9);
  color: var(--c-accent-dark);
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.product-badges .onsale {
  position: static;
}

li.product .added_to_cart {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--c-accent-dark);
  text-decoration: underline;
}

li.product .add_to_cart_button.added {
  background: var(--c-new);
  color: #fff;
}

li.product .price .screen-reader-text,
.summary .price .screen-reader-text {
  position: absolute;
}

ul.products.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- Sklep: nagłówek i podkategorie ---------- */
.shop-hero--plain {
  min-height: 0;
  background: var(--c-cream);
  color: var(--c-text);
}

.shop-hero--plain::after {
  display: none;
}

.shop-hero--plain .page-title,
.shop-hero--plain .shop-hero__facts {
  color: var(--c-black);
}

.shop-hero--plain .shop-hero__content {
  padding: 32px 40px;
}

.shop-hero .term-description p + p {
  margin-top: .6em;
}

.product-subcategories {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* ---------- Sklep: widgety filtrów ---------- */
.widget-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
}

.widget-toggle .icon {
  width: 18px;
  height: 18px;
  transition: transform .2s;
}

.widget-toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.widget-body {
  margin-top: 14px;
}

.shop-sidebar h3.widget-title:has(.widget-toggle) {
  margin-bottom: 0;
  cursor: pointer;
}

.product-categories .cat-item > .count {
  margin-left: auto;
}

.woocommerce-widget-layered-nav-list {
  display: grid;
  gap: 2px;
}

.woocommerce-widget-layered-nav-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.woocommerce-widget-layered-nav-list__item a {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.woocommerce-widget-layered-nav-list__item a::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid #cfc4b9;
  border-radius: 5px;
  background: #fff center / 12px no-repeat;
  transition: background-color .15s, border-color .15s;
}

.woocommerce-widget-layered-nav-list__item a:hover::before {
  border-color: var(--c-black);
}

.woocommerce-widget-layered-nav-list__item--chosen a::before {
  border-color: var(--c-black);
  background-color: var(--c-black);
  background-image: var(--check-white);
}

.woocommerce-widget-layered-nav-dropdown select {
  width: 100%;
  height: 42px;
}

/* Filtr ceny (jQuery UI) */
.price_slider_wrapper {
  padding-top: 6px;
}

.price_slider {
  position: relative;
  height: 4px;
  margin: 10px 10px 24px;
  border-radius: 4px;
  background: var(--c-line);
}

.price_slider .ui-slider-range {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
  background: var(--c-black);
}

.price_slider .ui-slider-handle {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--c-black);
  border-radius: 50%;
  outline: none;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: grab;
}

.price_slider .ui-slider-handle:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.price_slider_amount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price_slider_amount .button {
  order: 2;
  padding: .5em 1.1em;
  font-size: 13px;
}

.price_slider_amount .price_label {
  order: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-black);
}

.price_slider_amount .clear {
  display: none;
}

/* Filtr promocji (link) */
.filter-switch.is-active .filter-switch__track {
  background: var(--c-sale);
}

.filter-switch.is-active .filter-switch__track::after {
  transform: translateX(18px);
}

/* Aktywne filtry */
.active-filters .widget {
  padding: 0;
  border: 0;
}

.active-filters .widget_layered_nav_filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filters li.chosen a,
.active-filters .filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 14px;
  border-radius: 999px;
  background: var(--c-cream);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-black);
  transition: background-color .2s;
}

.active-filters li.chosen a::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--close-dark) center / contain no-repeat;
}

.active-filters li.chosen a:hover,
.active-filters .filter-chip:hover {
  background: #eadfd3;
}

.active-filters .woocommerce-Price-amount {
  font-weight: 600;
}

.category-seo--single {
  grid-template-columns: minmax(0, 860px);
}

/* ---------- Strona produktu ---------- */
.single-product-page {
  padding-bottom: 24px;
}

.product-hero__gallery {
  position: sticky;
  top: 150px;
  min-width: 0;
}

.product-hero .woocommerce-product-gallery {
  position: relative;
  top: auto;
  margin: 0;
}

.product-hero__gallery > .product-badges {
  top: 18px;
  left: 18px;
  z-index: 10;
}

.woocommerce-product-gallery__wrapper {
  margin: 0;
}

.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery--without-images .woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper {
  overflow: hidden;
  border-radius: var(--radius);
  background: #f6f3ef;
}

.woocommerce-product-gallery__image a {
  display: block;
  aspect-ratio: 1;
}

.woocommerce-product-gallery__image a img,
.woocommerce-product-gallery__image--placeholder img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.woocommerce-product-gallery__trigger {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0;
}

.woocommerce-product-gallery__trigger::before {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--zoom-dark) center / contain no-repeat;
}

.woocommerce-product-gallery__trigger > * {
  display: none;
}

.flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.flex-control-thumbs li {
  cursor: pointer;
}

.flex-control-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 6%;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: #f6f3ef;
  object-fit: contain;
  opacity: .75;
  transition: border-color .2s, opacity .2s;
}

.flex-control-thumbs img:hover {
  opacity: 1;
}

.flex-control-thumbs img.flex-active {
  border-color: var(--c-black);
  opacity: 1;
}

.summary .woocommerce-product-details__short-description ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
  list-style: disc;
}

.summary .woocommerce-review-link .count {
  font-weight: 600;
}

.summary form.cart {
  margin: 0 0 20px;
  padding-top: 20px;
}

.summary form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary .single_add_to_cart_button {
  min-width: 200px;
}

.stock.out-of-stock {
  color: var(--c-sale);
}

.stock.available-on-backorder {
  color: var(--c-accent-dark);
}

.quantity .qty-btn {
  width: 42px;
  height: 52px;
  border: 0;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: var(--c-black);
}

.quantity .qty-btn:hover {
  color: var(--c-accent-dark);
}

/* Warianty */
table.variations {
  width: 100%;
  margin: 0 0 6px;
  border-collapse: collapse;
}

table.variations tr {
  display: block;
  margin-bottom: 16px;
}

table.variations th,
table.variations td {
  display: block;
  padding: 0;
  text-align: left;
}

table.variations th.label {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-black);
}

table.variations td.value {
  position: relative;
}

table.variations select {
  min-width: 240px;
  height: 46px;
  padding: 0 40px 0 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fff var(--chevron) no-repeat right 14px center / 16px;
  -webkit-appearance: none;
  appearance: none;
}

.swatches__select {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

button.swatch {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
}

.swatch__box:not(:has(.swatch__color)) {
  padding: 10px 18px;
}

.swatch.is-selected .swatch__box {
  border-color: var(--c-black);
  box-shadow: 0 0 0 1px var(--c-black);
}

.swatch:focus-visible {
  outline: none;
}

.swatch:focus-visible .swatch__box {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.swatch:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.swatch:disabled .swatch__name {
  text-decoration: line-through;
}

.reset_variations {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-muted);
  text-decoration: underline;
}

.single_variation_wrap .woocommerce-variation-price .price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 4px;
  font-size: 26px;
}

.single_variation_wrap .woocommerce-variation-price .price-omnibus {
  flex-basis: 100%;
  margin: 0;
}

/* Zestaw */
.bundle__thumb.product__thumb--image {
  background: #f6f3ef;
}

.bundle__price del {
  margin-right: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted);
}

.bundle__price ins {
  text-decoration: none;
  color: var(--c-sale);
}

.bundle__message {
  margin: 0;
  font-size: 13px;
}

.bundle__message .icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}

.bundle__message a {
  color: inherit;
  text-decoration: underline;
}

/* Zakładki i treści */
.woocommerce-Tabs-panel--description ul,
.delivery-content ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
  list-style: disc;
}

.woocommerce-Tabs-panel--description p,
.delivery-content li {
  color: var(--c-text);
}

.delivery-content h2 {
  font-size: 20px;
}

.delivery-content h2:not(:first-child) {
  margin-top: 24px;
}

.shop_attributes td p {
  margin: 0;
}

/* Opinie */
.woocommerce-Reviews-title {
  margin-bottom: 18px;
  font-size: 22px;
}

.woocommerce-noreviews,
.woocommerce-verification-required {
  color: var(--c-muted);
}

.commentlist .comment_container {
  display: flex;
  gap: 14px;
}

.commentlist img.avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.commentlist .comment-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.commentlist .comment-text .star-rating {
  margin: 2px 0 6px;
}

.commentlist .meta {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--c-muted);
}

.woocommerce-review__author {
  font-size: 14px;
  color: var(--c-black);
}

.woocommerce-review__verified {
  font-style: normal;
  color: var(--c-new);
}

.woocommerce-review__dash {
  margin: 0 4px;
}

.commentlist .description p {
  margin: 0;
  color: var(--c-text);
}

#review_form_wrapper {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.comment-reply-title {
  display: block;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-black);
}

#review_form p,
#review_form .comment-form-rating {
  margin: 0 0 14px;
}

#review_form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

#review_form input[type="text"],
#review_form input[type="email"],
#review_form textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
}

#review_form textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
}

#review_form input:focus,
#review_form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
}

#review_form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
}

#review_form .comment-form-cookies-consent label {
  display: inline;
  margin: 0;
  font-weight: 400;
}

p.stars {
  margin: 4px 0 0 !important;
}

p.stars span {
  display: inline-flex;
  gap: 2px;
}

p.stars a {
  display: block;
  width: 30px;
  height: 28px;
  background: var(--star-empty) center / 26px no-repeat;
  font-size: 0;
  color: transparent;
}

p.stars:hover a,
p.stars.selected a {
  background-image: var(--star-full);
}

p.stars:hover a:hover ~ a,
p.stars.selected a.active ~ a {
  background-image: var(--star-empty);
}

/* Podobne produkty */
section.related > h2,
section.up-sells > h2,
.cross-sells > h2 {
  margin-bottom: 24px;
  font-size: clamp(24px, 3vw, 32px);
}

section.up-sells {
  padding-top: 56px;
}

.sticky-atc__price del {
  margin-right: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted);
}

.sticky-atc__price ins {
  text-decoration: none;
}

@media (max-width: 1024px) {
  .product-hero__gallery {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .flex-control-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  table.variations select {
    width: 100%;
    min-width: 0;
  }
}

/* ---------- Tabele (koszyk, zamówienia) ---------- */
table.shop_table {
  width: 100%;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 14px;
}

table.shop_table th {
  padding: 14px 16px;
  background: var(--c-cream);
  font-weight: 600;
  text-align: left;
  color: var(--c-black);
}

table.shop_table td {
  padding: 16px;
  border-top: 1px solid var(--c-line);
  vertical-align: middle;
}

table.shop_table a:not(.button) {
  color: var(--c-black);
}

/* ---------- Koszyk ---------- */
table.cart .product-thumbnail img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #f6f3ef;
  object-fit: contain;
}

table.cart .product-name a {
  font-weight: 600;
}

table.cart .product-name dl.variation {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--c-muted);
}

table.cart .product-name dl.variation dt,
table.cart .product-name dl.variation dd,
table.cart .product-name dl.variation p {
  display: inline;
  margin: 0;
}

table.cart a.remove {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--c-muted) !important;
}

table.cart a.remove:hover {
  background: #fbe4e2;
  color: var(--c-sale) !important;
}

table.cart td.actions {
  background: #fff;
}

table.cart td.actions .coupon {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

table.cart #coupon_code,
.checkout_coupon input.input-text {
  min-width: 180px;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
}

table.cart td.actions > .button {
  float: right;
  border-color: var(--c-line);
  background: var(--c-cream);
  color: var(--c-black);
}

table.cart td.actions > .button:hover:not(:disabled) {
  border-color: var(--c-black);
  background: var(--c-black);
  color: #fff;
}

.cart-collaterals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px;
  margin-top: 32px;
}

.cart-collaterals .cross-sells {
  grid-column: 1;
}

.cart_totals {
  grid-column: 2;
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.cart_totals h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.cart_totals table.shop_table,
.woocommerce-checkout-review-order-table {
  border: 0;
  border-radius: 0;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 12px 0;
  background: none;
}

.cart_totals table.shop_table td,
.woocommerce-checkout-review-order-table td:last-child,
.woocommerce-checkout-review-order-table tfoot td {
  text-align: right;
}

.order-total th,
.order-total td {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-black);
}

.order-total .includes_tax {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted);
}

#shipping_method {
  margin: 0;
  padding: 0;
  list-style: none;
}

#shipping_method li {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

#shipping_method input {
  accent-color: var(--c-black);
}

.woocommerce-shipping-destination,
.woocommerce-shipping-calculator {
  font-size: 12.5px;
  color: var(--c-muted);
}

.wc-proceed-to-checkout .checkout-button {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  font-size: 15px;
}

.cart-empty.woocommerce-info {
  font-size: 16px;
}

.return-to-shop .button {
  margin-top: 8px;
}

/* ---------- Formularze WooCommerce (zamówienie, konto) ---------- */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper,
.woocommerce-EditAccountForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-shipping-fields__field-wrapper .form-row-wide,
.woocommerce-address-fields__field-wrapper .form-row-wide,
.woocommerce-EditAccountForm > *:not(.form-row-first):not(.form-row-last) {
  grid-column: 1 / -1;
}

.woocommerce-input-wrapper {
  display: block;
}

.woocommerce form .input-text,
.woocommerce form select,
.woocommerce-page form .input-text {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.woocommerce form textarea.input-text {
  height: auto;
  min-height: 100px;
  padding: 12px 14px;
}

.woocommerce form .input-text:focus,
.woocommerce form select:focus {
  outline: none;
  border-color: var(--c-accent);
}

.woocommerce form .form-row label {
  font-size: 13px;
  font-weight: 500;
}

.woocommerce form .form-row .required {
  border: 0;
  text-decoration: none;
  color: var(--c-sale);
}

.woocommerce form .form-row.woocommerce-invalid .input-text,
.woocommerce form .form-row.woocommerce-invalid select {
  border-color: var(--c-sale);
}

.woocommerce form .form-row label.checkbox,
.woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.select2-container--default .select2-selection--single {
  height: 46px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 14px;
  line-height: 43px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  right: 8px;
  height: 44px;
}

/* ---------- Zamówienie ---------- */
form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 0 40px;
  align-items: start;
}

form.checkout > .woocommerce-NoticeGroup {
  grid-column: 1 / -1;
}

#customer_details {
  grid-column: 1;
  grid-row: 1 / span 2;
}

#order_review_heading {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 14px;
  font-size: 20px;
}

#order_review {
  grid-column: 2;
  grid-row: 2;
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.woocommerce-checkout h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

#customer_details .col-1,
#customer_details .col-2 {
  margin-bottom: 24px;
}

.woocommerce-checkout-review-order-table thead th {
  border-bottom: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-muted);
}

.woocommerce-checkout-review-order-table td {
  border-top: 0;
}

.woocommerce-checkout-review-order-table tfoot tr {
  border-top: 1px solid var(--c-line);
}

#payment {
  margin-top: 18px;
}

.wc_payment_methods {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.wc_payment_method {
  padding: 14px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
}

.wc_payment_method > label {
  font-weight: 600;
  cursor: pointer;
}

.wc_payment_method input {
  margin-right: 6px;
  accent-color: var(--c-black);
}

.payment_box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--c-cream);
  font-size: 13px;
}

.payment_box p {
  margin: 0;
}

.woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 14px;
  font-size: 13px;
}

.woocommerce-privacy-policy-text p {
  font-size: 12.5px;
  color: var(--c-muted);
}

#place_order {
  width: 100%;
  min-height: 54px;
  font-size: 15px;
}

form.checkout_coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px dashed #d8cbbd;
  border-radius: var(--radius-sm);
}

form.checkout_coupon p {
  margin: 0;
}

.woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 0 0 24px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--c-cream);
  list-style: none;
  font-size: 12px;
  color: var(--c-muted);
}

.woocommerce-order-overview strong {
  display: block;
  font-size: 15px;
  color: var(--c-black);
}

.woocommerce-thankyou-order-received {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-new);
}

/* ---------- Moje konto ---------- */
.woocommerce-account.logged-in .entry-content > .woocommerce {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  list-style: none;
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--c-text) !important;
  text-decoration: none !important;
}

.woocommerce-MyAccount-navigation a:hover {
  background: var(--c-cream);
}

.woocommerce-MyAccount-navigation .is-active a {
  background: var(--c-black);
  color: #fff !important;
}

#customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

#customer_login .u-column1,
#customer_login .u-column2 {
  padding: 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.woocommerce-form-login__rememberme {
  margin-bottom: 12px;
  font-size: 13px;
}

.lost_password a {
  font-size: 13px;
}

.woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.woocommerce-Address {
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.woocommerce-Address-title h2 {
  margin: 0;
  font-size: 18px;
}

.woocommerce-password-strength {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12.5px;
}

.woocommerce-password-strength.strong { background: #e5f3ec; color: var(--c-new); }
.woocommerce-password-strength.short,
.woocommerce-password-strength.bad { background: #fbe4e2; color: var(--c-sale); }
.woocommerce-password-strength.good { background: var(--c-cream); color: var(--c-accent-dark); }

p.demo_store,
.woocommerce-store-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  margin: 0;
  padding: 12px 20px;
  background: var(--c-black);
  font-size: 14px;
  text-align: center;
  color: #fff;
}

.woocommerce-store-notice__dismiss-link {
  margin-left: 12px;
  color: var(--c-accent);
}

@media (max-width: 1024px) {
  form.checkout {
    grid-template-columns: 1fr;
  }

  #customer_details,
  #order_review_heading,
  #order_review {
    grid-column: 1;
    grid-row: auto;
  }

  .cart-collaterals {
    grid-template-columns: 1fr;
  }

  .cart-collaterals .cross-sells,
  .cart_totals {
    grid-column: 1;
  }

  .woocommerce-account.logged-in .entry-content > .woocommerce,
  #customer_login,
  .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  table.shop_table_responsive thead {
    display: none;
  }

  table.shop_table_responsive tr {
    display: block;
  }

  table.shop_table_responsive td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    text-align: right;
  }

  table.shop_table_responsive td::before {
    content: attr(data-title);
    font-weight: 600;
    text-align: left;
    color: var(--c-black);
  }

  table.shop_table_responsive td.product-remove::before,
  table.shop_table_responsive td.product-thumbnail::before,
  table.shop_table_responsive td.actions::before {
    display: none;
  }

  table.cart td.product-thumbnail {
    display: none;
  }

  table.cart td.actions {
    flex-direction: column;
    align-items: stretch;
  }

  table.cart td.actions > .button {
    float: none;
    width: 100%;
  }

  table.cart td.actions .coupon {
    display: flex;
  }

  table.cart #coupon_code {
    flex: 1;
    min-width: 0;
  }

  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-address-fields__field-wrapper,
  .woocommerce-EditAccountForm {
    grid-template-columns: 1fr;
  }
}
