/* YITH Wishlist – "Kedvenceim" oldal
   A YITH 768 px-nél kétféle HTML-t ad ki (AJAX-szal cseréli):
     szélesen: table.wishlist_table   |   szűken: ul.wishlist_table > li
   Ezért van két blokk. A feliratok (fejléc, "Ár:", "Készlet:") megmaradnak,
   a gomb és a hover a téma színét használja (--ast-global-color-0/1).
   Az !important-ok a plugin saját mobil CSS-e miatt kellenek: az felülírja
   a szélességeket és a paddingeket. */

/* --- A) táblázatos nézet: a sorok külön lapok, a fejléc marad ----------- */
.woocommerce table.wishlist_table {
  border: 0;
  background: none;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.woocommerce table.wishlist_table thead th {
  padding: 0 12px 4px;
  border: 0;
  background: none;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.woocommerce table.wishlist_table tbody tr {
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 32, 25, .05), 0 6px 18px -12px rgba(16, 32, 25, .25);
}

.woocommerce table.wishlist_table tbody td {
  padding: 12px !important;
  border: 0 !important;
  border-top: 1px solid #ecefed !important;
  border-bottom: 1px solid #ecefed !important;
  vertical-align: middle;
}

.woocommerce table.wishlist_table tbody td:first-child {
  border-left: 1px solid #ecefed !important;
  border-radius: 12px 0 0 12px;
}

.woocommerce table.wishlist_table tbody td:last-child {
  border-right: 1px solid #ecefed !important;
  border-radius: 0 12px 12px 0;
}

.woocommerce table.wishlist_table tbody td.product-thumbnail img {
  width: 64px;
  height: 64px;
  padding: 5px;
  box-sizing: border-box;
  object-fit: contain;
  background: #f6f7f6;
  border-radius: 10px;
}

.woocommerce table.wishlist_table tbody td.product-name a {
  color: #1f2a26;
  font-weight: 600;
  text-decoration: none;
}

.woocommerce table.wishlist_table tbody td.product-name a:hover {
  color: var(--ast-global-color-0, #2f6b52);
}

.woocommerce table.wishlist_table tbody td.product-price {
  font-weight: 700;
  white-space: nowrap;
}

.woocommerce table.wishlist_table tbody td.product-price del,
.woocommerce table.wishlist_table tbody td.product-price del .amount {
  font-size: 13px;
  font-weight: 400;
  color: #8b9691;
}

.woocommerce table.wishlist_table tbody td.product-price ins {
  background: none;
  text-decoration: none;
}

.woocommerce table.wishlist_table tbody td.product-stock-status,
.woocommerce table.wishlist_table tbody td.product-add-to-cart {
  white-space: nowrap;
}

/* --- B) listás (szűk) nézet: kártyák ------------------------------------ */
ul.wishlist_table {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* a kártya egy 2 hasábos rács: kép | szöveg */
ul.wishlist_table > li {
  position: relative;
  display: grid !important;              /* a plugin inline-block layoutja helyett */
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 6px;
  align-items: start;
  list-style: none;
  margin: 0 0 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #ecefed;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 32, 25, .05), 0 6px 18px -12px rgba(16, 32, 25, .25);
}

/* EZ a lényeg: a kép és a szövegblokk a kártya rácsába kerül, így az ár és
   a készlet sor ugyanabban a hasábban van – pixeles behúzás nélkül. */
ul.wishlist_table li .item-wrapper {
  display: contents !important;
}

ul.wishlist_table li .product-thumbnail {
  grid-column: 1;
  grid-row: 1;
  width: 72px !important;
  max-width: 72px !important;            /* a plugin 60px-re szorítaná */
  margin: 0 !important;
}

ul.wishlist_table li .product-thumbnail img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  padding: 5px;
  box-sizing: border-box;
  object-fit: contain;
  background: #f6f7f6;
  border-radius: 10px;
}

ul.wishlist_table li .item-details {
  grid-column: 2;
  grid-row: 1;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 32px 0 0 !important;         /* jobbra hely a × ikonnak */
}

ul.wishlist_table li .additional-info-wrapper {
  grid-column: 2;                        /* ugyanaz a hasáb, mint a szövegblokk */
  grid-row: 2;
  margin: 0 !important;
  padding: 0 32px 0 0 !important;
}

ul.wishlist_table li .product-name h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

ul.wishlist_table li .product-name h3 a {
  color: #1f2a26;
  text-decoration: none;
}

/* felirat balra szürkén, érték jobbra félkövéren */
ul.wishlist_table li table.item-details-table,
ul.wishlist_table li table.additional-info {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
}

ul.wishlist_table li table.item-details-table td.label,
ul.wishlist_table li table.item-details-table td.value,
ul.wishlist_table li table.additional-info td.label,
ul.wishlist_table li table.additional-info td.value {
  min-height: 0 !important;              /* a plugin 2 sor magas cellái miatt */
  padding: 2px 0 !important;
  border: 0 !important;
  background: none !important;
  line-height: 1.5;
}

ul.wishlist_table li table.item-details-table td.label,
ul.wishlist_table li table.additional-info td.label {
  width: 1% !important;
  padding-right: 10px !important;
  white-space: nowrap;
  text-align: left !important;
  color: #6b7280;
  font-size: 13px;
}

ul.wishlist_table li table.item-details-table td.value,
ul.wishlist_table li table.additional-info td.value {
  text-align: right !important;
  font-weight: 700;
}

ul.wishlist_table li td.value del,
ul.wishlist_table li td.value del .amount {
  font-size: 13px;
  font-weight: 400;
  color: #8b9691;
}

ul.wishlist_table li td.value ins {
  background: none;
  text-decoration: none;
}

ul.wishlist_table li .product-add-to-cart {
  margin-top: 10px;
}

ul.wishlist_table li .product-remove {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* --- C) mindkét nézet: készlet jelvény, gomb, törlés ikon --------------- */
.wishlist-in-stock,
.wishlist-out-of-stock {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f1f5f3;
  font-size: 13px;
  font-weight: 600;
}

.wishlist-out-of-stock {
  background: #f7f1ea;
  color: #9a6b3f;
}

.wishlist_table td.product-add-to-cart > a,
ul.wishlist_table .product-add-to-cart > a {
  display: inline-block !important;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ast-global-color-0, #2f6b52);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.wishlist_table td.product-add-to-cart > a:hover,
ul.wishlist_table .product-add-to-cart > a:hover {
  background: var(--ast-global-color-1, #24523f);
  color: #fff !important;
}

ul.wishlist_table .product-add-to-cart > a {
  display: block !important;
  text-align: center;
}

.wishlist_table .product-remove a,
.wishlist_table td.product-remove a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e3e7e5;
  border-radius: 50%;
  color: #8b9691;
  font-size: 0;                          /* a plugin ikonja helyett... */
  text-decoration: none;
}

/* ...saját × jel, mert a Font Awesome kuka ikon nem töltődik be */
.wishlist_table .product-remove a i,
.wishlist_table td.product-remove a i {
  display: none !important;
}

.wishlist_table .product-remove a::before,
.wishlist_table td.product-remove a::before {
  content: "\00d7";
  font-family: inherit;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  margin-top: -2px;
}

.wishlist_table .product-remove a:hover,
.wishlist_table td.product-remove a:hover {
  background: #fdeeee;
  border-color: #f2d3d3;
  color: #c0392b;
}