/* Eniverse / globalna karta produktu: dziala tylko na widoku pojedynczego produktu. */
:root {
  --evapl-line: #e5e3e0;
  --evapl-text: #222222;
  --evapl-muted: #777777;
}

/* Dwie kolumny: duza GALERIA po LEWEJ, informacje po PRAWEJ. */
body.single-product .woocommerce div.product[id^="product-"] {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  column-gap: clamp(24px, 4vw, 76px);
  row-gap: 48px;
  align-items: start;
  position: relative;
}

/* Natywne clear-fixy WooCommerce nie moga zajmowac komorek siatki. */
body.single-product .woocommerce div.product[id^="product-"]::before,
body.single-product .woocommerce div.product[id^="product-"]::after {
  display: none !important;
  content: none !important;
}

body.single-product .woocommerce div.product[id^="product-"] > .summary.entry-summary {
  grid-column: 2;
  grid-row: 1;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  float: none !important;
}

body.single-product .woocommerce div.product[id^="product-"] > .woocommerce-product-gallery,
body.single-product .woocommerce div.product[id^="product-"] > .images {
  grid-column: 1;
  grid-row: 1;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  float: none !important;
}

/* Powiazane produkty i upsell pozostaja pod ukladem dwoch kolumn. */
body.single-product .woocommerce div.product[id^="product-"] > .related,
body.single-product .woocommerce div.product[id^="product-"] > .upsells,
body.single-product .woocommerce div.product[id^="product-"] > .woocommerce-tabs {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  clear: both;
}

body.single-product .woocommerce div.product[id^="product-"] > .onsale {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 5;
}

/* Duzy obraz bez przycinania oryginalnego zdjecia produktu. */
body.single-product .woocommerce div.product[id^="product-"] .woocommerce-product-gallery img {
  width: 100%;
  height: auto;
}

/* Prawa kolumna — informacje i przycisk zakupu. */
body.single-product .woocommerce div.product[id^="product-"] > .summary.entry-summary .product_title {
  margin: 0 0 14px;
  line-height: 1.2;
}
body.single-product .woocommerce div.product[id^="product-"] > .summary.entry-summary .price {
  margin-bottom: 22px;
}
body.single-product .woocommerce div.product[id^="product-"] > .summary.entry-summary .single_add_to_cart_button {
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 0;
}

/* Rozmiary jako przyciski, bez naruszania <select> i wariantow WooCommerce. */
body.single-product select.evapl-original-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
body.single-product .evapl-size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 2px 0 9px;
}
body.single-product .evapl-size-button {
  appearance: none;
  min-width: 48px;
  min-height: 43px;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  padding: 8px 12px;
  background: #fff;
  color: var(--evapl-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
body.single-product .evapl-size-button:hover:not(:disabled),
body.single-product .evapl-size-button:focus-visible {
  border-color: var(--evapl-text);
}
body.single-product .evapl-size-button[aria-pressed="true"] {
  border-color: var(--evapl-text);
  background: var(--evapl-text);
  color: #fff;
}
body.single-product .evapl-size-button:disabled {
  opacity: .3;
  text-decoration: line-through;
  cursor: not-allowed;
}
body.single-product .evapl-size-button:focus-visible,
body.single-product .evapl-accordion summary:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

/* Akordeon: minimalny wyglad w stylu sklepow premium. */
body.single-product .evapl-accordion {
  margin-top: 27px;
  border-top: 1px solid var(--evapl-line);
}
body.single-product .evapl-accordion__item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--evapl-line);
}
body.single-product .evapl-accordion__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 0;
  margin: 0;
  list-style: none;
  cursor: pointer;
  color: var(--evapl-text);
  font-size: 15px;
  font-weight: 500;
}
body.single-product .evapl-accordion__heading::-webkit-details-marker {
  display: none;
}
body.single-product .evapl-accordion__heading::after {
  content: '+';
  flex: none;
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
}
body.single-product details[open] > .evapl-accordion__heading::after {
  content: '−';
}
body.single-product .evapl-accordion__content {
  padding: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--evapl-text);
}
body.single-product .evapl-accordion__content > :first-child { margin-top: 0; }
body.single-product .evapl-accordion__content > :last-child { margin-bottom: 0; }
body.single-product .evapl-accordion__content table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}
body.single-product .evapl-accordion__content table th,
body.single-product .evapl-accordion__content table td {
  padding: 11px 5px;
  border: 0;
  border-bottom: 1px solid var(--evapl-line);
  text-align: left;
  vertical-align: top;
}
body.single-product .evapl-accordion__content table th { width: 38%; font-weight: 500; }

/* Uklad jednokolumnowy dla tabletu i telefonu. */
@media (max-width: 900px) {
  body.single-product .woocommerce div.product[id^="product-"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  body.single-product .woocommerce div.product[id^="product-"] > .woocommerce-product-gallery,
  body.single-product .woocommerce div.product[id^="product-"] > .images {
    grid-column: 1;
    grid-row: 1;
  }
  body.single-product .woocommerce div.product[id^="product-"] > .summary.entry-summary {
    grid-column: 1;
    grid-row: 2;
  }
  body.single-product .woocommerce div.product[id^="product-"] > .related,
  body.single-product .woocommerce div.product[id^="product-"] > .upsells,
  body.single-product .woocommerce div.product[id^="product-"] > .woocommerce-tabs {
    grid-column: 1;
    grid-row: auto;
  }
}


/* Odstęp pod tytułem produktu */
body.single-product .summary.entry-summary .product_title {
    margin-bottom: 24px !important;
}

/* Odstęp pod ceną produktu */
body.single-product .summary.entry-summary > .price {
    margin-bottom: 28px !important;
}

/* Odstęp pod krótkim opisem */
body.single-product .summary.entry-summary
.woocommerce-product-details__short-description {
    margin-bottom: 28px;
}

/* Tabela parametrów produktu */
body.single-product .evapl-accordion__content
table.woocommerce-product-attributes {
    font-family: inherit !important;
    font-size: inherit;
    font-style: normal !important;
}

/* Wyrównanie obu kolumn */
body.single-product .evapl-accordion__content
table.woocommerce-product-attributes th,
body.single-product .evapl-accordion__content
table.woocommerce-product-attributes td {
    vertical-align: middle !important;
    text-align: left;
    font-family: inherit !important;
    font-size: inherit;
    font-style: normal !important;
    line-height: 1.5;
}

/* Usunięcie marginesów akapitów w komórkach */
body.single-product .evapl-accordion__content
table.woocommerce-product-attributes td p {
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-style: normal !important;
    line-height: inherit;
}

/* Usunięcie kursywy z wartości parametrów */
body.single-product .evapl-accordion__content
table.woocommerce-product-attributes td em,
body.single-product .evapl-accordion__content
table.woocommerce-product-attributes td i {
    font-style: normal !important;
}

/* ========================================
   1. USUNIĘCIE LINII MIĘDZY ROZMIARAMI
   A PRZYCISKIEM DODAJ DO KOSZYKA
======================================== */

body.single-product .summary.entry-summary
form.variations_form .variations,
body.single-product .summary.entry-summary
form.variations_form .variations tr,
body.single-product .summary.entry-summary
form.variations_form .variations th,
body.single-product .summary.entry-summary
form.variations_form .variations td,
body.single-product .summary.entry-summary
form.variations_form .single_variation_wrap,
body.single-product .summary.entry-summary
form.variations_form .woocommerce-variation-add-to-cart {
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* ========================================
   2. USUNIĘCIE RÓŻOWEJ LINII
   W SEKCJI PARAMETRY
======================================== */

body.single-product .evapl-accordion__content
table.woocommerce-product-attributes,
body.single-product .evapl-accordion__content
table.woocommerce-product-attributes tbody,
body.single-product .evapl-accordion__content
table.woocommerce-product-attributes tr {
    border-top: none !important;
    box-shadow: none !important;
}

body.single-product .evapl-accordion__content
table.woocommerce-product-attributes th,
body.single-product .evapl-accordion__content
table.woocommerce-product-attributes td {
    border-top: none !important;
}

/* ========================================
   1. KOLOR KRÓTKIEGO OPISU PRODUKTU
======================================== */

body.single-product .summary.entry-summary
.woocommerce-product-details__short-description,
body.single-product .summary.entry-summary
.woocommerce-product-details__short-description p {
    color: #3a292d !important;
}

/* ========================================
   2. KOLOR CENY PRODUKTU
======================================== */

body.single-product .summary.entry-summary
.price,
body.single-product .summary.entry-summary
.price .woocommerce-Price-amount,
body.single-product .summary.entry-summary
.price bdi {
    color: #db7b97 !important;
}

/* ========================================
   3. KOLOR PRZYCISKÓW ROZMIARÓW
======================================== */



/* ========================================
   ROZMIARY - KOLOR DOMYŚLNY
======================================== */

body.single-product
.cfvsw-swatches-container
.cfvsw-swatches-option:not(.cfvsw-selected-swatch) {
    color: #3a292d !important;
    border-color: #3a292d !important;
}

/* ========================================
   ROZMIARY - NAJECHANIE MYSZKĄ
======================================== */

body.single-product
.cfvsw-swatches-container
.cfvsw-swatches-option:hover:not(.cfvsw-selected-swatch):not(.cfvsw-swatches-disabled) {
    color: #3a292d !important;
    border-color: #3a292d !important;
}

/* ========================================
   ROZMIARY - AKTYWNY WYBÓR
======================================== */

body.single-product
.cfvsw-swatches-container
.cfvsw-swatches-option.cfvsw-selected-swatch {
    background-color: #3a292d !important;
    border-color: #3a292d !important;
    color: #ffffff !important;
}
