/**
 * Wishlist page — full skin for the YITH WooCommerce Wishlist plugin.
 *
 * A file named "wishlist.css" at the theme root is a documented YITH
 * override point: YITH_Frontend::register_styles() looks for it via
 * locate_template() and, when found, enqueues it INSTEAD OF the plugin's
 * own assets/css/style.css (see includes/class-yith-wcwl-frontend.php).
 * So this file is the plugin's entire stylesheet on that page, not an
 * addition to it — everything the table/list needs is defined here.
 *
 * Scoped to body.woocommerce-wishlist, the class YITH adds automatically
 * once the wishlist page is registered (get_wishlist_page_id() + is_page()).
 *
 * @package Furniture
 */

body.woocommerce-wishlist .wishlist-hero{background:var(--paper-2);border-bottom:1px solid var(--line);padding:56px 0 44px;text-align:center;}
body.woocommerce-wishlist .wishlist-eyebrow{font-size:12.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--accent);margin:0 0 12px;}
body.woocommerce-wishlist .wishlist-heading{font-family:var(--font-display);font-weight:450;font-size:clamp(30px,4vw,44px);margin:0 0 14px;}
body.woocommerce-wishlist .wishlist-sub{font-size:15px;color:var(--ink-soft);max-width:46ch;margin:0 auto;}

body.woocommerce-wishlist .wishlist-body{padding:56px 0 80px;}

/* Hide YITH's own "My wishlist" title + edit-title controls — the hero
   above already carries the heading, so the plugin's is redundant. */
body.woocommerce-wishlist .wishlist-title-container{display:none;}

/* ---- Table -> card list ---------------------------------------------- */
body.woocommerce-wishlist table.wishlist_view{width:100%;border-collapse:separate;border-spacing:0;margin:0;}
body.woocommerce-wishlist table.wishlist_view thead{display:none;}
body.woocommerce-wishlist table.wishlist_view,
body.woocommerce-wishlist table.wishlist_view tbody{display:block;}
body.woocommerce-wishlist table.wishlist_view tbody{display:flex;flex-direction:column;gap:16px;}
body.woocommerce-wishlist table.wishlist_view tr{display:flex;align-items:center;flex-wrap:wrap;gap:18px 24px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:18px 22px;position:relative;transition:border-color .15s;}
body.woocommerce-wishlist table.wishlist_view tr:hover{border-color:var(--line-strong);}
body.woocommerce-wishlist table.wishlist_view td{display:block;padding:0;border:none;vertical-align:middle;}

body.woocommerce-wishlist td.product-remove{order:10;position:absolute;top:14px;right:14px;}
body.woocommerce-wishlist td.product-remove a.remove{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--paper-2);color:var(--ink-soft);font-size:18px;line-height:1;text-decoration:none;transition:background .15s,color .15s;}
body.woocommerce-wishlist td.product-remove a.remove:hover{background:var(--ink);color:var(--paper);}

body.woocommerce-wishlist td.product-thumbnail{flex:0 0 auto;order:0;}
body.woocommerce-wishlist td.product-thumbnail img{width:88px;height:88px;object-fit:cover;border-radius:10px;display:block;background:var(--paper-2);}

body.woocommerce-wishlist td.product-name{flex:1 1 220px;min-width:160px;order:1;padding-right:36px;}
body.woocommerce-wishlist td.product-name a{font-family:var(--font-display);font-weight:600;font-size:17px;color:var(--ink);text-decoration:none;line-height:1.3;}
body.woocommerce-wishlist td.product-name a:hover{color:var(--accent);}

body.woocommerce-wishlist td.product-price{flex:0 0 auto;order:2;font-family:var(--font-body);font-size:15px;}
body.woocommerce-wishlist td.product-price .woocommerce-Price-amount{font-weight:650;color:var(--accent);}
body.woocommerce-wishlist td.product-price del{color:var(--ink-soft);font-weight:400;opacity:.7;margin-right:6px;}
body.woocommerce-wishlist td.product-price del .woocommerce-Price-amount{font-weight:400;color:var(--ink-soft);}
body.woocommerce-wishlist td.product-price ins{text-decoration:none;}

body.woocommerce-wishlist td.product-stock-status{flex:0 0 auto;order:3;}
body.woocommerce-wishlist .wishlist-in-stock,
body.woocommerce-wishlist .wishlist-out-of-stock{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:5px 12px;border-radius:100px;white-space:nowrap;}
body.woocommerce-wishlist .wishlist-in-stock{color:#2f6f45;background:rgba(47,111,69,0.1);}
body.woocommerce-wishlist .wishlist-in-stock::before{content:"";width:6px;height:6px;border-radius:50%;background:#2f6f45;}
body.woocommerce-wishlist .wishlist-out-of-stock{color:var(--accent-dark);background:rgba(165,67,33,0.1);}
body.woocommerce-wishlist .wishlist-out-of-stock::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent-dark);}

body.woocommerce-wishlist td.product-add-to-cart{flex:0 0 auto;order:4;margin-left:auto;display:flex;align-items:center;gap:12px;}
body.woocommerce-wishlist td.product-add-to-cart .dateadded{display:none;}
body.woocommerce-wishlist td.product-add-to-cart .button{display:inline-block;background:var(--ink);color:var(--paper);font-family:var(--font-body);font-weight:600;font-size:13.5px;padding:11px 22px;border-radius:100px;border:none;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background-color .2s ease;}
body.woocommerce-wishlist td.product-add-to-cart .button:hover{background:var(--accent);}
body.woocommerce-wishlist td.product-add-to-cart .button.loading{opacity:.7;pointer-events:none;}
body.woocommerce-wishlist td.product-add-to-cart .added_to_cart{font-size:12.5px;font-weight:600;color:var(--ink);text-decoration:underline;text-underline-offset:3px;}

/* The default plain-text empty row — replaced by .wishlist-empty-state
   below, kept collapsed here as a fallback for browsers without :has(). */
body.woocommerce-wishlist td.wishlist-empty,
body.woocommerce-wishlist p.wishlist-empty{padding:0;display:none;}
body.woocommerce-wishlist table.wishlist_view tr:has(td.wishlist-empty){display:none;}

/* ---- Empty state ------------------------------------------------------ */
body.woocommerce-wishlist .wishlist-empty-state{text-align:center;max-width:420px;margin:0 auto;padding:64px 24px;}
body.woocommerce-wishlist .wishlist-empty-icon{width:56px;height:56px;margin:0 auto 24px;color:var(--line-strong);}
body.woocommerce-wishlist .wishlist-empty-icon svg{width:100%;height:100%;}
body.woocommerce-wishlist .wishlist-empty-state h2{font-family:var(--font-display);font-weight:450;font-size:22px;margin:0 0 12px;}
body.woocommerce-wishlist .wishlist-empty-state p{font-size:14.5px;color:var(--ink-soft);margin:0 0 28px;}

/* ---- Share section ------------------------------------------------------ */
body.woocommerce-wishlist .yith-wcwl-share{margin-top:36px;padding-top:28px;border-top:1px solid var(--line);}
body.woocommerce-wishlist .yith-wcwl-share-title{font-family:var(--font-body);font-size:13px;font-weight:600;color:var(--ink-soft);margin:0 0 14px;}
body.woocommerce-wishlist .yith-wcwl-share ul{list-style:none;display:flex;gap:10px;margin:0;padding:0;}
body.woocommerce-wishlist .yith-wcwl-share li.share-button a{width:36px;height:36px;border-radius:50%;background:var(--paper-2);color:var(--ink);display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s;}
body.woocommerce-wishlist .yith-wcwl-share li.share-button a:hover{background:var(--ink);color:var(--paper);}
body.woocommerce-wishlist .yith-wcwl-share li.share-button svg{width:16px;height:16px;fill:currentColor;}
body.woocommerce-wishlist .yith-wcwl-after-share-section{margin-top:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
body.woocommerce-wishlist .yith-wcwl-after-share-section input.copy-target{font-family:var(--font-body);font-size:13px;color:var(--ink-soft);background:var(--paper-2);border:1px solid var(--line);border-radius:6px;padding:8px 12px;flex:1;min-width:180px;}
body.woocommerce-wishlist .yith-wcwl-after-share-section small{font-size:12.5px;color:var(--ink-soft);}
body.woocommerce-wishlist .copy-trigger{color:var(--accent);cursor:pointer;text-decoration:underline;}

/* ---- Footer (bulk actions / share / add all to cart) ------------------ */
body.woocommerce-wishlist .yith_wcwl_wishlist_bulk_action,
body.woocommerce-wishlist .yith_wcwl_wishlist_update,
body.woocommerce-wishlist .yith_wcwl_footer_additional_action{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:20px;}
body.woocommerce-wishlist .yith_wcwl_wishlist_footer input[type="submit"],
body.woocommerce-wishlist .yith_wcwl_wishlist_footer select{font-family:var(--font-body);font-weight:600;font-size:13.5px;padding:11px 22px;border-radius:100px;border:1px solid var(--line-strong);background:var(--paper);color:var(--ink);cursor:pointer;transition:background-color .2s ease,color .2s ease;}
body.woocommerce-wishlist .yith_wcwl_wishlist_footer input[type="submit"]:hover{background:var(--ink);color:var(--paper);border-color:var(--ink);}

/* ---- Mobile card list (server-detected mobile devices) ---------------- */
body.woocommerce-wishlist ul.wishlist_view.mobile{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px;}
body.woocommerce-wishlist ul.wishlist_view.mobile li{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:18px;position:relative;}
body.woocommerce-wishlist ul.wishlist_view.mobile .item-wrapper{display:flex;gap:16px;}
body.woocommerce-wishlist ul.wishlist_view.mobile .product-thumbnail img{width:76px;height:76px;object-fit:cover;border-radius:10px;display:block;}
body.woocommerce-wishlist ul.wishlist_view.mobile .item-details{flex:1;min-width:0;padding-right:36px;}
body.woocommerce-wishlist ul.wishlist_view.mobile .product-name h3{margin:0 0 6px;font-size:15px;}
body.woocommerce-wishlist ul.wishlist_view.mobile .product-name a{font-family:var(--font-display);font-weight:600;color:var(--ink);text-decoration:none;}
body.woocommerce-wishlist ul.wishlist_view.mobile .item-details-table,
body.woocommerce-wishlist ul.wishlist_view.mobile .additional-info{border-collapse:collapse;font-size:13px;color:var(--ink-soft);margin:6px 0;}
body.woocommerce-wishlist ul.wishlist_view.mobile .item-details-table td,
body.woocommerce-wishlist ul.wishlist_view.mobile .additional-info td{padding:2px 0;}
body.woocommerce-wishlist ul.wishlist_view.mobile .item-details-table .label,
body.woocommerce-wishlist ul.wishlist_view.mobile .additional-info .label{padding-right:8px;}
body.woocommerce-wishlist ul.wishlist_view.mobile .additional-info-wrapper{margin-top:10px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
body.woocommerce-wishlist ul.wishlist_view.mobile .product-add-to-cart .button{display:inline-block;background:var(--ink);color:var(--paper);font-family:var(--font-body);font-weight:600;font-size:13px;padding:10px 20px;border-radius:100px;border:none;text-decoration:none;}
body.woocommerce-wishlist ul.wishlist_view.mobile a.remove_from_wishlist{position:absolute;top:14px;right:14px;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--paper-2);color:var(--ink-soft);text-decoration:none;font-size:16px;z-index:2;}
/* The plugin's mobile template renders a Font Awesome <i class="fa fa-trash">
   for this button, but the theme doesn't load Font Awesome anywhere, so the
   glyph was invisible. Hide it and draw the same "×" glyph the desktop table
   view already uses instead. */
body.woocommerce-wishlist ul.wishlist_view.mobile a.remove_from_wishlist i{display:none;}
body.woocommerce-wishlist ul.wishlist_view.mobile a.remove_from_wishlist::before{content:"\00d7";line-height:1;}

@media (max-width:640px){
	body.woocommerce-wishlist .wishlist-hero{padding:40px 0 32px;}
	body.woocommerce-wishlist table.wishlist_view tr{padding:16px;}
	body.woocommerce-wishlist td.product-add-to-cart{flex:1 1 100%;margin-left:0;}
	body.woocommerce-wishlist td.product-add-to-cart .button{flex:1;text-align:center;}
}
