/* ==================================================
   DAINIK UDHYOG
   TI WOOCOMMERCE WISHLIST
   DESKTOP POLISH
================================================== */


/* ==================================================
   MAIN CONTAINER
================================================== */

.tinv-wishlist {
    max-width: 1400px;
    margin: 40px auto;;
    padding: 0 20px;
}


/* ==================================================
   WISHLIST TITLE
================================================== */

.tinv-wishlist h2,
.tinv-wishlist h1 {
    margin: 0 0 28px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}


/* ==================================================
   TABLE
================================================== */

.tinvwl-table-manage-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.tinvwl-table-manage-list thead {
    background: #d92525;
}

/* ==================================================
   COLUMN WIDTHS
================================================== */

/* Checkbox */
.tinvwl-table-manage-list th.product-cb,
.tinvwl-table-manage-list td.product-cb {
    width: 48px;
    text-align: center;
}

/* Remove */
.tinvwl-table-manage-list th.product-remove,
.tinvwl-table-manage-list td.product-remove {
    width: 45px;
    text-align: center;
}

/* Image */
.tinvwl-table-manage-list th.product-thumbnail,
.tinvwl-table-manage-list td.product-thumbnail {
    width: 105px;
}

/* Product name */
.tinvwl-table-manage-list th.product-name,
.tinvwl-table-manage-list td.product-name {
    width: auto;
}

/* Price */
.tinvwl-table-manage-list th.product-price,
.tinvwl-table-manage-list td.product-price {
    width: 145px;
}

/* Date */
.tinvwl-table-manage-list th.product-date,
.tinvwl-table-manage-list td.product-date {
    width: 135px;
}

/* Stock */
.tinvwl-table-manage-list th.product-stock,
.tinvwl-table-manage-list td.product-stock {
    width: 125px;
}

/* Action */
.tinvwl-table-manage-list th.product-action,
.tinvwl-table-manage-list td.product-action {
    width: 145px;
}


/* ==================================================
   HEADER
================================================== */

.tinvwl-table-manage-list thead th {
    background: #d92525 !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 18px 16px;
    border: none !important;
    text-align: left;
}

.tinvwl-table-manage-list thead th.product-cb {
    text-align: center;
}

/* Round top corners */
.tinvwl-table-manage-list thead th:first-child {
    border-top-left-radius: 14px;
}

.tinvwl-table-manage-list thead th:last-child {
    border-top-right-radius: 14px;
}



/* ==================================================
   PRODUCT ROW
================================================== */

.tinvwl-table-manage-list tbody tr.wishlist_item {
    background: #ffffff;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.tinvwl-table-manage-list tbody tr.wishlist_item:hover {
    background: #fcfcfc;
}

.tinvwl-table-manage-list tbody tr {
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

/* Product row hover */
.tinvwl-table-manage-list tbody tr:hover {
    background: #fff7f7;
    box-shadow: inset 4px 0 0 #d92525;
}



/* ==================================================
   CELLS
================================================== */

.tinvwl-table-manage-list tbody td {
    padding: 20px 16px;
    border-bottom: 1px solid #eeeeee;
    vertical-align: middle;
}

.tinvwl-table-manage-list tbody tr:last-child td {
    border-bottom: none;
}


/* ==================================================
   CHECKBOX
================================================== */

.tinvwl-table-manage-list input[type="checkbox"] {
    width: 17px;
    height: 17px;

    margin: 0;

    cursor: pointer;

    accent-color: #d62828;
}


/* ==================================================
   REMOVE BUTTON
================================================== */

.tinvwl-table-manage-list .product-remove button {
    width: 30px;
    height: 30px;

    padding: 0;

    border: none;
    background: transparent;

    color: #777;

    font-size: 15px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.tinvwl-table-manage-list .product-remove button:hover {
    color: #d62828;

    background: #fff1f1;

    border-radius: 50%;
}


/* ==================================================
   PRODUCT IMAGE
================================================== */

.tinvwl-table-manage-list .product-thumbnail {
    padding-left: 8px;
    padding-right: 8px;
}

.tinvwl-table-manage-list .product-thumbnail img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Image hover */
.tinvwl-table-manage-list tbody tr:hover .product-thumbnail img {
    transform: scale(1.07);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* ==================================================
   PRODUCT NAME
================================================== */

.tinvwl-table-manage-list .product-name {
    padding-left: 14px;
    padding-right: 20px;
}

.tinvwl-table-manage-list .product-name a {
    font-weight: 600;
    color: #075fc7;
    text-decoration: none;
    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

/* Product name hover */
.tinvwl-table-manage-list tbody tr:hover .product-name a {
    color: #d92525;
    padding-left: 5px;
}

.tinvwl-table-manage-list .product-name a:hover {
    color: #d62828;
}


/* ==================================================
   PRICE
================================================== */

.tinvwl-table-manage-list .product-price {
    font-weight: 600;
    white-space: nowrap;
}

.tinvwl-table-manage-list .product-price ins {
    color: #d92525;
    text-decoration: none;
}

.tinvwl-table-manage-list .product-price del {
    color: #888;
    margin-right: 5px;
}


/* ==================================================
   DATE
================================================== */

.tinvwl-table-manage-list .product-date {
    color: #667085;

    font-size: 13px;

    white-space: nowrap;
}


/* ==================================================
   STOCK
================================================== */

.tinvwl-table-manage-list .product-stock {
    white-space: nowrap;
}

.tinvwl-table-manage-list .product-stock .stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.tinvwl-table-manage-list .product-stock i {
    color: #168a45;
}


/* ==================================================
   ADD TO CART
================================================== */

.tinvwl-table-manage-list .product-action {
    text-align: right;
}

.tinvwl-table-manage-list .product-action .button {
    background: #076dcc !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.tinvwl-table-manage-list .product-action .button:hover {
    background: #d92525 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 37, 37, 0.25);
}

.tinvwl-table-manage-list .product-action .button i {
    font-size: 13px;
}

/* ==================================================
   REMOVE BUTTON
================================================== */

.tinvwl-table-manage-list .product-remove button {
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.tinvwl-table-manage-list .product-remove button:hover {
    color: #d92525;
    transform: scale(1.2);
}

/* ==================================================
   BULK ACTIONS
   Keep ONLY "Add All to Cart"
================================================== */

/* Hide checkbox column */
.tinvwl-table-manage-list .product-cb,
.tinvwl-table-manage-list th.product-cb {
    display: none !important;
}

/* Hide the entire left-side bulk action controls */
.tinvwl-table-manage-list .tinvwl-to-left {
    display: none !important;
}

/* Keep the right-side action area */
.tinvwl-table-manage-list .tinvwl-to-right {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
}

/* Hide "Add Selected to Cart" */
.tinvwl-table-manage-list
button[name="tinvwl-action-product_selected"] {
    display: none !important;
}

/* Keep "Add All to Cart" */
.tinvwl-table-manage-list
button[name="tinvwl-action-product_all"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    background: #076dcc !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;

    padding: 13px 25px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.tinvwl-table-manage-list
button[name="tinvwl-action-product_all"]:hover {
    background: #d92525 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 37, 37, 0.25);
}


/* ==================================================
   FOOTER / BULK ACTIONS
================================================== */

.tinvwl-table-manage-list tfoot td {
    padding: 18px;

    background: #fafafa;

    border-top: 1px solid #eeeeee;
}


/* Remove unnecessary spacing */
.tinvwl-table-manage-list tfoot .tinvwl-to-left,
.tinvwl-table-manage-list tfoot .tinvwl-to-right {
    margin: 0;
}


/* Left actions */
.tinvwl-table-manage-list tfoot .tinvwl-to-left {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Right actions */
.tinvwl-table-manage-list tfoot .tinvwl-to-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}


/* Action select */
.tinvwl-table-manage-list tfoot select {
    height: 44px;

    min-width: 210px;

    padding: 0 38px 0 13px;

    border: 1px solid #d7d7d7;
    border-radius: 6px;

    background: #ffffff;

    color: #26364d;

    font-size: 14px;
}


/* Footer buttons */
.tinvwl-table-manage-list tfoot .button {
    min-height: 44px;

    padding: 0 20px;

    border: none;
    border-radius: 6px;

    background: #0875d1;

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.tinvwl-table-manage-list tfoot .button:hover {
    background: #075fa9;

    transform: translateY(-1px);
}


/* ==================================================
   FOOTER LAYOUT
================================================== */

.tinvwl-table-manage-list tfoot td > div {
    vertical-align: middle;
}

/* ==================================================
   WISHLIST RESPONSIVE
   Mobile = Product Cards
================================================== */

@media (max-width: 768px) {

    /* ------------------------------------------
       Wishlist container
    ------------------------------------------ */

    .tinv-wishlist {
        width: 100%;
        margin: 0 auto;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .tinv-wishlist form {
        width: 100%;
    }

    /* ------------------------------------------
       Hide table header
    ------------------------------------------ */

    .tinvwl-table-manage-list thead {
        display: none !important;
    }

    /* ------------------------------------------
       Remove normal table behaviour
    ------------------------------------------ */

    .tinvwl-table-manage-list,
    .tinvwl-table-manage-list tbody,
    .tinvwl-table-manage-list tr,
    .tinvwl-table-manage-list td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .tinvwl-table-manage-list {
        border: none !important;
        border-collapse: separate !important;
        background: transparent !important;
    }

    .tinvwl-table-manage-list tbody {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
    }

    /* ------------------------------------------
       Individual product card
    ------------------------------------------ */

    .tinvwl-table-manage-list tbody tr.wishlist_item {
        position: relative;

        display: grid !important;

        grid-template-columns: 90px 1fr;
        grid-template-areas:
            "image name"
            "image price"
            "image stock"
            "image date"
            "image action";

        gap: 5px 14px;

        padding: 16px !important;

        background: #fff !important;

        border: 1px solid #e5e7eb !important;
        border-radius: 14px !important;

        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);

        overflow: hidden;

        transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
    }

    /* ------------------------------------------
       Card hover
    ------------------------------------------ */

    .tinvwl-table-manage-list tbody tr.wishlist_item:hover {
        transform: translateY(-2px);

        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.10);
    }

    /* ------------------------------------------
       Checkbox
    ------------------------------------------ */

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-cb {
        display: none !important;
    }

    /* ------------------------------------------
       Remove button
    ------------------------------------------ */

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-remove {
        position: absolute;

        top: 8px;
        right: 8px;

        width: auto !important;
        z-index: 5;

        padding: 0 !important;

        border: none !important;
        background: transparent !important;
    }

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-remove button {
        width: 30px;
        height: 30px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0;

        border: none !important;
        border-radius: 50%;

        background: #f3f4f6;
        color: #555;

        cursor: pointer;

        transition:
            background-color 0.2s ease,
            color 0.2s ease;
    }

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-remove button:hover {
        background: #fee2e2;
        color: #dc2626;
    }

    /* ------------------------------------------
       Product image
    ------------------------------------------ */

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-thumbnail {
        grid-area: image;

        width: 90px !important;
        height: 90px;

        padding: 0 !important;

        border: none !important;

        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-thumbnail a {
        display: block;

        width: 90px;
        height: 90px;

        border-radius: 10px;

        overflow: hidden;

        background: #f7f7f7;
    }

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-thumbnail img {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover;

        margin: 0 !important;
    }

    /* ------------------------------------------
       Product name
    ------------------------------------------ */

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-name {
        grid-area: name;

        width: auto !important;

        padding: 2px 28px 0 0 !important;

        border: none !important;

        text-align: left !important;

        font-size: 15px;
        font-weight: 600;

        line-height: 1.4;
    }

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-name a {
        color: #076dcc !important;
        text-decoration: none;
    }

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-name a:hover {
        color: #d92525 !important;
    }

    /* ------------------------------------------
       Price
    ------------------------------------------ */

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-price {
        grid-area: price;

        width: auto !important;

        padding: 0 !important;

        border: none !important;

        text-align: left !important;

        font-size: 14px;
        font-weight: 600;
    }

    /* ------------------------------------------
       Stock
    ------------------------------------------ */

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-stock {
        grid-area: stock;

        width: auto !important;

        padding: 0 !important;

        border: none !important;

        text-align: left !important;

        font-size: 13px;
    }

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-stock p {
        margin: 0 !important;
    }

    /* ------------------------------------------
       Date
    ------------------------------------------ */

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-date {
        grid-area: date;

        width: auto !important;

        padding: 0 !important;

        border: none !important;

        text-align: left !important;

        font-size: 12px;

        color: #777;
    }

    /* ------------------------------------------
       Add to Cart
    ------------------------------------------ */

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-action {
        grid-area: action;

        width: auto !important;

        padding: 7px 0 0 !important;

        border: none !important;

        text-align: left !important;
    }

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-action button {
        width: 100% !important;

        min-height: 42px;

        display: flex !important;

        align-items: center;
        justify-content: center;

        padding: 10px 14px !important;

        border: none !important;
        border-radius: 8px;

        background: #076dcc !important;
        color: #fff !important;

        font-size: 14px;
        font-weight: 600;

        transition:
            background-color 0.2s ease,
            transform 0.2s ease;
    }

    .tinvwl-table-manage-list
    tbody tr.wishlist_item
    .product-action button:hover {
        background: #d92525 !important;
        transform: translateY(-1px);
    }

    /* ------------------------------------------
       Footer
    ------------------------------------------ */

    .tinvwl-table-manage-list tfoot {
        display: block !important;

        margin-top: 16px;
    }

    .tinvwl-table-manage-list tfoot tr,
    .tinvwl-table-manage-list tfoot td {
        display: block !important;

        width: 100% !important;

        padding: 0 !important;

        border: none !important;
    }

    .tinvwl-table-manage-list .tinvwl-to-right {
        display: block !important;

        width: 100% !important;

        margin: 0 !important;
    }

    /* Add All button */
    .tinvwl-table-manage-list
    button[name="tinvwl-action-product_all"] {
        width: 100% !important;

        min-height: 46px;

        margin: 0 !important;

        border-radius: 9px;

        font-size: 15px;
    }

}