/* === SZYMIGA WOO === */

/* ======= CONTENT LIGHTBOX LINKS ======= */
/* Style dla linków lightbox w treści produktów (content-lightbox.js) */
.content-lightbox-link {
  cursor: zoom-in;
  display: inline-block;
  text-decoration: none !important;
  border: none !important;
}
.content-lightbox-link:hover,
.content-lightbox-link:focus {
  text-decoration: none !important;
  opacity: 0.9;
}
.content-lightbox-link::after,
.content-lightbox-link::before {
  content: none !important;
  display: none !important;
}

/* ======= CENTROWANIE OBRAZÓW W OPISACH PRODUKTÓW ======= */
/* Domyślnie centruj obrazy, ale zachowaj indywidualne ustawienia (alignleft, alignright) */
.woocommerce-Tabs-panel--description img:not(.alignleft):not(.alignright):not(.alignnone),
.woocommerce-product-details__short-description img:not(.alignleft):not(.alignright):not(.alignnone),
#tab-description img:not(.alignleft):not(.alignright):not(.alignnone),
.product-description img:not(.alignleft):not(.alignright):not(.alignnone) {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Centruj również linki z obrazkami (content-lightbox) */
.woocommerce-Tabs-panel--description .content-lightbox-link,
.woocommerce-product-details__short-description .content-lightbox-link,
#tab-description .content-lightbox-link,
.product-description .content-lightbox-link {
  display: block;
  text-align: center;
  margin: 1rem auto;
}

/* Zachowaj inline-block dla obrazów z wyrównaniem */
.woocommerce-Tabs-panel--description .content-lightbox-link:has(img.alignleft),
.woocommerce-Tabs-panel--description .content-lightbox-link:has(img.alignright) {
  display: inline-block;
  text-align: inherit;
  margin: 0;
}

/* Centruj paragraf zawierający tylko obraz */
.woocommerce-Tabs-panel--description p:has(> img:only-child),
.woocommerce-Tabs-panel--description p:has(> a:only-child > img),
.woocommerce-Tabs-panel--description p:has(> .content-lightbox-link:only-child),
#tab-description p:has(> img:only-child),
#tab-description p:has(> a:only-child > img),
#tab-description p:has(> .content-lightbox-link:only-child) {
  text-align: center;
}

/* ======= GLOBALNE - LINKI Z OBRAZKAMI BEZ PODKREŚLENIA ======= */
/* NAJWYŻSZA SPECYFICZNOŚĆ - usunięcie WSZYSTKICH efektów podkreślenia */
a:has(> img),
a:has(> img):hover,
a:has(> img):focus,
a:has(> img):active,
a > img,
.woocommerce a:has(img),
.woocommerce a:has(img):hover,
.woocommerce a:has(img):focus,
/* Galeria produktu */
.product-gallery-section a,
.product-gallery-section a:hover,
.product-gallery-section a:focus,
.product-gallery-main a,
.product-gallery-main a:hover,
.product-gallery-thumbnails-slider a,
.product-gallery-thumbnails-slider a:hover,
.thumb-link,
.thumb-link:hover,
.thumb-link:focus,
#main-fancy,
#main-fancy:hover,
/* Gwiazdki */
.star-rating-interactive,
.star-rating-interactive:hover,
.star-rating-interactive:focus,
.woocommerce-product-rating a:has(.star),
.woocommerce-product-rating a:has(.star):hover,
/* Wszystkie linki w product-info-section */
.product-info-section a,
.product-info-section a:hover,
.product-info-section a:focus,
.product-info-section .woocommerce-product-rating a,
.product-info-section .woocommerce-product-rating a:hover {
  text-decoration: none !important;
  border-bottom: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Usuń pseudo-element ::after (żółte podkreślenie) z galerii i gwiazdek */
.product-gallery-section a::after,
.product-gallery-section a::before,
.product-gallery-main a::after,
.product-gallery-main a::before,
.product-gallery-thumbnails-slider a::after,
.product-gallery-thumbnails-slider a::before,
.thumb-link::after,
.thumb-link::before,
#main-fancy::after,
#main-fancy::before,
.star-rating-interactive::after,
.star-rating-interactive::before,
.woocommerce-product-rating a::after,
.woocommerce-product-rating a::before,
.product-info-section .woocommerce-product-rating a::after,
.product-info-section .woocommerce-product-rating a::before,
a:has(> img)::after,
a:has(> img)::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* ======= TYPOGRAFIA / HEADER ======= */
h1, .page-title, .category-title, .kolekcje-cat-title {
  font-size: 29px;
  font-weight: 600;
  line-height: 1.1em;
  color: var(--heading-color, #000);
  margin-bottom: 0px;
}
@media (max-width: 768px) {
  h1, .page-title, .category-title, .kolekcje-cat-title {
    font-size: 21px;
  }
}

/* Layout nagłówka kategorii - tytuł po lewej, breadcrumbs po prawej */
.category-header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 5px;
  margin-bottom: 3px;
  gap: 20px;
}
.category-header-row .category-title {
  flex-shrink: 0;
}
.category-header-row .breadcrumbs-inline {
  flex-shrink: 1;
  text-align: right;
  font-size: 14px;
  color: var(--color-grey, #666666);
}
.category-header-row .breadcrumbs-inline #breadcrumbs {
  display: inline;
}

/* Mobile: breadcrumbs pod tytułem, na tej samej linii bazowej */
@media (max-width: 768px) {
  .category-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .category-header-row .breadcrumbs-inline {
    text-align: left;
  }
}

.category-header {
  padding-top: 5px;
  margin-bottom: 3px;
}
.category-title {
  text-align: left;
  margin: 0;
  padding: 0;
}
.kolekcje-cat-title {
  margin-bottom: 20px;
  position: relative;
  display: block;
  text-align: center;
}

/* Podkreślenie dla nagłówka Kolekcje Mebli - styl jak na stronach */
.kolekcje-cat-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background-color: #FBCF0B;
}

/* ======= CENA PRODUKTU (ARCHIWUM I KARTA) ======= */
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
   font-size: 32px;
   color: var(--a-global-color-primary);
}
.price del {
  color: #222;
  font-size: 0.85em;
  font-weight: 400;
}
.woocommerce div.product .price ins,
.woocommerce div.product .price ins .amount {
  color: #d32f2f;
}
.single_variation_wrap .woocommerce-variation-price .price {
  color: #000;
  font-weight: 600;
}
.single_variation_wrap .woocommerce-variation-price .price ins {
  color: #d32f2f;
  font-weight: 700;
}
.single_variation_wrap .woocommerce-variation-price .price del {
  color: #999;
  font-weight: 400;
}
.woocommerce-variation-availability {
    margin-bottom: 10px;
}
.product-saving {
    margin: 0px 0px 25px 0px;
    font-size: 19px;
    font-weight: 600;
    color: #d32f2f;
}
.product-saving-dynamic {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--a-global-color-primary, #CD8F5C);
  display: inline-block;
}
.page-content-box {
    padding: 22px 24px;
}
.page-content p {
	margin: 0px 0px 20px 0px;
	padding: 0px;
}
.sku_wrapper,
.posted_in {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  color: #666;
}

/* ======= KATEGORIA / LAYOUT ARCHIWUM ======= */
.category-layout {
  display: flex;
  flex-direction: row;
  margin-top: 15px;
  gap: 0;
}
.category-sidebar {
  width: 320px;
  margin-right: 25px;
}
.category-products {
  flex: 1;
  padding: 0;
  margin: 0;
}
.category-description {
  margin-top: 40px;
}
.desc-text {
  font-size: 1rem;
  color: var(--text-font-color, #444);
}
.btn.toggle-desc {
  margin-top: 12px;
}
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}
ul.page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
}
ul.page-numbers li {
  display: inline;
}
ul.page-numbers li a,
ul.page-numbers li span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  background: #f7f4f1;
  color: var(--heading-color, #222);
  text-decoration: none;
}
ul.page-numbers li .current {
  background: var(--color-primary);
  color: #fff;
}
ul.page-numbers li a:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

/* ======= TOOLBAR ARCHIWUM ======= */
.products-toolbar {
    background: #f9f9f9;
    padding: 10px 5px 15px 10px;
    margin-bottom: 24px;
    border-radius: 4px;
    height: 48px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.toolbar-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.product-count {
  font-size: 14px;
  color: #333;
}
.woocommerce .woocommerce-result-count {
    font-size: 14px;
}
.sort-options select {
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
}

/* ======= GRID ARCHIWUM (DESKTOP) ======= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.products-grid ul.products {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.products-grid ul.products,
.products-grid ul.products li,
.products-grid ul.products li::marker {
  list-style: none !important;
  display: block;
  margin: 0;
  padding: 0;
}
.products-grid ul.products li::marker {
  content: none !important;
}

/* ======= POJEDYNCZY PRODUKT (ARCHIWUM) ======= */
.products-grid li.product {
  position: relative;
  overflow: hidden;
  text-align: left;
}
.products-grid li.product a.woocommerce-LoopProduct-link {
  display: block;
  position: relative;
  overflow: hidden;
}
.products-grid li.product a.woocommerce-LoopProduct-link img,
ul.products li.product a.woocommerce-LoopProduct-link img,
ul.products li.product a.woocommerce-loop-product__link img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

/* Link produktu - relative dla pozycjonowania drugiego zdjęcia */
ul.products li.product a.woocommerce-LoopProduct-link,
ul.products li.product a.woocommerce-loop-product__link {
  display: block;
  position: relative;
  overflow: hidden;
}

/* Drugie zdjęcie z galerii - pozycjonowanie absolutne, BEZ border/shadow */
.products-grid li.product a.woocommerce-LoopProduct-link img.secondary-image,
ul.products li.product a.woocommerce-LoopProduct-link img.secondary-image,
ul.products li.product a.woocommerce-loop-product__link img.secondary-image,
li.product img.secondary-image,
.product img.secondary-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 1;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transition: opacity 0.4s ease !important;
}

/* Hover: ukryj pierwsze (+ usuń shadow!), pokaż drugie */
.products-grid li.product:hover a.woocommerce-LoopProduct-link img:first-of-type,
ul.products li.product:hover a.woocommerce-LoopProduct-link img:first-of-type,
ul.products li.product:hover a.woocommerce-loop-product__link img:first-of-type {
  opacity: 0;
  box-shadow: none !important;
  border-color: transparent !important;
}
.products-grid li.product:hover a.woocommerce-LoopProduct-link img.secondary-image,
ul.products li.product:hover a.woocommerce-LoopProduct-link img.secondary-image,
ul.products li.product:hover a.woocommerce-loop-product__link img.secondary-image {
  opacity: 1;
}
.products-grid .woocommerce-loop-product__title {
  font-size: 17px;
  font-weight: 400;
  margin: 10px 0 4px;
  color: var(--heading-color, #000);
  line-height: 1.3;
}
.products-grid .price {
  font-size: 20px;
  color: #000;
  font-weight: 700;
  text-align: center;
  display: block;
  width: 100%;
}
.products-grid .price del {
  font-size: 15px;
  color: #999;
  margin-right: 6px;
}
.products-grid .price ins {
  font-size: 17px;
  color: var(--a-global-color-primary, #CD8F5C);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.products-grid .price ins:hover {
  color: var(--a-global-color-primary_hover, #583a22);
}
.products-grid li.product a.woocommerce-LoopProduct-link {
  position: relative;
  display: block;
  overflow: hidden;
}
/* Badge promocyjny z kwotą rabatu */
.woocommerce span.onsale,
.woocommerce ul.products li.product span.onsale,
ul.products li.product span.onsale {
  position: absolute;
  top: 14px;
  right: 18px;
  left: auto;
  background-color: #b80000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 3px;
  z-index: 20;
  line-height: 1.3;
  min-height: auto;
  margin: 0;
}

/* Upewnij się że li.product ma position relative dla badge */
.woocommerce ul.products li.product,
ul.products li.product {
  position: relative;
}
/* Przycisk lub lupa – tylko na hover */
.products-grid li.product .button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 10px 12px;
  font-size: 14px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 2px;
  white-space: nowrap;
}
.products-grid li.product:hover .button {
  opacity: 1;
  visibility: visible;
}

/* ======= RESPONSYWNOŚĆ GRID (DESKTOP→TABLET) ======= */
@media (max-width: 1024px) {
  .products-grid ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .products-grid ul.products {
    grid-template-columns: 1fr;
  }
}
/* ======= KOSZYK I PODSUMOWANIE ======= */
.cart-main-wrapper {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0px auto;
    align-items: flex-start;
    padding: 0 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: none;
    border: none;
}
.cart-form-section {
    flex: 1 1 66%;
    min-width: 420px;
    background: #fff;
    padding: 0;
    border-radius: 12px;
    box-shadow: none;
    border: none;
    margin-top: 15px;
}
.cart-products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 0 7px 0;
    font-size: 14px;
    font-weight: 700;
    color: #232323;
    letter-spacing: 0.02em;
    background: transparent;
    text-transform: uppercase;
    margin-bottom: 0;
}
.cart-products-header .header-product {
    flex: 1 1 70%;
    min-width: 120px;
    text-align: left;
}
.cart-products-header .header-total {
    flex: 0 0 80px;
    text-align: right;
    min-width: 60px;
    color: #000;
    font-weight: 700;
}
.cart-products-header-line {
    width: 100%;
    height: 2px;
    background: #f4f4f4;
    margin-bottom: 8px;
    margin-top: 0;
    border-radius: 1.5px;
}
.cart-products-ul {
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}
.cart-product-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 2px solid #f4f4f4;
    padding: 28px 0 14px 0;
    gap: 20px;
}
.cart-product-thumb {
    flex: 0 0 90px;
    margin-right: 24px;
}
.cart-product-thumb img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background: #f8f8f8;
}
.cart-product-details-row {
    flex: 1 1 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cart-product-row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}
.cart-product-title {
    font-weight: 400;
    font-size: 16px;
    text-decoration: none !important;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: 10px;
}
.cart-product-title a {
    font-weight: 400;
    font-size: 16px;
    text-decoration: none;
}
.cart-product-title a:hover {
    color: #0f174e;
    text-decoration: underline;
}
.cart-product-meta {
    font-size: 12.5px;
    color: #888;
}
.cart-product-subtotal {
    font-size: 17px;
    color: #232323;
    font-weight: 700;
    min-width: 90px;
    text-align: right;
    margin-left: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.cart-product-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.cart-product-qty-x-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}
.product-qty-label {
    color: #787878;
    font-weight: 400;
    font-size: 14px;
    margin-right: 4px;
}
.product-qty-box {
    margin: 0 6px 0 0;
    display: inline-block;
}
.product-x-cena {
    color: #232323;
    font-size: 15px;
    font-weight: 500;
    margin-left: 18px;
    white-space: nowrap;
}
.cart-product-remove {
    font-size: 19px;
    color: #ba2a2a;
    cursor: pointer;
    display: block;
    margin-left: 24px;
}
.cart-product-remove a.remove,
.cart-product-remove a.remove:hover,
.cart-product-remove a.remove:focus {
    color: #ba2a2a;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 22px;
}
.cart-product-remove a.remove:hover {
    color: #e13b3b;
}
.cart-product-remove a.remove::after,
.cart-product-remove a.remove::before {
    content: none !important;
    display: none !important;
}
/* Quantity input */
.cart-product-quantity input[type="number"],
.cart-product-quantity input[type="text"] {
    width: 48px;
    height: 34px;
    font-size: 16px;
    border-radius: 7px;
    border: 1px solid #dadada;
    background: #fafafc;
    text-align: center;
    margin: 0 5px;
    padding: 4px 0;
}
/* Kupon i buttony */
.cart-actions-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 18px 0 12px 0;
    padding: 0;
    flex-wrap: wrap;
}
.coupon {
    display: flex;
    gap: 8px;
    align-items: center;
}
.coupon input[type="text"] {
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #dadada;
    background: #fafafc;
    margin: 0;
}
.coupon button,
.cart-actions-row button {
    padding: 10px 20px;
    font-size: 15px;
    background: #ececf1;
    color: #232323;
    border-radius: 7px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
}
.coupon button:hover,
.cart-actions-row button:hover {
    background: #dddde7;
    color: #18184b;
}
/* Prawa kolumna (podsumowanie) */
.cart-summary-section {
    flex: 1 1 34%;
    min-width: 310px;
    max-width: 380px;
    background: #fcfcfc;
    padding: 17px 24px 28px 24px;
    border-radius: 12px;
    box-shadow: none;
    margin-left: auto;
    position: sticky;
    top: 40px;
    border: 1px solid #f4f4f4;
}
.cart-summary-section .cart-collaterals {
    width: 100%;
}
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}
.cart-summary-section h2,
.woocommerce .cart-collaterals .cart_totals h2 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    border-bottom: 2px solid #ededed;
    padding-bottom: 10px;
}
.woocommerce .cart-collaterals .cart_totals table,
.woocommerce .cart-collaterals .cart_totals tr,
.woocommerce .cart-collaterals .cart_totals td,
.woocommerce .cart-collaterals .cart_totals th {
    border: none;
    background: transparent;
    font-size: 15px;
    color: #232323;
    padding: 8px 0;
    line-height: 1.4;
    box-shadow: none;
}
.woocommerce .cart-collaterals .cart_totals th {
    font-weight: 500;
    color: #000;
    width: 44%;
}

/* Sekcja Wysyłka w koszyku - bez tła */
.woocommerce .cart-collaterals .cart_totals tr.woocommerce-shipping-totals td,
.woocommerce .cart-collaterals .cart_totals tr.woocommerce-shipping-totals th,
.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-shipping-totals td,
.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-shipping-totals th {
    background: transparent !important;
    background-color: transparent !important;
}

.woocommerce .cart-collaterals .cart_totals .woocommerce-shipping-destination,
.woocommerce-cart .cart-collaterals .woocommerce-shipping-destination {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce .cart-collaterals .cart_totals tr.order-total th,
.woocommerce .cart-collaterals .cart_totals tr.order-total td {
    font-weight: bold;
    font-size: 20px;
    padding-top: 14px;
}
.woocommerce .cart-collaterals .cart_totals tr.order-total th {
    text-transform: uppercase;
}
.woocommerce .cart-collaterals .cart_totals td {
    text-align: right;
}
.woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout {
    margin: 22px 0 0 0;
    padding: 0;
    text-align: center;
}
.woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    display: block;
    padding: 14px 0;
    background: #f7cd13;
    color: #000 !important;
    border-radius: 7px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    box-shadow: none;
    text-align: center;
    transition: background 0.17s;
    margin-top: 6px;
    letter-spacing: 0.01em;
}
.woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
    color: #fff!important;
    background: #18184b;
}

/* Ukryj komunikat "metody wysyłki zostaną zaktualizowane" */
.woocommerce-shipping-calculator,
.woocommerce .cart-collaterals .woocommerce-shipping-calculator,
.woocommerce-cart .cart-collaterals .woocommerce-shipping-calculator,
p.woocommerce-shipping-destination + .woocommerce-shipping-calculator,
.shipping-calculator-button,
.woocommerce-shipping-destination {
    display: none !important;
}

/* Pogrubiona kwota w podsumowaniu */
.woocommerce .cart-collaterals .cart_totals tr.order-total td .woocommerce-Price-amount,
.woocommerce .cart-collaterals .cart_totals tr.order-total td strong,
.woocommerce .cart-collaterals .cart_totals tr.order-total .amount {
    font-weight: 700 !important;
    font-size: 20px !important;
}

/* Ukryj cross-sell jeśli nie chcesz */
.cart-cross-sell { display: none; }
@media (max-width: 900px) {
    .cart-main-wrapper { flex-direction: column; gap: 18px; padding: 0 1vw; }
    .cart-form-section, .cart-summary-section, .cart-products-list { max-width: 100%; min-width: 0; border-radius: 10px; margin: 0 auto; width: 100%; }
    .cart-summary-section { position: static; margin-left: 0; width: 100%; max-width: 100%; }
}

/* ======= KOSZYK: UX & NOTYFIKACJE ======= */
.continue-shopping-wrap {
    text-align: center;
    padding-top: 10px;
}
.woocommerce-error, .woocommerce-info, .woocommerce-message {
    border-top-color: #CD8F5C;
}
.woocommerce-notices-wrapper:focus,
.woocommerce-notices-wrapper:focus-visible,
.woocommerce-message:focus,
.woocommerce-message:focus-visible,
.woocommerce-error:focus,
.woocommerce-error:focus-visible,
.woocommerce-info:focus,
.woocommerce-info:focus-visible {
    outline: none;
    box-shadow: none;
}
/* ======= GALERIA PRODUKTU – STRONA POJEDYNCZEGO PRODUKTU ======= */
.my-product-gallery { width:100%; }
#main-fancy img { width: 100%; max-width: 800px; border-radius: 8px; }
.my-product-thumbs-slider {
  display: flex;
  align-items: center;
  margin-top: 20px;
  max-width: 420px;
  overflow: hidden;
}
.thumbs-arrow {
  background: #eee;
  border: none;
  font-size: 28px;
  padding: 0 10px;
  cursor: pointer;
}
.thumbs-track {
  display: flex;
  transition: transform 0.3s;
}
.thumb-link {
  display: block;
  margin: 0 3px;
  border: 2px solid transparent;
  border-radius: 6px;
}
.thumb-link.active, .thumb-link:hover {
  border-color: #0073aa;
}
.thumb-link img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}
.missing-thumb {
  width: 90px;
  height: 90px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #999;
  border-radius: 6px;
  text-align: center;
}

/* ======= STRONA PRODUKTU: UKŁAD GŁÓWNY ======= */
body { padding-right: 0 !important; }
.product-page-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.product-gallery-section,
.product-info-section {
  flex: 1 1 0;
  min-width: 0;
  width: 50%;
  box-sizing: border-box;
}
.product-gallery-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.product-info-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.product-gallery-main {
  position: relative;
  margin-bottom: 18px;
  border-radius: 12px;

  overflow: visible;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 18px auto;
}
.product-gallery-main a,
.product-gallery-main a:hover,
.product-gallery-main a:focus {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  text-decoration: none !important;
}
.product-gallery-main img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
  background: #faf8f5;
}

/* ======= GALERIA MINIATUREK (desktop 4, mobile 2) ======= */
.product-gallery-thumbnails-slider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 0 auto;
  position: relative;
  gap: 0;
}
.product-gallery-thumbnails-slider .thumbs-arrow {
  background: #eee;
  border: none;
  font-size: 28px;
  padding: 0 10px;
  cursor: pointer;
  border-radius: 8px;
  height: 100px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  user-select: none;
  transition: background .18s;
}
.product-gallery-thumbnails-slider .thumbs-arrow:disabled {
  opacity: 0.32;
  cursor: default;
}
.product-gallery-thumbnails-slider .thumbs-viewport {
  overflow: hidden;
  width: 424px; /* 4 x 100px + 3 x 8px gap */
  max-width: 100%;
  height: 104px;
  position: relative;
  margin: 0 6px;
}
.product-gallery-thumbnails-slider .thumbs-track {
  display: flex;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(.23,1.02,.67,.98);
  will-change: transform;
}
.product-gallery-thumbnails-slider .thumb-link,
.product-gallery-thumbnails-slider .thumb-link:hover,
.product-gallery-thumbnails-slider .thumb-link:focus {
  display: block;
  border: 2px solid transparent;
  border-radius: 8px;
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  max-width: 100px;
  max-height: 100px;
  transition: border 0.2s;
  margin: 0;
  outline: none;
  text-decoration: none !important;
}
.product-gallery-thumbnails-slider .thumb-link.active,
.product-gallery-thumbnails-slider .thumb-link:hover {
  border-color: #CD8F5C;
}
.product-gallery-thumbnails-slider .thumb-link img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 7px;
  display: block;
  background: #f4efeb;
  box-shadow: 0 1px 8px rgba(100,80,30,0.06);
  margin: 0 auto;
  transition: box-shadow 0.2s;
}
.product-gallery-thumbnails-slider .thumb-link:hover img,
.product-gallery-thumbnails-slider .thumb-link.active img {
  box-shadow: 0 2px 12px rgba(205,143,92,0.13);
}

/* ======= RESPONSYWNOŚĆ: GALERIA PRODUKTU ======= */
@media (max-width: 900px) {
  .product-page-container {
    flex-direction: column;
    gap: 28px;
  }
  .product-gallery-section,
  .product-info-section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .product-gallery-main,
  .product-gallery-thumbnails-slider {
    max-width: 100%;
  }
  .product-gallery-thumbnails-slider .thumbs-viewport {
    height: 76px;
    margin: 0 3px;
  }
  .product-gallery-thumbnails-slider .thumb-link {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
  }
  .product-gallery-thumbnails-slider .thumb-link img {
    width: 64px;
    height: 64px;
  }
  .product-gallery-thumbnails-slider .thumbs-arrow {
    height: 76px;
    width: 26px;
    font-size: 21px;
  }
}

/* ======= UX i focus ======= */
.product-gallery-thumbnails-slider .thumb-link:focus {
  border-color: #b88342;
  outline: 2px solid #b88342;
}

/* ======= Fancybox fix: nie przesuwaj body przy otwarciu ======= */
body { padding-right: 0 !important; }

/* ======= FORMULARZ PRODUKTU – PRZYCISKI, SELECTY, WARIANTY ======= */

/* Tabela wariantów - zmniejszone odstępy */
.woocommerce div.product form.cart .variations {
  margin-bottom: 20px;
}

.woocommerce div.product form.cart .variations tr {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px; /* 20px między labelem a selectem */
  margin-bottom: 15px;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
  border: 0;
  line-height: 1.4;
  padding: 0;
  display: flex;
  align-items: center;
  width: auto;
}

/* Label wariantu - wyśrodkowany względem selecta */
.woocommerce div.product form.cart .variations td.label,
.woocommerce div.product form.cart .variations th.label {
  min-width: 100px;
}

.woocommerce div.product form.cart .variations th label,
.woocommerce div.product form.cart .variations td.label label {
  font-weight: 600;
  font-size: 15px;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 44px; /* Taka sama wysokość jak select */
}

/* Select wariantu - bliżej labela (~20px gap od góry sekcji) */
.woocommerce div.product form.cart .variations select {
  width: 100%;
  max-width: 280px;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  font-family: var(--font-body);
  color: #222;
  transition: border 0.2s ease;
  margin-top: 0;
}

/* Ilość produktu */
.woocommerce .quantity .qty {
  width: 4em;
  height: 60px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  padding: 6px 8px;
  margin-top: 1px;
  box-sizing: border-box;
}

/* === Przycisk "Dodaj do koszyka" na stronie produktu === */
.woocommerce div.product form.cart .button {
  background: #FCD00A;
  color: #222;
  padding: 20px 28px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  box-shadow: none;
  display: inline-block;
  width: auto;
  line-height: 1.2;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce div.product form.cart .button:focus-visible {
  background: var(--a-global-color-primary, #cd8f5c);
  color: #ffffff;
}

/* ======= PRODUCT INFO: CENA PROMOCYJNA I STANDARDOWA ======= */
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
  color: #d32f2f;
}
.woocommerce div.product .price ins,
.woocommerce div.product .price ins .amount {
  color: #d32f2f;
}
.single_variation_wrap .woocommerce-variation-price .price {
  color: #000;
  font-weight: 600;
}
.single_variation_wrap .woocommerce-variation-price .price ins {
  color: #d32f2f;
  font-weight: 700;
}
.single_variation_wrap .woocommerce-variation-price .price del {
  color: #999;
  font-weight: 400;
}
.page-content p {
  margin: 0px 0px 20px 0px;
  padding: 0px;
}

/* ======= DOSTĘPNOŚĆ, SKU ======= */
.woocommerce-variation-availability {
  margin-bottom: 10px;
}
.sku_wrapper,
.posted_in {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  color: #666;
}

/* ======= MINIATURKI PRODUKTU: BRAK ZDJĘCIA ======= */
.missing-thumb {
  width: 90px;
  height: 90px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #999;
  border-radius: 6px;
  text-align: center;
}

/* ======= PRZYCISKI "CZYTAJ WIĘCEJ" / PAGINACJA ======= */
button.btn.toggle-desc {
    padding: 10px 20px;
    font-size: 14px;
}

/* ======= INNE, DROBNE DODATKI ======= */
.page-content-box {
  padding: 22px 24px;
}

.my-product-thumbs-slider .thumb-link img {
  width: 92px;
  height: 92px;
  object-fit: cover;
}

.woocommerce-variation-availability {
    margin-bottom: 10px;
}

/* ======= MOBILNE OPTYMALIZACJE ARCHIWUM I KARTY PRODUKTU ======= */
/* Układ archiwum WooCommerce: sidebar znika, produkty 1 w kolumnie, padding 20px, karty 100% szerokości */

@media (max-width: 768px) {
  /* ARCHIWUM I SIATKA PRODUKTÓW */
  .category-layout {
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
    gap: 0;
  }
  .category-sidebar {
    display: none;
  }
  .category-products {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Przebudowa gridu na mobile – zawsze 1 kolumna */
  .products-grid,
  .products-grid ul.products,
  ul.products,
  ul.products[class*="columns-"] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0;
    padding: 0;
    width: 100%;
    grid-auto-flow: row;
  }
  .products-grid li.product,
  ul.products li.product {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    display: block;
    float: none;
    clear: both;
    border: none;
    background: transparent;
    border-radius: 0;
    text-align: left;
  }
  .products-grid li.product a.woocommerce-LoopProduct-link,
  ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    width: 100%;
  }
  .products-grid li.product img,
  ul.products li.product img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    background: #faf8f5;
  }

  /* Tytuł produktu */
  .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 400;
    margin: 12px 0 5px 0;
    color: #111;
    line-height: 1.25;
    word-break: break-word;
  }
  /* Cena */
  .products-grid .price,
  ul.products .price {
    font-size: 16px;
    color: #222;
    font-weight: 700;
  }
  /* Przycisk/koszyk pod zdjęciem */
  .products-grid li.product .button,
  ul.products li.product .button {
    position: static;
    opacity: 1;
    visibility: visible;
    margin: 12px 0 0 0;
    background: #111;
    color: #fff;
    border-radius: 5px;
    padding: 12px 0;
    font-size: 15px;
    width: 100%;
    text-align: center;
    display: block;
    box-shadow: none;
    transition: background 0.15s;
  }
  .products-grid li.product .button:hover,
  ul.products li.product .button:hover {
    background: #FBCF0B;
    color: #222;
  }

  /* Toolbar na mobile - na całą szerokość, 1px od breadcrumbs */
  .products-toolbar {
    padding: 0px 2px;
    background: #f9f9f9;
    border-radius: 0;
    margin: 1px 0 6px 0;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    height: auto;
  }
  .toolbar-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .product-count {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
  }
  .product-count .woocommerce-result-count {
    font-size: 12px;
    margin: 0;
    color: #333;
    line-height: 24px;
  }

  /* Sortowanie - ukryj select, pokaż ikonę */
  .sort-options {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 10px;
  }
  .sort-options .woocommerce-ordering {
    position: relative;
    display: flex;
    align-items: center;
    height: 24px;
  }
  .sort-options select.orderby {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
  }
  .sort-options .woocommerce-ordering::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    margin-top: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='6' x2='16' y2='6'/%3E%3Cline x1='4' y1='12' x2='12' y2='12'/%3E%3Cline x1='4' y1='18' x2='8' y2='18'/%3E%3Cpolyline points='15 15 18 18 21 15'/%3E%3Cline x1='18' y1='18' x2='18' y2='9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
  }

  .pagination-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  /* Related / up-sell / cross-sell – 1 produkt w wierszu */
  .woocommerce ul.products[class*="columns-"] li.product,
  .woocommerce-page ul.products[class*="columns-"] li.product {
    width: 100%;
    float: none;
    margin: 0 0 18px 0;
    clear: both;
    display: block;
    box-sizing: border-box;
  }
}
@media (max-width: 600px) {
  /* Każdy wiersz w koszyku ma być w jednej linii, flex: miniaturka + szczegóły */
  .cart-product-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
  }
  .cart-product-thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    margin-right: 8px;
  }
  .cart-product-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
  }
  .cart-product-details-row {
    flex: 1 1 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
  }
  .cart-product-title {
    font-size: 15px;
    margin: 0 0 4px 0;
    font-weight: 600;
    line-height: 1.2;
  }
  .cart-product-row-bottom {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .cart-product-subtotal {
    font-size: 15px;
    font-weight: 700;
    margin-left: 10px;
  }
  .cart-product-remove {
    font-size: 20px;
    margin-left: 8px;
  }
  /* Wyrównanie przycisku, pola kuponu itp */
  .cart-actions-row {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin: 18px 0 12px 0;
    padding: 0;
  }
}
@media (max-width: 600px) {
  .cart-main-wrapper ul,
  .cart-main-wrapper ol {
    margin: 0;
    padding-left: 0;
    line-height: 1.4;
  }
}
/* Przycisk "Wykorzystaj kupon" w koszyku WooCommerce */
.woocommerce-cart .cart-actions-row .button,
.woocommerce-cart .cart-actions-row button,
.woocommerce-cart .cart-actions-row input.button,
.woocommerce-cart .cart-actions-row button.button {
    font-size: 14px;
    padding: 8px 12px;

}

.woocommerce-cart .cart-actions-row .button:hover,
.woocommerce-cart .cart-actions-row button:hover {
    background: #dddde7;
    color: #18184b;
}


.products-grid li.product a.woocommerce-LoopProduct-link {
  display: block;
  position: relative;
  overflow: hidden;
}

/* ======= HOVER EFFECT: Ramka i cień na obrazku produktu (bez secondary-image) ======= */
li.product img.attachment-woocommerce_thumbnail:not(.secondary-image),
.product img.attachment-woocommerce_thumbnail:not(.secondary-image),
.woocommerce ul.products li.product img:not(.secondary-image),
ul.products li.product img:not(.secondary-image) {
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  /* Bez transition - natychmiastowa zmiana, żeby nie kolidować z hover zdjęcia */
}

/* HOVER: Ramka i cień - WYŁĄCZONE (koliduje z hover drugiego zdjęcia)
li.product:hover img.attachment-woocommerce_thumbnail:not(.secondary-image),
.product:hover img.attachment-woocommerce_thumbnail:not(.secondary-image),
.woocommerce ul.products li.product:hover img:not(.secondary-image),
ul.products li.product:hover img:not(.secondary-image) {
  border-color: #e0e0e0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
}
*/


/* --- FLASH EFFECT ON PRODUCT IMAGE HOVER --- */
ul.products li.product a.woocommerce-LoopProduct-link,
.products-grid li.product a.woocommerce-LoopProduct-link {
  position: relative;
  overflow: hidden;
}

/* FLASH overlay */
ul.products li.product a.woocommerce-LoopProduct-link::after,
.products-grid li.product a.woocommerce-LoopProduct-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.48); /* Lekko białe, półprzezroczyste */
  opacity: 0;
  transition: opacity 0.23s cubic-bezier(.38,1.19,.39,.99);
  pointer-events: none;
  z-index: 4;
  border-radius: inherit;
}

/* Pojawia się na hover - WYŁĄCZONE (efekt rozjaśnienia usunięty) */
ul.products li.product a.woocommerce-LoopProduct-link:hover::after,
.products-grid li.product a.woocommerce-LoopProduct-link:hover::after {
  opacity: 0;
}

.page-content ul, .page-content ol {
    margin: 1em 0 1.5em 0em;
    padding-left: 0;
    line-height: 1.6;
}
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th {
    text-align: left;
}

.opis-kategorii-produktu {
    font-size: 19px;
    color: #5a5a5a;
}

.opis-kategorii-produktu h3 {
    margin: 25px 0px 10px 0px;
	font-size: 22px;
}

.opis-kategorii-produktu h4  {
    font-size: 19px;
    margin-top: 25px;
    margin-bottom: 5px;
}
.opis-kategorii-produktu li  {
    margin: 5px 0px;
	display: list-item;
}
/* Styl paginacji WooCommerce */
/* === WooCommerce Pagination – Override only === */
.woocommerce nav.woocommerce-pagination ul.page-numbers {
	all: unset;
	display: flex;
	justify-content: center;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 40px 0 0;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li {
	all: unset;
	margin: 0;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li a,
.woocommerce nav.woocommerce-pagination ul.page-numbers li span {
	all: unset;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 16px;
	color: #000;
	background-color: #f4f4f4;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.2s ease-in-out, color 0.2s;
	cursor: pointer;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li a:hover {
	background-color: #d0d0d0;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li span.current {
	background-color: #000;
	color: #fff;
	font-weight: 600;
	cursor: default;
}

/* Paginacja mobile */
@media (max-width: 768px) {
  .woocommerce nav.woocommerce-pagination ul.page-numbers {
    gap: 4px;
    flex-wrap: nowrap;
    margin: 30px 0 0;
    justify-content: center;
  }
  .woocommerce nav.woocommerce-pagination ul.page-numbers li a,
  .woocommerce nav.woocommerce-pagination ul.page-numbers li span {
    width: 37px;
    height: 37px;
    font-size: 14px;
  }
  /* Ukryj środkowe numery, zostaw tylko: prev, 1, 2, current, last, next */
  .woocommerce nav.woocommerce-pagination ul.page-numbers li {
    display: none;
  }
  /* Pokaż strzałki prev/next */
  .woocommerce nav.woocommerce-pagination ul.page-numbers li a.prev,
  .woocommerce nav.woocommerce-pagination ul.page-numbers li a.next {
    display: inline-flex;
  }
  /* Pokaż pierwszy, drugi, trzeci, czwarty, piąty, aktualny i ostatnie */
  .woocommerce nav.woocommerce-pagination ul.page-numbers li:first-child,
  .woocommerce nav.woocommerce-pagination ul.page-numbers li:nth-child(2),
  .woocommerce nav.woocommerce-pagination ul.page-numbers li:nth-child(3),
  .woocommerce nav.woocommerce-pagination ul.page-numbers li:nth-child(4),
  .woocommerce nav.woocommerce-pagination ul.page-numbers li:nth-child(5),
  .woocommerce nav.woocommerce-pagination ul.page-numbers li:has(.current),
  .woocommerce nav.woocommerce-pagination ul.page-numbers li:last-child,
  .woocommerce nav.woocommerce-pagination ul.page-numbers li:nth-last-child(2) {
    display: block;
  }
}

        /* ========================================
           GWIAZDKI RATINGU NA KARTACH PRODUKTÓW
           Używa tych samych kolorów co WooCommerce
        ======================================== */

        /* ========================================
           GWIAZDKI RATINGU - ARCHIWUM PRODUKTÓW
        ======================================== */
        .woocommerce-product-rating {
            margin: 8px 0 12px;
            display: flex;
            align-items: center;
            justify-content: center; /* Wycentruj gwiazdki */
            gap: 6px;
        }

        .woocommerce-product-rating .star-rating-link {
            display: flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            transition: opacity 0.2s;
        }

        .woocommerce-product-rating .star-rating-link:hover {
            opacity: 0.8;
        }

        /* Style gwiazdek - dokładnie jak WooCommerce */
        .woocommerce-product-rating .star-rating {
            overflow: hidden;
            position: relative;
            height: 1em;
            line-height: 1;
            font-size: 1em;
            width: 5.4em;
            font-family: star;
            font-weight: 400;
        }

        .woocommerce-product-rating .star-rating::before {
            content: "\53\53\53\53\53";
            color: #d3ced2;
            float: left;
            top: 0;
            left: 0;
            position: absolute;
            letter-spacing: 0.1em;
        }

        .woocommerce-product-rating .star-rating span {
            overflow: hidden;
            float: left;
            top: 0;
            left: 0;
            position: absolute;
            padding-top: 1.5em;
        }

        .woocommerce-product-rating .star-rating span::before {
            content: "\53\53\53\53\53";
            top: 0;
            position: absolute;
            left: 0;
            color: #ffa500;
            letter-spacing: 0.1em;
        }

        .woocommerce-product-rating .rating-count {
            font-size: 0.875em;
            color: #666;
            margin-left: 2px;
        }

        .woocommerce-product-rating .no-rating {
            display: none; /* Ukryj "Brak opinii" w produktach archiwum */
        }

        /* ========================================
           GWIAZDKI RATINGU - STRONA POJEDYNCZEGO PRODUKTU
        ======================================== */

        /* Rating na stronie produktu - wyrównaj do lewej */
        .product-info-section .woocommerce-product-rating {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            margin: 5px 0 15px 0;
            gap: 6px;
        }

        /* Gwiazdki na stronie produktu - większe */
        .product-info-section .woocommerce-product-rating .star-rating {
            font-size: 1.1em;
        }

        /* Link do recenzji - pokaż ilość opinii */
        .product-info-section .woocommerce-product-rating .woocommerce-review-link {
            font-size: 14px;
            color: #666;
            text-decoration: none;
            transition: color 0.2s;
        }

        .product-info-section .woocommerce-product-rating .woocommerce-review-link:hover {
            color: #000;
            text-decoration: none !important;
        }

        /* "Dodaj pierwszą opinię" - gdy brak recenzji */
        .product-info-section .woocommerce-product-rating .woocommerce-review-link.add-first-review {
            color: #CD8F5C;
            font-size: 14px;
            font-weight: 500;
            margin-left: 2px;
            text-decoration: none !important;
            border: none !important;
        }

        .product-info-section .woocommerce-product-rating .woocommerce-review-link.add-first-review:hover {
            color: #a06a3a;
            text-decoration: none !important;
        }

        /* Puste gwiazdki gdy brak opinii - szare */
        .product-info-section .woocommerce-product-rating .star-rating.no-reviews::before {
            color: #d3ced2;
        }

        /* Interaktywne gwiazdki - hover effect */
        .product-info-section .star-rating-interactive,
        .product-info-section .star-rating-interactive:hover,
        .product-info-section .star-rating-interactive:focus {
            display: inline-flex;
            cursor: pointer;
            font-size: 1.2em;
            text-decoration: none !important;
            line-height: 1;
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
        }

        /* Ukryj domyślny tooltip title */
        .product-info-section .star-rating-interactive[title] {
            position: relative;
        }

        /* Wszystkie linki w sekcji rating - bez border/underline */
        .product-info-section .woocommerce-product-rating a,
        .product-info-section .woocommerce-product-rating a:hover,
        .product-info-section .woocommerce-product-rating a:focus,
        .product-info-section .woocommerce-product-rating a:active {
            text-decoration: none !important;
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
            border-bottom: none !important;
        }

        .product-info-section .star-rating-interactive .star {
            color: #d3ced2;
            transition: color 0.15s ease;
            margin-right: 1px;
            font-style: normal;
        }

        /* Wypełnione gwiazdki (dla produktów z ocenami) */
        .product-info-section .star-rating-interactive .star.filled {
            color: #FCD00A;
        }

        /* Hover - wszystkie gwiazdki do pozycji kursora żółte */
        .product-info-section .star-rating-interactive .star.hovered {
            color: #FCD00A !important;
        }

        /* Hover na link - bez podkreślenia */
        .product-info-section .star-rating-interactive:hover {
            text-decoration: none;
        }

        /* Ukryj wrapper gdy pusty (WooCommerce czasem renderuje pusty div) */
        .product-info-section .woocommerce-product-rating:empty {
            display: none;
        }

        /* ========================================
           FORMULARZ PRODUKTU (SINGLE PRODUCT)
        ======================================== */

        /* Wyrównanie quantity i przycisku "Dodaj do koszyka" */
        form.cart {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end; /* Wyrównaj do dołu - aby przycisk był na poziomie inputa */
            gap: 0; /* Brak gap - kontrolujemy przez margin */
        }

        /* Odstęp między ilością a przyciskiem "Dodaj do koszyka" */
        form.cart .quantity {
            padding: 0 !important;
            margin: 0 10px 0 0 !important; /* 10px margin po prawej */
        }

        /* Input ilości - dokładnie ta sama wysokość co przycisk */
        form.cart .quantity input.qty {
            padding: 6px 8px !important;
            height: 60px !important;
            box-sizing: border-box;
            margin: 0 !important;
        }

        /* Przycisk "Dodaj do koszyka" - BEZ marginesu, ta sama wysokość */
        form.cart .single_add_to_cart_button {
            margin: 0 !important;
            height: 60px !important;
            line-height: 1 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        /* Link/obrazek Alior Bank - oddzielony od przycisku */
        form.cart > a[href*="aliorbank"] {
            display: inline-block;
            margin-top: 25px !important;
            margin-left: 0;
        }

        form.cart > a[href*="aliorbank"] img {
            display: block;
            max-width: 100%;
            height: auto;
        }

        /* ========================================
           ŁADNY KOMUNIKAT "DODANO DO KOSZYKA"
        ======================================== */
        .szymiga-cart-notice {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 99999;
            opacity: 0;
            transform: translateX(100%);
            transition: all 0.3s ease;
        }

        .szymiga-cart-notice.visible {
            opacity: 1;
            transform: translateX(0);
        }

        .szymiga-cart-notice .cart-notice-content {
            display: flex;
            align-items: center;
            gap: 12px;
            background: #fff;
            padding: 16px 20px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            border-left: 4px solid #FCD00A;
        }

        .szymiga-cart-notice .cart-notice-icon {
            width: 36px;
            height: 36px;
            background: #4CAF50;
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: bold;
            flex-shrink: 0;
        }

        .szymiga-cart-notice .cart-notice-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .szymiga-cart-notice .cart-notice-text strong {
            font-size: 14px;
            color: #222;
            max-width: 200px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .szymiga-cart-notice .cart-notice-text span {
            font-size: 13px;
            color: #666;
        }

        .szymiga-cart-notice .cart-notice-btn {
            background: #FCD00A;
            color: #222;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
            transition: background 0.2s;
        }

        .szymiga-cart-notice .cart-notice-btn:hover {
            background: #e6bb00;
        }

        .szymiga-cart-notice .cart-notice-close {
            background: none;
            border: none;
            font-size: 20px;
            color: #999;
            cursor: pointer;
            padding: 0 0 0 8px;
            line-height: 1;
        }

        .szymiga-cart-notice .cart-notice-close:hover {
            color: #333;
        }

        /* ========================================
           RESPONSYWNOŚĆ
        ======================================== */
        @media (max-width: 768px) {
            .woocommerce-product-rating {
                margin: 6px 0 10px;
            }

            .woocommerce-product-rating .star-rating {
                font-size: 0.9em;
            }

            .woocommerce-product-rating .rating-count {
                font-size: 0.8em;
            }

            /* Na mobile też zachowaj odstępy */
            form.cart .quantity {
                padding: 5px !important;
            }

            form.cart > a[href*="aliorbank"] {
                margin-top: 20px !important;
            }

            /* Komunikat koszyka na mobile */
            .szymiga-cart-notice {
                top: auto;
                bottom: 20px;
                right: 10px;
                left: 10px;
            }

            .szymiga-cart-notice .cart-notice-content {
                flex-wrap: wrap;
                padding: 12px 15px;
            }

            .szymiga-cart-notice .cart-notice-text strong {
                max-width: 150px;
            }
        }

/* ========================================
   GWIAZDKI W FORMULARZU RECENZJI
======================================== */

/* Kontener gwiazdek w formularzu */
.comment-form-rating {
    margin-bottom: 20px;
}

.comment-form-rating label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #222;
}

/* Gwiazdki do wyboru oceny */
.comment-form-rating .stars {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.comment-form-rating .stars a {
    color: #d3ced2;
    font-size: 24px;
    text-decoration: none !important;
    padding: 0 2px;
    transition: color 0.15s ease;
    line-height: 1;
}

/* Hover - żółte gwiazdki */
.comment-form-rating .stars a:hover,
.comment-form-rating .stars a:focus {
    color: #FCD00A !important;
}

/* Wszystkie gwiazdki przed hoverowaną też żółte */
.comment-form-rating .stars:hover a {
    color: #FCD00A !important;
}

.comment-form-rating .stars a:hover ~ a {
    color: #d3ced2 !important;
}

/* Wybrana gwiazdka - aktywna */
.comment-form-rating .stars.selected a.active {
    color: #FCD00A !important;
}

.comment-form-rating .stars.selected a.active ~ a {
    color: #d3ced2 !important;
}

/* Gwiazdki przed aktywną */
.comment-form-rating .stars.selected a {
    color: #FCD00A;
}

/* Reset po hover gdy już wybrano */
.comment-form-rating .stars.selected:not(:hover) a.active ~ a {
    color: #d3ced2;
}

/* Gwiazdki w istniejących recenzjach */
#reviews .star-rating,
.woocommerce-Reviews .star-rating {
    color: #FCD00A;
}

#reviews .star-rating::before,
.woocommerce-Reviews .star-rating::before {
    color: #d3ced2;
}

#reviews .star-rating span::before,
.woocommerce-Reviews .star-rating span::before {
    color: #FCD00A;
}

/* ========================================
   WOOCOMMERCE NOTICES - ENHANCED (Dodano do koszyka)
======================================== */
.woocommerce-notices-wrapper {
    margin: 20px 0;
    position: relative;
    z-index: 100;
}

/* Success Message (Dodano do koszyka) */
.woocommerce-message {
    background: #f0fdf4;
    border: 2px solid #4ade80;
    border-left: 6px solid #22c55e;
    border-radius: 8px;
    padding: 16px 20px 16px 60px;
    margin-bottom: 20px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #166534;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
    animation: slideDown 0.4s ease-out;
    position: relative;
}

.woocommerce-message::before {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.woocommerce-message a.button,
.woocommerce-message .button {
    background: #22c55e !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-left: auto;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
}

.woocommerce-message a.button:hover,
.woocommerce-message .button:hover {
    background: #16a34a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Info Message */
.woocommerce-info {
    background: #eff6ff;
    border: 2px solid #60a5fa;
    border-left: 6px solid #3b82f6;
    border-radius: 8px;
    padding: 16px 20px 16px 60px;
    margin-bottom: 20px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #1e40af;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    animation: slideDown 0.4s ease-out;
    position: relative;
}

.woocommerce-info::before {
    content: "i";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

/* Error Message */
.woocommerce-error {
    background: #fef2f2;
    border: 2px solid #f87171;
    border-left: 6px solid #ef4444;
    border-radius: 8px;
    padding: 16px 20px 16px 60px;
    margin-bottom: 20px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #991b1b;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    animation: slideDown 0.4s ease-out;
    position: relative;
}

.woocommerce-error::before {
    content: "\00d7";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 14px 16px 14px 54px;
    }

    .woocommerce-message::before,
    .woocommerce-info::before,
    .woocommerce-error::before {
        left: 14px;
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .woocommerce-message a.button,
    .woocommerce-message .button {
        margin-left: 0 !important;
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   CROSS-SELLS W KOSZYKU - POD PRODUKTAMI
======================================== */

form.woocommerce-cart-form .cart-cross-sells-section,
.cart-form-section .cart-cross-sells-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
    width: 100%;
    display: block;
    clear: both;
}

.cart-form-section .cart-cross-sells-section h2,
.woocommerce-cart-form .cart-cross-sells-section h2,
div.cart-cross-sells-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    text-align: left;
    padding: 0 5px;
}

form.woocommerce-cart-form .cart-cross-sells-grid,
.cart-form-section .cart-cross-sells-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cart-cross-sells-grid .cross-sell-item {
    background: #fff;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 14px 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    min-width: 0;
}

.cross-sell-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.cross-sell-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cross-sell-image {
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
}

.cross-sell-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.cross-sell-item:hover .cross-sell-image img {
    transform: scale(1.05);
}

.cross-sell-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cross-sell-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.cross-sell-price del {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin-right: 8px;
}

.cross-sell-price ins {
    text-decoration: none;
    color: #000;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    form.woocommerce-cart-form .cart-cross-sells-grid,
    .cart-form-section .cart-cross-sells-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .cart-cross-sells-section {
        margin-top: 30px;
        padding-top: 20px;
    }

    .cart-cross-sells-section h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    form.woocommerce-cart-form .cart-cross-sells-grid,
    .cart-form-section .cart-cross-sells-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cross-sell-title {
        font-size: 15px;
        min-height: auto;
    }

    .cross-sell-price {
        font-size: 16px;
    }

    .cross-sell-add-to-cart {
        padding: 10px 16px;
        font-size: 13px;
    }
}


/* ========================================
   POPRAWKI PRODUCT GRID - BEZ !important
   Używamy wysokiej specyficzności selektorów
======================================== */

/* 1. Ukryj gwiazdki ratingu w gridzie produktów */
.products-grid li.product .woocommerce-product-rating,
.products-grid li.product .star-rating,
.products-grid ul.products li.product .woocommerce-product-rating,
.products-grid ul.products li.product .star-rating,
ul.products li.product .woocommerce-product-rating,
ul.products li.product .star-rating {
    display: none;
}

/* 2. Wyrównaj ceny - flexbox layout + usuń overflow hidden dla efektów hover */
.products-grid li.product,
.products-grid ul.products li.product,
ul.products.products li.product,
ul.products[class*="columns-"] li.product {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.products-grid li.product a.woocommerce-LoopProduct-link,
.products-grid ul.products li.product a.woocommerce-LoopProduct-link,
ul.products.products li.product a.woocommerce-LoopProduct-link {
    flex-shrink: 0;
    overflow: hidden;
}

/* Min-height dla tytułu - wyrównanie cen */
.products-grid li.product .woocommerce-loop-product__title,
.products-grid ul.products li.product .woocommerce-loop-product__title,
ul.products.products li.product .woocommerce-loop-product__title,
ul.products[class*="columns-"] li.product .woocommerce-loop-product__title {
    min-height: 44px;
    display: block;
}

/* Wypchaj cenę na dół + pogrubienie i wyśrodkowanie */
.products-grid li.product .price,
.products-grid ul.products li.product .price,
ul.products.products li.product .price,
ul.products[class*="columns-"] li.product .price {
    margin-top: auto;
    font-weight: 700 !important;
    text-align: center !important;
    font-size: 20px !important;
}

/* 3. Zwiększ odstępy między produktami */
.products-grid ul.products {
    gap: 30px;
}

.products-grid {
    gap: 15px;
}

/* 4. Hover effects - border, cień (bez zmiany zdjęcia) */
.products-grid li.product,
.products-grid ul.products li.product,
ul.products.products li.product,
ul.products[class*="columns-"] li.product {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 14px 10px;
    box-sizing: border-box;
}

.products-grid li.product:hover,
.products-grid ul.products li.product:hover,
ul.products.products li.product:hover,
ul.products[class*="columns-"] li.product:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


/* ========================================
   COMPACT BUTTON - CROSS-SELLS
======================================== */
.btnc.btnc-compact {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Wyśrodkowanie cen w cross-sells (spójność z listingiem) */
.cross-sell-price {
    text-align: center;
}

/* ========================================
   LINKI W TREŚCI STRON/KATEGORII - HOVER PODKREŚLENIE
   WAŻNE: NIE dotyczy galerii produktu, gwiazdek, miniaturek!
======================================== */

/* Linki w treści stron i kategorii WooCommerce - z wykluczeniami */
.page-content a:not(.btn):not(.btnc):not(.button):not(.woocommerce-LoopProduct-link):not(.star-rating-link):not(.star-rating-interactive):not(.thumb-link):not(.woocommerce-review-link):not([data-fancybox]):not(#main-fancy),
.category-description a:not(.btn):not(.btnc):not(.button):not(.thumb-link):not([data-fancybox]),
.desc-text a:not(.btn):not(.btnc):not(.button):not(.thumb-link):not([data-fancybox]),
.woocommerce-products-header a:not(.btn):not(.btnc):not(.button),
.term-description a:not(.btn):not(.btnc):not(.button) {
    color: #000;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

/* Pseudo-element dla animowanego podkreślenia - z wykluczeniami dla galerii i gwiazdek */
.page-content a:not(.btn):not(.btnc):not(.button):not(.woocommerce-LoopProduct-link):not(.star-rating-link):not(.star-rating-interactive):not(.thumb-link):not(.woocommerce-review-link):not([data-fancybox]):not(#main-fancy)::after,
.category-description a:not(.btn):not(.btnc):not(.button):not(.thumb-link):not([data-fancybox])::after,
.desc-text a:not(.btn):not(.btnc):not(.button):not(.thumb-link):not([data-fancybox])::after,
.woocommerce-products-header a:not(.btn):not(.btnc):not(.button)::after,
.term-description a:not(.btn):not(.btnc):not(.button)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FBCF0B;
    transition: width 0.3s ease;
}

/* Hover - rozszerz podkreślenie */
.page-content a:not(.btn):not(.btnc):not(.button):not(.woocommerce-LoopProduct-link):not(.star-rating-link):not(.star-rating-interactive):not(.thumb-link):not(.woocommerce-review-link):not([data-fancybox]):not(#main-fancy):hover::after,
.category-description a:not(.btn):not(.btnc):not(.button):not(.thumb-link):not([data-fancybox]):hover::after,
.desc-text a:not(.btn):not(.btnc):not(.button):not(.thumb-link):not([data-fancybox]):hover::after,
.woocommerce-products-header a:not(.btn):not(.btnc):not(.button):hover::after,
.term-description a:not(.btn):not(.btnc):not(.button):hover::after {
    width: 100%;
}

/* Opcjonalnie: zmiana koloru tekstu na hover */
.page-content a:not(.btn):not(.btnc):not(.button):not(.woocommerce-LoopProduct-link):not(.star-rating-link):not(.star-rating-interactive):not(.thumb-link):not(.woocommerce-review-link):not([data-fancybox]):not(#main-fancy):hover,
.category-description a:not(.btn):not(.btnc):not(.button):not(.thumb-link):not([data-fancybox]):hover,
.desc-text a:not(.btn):not(.btnc):not(.button):not(.thumb-link):not([data-fancybox]):hover,
.woocommerce-products-header a:not(.btn):not(.btnc):not(.button):hover,
.term-description a:not(.btn):not(.btnc):not(.button):hover {
    color: #000;
}

/* EXTRA: Wymuś brak ::after dla galerii i gwiazdek (najwyższa specyficzność) */
.product-gallery-section a::after,
.product-gallery-main a::after,
.product-gallery-thumbnails-slider a::after,
.thumb-link::after,
#main-fancy::after,
.star-rating-interactive::after,
.woocommerce-product-rating a::after,
a[data-fancybox]::after,
a:has(img)::after {
    content: none !important;
    display: none !important;
}

/* ========================================
   PODOBNE PRODUKTY / UPSELLS - CENY CZARNE
======================================== */
.related.products .price,
.related.products .price .woocommerce-Price-amount,
.related.products .price ins,
.related.products .price ins .woocommerce-Price-amount,
.upsells.products .price,
.upsells.products .price .woocommerce-Price-amount,
.upsells.products .price ins,
.upsells.products .price ins .woocommerce-Price-amount,
section.related .price,
section.related .price ins,
section.upsells .price,
section.upsells .price ins,
.product-recommendations-section .price,
.product-recommendations-section .price ins,
.product-recommendations-section .price .woocommerce-Price-amount {
    color: #000 !important;
}

/* Cena przekreślona w podobnych produktach */
.related.products .price del,
.upsells.products .price del,
section.related .price del,
section.upsells .price del,
.product-recommendations-section .price del {
    color: #999 !important;
}

/* =====================================================
   WISHLIST SHARE BUTTON & POPUP
   ===================================================== */

/* Przycisk share - lewa strona */
.wishlist-product-card .share-wishlist {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    border: 1px solid #ddd;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}

.wishlist-product-card .share-wishlist svg {
    width: 18px;
    height: 18px;
    stroke: #333;
}

.wishlist-product-card .share-wishlist:hover {
    background: #FBCF0B;
    border-color: #FBCF0B;
}

.wishlist-product-card .share-wishlist:hover svg {
    stroke: #111;
}

/* Share popup overlay */
.share-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Share popup */
.share-popup {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-popup-overlay.active .share-popup {
    transform: scale(1);
}

.share-popup h4 {
    margin: 0 0 16px;
    font-size: 18px;
    text-align: center;
}

.share-popup-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.share-popup-options a,
.share-popup-options button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 11px;
    width: 72px;
    height: 72px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.share-popup-options a:hover,
.share-popup-options button:hover {
    background: #eee;
    transform: translateY(-2px);
}

.share-popup-options svg {
    width: 28px;
    height: 28px;
}

/* Kolory ikon komunikatorów */
.share-popup-options .share-messenger svg { color: #0084FF; }
.share-popup-options .share-whatsapp svg { color: #25D366; }
.share-popup-options .share-telegram svg { color: #0088cc; }
.share-popup-options .share-discord svg { color: #5865F2; }
.share-popup-options .share-signal svg { color: #3A76F0; }
.share-popup-options .share-email svg { color: #EA4335; stroke: #EA4335; }
.share-popup-options .share-copy svg { color: #666; stroke: #666; }
.share-popup-options .share-sms svg { color: #34C759; }

.share-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.share-popup-close:hover {
    color: #333;
}

/* Komunikat po skopiowaniu */
.share-copied-msg {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.share-copied-msg.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Focus styles dla dostępności */
.share-popup-close:focus,
.share-popup-options a:focus,
.share-popup-options button:focus {
    outline: 2px solid #FBCF0B;
    outline-offset: 2px;
}
