/* UK Coin Hunt — Wishlist page (2026 refresh)
 * Styles the YITH WooCommerce Wishlist shortcode output to match the
 * cart / checkout / contact 2026 visual system.
 * Scoped to body.woocommerce-wishlist so no bleed into other pages.
 */

:root {
    --wl-gold:      #cfa362;
    --wl-gold-dark: #b88d4f;
    --wl-gold-line: rgba(207, 163, 98, 0.35);
    --wl-ink:       #1c1c1e;
    --wl-muted:     #6b6258;
    --wl-bg:        #ffffff;
    --wl-ivory:     #faf7f2;
    --wl-soft:      #faf4e8;
    --wl-line:      rgba(28, 28, 30, 0.10);
    --wl-success:   #2e8c5a;
    --wl-danger:    #b8453f;
}

body.woocommerce-wishlist {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--wl-ink);
}

/* Kill the page-template stray <br> so the hero butts the header. */
body.woocommerce-wishlist > br { display: none; }

/* ===== Hero (matches /cart/, /checkout/, /contact/ pattern) ===== */
body.woocommerce-wishlist .ukch-page-hero {
    position: relative;
    margin-top: -45px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: clamp(40px, 6vw, 80px);
    padding: clamp(56px, 8vw, 104px) 24px clamp(28px, 4vw, 48px);
    text-align: center;
    background:
        radial-gradient(ellipse at top left,  rgba(207,163,98,0.10), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(207,163,98,0.08), transparent 55%),
        linear-gradient(180deg, #f6ecda 0%, #faf4e8 100%);
    border-bottom: 1px solid var(--wl-gold-line);
    overflow: hidden;
}
body.dark-mode.woocommerce-wishlist .ukch-page-hero {
    background:
        radial-gradient(ellipse at top left,  rgba(207,163,98,0.18), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(207,163,98,0.12), transparent 55%),
        linear-gradient(180deg, #1e1e1e 0%, #242424 100%);
    border-bottom-color: rgba(207,163,98,0.25);
}
body.woocommerce-wishlist .ukch-page-hero__inner { max-width: 760px; margin: 0 auto; }
body.woocommerce-wishlist .ukch-page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wl-gold-dark);
    margin-bottom: 18px;
}
body.woocommerce-wishlist .ukch-page-hero__eyebrow::before,
body.woocommerce-wishlist .ukch-page-hero__eyebrow::after {
    content: "";
    width: 28px; height: 1px;
    background: var(--wl-gold);
    opacity: 0.7;
}
body.woocommerce-wishlist .ukch-page-hero__title {
    margin: 0 0 14px;
    font-family: 'Lora', Georgia, serif;
    font-weight: 500;
    font-size: clamp(34px, 5.2vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--wl-ink);
}
body.dark-mode.woocommerce-wishlist .ukch-page-hero__title { color: #f3eddf; }
body.woocommerce-wishlist .ukch-page-hero__sub {
    max-width: 620px;
    margin: 0 auto;
    color: var(--wl-muted);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.6;
}
body.dark-mode.woocommerce-wishlist .ukch-page-hero__sub { color: #b8b0a3; }

/* ===== Edit title bar — hidden =====
 * The H2 above the table is empty for most users and the "Edit title" admin
 * action just adds noise. Hide the whole bar. */
body.woocommerce-wishlist .wishlist-title,
body.woocommerce-wishlist .wishlist-title-with-form,
body.woocommerce-wishlist .show-title-form,
body.woocommerce-wishlist .yith-wcwl-edit-title,
body.woocommerce-wishlist .hidden-title-form {
    display: none !important;
}

/* (kept for compatibility if a future page re-enables the bar) */
body.woocommerce-wishlist .__keep_wishlist_title_styles_unused {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 0 0 -1px !important;
    padding: 14px clamp(16px, 2vw, 28px) 14px !important;
    background: var(--wl-bg);
    border: 1px solid var(--wl-line);
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
}
body.dark-mode.woocommerce-wishlist .wishlist-title,
body.dark-mode.woocommerce-wishlist .wishlist-title-with-form {
    background: #222;
    border-color: rgba(242, 234, 221, 0.10);
}
body.woocommerce-wishlist .wishlist-title h2 {
    margin: 0 !important;
    font-family: 'Lora', Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: var(--wl-ink) !important;
}
body.dark-mode.woocommerce-wishlist .wishlist-title h2 { color: #f3eddf !important; }
body.woocommerce-wishlist .show-title-form,
body.woocommerce-wishlist .yith-wcwl-edit-title {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 12px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 1px solid var(--wl-line) !important;
    border-radius: 999px !important;
    color: var(--wl-muted) !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
    margin-left: auto !important;
}
body.woocommerce-wishlist .show-title-form svg,
body.woocommerce-wishlist .show-title-form .yith-wcwl-icon-svg { width: 14px !important; height: 14px !important; }
body.woocommerce-wishlist .show-title-form:hover {
    border-color: var(--wl-gold-line) !important;
    background: var(--wl-ivory) !important;
    color: var(--wl-gold-dark) !important;
}
body.dark-mode.woocommerce-wishlist .show-title-form {
    border-color: rgba(242, 234, 221, 0.15) !important;
    color: #b8aea0 !important;
}
body.dark-mode.woocommerce-wishlist .show-title-form:hover {
    background: #1f1f1f !important;
    border-color: var(--wl-gold-line) !important;
    color: var(--wl-gold) !important;
}

/* ===== Wishlist card wrapper ===== */
body.woocommerce-wishlist .yith-wcwl-form,
body.woocommerce-wishlist .wishlist_table_container,
body.woocommerce-wishlist .yith-wcwl-wishlist-content {
    background: var(--wl-bg);
    border: 1px solid var(--wl-line);
    border-radius: 14px;
    padding: clamp(16px, 2vw, 28px);
    box-shadow: 0 1px 2px rgba(28,28,30,0.03), 0 12px 40px rgba(28,28,30,0.05);
    margin: 0 0 clamp(40px, 6vw, 80px);
    overflow: hidden;
}
body.dark-mode.woocommerce-wishlist .yith-wcwl-form,
body.dark-mode.woocommerce-wishlist .wishlist_table_container,
body.dark-mode.woocommerce-wishlist .yith-wcwl-wishlist-content {
    background: #222;
    border-color: rgba(242, 234, 221, 0.10);
}

/* ===== Wishlist table ===== */
body.woocommerce-wishlist table.wishlist_table,
body.woocommerce-wishlist .shop_table.wishlist_table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: transparent !important;
    margin: 0 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 14px !important;
    border: 0 !important;
}
body.woocommerce-wishlist .wishlist_table thead,
body.woocommerce-wishlist .wishlist_table tbody,
body.woocommerce-wishlist .wishlist_table tfoot {
    background: transparent !important;
}
body.woocommerce-wishlist .wishlist_table thead th {
    padding: 12px 14px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--wl-line) !important;
    text-align: left !important;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--wl-muted) !important;
}
body.dark-mode.woocommerce-wishlist .wishlist_table thead th {
    color: #b8b0a3 !important;
    border-bottom-color: rgba(242, 234, 221, 0.10) !important;
}

body.woocommerce-wishlist .wishlist_table tbody tr {
    background: transparent !important;
    border: 0 !important;
    transition: background .15s ease;
}
body.woocommerce-wishlist .wishlist_table tbody tr:hover {
    background: var(--wl-ivory) !important;
}
body.dark-mode.woocommerce-wishlist .wishlist_table tbody tr:hover {
    background: #1f1f1f !important;
}
body.woocommerce-wishlist .wishlist_table tbody td {
    padding: 18px 14px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--wl-line) !important;
    vertical-align: middle !important;
    color: var(--wl-ink) !important;
}
body.dark-mode.woocommerce-wishlist .wishlist_table tbody td {
    color: #f2eadd !important;
    border-bottom-color: rgba(242, 234, 221, 0.08) !important;
}
body.woocommerce-wishlist .wishlist_table tbody tr:last-child td { border-bottom: 0 !important; }

/* Remove × button */
body.woocommerce-wishlist .wishlist_table .product-remove,
body.woocommerce-wishlist .wishlist_table td.product-remove { width: 44px !important; }
body.woocommerce-wishlist .wishlist_table .remove,
body.woocommerce-wishlist .wishlist_table .product-remove .remove,
body.woocommerce-wishlist .wishlist_table .product-remove a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px !important; height: 28px !important;
    background: var(--wl-ivory) !important;
    color: var(--wl-muted) !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    border: 0 !important;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
body.woocommerce-wishlist .wishlist_table .remove:hover,
body.woocommerce-wishlist .wishlist_table .product-remove a:hover {
    background: var(--wl-gold) !important;
    color: #fff !important;
    transform: scale(1.05);
}
body.dark-mode.woocommerce-wishlist .wishlist_table .remove,
body.dark-mode.woocommerce-wishlist .wishlist_table .product-remove a {
    background: #1f1f1f !important;
    color: #b8aea0 !important;
}

/* Thumbnail */
body.woocommerce-wishlist .wishlist_table .product-thumbnail,
body.woocommerce-wishlist .wishlist_table td.product-thumbnail { width: 80px !important; }
body.woocommerce-wishlist .wishlist_table .product-thumbnail a,
body.woocommerce-wishlist .wishlist_table .product-thumbnail img {
    display: block !important;
    width: 64px !important; height: 64px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid var(--wl-line) !important;
    background: var(--wl-ivory) !important;
}
body.dark-mode.woocommerce-wishlist .wishlist_table .product-thumbnail a,
body.dark-mode.woocommerce-wishlist .wishlist_table .product-thumbnail img {
    border-color: rgba(242, 234, 221, 0.12) !important;
    background: #1f1f1f !important;
}

/* Product name */
body.woocommerce-wishlist .wishlist_table .product-name a {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--wl-ink) !important;
    text-decoration: none !important;
    transition: color .15s ease;
}
body.dark-mode.woocommerce-wishlist .wishlist_table .product-name a { color: #f2eadd !important; }
body.woocommerce-wishlist .wishlist_table .product-name a:hover { color: var(--wl-gold-dark) !important; }

/* Price (tbody cells only — the thead's th.product-price stays as a header) */
body.woocommerce-wishlist .wishlist_table tbody .product-price,
body.woocommerce-wishlist .wishlist_table tbody .product-price * {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--wl-gold-dark) !important;
}
body.woocommerce-wishlist .wishlist_table tbody del,
body.woocommerce-wishlist .wishlist_table tbody del * {
    color: var(--wl-muted) !important;
    font-size: 13px !important;
    text-decoration: line-through;
}

/* Stock status (tbody cells only) */
body.woocommerce-wishlist .wishlist_table tbody .product-stock-status .stock,
body.woocommerce-wishlist .wishlist_table tbody .product-stock-status {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
body.woocommerce-wishlist .wishlist_table .product-stock-status .stock.in-stock,
body.woocommerce-wishlist .wishlist_table .product-stock-status .stock.wishlist-in-stock {
    color: var(--wl-success) !important;
}
body.woocommerce-wishlist .wishlist_table .product-stock-status .stock.out-of-stock {
    color: var(--wl-danger) !important;
}

/* Add to cart button */
body.woocommerce-wishlist .wishlist_table .product-add-to-cart .button,
body.woocommerce-wishlist .wishlist_table .product-add-to-cart a.add_to_cart_button,
body.woocommerce-wishlist .wishlist_table .product-add-to-cart a.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px !important;
    background: linear-gradient(180deg, var(--wl-gold) 0%, var(--wl-gold-dark) 100%) !important;
    border: 1px solid var(--wl-gold-dark) !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    text-transform: none !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(207,163,98,0.22);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
body.woocommerce-wishlist .wishlist_table .product-add-to-cart .button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 8px 18px rgba(207,163,98,0.30);
}

/* ===== Share row =====
 * "Share on:" + circular icon buttons for Facebook/Twitter/Pinterest/etc.
 * Plain ivory dots in dark mode looked like white circles, so the bg switches
 * to a dark surface and SVG strokes follow the theme ink. */
body.woocommerce-wishlist .yith-wcwl-share {
    margin-top: clamp(24px, 3vw, 40px) !important;
    padding: 18px 20px !important;
    background: var(--wl-ivory);
    border: 1px solid var(--wl-line);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
body.dark-mode.woocommerce-wishlist .yith-wcwl-share {
    background: #1f1f1f;
    border-color: rgba(242, 234, 221, 0.10);
}
body.woocommerce-wishlist .yith-wcwl-share h4,
body.woocommerce-wishlist .yith-wcwl-share > span:first-child,
body.woocommerce-wishlist .yith-wcwl-share .yith-wcwl-share-title {
    margin: 0 8px 0 0 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: var(--wl-muted) !important;
}
body.dark-mode.woocommerce-wishlist .yith-wcwl-share h4,
body.dark-mode.woocommerce-wishlist .yith-wcwl-share > span:first-child {
    color: #b8aea0 !important;
}
body.woocommerce-wishlist .yith-wcwl-share a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    background: var(--wl-bg) !important;
    border: 1px solid var(--wl-line) !important;
    color: var(--wl-ink) !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
body.woocommerce-wishlist .yith-wcwl-share a:hover {
    border-color: var(--wl-gold) !important;
    color: var(--wl-gold-dark) !important;
    background: var(--wl-bg) !important;
    transform: translateY(-1px);
}
body.woocommerce-wishlist .yith-wcwl-share a svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    fill: none !important;
}
body.woocommerce-wishlist .yith-wcwl-share a.email svg { fill: currentColor !important; stroke: none !important; }
body.dark-mode.woocommerce-wishlist .yith-wcwl-share a {
    background: #2a2a2a !important;
    border-color: rgba(242, 234, 221, 0.15) !important;
    color: #f2eadd !important;
}
body.dark-mode.woocommerce-wishlist .yith-wcwl-share a:hover {
    background: #2a2a2a !important;
    border-color: var(--wl-gold) !important;
    color: var(--wl-gold) !important;
}

/* Empty wishlist message */
body.woocommerce-wishlist .wishlist-empty,
body.woocommerce-wishlist .yith-wcwl-no-products {
    padding: 48px 24px !important;
    text-align: center;
    font-family: 'Lora', Georgia, serif !important;
    font-size: 18px !important;
    color: var(--wl-muted) !important;
    background: transparent !important;
    border: 0 !important;
}
body.woocommerce-wishlist .return-to-shop a.button,
body.woocommerce-wishlist .wishlist-empty a.button {
    display: inline-flex !important;
    align-items: center;
    margin-top: 16px;
    padding: 12px 24px !important;
    background: linear-gradient(180deg, var(--wl-gold) 0%, var(--wl-gold-dark) 100%) !important;
    border: 1px solid var(--wl-gold-dark) !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(207,163,98,0.28);
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
    body.woocommerce-wishlist .wishlist_table thead { display: none; }
    body.woocommerce-wishlist .wishlist_table tbody tr {
        position: relative;
        display: grid !important;
        grid-template-columns: 76px 1fr !important;
        gap: 10px 14px;
        padding: 14px !important;
        margin-bottom: 12px;
        border: 1px solid var(--wl-line);
        border-radius: 12px;
        background: var(--wl-card-bg, #ffffff);
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    body.dark-mode.woocommerce-wishlist .wishlist_table tbody tr {
        background: #1f1f1f;
        border-color: rgba(242, 234, 221, 0.18);
        box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }
    body.woocommerce-wishlist .wishlist_table tbody td {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }
    /* Float the × out of the grid so the name can use the full row width
       (long product names previously wrapped after 2 chars). */
    body.woocommerce-wishlist .wishlist_table tbody td.product-remove {
        position: absolute;
        top: 6px;
        right: 6px;
        width: auto !important;
    }
    /* Tap target ≥ 44px (WCAG 2.5.5). The earlier 36px still failed. */
    body.woocommerce-wishlist .wishlist_table tbody td.product-remove a.remove,
    body.woocommerce-wishlist .wishlist_table tbody td.product-remove .remove_from_wishlist {
        width: 44px !important;
        height: 44px !important;
        line-height: 44px !important;
        font-size: 22px !important;
    }
    body.woocommerce-wishlist .wishlist_table tbody td.product-thumbnail { grid-column: 1; grid-row: 1 / span 3; }
    body.woocommerce-wishlist .wishlist_table tbody td.product-thumbnail img {
        width: 76px !important;
        height: 76px !important;
        border-radius: 8px;
        object-fit: cover;
    }
    /* Right padding leaves clearance for the absolute × at top-right. */
    body.woocommerce-wishlist .wishlist_table tbody td.product-name {
        grid-column: 2; grid-row: 1;
        align-self: center;
        padding-right: 44px !important;
        font-weight: 600;
        line-height: 1.3;
    }
    /* Price + stock share the same grid cell — start vs end alignment puts
       them on one line so "IN STOCK" sits next to the price, not orphaned
       under the ×. */
    body.woocommerce-wishlist .wishlist_table tbody td.product-price {
        grid-column: 2; grid-row: 2;
        justify-self: start;
        align-self: center;
    }
    body.woocommerce-wishlist .wishlist_table tbody td.product-stock-status {
        grid-column: 2; grid-row: 2;
        justify-self: end;
        align-self: center;
    }
    body.woocommerce-wishlist .wishlist_table tbody td.product-add-to-cart { grid-column: 1 / span 2; grid-row: 3; justify-self: stretch; margin-top: 6px; }
    body.woocommerce-wishlist .wishlist_table tbody td.product-add-to-cart .button { width: 100%; min-height: 44px; }

    /* Make sure hidden/redundant table cells don't add extra rows. */
    body.woocommerce-wishlist .wishlist_table tbody td.product-quantity,
    body.woocommerce-wishlist .wishlist_table tbody td.product-checkbox { display: none !important; }

    /* Empty-wishlist state: centred copy + breathing room before the
       footer so it doesn't crowd the social/copyright row. */
    body.woocommerce-wishlist .wishlist-empty,
    body.woocommerce-wishlist .yith-wcwl-no-products,
    body.woocommerce-wishlist .yith-wcwl-no-items,
    body.woocommerce-wishlist .ukch-wishlist-empty {
        text-align: center !important;
        padding: 48px 20px 72px !important;
        margin: 0 auto !important;
        max-width: 100%;
    }
    body.woocommerce-wishlist .wishlist-empty a.button,
    body.woocommerce-wishlist .yith-wcwl-no-products a.button,
    body.woocommerce-wishlist .ukch-wishlist-empty a.button {
        display: inline-flex !important;
        margin: 16px auto 0 !important;
    }
    /* Wishlist hero block also sometimes runs flush against the table. */
    body.woocommerce-wishlist .ukch-wishlist-hero {
        padding-bottom: 24px;
    }
    /* Bottom breathing room above footer in any wishlist state. */
    body.woocommerce-wishlist .ukch-wishlist-page,
    body.woocommerce-wishlist main,
    body.woocommerce-wishlist .yith-wcwl-form {
        padding-bottom: 48px;
    }
}
