main {
  margin: 0 auto;
  width: 100%;
  max-width: 1800px;
  padding: 3em 4em 6em;
}

main p a {
  font-size: 25px;
  font-weight: 900;
  border-radius: 15px;
  border: 1px solid black;
  padding: 5px 1em;
  background-color: #800000;
  color: white;
}

.woocommerce .wishlist-title {margin-bottom: 0 !important;}

thead {display: none;}
.woocommerce table.shop_table_responsive tr td::before,
.woocommerce-page table.shop_table_responsive tr td::before {display: none !important;}


/* Container principal */
.woocommerce .wishlist_table,
.woocommerce-page .wishlist_table {
  background-color: #f9fafb;
}

.wishlist-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 0.5rem;
  text-align: left;
}

.wishlist-title + p {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Tabla de wishlist */
.woocommerce table.wishlist_table {
  border: none;
  background: transparent;
  margin: 0;
}

.woocommerce table.wishlist_table tbody tr {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  /* display: block; */
  align-items: center;
  display: flex;
  gap: 1em;
  border: none;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  padding: 1.2em 2em;
}

.woocommerce table.wishlist_table tbody tr td {
  border: none;
  /* padding: 1.5rem; */
  display: inline-block;
  vertical-align: middle;
}

table.wishlist_table tbody td {
    padding: 0 !important;
}

td.product-remove {
    position: absolute;
    right: 0;
}

.product-remove a {
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
}

/* Imagen del producto */
.woocommerce table.wishlist_table .product-thumbnail {
  /* width: 80px; */
  width: 7%;
  text-align: left;
}

.woocommerce table.wishlist_table .product-thumbnail img {
  width: 140%;
  height: 90px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid black;
  display: block;
}

/* Nombre del producto */
.woocommerce table.wishlist_table .product-name {
  width: calc(100% - 650px);
  padding-left: 1.5rem;
}

.woocommerce table.wishlist_table .product-name a {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  margin-bottom: 0.5rem;
}

.woocommerce table.wishlist_table .product-name a:hover {
  color: #c71f16;
}

a.button.yith-wcqv-button {
  color: #800000 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

/* Precio */
.woocommerce table.wishlist_table .product-price {
  width: 120px;
  text-align: left;
}

.woocommerce table.wishlist_table .product-price .amount,
.woocommerce table.wishlist_table .product-price .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
}

/* Stock */
.woocommerce table.wishlist_table .product-stock-status {
  width: 10%;
  /* width: 100px; */
  text-align: left;
}

.woocommerce table.wishlist_table .product-stock-status .wishlist-in-stock {
  background-color: #d1fae5;
  color: #065f46;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.woocommerce table.wishlist_table .product-stock-status .wishlist-out-of-stock {
  background-color: #fee2e2;
  color: #991b1b;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

/* Botones de acción */
.woocommerce table.wishlist_table .product-add-to-cart,
.woocommerce table.wishlist_table .product-remove {
  width: auto;
  text-align: right;
  top: 15px;
    right: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 0.75rem;
}

.btn-primary {
  background-color: #000;
  color: white;
}

.btn-primary:hover {
  background-color: #c71f16;
}

.btn-remove {
  background-color: transparent;
  color: #ef4444;
  padding: 0.5rem;
  margin-right: 0;
}

.btn-remove:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

.btn-disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

/* Estado vacío */
.wishlist-empty {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  text-align: center;
}

.empty-icon {
  width: 4rem;
  height: 4rem;
  color: #d1d5db;
  margin: 0 auto 1rem;
  stroke-width: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce table.wishlist_table tbody tr td {
    display: block;
    width: 100% !important;
    padding: 0.75rem 1.5rem;
  }

  .woocommerce table.wishlist_table .product-name {
    width: 100%;
    padding-left: 0;
  }

  .woocommerce table.wishlist_table .product-add-to-cart,
  .woocommerce table.wishlist_table .product-remove {
    text-align: left;
  }
}

/* Ocultar elementos innecesarios de YITH */
.woocommerce .wishlist_table .product-checkbox,
.woocommerce .wishlist_table .wishlist-select-all,
.woocommerce .wishlist_table .bulk-actions {
  display: none !important;
}
