/* ========================================================
   Styles for Cart & Wishlist Interactivity (Ogani)
   ======================================================== */

/* Active favorite heart on product cards */
.featured__item__pic__hover li.is-favorite a,
.product__item__pic__hover li.is-favorite a,
.alysum-card__fav.is-favorite {
    background: #e53637 !important;
    border-color: #e53637 !important;
    color: #ffffff !important;
}

.featured__item__pic__hover li.is-favorite a i,
.product__item__pic__hover li.is-favorite a i,
.alysum-card__fav.is-favorite i {
    color: #ffffff !important;
}

/* Active heart on shop-details */
.product__details__text .heart-icon.is-favorite {
    background: #e53637 !important;
    color: #ffffff !important;
}

.product__details__text .heart-icon.is-favorite span {
    color: #ffffff !important;
}

/* Header badge pulse animation */
@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); background: #e53637; }
    100% { transform: scale(1); }
}

.header__cart ul li a span.badge-updated,
.humberger__menu__cart ul li a span.badge-updated,
.alysum-icon-badge .badge-count.badge-updated {
    animation: badgePulse 0.4s ease-in-out;
}

/* Cursor pointer on interactive links */
.featured__item__pic__hover li a,
.product__item__pic__hover li a,
.alysum-card__fav,
.alysum-card__add-btn,
.shoping__cart__item__close span,
.wishlist__item__close span {
    cursor: pointer;
}

/* Toast Notification Container */
#mf-toast-container,
#ogani-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100% - 48px);
}

/* Individual Toast */
.mf-toast,
.ogani-toast {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-left: 5px solid #236557;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.mf-toast.show,
.ogani-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.mf-toast.toast-wishlist,
.ogani-toast.toast-wishlist {
    border-left-color: #e53637;
}

.mf-toast.toast-removed,
.ogani-toast.toast-removed {
    border-left-color: #6c757d;
}

.mf-toast__icon,
.ogani-toast__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eaf3f0;
    color: #236557;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.mf-toast.toast-wishlist .mf-toast__icon,
.ogani-toast.toast-wishlist .ogani-toast__icon {
    background: #ffebeb;
    color: #e53637;
}

.mf-toast.toast-removed .mf-toast__icon,
.ogani-toast.toast-removed .ogani-toast__icon {
    background: #f1f3f5;
    color: #6c757d;
}

.mf-toast__content,
.ogani-toast__content {
    flex-grow: 1;
    min-width: 0;
}

.mf-toast__title,
.ogani-toast__title {
    font-size: 14px;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.mf-toast__message,
.mf-toast__msg,
.ogani-toast__message,
.ogani-toast__msg {
    font-size: 13px;
    color: #6f6f6f;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-toast__action,
.ogani-toast__action {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #236557;
    text-decoration: underline;
}

.mf-toast__action:hover,
.ogani-toast__action:hover {
    color: #1b4f44;
}

.mf-toast__close,
.ogani-toast__close {
    background: none;
    border: none;
    color: #b2b2b2;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    align-self: flex-start;
}

.mf-toast__close:hover,
.ogani-toast__close:hover {
    color: #1c1c1c;
}

/* Empty State Styling */
.mf-empty-state,
.ogani-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fdfdfd;
    border: 1px dashed #e1e1e1;
    border-radius: 8px;
    margin-bottom: 30px;
}

.mf-empty-state__icon,
.ogani-empty-state__icon {
    font-size: 56px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.mf-empty-state h3,
.ogani-empty-state h3 {
    font-size: 22px;
    color: #1c1c1c;
    font-weight: 700;
    margin-bottom: 8px;
}

.mf-empty-state p,
.ogani-empty-state p {
    color: #6f6f6f;
    font-size: 15px;
    margin-bottom: 24px;
}

/* Wishlist Table Styling */
.wishlist__table table tbody tr td.shoping__cart__item {
    width: 460px;
}

.wishlist__add-btn {
    padding: 12px 24px;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    background: #236557 !important;
    border: none;
    cursor: pointer;
    border-radius: 50px !important;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: none;
}

.wishlist__add-btn:hover {
    background: #1b4f44 !important;
}

/* Order placed modal / overlay */
.mf-modal-overlay,
.ogani-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mf-modal-overlay.active,
.ogani-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mf-modal-card,
.ogani-modal-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.mf-modal-overlay.active .mf-modal-card,
.ogani-modal-overlay.active .ogani-modal-card {
    transform: translateY(0);
}

.mf-modal-card__icon,
.ogani-modal-card__icon {
    width: 70px;
    height: 70px;
    background: #eaf3f0;
    color: #236557;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.mf-modal-card h3,
.ogani-modal-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 12px;
}

.mf-modal-card p,
.ogani-modal-card p {
    color: #6f6f6f;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.5;
}
