* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #fff;
}

.wishlist-page {
    width: 95%;
    max-width: 1300px;
    margin: 40px auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #252627;
    text-decoration: none;
}

.wishlist { 
    font-weight: 600;
    color: #000000;
}

/* Header */
.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 40px;
}

.continue-btn {
    text-decoration: none;
    background: #52dd69;
    color: #000;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    transition: .3s;
}

/* Table Layout */
.wishlist-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

.wishlist-table thead {
    background: #fafafa;
}

.wishlist-table th {
    padding: 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #7d8ba2;
}

/* Ensure the ACTION header is centered */
.wishlist-table th:last-child {
    text-align: center;
}

.wishlist-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #ececec;
    vertical-align: middle;
}

/* Product Column */
.product-col {
    display: flex;
    align-items: center;
    gap: 18px;
}

.product-col img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* Price Column */
.price-col {
    font-weight: 700;
    color: #222;
}

/* ---------------- Actions ---------------- */
.wishlist-table td.action-col {
    vertical-align: top;
    padding-top: 15px; /* Adjust this value to move icons higher or lower */
}

/* 2. Configure the flexbox to align items to the top */
.action-col {
    display: flex;
    justify-content: center;   /* Keeps them centered horizontally */
    align-items: flex-start;    /* This pushes the icons to the top of the cell */
    gap: 15px;
}

/* 3. Center the header text to match the icons */
.wishlist-table th:last-child {
    text-align: center;
}

.action-col a,
.action-col button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .3s;
    font-size: 16px;
}

/* Button Styles */
.view-btn { background: #dce9ff; color: #2b5aa6; }
.btn-secondary-cart { background: #ffe347; color: #222; }
.delete-btn {
     color: #ef4444; }

/* Responsive */
@media(max-width: 768px) {
    .wishlist-table { display: block; overflow-x: auto; }
}

.wishlist-badge-count {
    position: absolute;
    top: -6px;       /* Shifts badge slightly above the image boundaries */
    right: -6px;     /* Shifts badge slightly outside right image boundaries */
    background-color: #ff0303; /* Vibrant notification red color */
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: none; /* Keeps clicks focused directly through to the link anchor */
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.empty-wishlist-img{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 40px;
}

.empty-wishlist{
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 70px;
}

.wishlist-header {
    display: flex;
 
    align-items: center;
    font-size: 12px;
    margin-bottom: 40px;
}

.small-swal-popup {
    width: 320px !important;
    padding: 1rem !important;
    font-size: 0.8rem !important;
    border-radius: 12px !important;
}

.small-swal-title {
    font-size: 1.2rem !important;
    padding: 0 !important;
    margin-bottom: 5px !important;
}

.small-swal-text {
    font-size: 0.9rem !important;
    margin: 0.5rem 0 !important;
}

.small-swal-popup .swal2-icon {
    width: 3.5em !important;
    height: 3.5em !important;
    margin: 0.5em auto !important;
}

.small-swal-popup .swal2-actions {
    margin-top: 10px !important;
}

/* ==========================================================================
   📱 WISHLIST PAGE RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet & Smaller Laptops (Max Width: 1024px) */
@media screen and (max-width: 1024px) {
    .wishlist-page {
        width: 92%;
        margin: 25px auto;
    }
}

/* Mobile Devices (Max Width: 768px) */
@media (max-width: 768px) {
    /* Reduce padding across all cells */
    .wishlist-table td {
        padding: 8px 10px;
    }

    /* Target Product Column (1st child) to shrink image and text */
    .wishlist-table td:nth-child(1) .product-col img {
        width: 55px;
        height: 55px;
    }

    .wishlist-table td:nth-child(1) h5 {
        font-size: 13px;
    }

    .wishlist-table td:nth-child(1) .product-meta {
        font-size: 11px !important;
    }

    /* Target Price Column (2nd child) */
    .wishlist-table td:nth-child(2) {
        font-size: 13px;
        white-space: nowrap;
    }

    /* Target Action Column (3rd child) to make buttons smaller */
    .wishlist-table td:nth-child(3) a,
    .wishlist-table td:nth-child(3) button {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .action-col {
        gap: 8px; /* Reduce gap between action buttons on mobile */
    }
}

/* Extra Small Mobile Devices (Max Width: 480px) */
@media screen and (max-width: 480px) {
    .wishlist-page {
        width: 98%;
        margin: 10px auto;
    }

    .breadcrumb {
        font-size: 3px;
        margin-bottom: 6px;
        gap: 0px;
    }

    .continue-btn {
        padding: 6px 12px;
        font-size: 9px;
    }

    .wishlist-table th,
    .wishlist-table td {
        padding: 8px 10px;
        font-size: 10px;
    }

    .product-col img {
        width: 50px;
        height: 50px;
    }

    .action-col a,
    .action-col button {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}