/*
 * Custom YITH Wishlist Page Styling
 * Matches the dark luxury theme of the site
 */

/* Wishlist Form Container */
.yith-wcwl-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Wishlist Title Section */
.wishlist-title-container {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.wishlist-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Edit Title Button */
.wishlist-title .show-title-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #111419;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wishlist-title .show-title-form:hover {
  background-color: var(--theme-color, #d4af37);
  color: #111419;
  border-color: var(--theme-color, #d4af37);
}

.wishlist-title .show-title-form svg {
  width: 16px;
  height: 16px;
}

/* Hidden Title Form */
.hidden-title-form {
  margin-top: 15px;
}

.hidden-title-form input[type="text"] {
  padding: 12px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  border-radius: 4px;
  width: 100%;
  max-width: 400px;
  transition: all 0.3s ease-in-out;
}

.hidden-title-form input[type="text"]:focus {
  outline: none;
  border-color: var(--theme-color, #d4af37);
  background-color: rgba(255, 255, 255, 0.08);
}

.edit-title-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.edit-title-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #111419;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-title-buttons a:hover {
  background-color: var(--theme-color, #d4af37);
  color: #111419;
}

.edit-title-buttons svg {
  width: 20px;
  height: 20px;
}

/* Wishlist Table Styling */
.shop_table.wishlist_table {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

/* Table Header */
.shop_table.wishlist_table thead {
  background-color: #111419;
  border-bottom: 2px solid var(--theme-color, #d4af37);
}

.shop_table.wishlist_table thead th {
  padding: 20px 15px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  border: none;
}

.shop_table.wishlist_table thead th.product-name {
  text-align: left;
}

/* Table Body */
.shop_table.wishlist_table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease-in-out;
}

.shop_table.wishlist_table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.shop_table.wishlist_table tbody td {
  padding: 25px 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  vertical-align: middle;
  text-align: center;
  border: none;
}

.shop_table.wishlist_table tbody td.product-name {
  text-align: left;
  font-weight: 600;
  color: #fff;
}

/* Empty State */
.shop_table.wishlist_table .wishlist-empty {
  padding: 60px 20px !important;
  text-align: center !important;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  background-color: rgba(255, 255, 255, 0.02);
}

/* Product Thumbnail */
.shop_table.wishlist_table .product-thumbnail {
  width: 100px;
}

.shop_table.wishlist_table .product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Product Name Link */
.shop_table.wishlist_table .product-name a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
  font-size: 16px;
}

.shop_table.wishlist_table .product-name a:hover {
  color: var(--theme-color, #d4af37);
}

/* Product Price */
.shop_table.wishlist_table .product-price {
  font-weight: 700;
  color: var(--theme-color, #d4af37);
  font-size: 18px;
}

/* Stock Status */
.shop_table.wishlist_table .product-stock-status .wishlist-in-stock {
  color: #4caf50;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.shop_table.wishlist_table .product-stock-status .wishlist-out-of-stock {
  color: #f44336;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* Remove Button */
.shop_table.wishlist_table .product-remove a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop_table.wishlist_table .product-remove a:hover {
  background-color: #f44336;
  color: #fff;
  border-color: #f44336;
  transform: scale(1.1);
}

/* Add to Cart Button */
.shop_table.wishlist_table .product-add-to-cart .button,
.shop_table.wishlist_table .product-add-to-cart .add_to_cart_button {
  padding: 12px 30px;
  background-color: var(--theme-color, #d4af37);
  color: #111419;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  display: inline-block;
}

.shop_table.wishlist_table .product-add-to-cart .button:hover,
.shop_table.wishlist_table .product-add-to-cart .add_to_cart_button:hover {
  background-color: #fff;
  color: #111419;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Wishlist Footer */
.yith_wcwl_wishlist_footer {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.yith_wcwl_wishlist_footer .btn,
.yith_wcwl_wishlist_footer .button,
.yith_wcwl_wishlist_footer input[type="submit"] {
  padding: 12px 30px;
  background-color: var(--theme-color, #d4af37);
  color: #111419;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  display: inline-block;
}

.yith_wcwl_wishlist_footer .btn:hover,
.yith_wcwl_wishlist_footer .button:hover,
.yith_wcwl_wishlist_footer input[type="submit"]:hover {
  background-color: #fff;
  color: #111419;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Ask Estimate Button */
.wishlist_table .ask-an-estimate-button {
  padding: 10px 25px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  display: inline-block;
}

.wishlist_table .ask-an-estimate-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--theme-color, #d4af37);
  color: var(--theme-color, #d4af37);
}

/* Pagination */
.wishlist-pagination {
  margin-top: 30px;
  text-align: center;
}

.wishlist-pagination a,
.wishlist-pagination span {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  font-weight: 600;
}

.wishlist-pagination a:hover,
.wishlist-pagination span.current {
  background-color: var(--theme-color, #d4af37);
  color: #111419;
  border-color: var(--theme-color, #d4af37);
}

/* Loading State */
.wishlist_table.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.wishlist_table.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--theme-color, #d4af37);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .wishlist-title h2 {
    font-size: 24px;
  }

  .shop_table.wishlist_table {
    display: block;
    overflow-x: auto;
  }

  .shop_table.wishlist_table thead {
    display: none;
  }

  .shop_table.wishlist_table tbody tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
  }

  .shop_table.wishlist_table tbody td {
    display: block;
    text-align: left !important;
    padding: 10px 0;
    border: none;
  }

  .shop_table.wishlist_table tbody td:before {
    content: attr(data-title);
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .shop_table.wishlist_table .product-thumbnail {
    text-align: center !important;
  }

  .shop_table.wishlist_table .product-thumbnail img {
    width: 120px;
    height: 120px;
  }
}

/* Additional Wishlist Elements */
.wishlist_table .yith-wcwl-icon {
  width: 20px;
  height: 20px;
}

/* Quantity Input */
.shop_table.wishlist_table .product-quantity input[type="number"] {
  width: 80px;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.shop_table.wishlist_table .product-quantity input[type="number"]:focus {
  outline: none;
  border-color: var(--theme-color, #d4af37);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Date Added */
.shop_table.wishlist_table .product-date-added {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-style: italic;
}

/* Product Variations */
.shop_table.wishlist_table .product-variation {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 5px;
}

.shop_table.wishlist_table .product-variation dt,
.shop_table.wishlist_table .product-variation dd {
  display: inline;
  margin: 0;
}

.shop_table.wishlist_table .product-variation dt {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

/* Checkbox Styling */
.shop_table.wishlist_table input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--theme-color, #d4af37);
}

/* Move to Another Wishlist Select */
.shop_table.wishlist_table .product-move select {
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
}

.shop_table.wishlist_table .product-move select:focus {
  outline: none;
  border-color: var(--theme-color, #d4af37);
}

/* Share Buttons */
.yith-wcwl-share {
  margin-top: 30px;
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.yith-wcwl-share h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.yith-wcwl-share ul {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.yith-wcwl-share ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #111419;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.yith-wcwl-share ul li a:hover {
  background-color: var(--theme-color, #d4af37);
  color: #111419;
  transform: translateY(-3px);
}
