
/* =========================================================
   KAVIYAVIN THARIGAI
   PREMIUM WISHLIST DESIGN
   YITH WooCommerce Wishlist
========================================================= */

:root {
    --kt-wl-maroon: #2B0713;
    --kt-wl-dark: #24050F;
    --kt-wl-gold: #D7AE68;
    --kt-wl-cream: #FFF8EF;
    --kt-wl-soft-cream: #F5E9D5;
    --kt-wl-muted: #8A776D;
    --kt-wl-border: #E9DCC8;
    --kt-wl-white: #FFFFFF;
}

/* Wishlist page background */
body.woocommerce-wishlist,
body:has(.wishlist-fragment) {
    background: var(--kt-wl-cream);
}

/* Main wishlist container */
.woocommerce .wishlist-title,
.woocommerce .yith-wcwl-form,
.woocommerce .wishlist-fragment {
    box-sizing: border-box;
}

/* Main heading */
.woocommerce .wishlist-title h2,
.woocommerce .wishlist-title h2:hover {
    color: var(--kt-wl-maroon) !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(30px, 4vw, 44px) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 0 22px !important;
}

/* Secondary heading */
.woocommerce .yith-wcwl-form h2 {
    color: var(--kt-wl-maroon) !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(23px, 3vw, 32px) !important;
    font-weight: 600 !important;
    margin: 20px 0 !important;
}

/* Wishlist table */
.woocommerce table.wishlist_table,
.woocommerce .wishlist_table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: var(--kt-wl-white) !important;
    border: 1px solid var(--kt-wl-border) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin: 24px 0 !important;
}

/* Table header */
.woocommerce table.wishlist_table thead th,
.woocommerce .wishlist_table thead th {
    background: var(--kt-wl-maroon) !important;
    color: var(--kt-wl-cream) !important;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.35px !important;
    padding: 17px 14px !important;
    border: 0 !important;
    border-bottom: 2px solid var(--kt-wl-gold) !important;
}

/* Table cells */
.woocommerce table.wishlist_table tbody td,
.woocommerce .wishlist_table tbody td {
    background: var(--kt-wl-white) !important;
    color: var(--kt-wl-maroon) !important;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 13px !important;
    padding: 16px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--kt-wl-border) !important;
    vertical-align: middle !important;
}

/* Remove last row border */
.woocommerce table.wishlist_table tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* Product image */
.woocommerce table.wishlist_table td.product-thumbnail img,
.woocommerce .wishlist_table td.product-thumbnail img {
    display: block !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    height: 100px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 4px !important;
    border: 1px solid var(--kt-wl-border) !important;
    margin: 0 auto !important;
    transition: transform 0.25s ease;
}

.woocommerce table.wishlist_table td.product-thumbnail img:hover {
    transform: scale(1.035);
}

/* Product name */
.woocommerce table.wishlist_table .product-name a,
.woocommerce .wishlist_table .product-name a {
    color: var(--kt-wl-maroon) !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.woocommerce table.wishlist_table .product-name a:hover {
    color: #986B2E !important;
}

/* Product prices */
.woocommerce table.wishlist_table .product-price,
.woocommerce table.wishlist_table .product-price .amount,
.woocommerce table.wishlist_table .product-price ins,
.woocommerce table.wishlist_table .product-price ins .amount {
    color: #986B2E !important;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none;
}

.woocommerce table.wishlist_table .product-price del,
.woocommerce table.wishlist_table .product-price del .amount {
    color: var(--kt-wl-muted) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    opacity: 0.85 !important;
}

/* Stock status */
.woocommerce table.wishlist_table .product-stock-status span,
.woocommerce table.wishlist_table .product-stock-status {
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.woocommerce table.wishlist_table .wishlist-in-stock {
    color: #39764A !important;
}

/* Add to cart button */
.woocommerce table.wishlist_table .product-add-to-cart a,
.woocommerce table.wishlist_table .product-add-to-cart a.button,
.woocommerce table.wishlist_table .product-add-to-cart .add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 11px 20px !important;
    background: var(--kt-wl-maroon) !important;
    color: var(--kt-wl-cream) !important;
    border: 1px solid var(--kt-wl-gold) !important;
    border-radius: 3px !important;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: background 0.25s ease, color 0.25s ease !important;
}

.woocommerce table.wishlist_table .product-add-to-cart a:hover,
.woocommerce table.wishlist_table .product-add-to-cart a.button:hover {
    background: var(--kt-wl-gold) !important;
    color: var(--kt-wl-dark) !important;
}

/* Remove product icon */
.woocommerce table.wishlist_table a.remove,
.woocommerce table.wishlist_table .remove_from_wishlist {
    color: #A33D43 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.woocommerce table.wishlist_table a.remove:hover,
.woocommerce table.wishlist_table .remove_from_wishlist:hover {
    color: var(--kt-wl-gold) !important;
    background: transparent !important;
    transform: scale(1.12);
}

/* Social sharing section */
.woocommerce .yith-wcwl-share h4,
.woocommerce .yith-wcwl-share-title {
    color: var(--kt-wl-maroon) !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 21px !important;
    font-weight: 600 !important;
}

.woocommerce .yith-wcwl-share {
    margin-top: 24px !important;
}

.woocommerce .yith-wcwl-share a {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.woocommerce .yith-wcwl-share a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Empty wishlist */
.woocommerce .wishlist-empty,
.woocommerce .yith-wcwl-empty {
    padding: 35px 20px !important;
    color: var(--kt-wl-muted) !important;
    background: var(--kt-wl-white) !important;
    border: 1px solid var(--kt-wl-border) !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-family: "Montserrat", Arial, sans-serif !important;
}

/* General links inside wishlist */
.woocommerce .yith-wcwl-form a:not(.button):not(.remove) {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Tablet */
@media (max-width: 1024px) {
    .woocommerce table.wishlist_table thead th,
    .woocommerce table.wishlist_table tbody td {
        padding: 12px 9px !important;
    }

    .woocommerce table.wishlist_table .product-name a {
        font-size: 17px !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .woocommerce .wishlist-title h2 {
        font-size: 32px !important;
    }

    .woocommerce .yith-wcwl-form h2 {
        font-size: 25px !important;
    }

    .woocommerce table.wishlist_table {
        font-size: 12px !important;
        margin-top: 18px !important;
    }

    .woocommerce table.wishlist_table thead th,
    .woocommerce table.wishlist_table tbody td {
        padding: 9px 6px !important;
        font-size: 11px !important;
    }

    .woocommerce table.wishlist_table td.product-thumbnail img {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        height: 68px !important;
    }

    .woocommerce table.wishlist_table .product-name a {
        font-size: 14px !important;
    }

    .woocommerce table.wishlist_table .product-price,
    .woocommerce table.wishlist_table .product-price .amount {
        font-size: 11px !important;
    }

    .woocommerce table.wishlist_table .product-add-to-cart a,
    .woocommerce table.wishlist_table .product-add-to-cart a.button {
        min-height: 36px !important;
        padding: 8px 10px !important;
        font-size: 10px !important;
    }

    .woocommerce .yith-wcwl-share {
        margin-top: 18px !important;
    }
}
