/* Wishlist Page Specific Styles */

/* Wishlist page layout */
.wishlist-container {
    padding: 20px 0;
    margin-top: 70px;
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 1px solid #000;
    padding-bottom: 15px;
}

.wishlist-header h1 {
    font-size: 32px;
    font-weight: 500;
    margin: 0;
    justify-content: flex-start;
}

/* Wishlist actions section */
.wishlist-actions {
    display: none !important;
}

.select-all-container {
    display: none !important;
}

.select-all-checkbox {
    display: none !important;
}

.add-to-cart-btn {
    display: none !important;
}

/* Wishlist items list */
.wishlist-items {
    display: flex;
    gap: 25px;
    margin-top: 20px;
}

.wishlist-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.wishlist-item-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid #A7A7A7;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.wishlist-item-checkbox.checked {
    background-color: #D06AFF;
    border-color: #D06AFF;
}

.wishlist-item-checkbox.checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

.wishlist-item-content {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
}

/* Product display within wishlist */
.wishlist-product {
    display: flex;
    align-items: center;
    flex: 1;
}

.wishlist-product-img {
    width: 120px;
    height: 150px;
    background-color: #FDF9FF;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 0;
}

.wishlist-product-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.wishlist-product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wishlist-product-name {
    font-weight: 500;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wishlist-product-name:hover {
    color: #A703F3;
    text-decoration: underline;
}

.wishlist-product-price {
    font-weight: 700;
    font-size: 18px;
    color: #D06AFF;
}

/* Delete button */
.delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.delete-btn i {
    font-size: 16px;
    color: #999;
    transition: color 0.2s ease;
}

.delete-btn:hover {
    transform: scale(1.1);
}

.delete-btn:hover i {
    color: #ff5252;
}

/* Empty wishlist state */
.empty-wishlist {
    text-align: center;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.empty-wishlist img {
    max-width: 120px;
    margin-bottom: 20px;
}

.empty-wishlist h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
}

.empty-wishlist p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    max-width: 400px;
}

.continue-shopping {
    display: inline-block;
    padding: 12px 25px;
    background-color: #A703F3;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.continue-shopping:hover {
    background-color: #8F02D0;
}

/* Mobile Styles for Navbar */
@media (max-width: 768px) {
    .product-navbar {
        width: 95%;
        padding: 12px 20px;
    }
    
    .wishlist-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .product-navbar {
        width: 90%;
        padding: 10px 20px;
        margin: 20px auto;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .product-detail-container {
        margin-top: 100px;
        padding: 0 15px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .product-navbar {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 20px !important;
        padding: 15px 25px !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        background: rgba(212, 212, 212, 0.6) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        position: fixed !important;
        z-index: 1000 !important;
    }
    
    .product-detail-container {
        margin-top: 140px;
        padding: 0 8px;
        max-width: 100%;
    }
    
    .wishlist-container {
        padding: 0;
        margin-top: 80px;
        width: 100%;
    }
    
    .wishlist-header {
        padding: 0 15px 10px;
        margin-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .wishlist-header h1 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 15px;
    }
    
    /* Grid layout for wishlist items - match exactly with home product cards */
    .wishlist-items {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 0 8px !important;
        justify-content: space-between !important;
        margin-top: 10px !important;
    }
    
    .wishlist-item {
        width: calc(50% - 4px) !important;
        margin-bottom: 15px !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        position: relative !important;
        background: white !important;
    }
    
    .wishlist-item-checkbox {
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
        z-index: 2 !important;
        background-color: rgba(255, 255, 255, 0.7) !important;
        border-radius: 4px !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    .wishlist-item-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        align-items: stretch !important;
        gap: 0 !important;
    }
    
    .wishlist-product {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        width: 100% !important;
    }
    
    .wishlist-product-link {
        display: block !important;
        width: 100% !important;
    }
    
    .wishlist-product-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        background-color: #FAF1FF !important;
        margin: 0 !important;
        padding: 8px !important;
        border-radius: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border: none !important;
    }
    
    .wishlist-product-img img {
        max-width: 75% !important;
        max-height: 75% !important;
        object-fit: contain !important;
    }
    
    .wishlist-product-info {
        padding: 3px 0 !important;
        gap: 0 !important;
    }
    
    .wishlist-product-name {
        font-size: 0.75rem !important;
        color: #333 !important;
        font-weight: 400 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.1rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        text-decoration: none !important;
    }
    
    .wishlist-product-price {
        font-size: 0.75rem !important;
        color: #D06AFF !important;
        font-weight: 600 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .delete-btn {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        z-index: 2 !important;
        background-color: rgba(255, 255, 255, 0.7) !important;
        border-radius: 50% !important;
        width: 22px !important;
        height: 22px !important;
    }
    
    .delete-btn i {
        font-size: 12px !important;
    }
    
    .add-to-cart-btn-item {
        position: relative !important;
        background-color: white !important;
        color: black !important;
        font-size: 0.75rem !important;
        font-weight: 500 !important;
        padding: 8px 0 !important;
        margin: 8px 0 0 0 !important;
        border: 1px solid black !important;
        border-radius: 8px !important;
        width: 100% !important;
        text-align: center !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .add-to-cart-btn-item::before {
        content: "\f07a" !important;
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        margin-right: 5px !important;
    }
    
    /* Mobile styles for confirmation modal */
    .confirmation-content {
        padding: 14px;
    }
    
    .confirmation-content h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .confirmation-content p {
        font-size: 13px;
        margin-bottom: 14px;
        line-height: 1.3;
    }
    
    .cancel-btn, .confirm-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .delete-confirmation-modal {
        width: 300px;
    }
}

/* Notification popup */
.notification-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease-out;
    height: 105px;
    max-width: 350px;
    box-sizing: border-box;
    overflow: hidden;
}

.notification-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-popup.hide {
    transform: translateY(100px);
    opacity: 0;
}

.notification-popup .icon {
    color:rgb(2, 166, 13);
    font-size: 18px;
}

.notification-popup .content {
    flex: 1;
    overflow: hidden;
}

.notification-popup .header-container {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 3px;
    padding-top: 5px;
}

.notification-popup .title {
    font-weight: 600;
    font-size: 15px;
    padding-left: 10px;
    color: #000;
}

.notification-popup .message {
    font-size: 14px;
    color: #666;
    padding-top: 5px;
    white-space: normal;
    overflow: visible;
    line-height: 1.3;
    max-height: none;
}

.notification-popup .product-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 200px;
    vertical-align: bottom;
}

.notification-popup .actions a:hover {
    text-decoration: underline;
}

.notification-popup .close {
    position: absolute;
    top: 8px;
    right: 10px;
    color: #999;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 2px;
}

.notification-popup .close:hover {
    color: #333;
}

.wishlist-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wishlist-product-link:hover {
    transform: none;
}

/* Delete Confirmation Modal */
.delete-confirmation-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: white;
    border-radius: 8px;
    width: 360px;
    max-width: 90%;
    z-index: 1001;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.delete-confirmation-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.confirmation-content {
    padding: 24px;
}

.confirmation-content h3 {
    margin: 0 0 16px;
    font-size: 20px;
    color: #333;
}

.confirmation-content p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.5;
    color: #666;
}

#product-to-delete-name {
    font-weight: 600;
    color: #000;
}

.confirmation-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-btn, .confirm-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.cancel-btn {
    background-color: #f5f5f5;
    color: #666;
}

.cancel-btn:hover {
    background-color: #eaeaea;
}

.confirm-btn {
    background-color:rgb(185, 33, 255);
    color: white;
}

.confirm-btn:hover {
    background-color:rgb(167, 3, 243);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
} 