/* =========================================================
   Sea You Property — Custom Wishlist Page Style
   Restyles YITH WooCommerce Wishlist to match site design system
   ========================================================= */

.yith-wcwl-form.wishlist-fragment {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'DM Sans', sans-serif;
}

/* ---------- Title ---------- */
.wishlist-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.wishlist-title-container .wishlist-title h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: #281D0F;
  margin: 0;
}
.wishlist-title-container a.show-title-form {
  font-size: 13px;
  color: #195280;
  border: 1px solid #E4E4E4;
  border-radius: 999px;
  padding: 6px 16px;
  text-decoration: none;
  transition: all .2s ease;
}
.wishlist-title-container a.show-title-form:hover {
  background: #195280;
  color: #fff;
  border-color: #195280;
}

/* ---------- Table shell ---------- */
table.wishlist_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #E4E4E4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(40, 29, 15, 0.06);
}

table.wishlist_table thead th {
  background: #281D0F;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 18px 16px;
  text-align: left;
  border: none;
}

table.wishlist_table tbody.wishlist-items-wrapper tr {
  border-bottom: 1px solid #F0F0F0;
  transition: background .2s ease;
}
table.wishlist_table tbody.wishlist-items-wrapper tr:last-child { border-bottom: none; }
table.wishlist_table tbody.wishlist-items-wrapper tr:hover {
  background: #F5EDE3;
}

table.wishlist_table td {
  padding: 16px;
  vertical-align: middle;
  color: #333333;
  font-size: 14px;
  border: none;
}

/* ---------- Remove (x) ---------- */
td.product-remove { width: 40px; text-align: center; }
td.product-remove a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #F5EDE3;
  color: #8E8679;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: all .2s ease;
}
td.product-remove a.remove:hover {
  background: #A94438;
  color: #fff;
}

/* ---------- Thumbnail ---------- */
td.product-thumbnail { width: 100px; }
td.product-thumbnail img {
  width: 88px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* ---------- Product name ---------- */
td.product-name a {
  font-weight: 600;
  font-size: 16px;
  color: #281D0F;
  text-decoration: none;
  transition: color .2s ease;
}
td.product-name a:hover { color: #195280; }

/* ---------- Price ---------- */
td.product-price {
  font-weight: 600;
  color: #195280;
  font-size: 15px;
  white-space: nowrap;
}

/* ---------- Quantity ---------- */
td.product-quantity input[type="number"] {
  width: 56px;
  padding: 8px 6px;
  text-align: center;
  border: 1px solid #E4E4E4;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #333333;
}

/* ---------- Stock status pill ---------- */
td.product-stock-status span {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
td.product-stock-status span.wishlist-in-stock {
  background: #EAF3EC;
  color: #2F6B4F;
}
td.product-stock-status span.wishlist-out-of-stock {
  background: #F7E9E7;
  color: #A94438;
}

/* ---------- Add to cart column ---------- */
td.product-add-to-cart {
  text-align: right;
  white-space: nowrap;
}
td.product-add-to-cart .dateadded {
  display: block;
  font-size: 11px;
  color: #8E8679;
  margin-bottom: 6px;
}
td.product-add-to-cart a.button,
td.product-add-to-cart a.add_to_cart_button {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  margin-left: 8px;
  transition: all .2s ease;
}
td.product-add-to-cart a.add_to_cart_button {
  background: #195280;
  color: #fff;
  border: 1px solid #195280;
}
td.product-add-to-cart a.add_to_cart_button:hover {
  background: #163065;
  border-color: #163065;
}
td.product-add-to-cart a.remove_from_wishlist.button {
  background: transparent;
  color: #737373;
  border: 1px solid #E4E4E4;
}
td.product-add-to-cart a.remove_from_wishlist.button:hover {
  border-color: #A94438;
  color: #A94438;
}

/* ---------- Empty state ---------- */
td.wishlist-empty {
  text-align: center;
  padding: 90px 20px !important;
  color: #737373;
  font-size: 16px;
  position: relative;
}
td.wishlist-empty::before {
  content: "\f004";
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  display: block;
  font-size: 40px;
  color: #E7D9C8;
  margin-bottom: 16px;
}

/* ---------- Pagination row ---------- */
tr.wishlist-pagination td { text-align: center; padding: 20px; }

/* ---------- Footer (bulk actions / share / ask estimate) ---------- */
.yith_wcwl_wishlist_footer {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.yith_wcwl_wishlist_footer select,
.yith_wcwl_wishlist_footer input[type="submit"] {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid #E4E4E4;
  padding: 9px 18px;
}
.yith_wcwl_wishlist_footer input[type="submit"] {
  background: #195280;
  color: #fff;
  border-color: #195280;
  cursor: pointer;
  transition: background .2s ease;
}
.yith_wcwl_wishlist_footer input[type="submit"]:hover { background: #163065; }
.ask-an-estimate-button {
  display: inline-block;
  background: #163065;
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

/* =========================================================
   Responsive — card layout on mobile
   ========================================================= */
@media (max-width: 767px) {
  table.wishlist_table thead { display: none; }

  table.wishlist_table,
  table.wishlist_table tbody,
  table.wishlist_table tr,
  table.wishlist_table td {
    display: block;
    width: 100%;
  }

  table.wishlist_table { border-radius: 16px; }

  table.wishlist_table tbody.wishlist-items-wrapper tr {
    padding: 16px;
    border-bottom: 1px solid #F0F0F0;
    position: relative;
  }

  td.product-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
    padding: 0;
  }

  td.product-thumbnail { padding-bottom: 8px; }
  td.product-thumbnail img { width: 100%; height: 160px; border-radius: 12px; }

  td.product-name,
  td.product-price,
  td.product-quantity,
  td.product-stock-status,
  td.product-add-to-cart {
    padding: 6px 0;
    text-align: left;
  }

  td.product-price::before { content: "Price: "; color: #8E8679; font-weight: 400; }
  td.product-quantity::before { content: "Quantity: "; color: #8E8679; font-weight: 400; display: block; margin-bottom: 4px; }
  td.product-stock-status::before { content: "Status: "; color: #8E8679; font-weight: 400; margin-right: 6px; }

  td.product-add-to-cart { text-align: left; white-space: normal; }
  td.product-add-to-cart a.button,
  td.product-add-to-cart a.add_to_cart_button {
    margin-left: 0;
    margin-top: 8px;
    margin-right: 8px;
  }

  .wishlist-title-container .wishlist-title h2 { font-size: 28px; }
}