/* ============================================
   styleFooter.css - CLEANED VERSION
   Duplicates removed, organized, no functionality changed
   ============================================ */

/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #DBF2C0;
}

/* ---------- Desktop Footer ---------- */
.desktop-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1A312C;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.3s ease;
    height: 55px;
    width: 100%;
    padding: 8px 0;
}

.desktop-footer .footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 90%;
    max-width: 1000px;
}

/* Footer Links */
.footer-link {
    color: #E8F5E9;
    text-decoration: none;
    font-size: 1rem;
    text-align: center;
    transition: color 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 5px;
    border-radius: 8px;
}

.footer-icon {
    font-size: 1.4rem;
    margin-bottom: 3px;
    color: #E8F5E9;
    transition: color 0.3s ease;
}

.whatsapp-icon,
.fa-list,
.fa-book,
.fa-heart {
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Cart Popup */
.cart-popup {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2E7D32;
    padding: 8px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    z-index: 1050;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, bottom 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92%;
    width: auto;
    bottom: 70px;
}

.cart-popup.show {
    display: block;
    visibility: visible;
    opacity: 1;
    width: auto;
    bottom: 70px;
}

/* Popup Content */
.popup-content,
.proceed-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    width: 100%;
    height: fit-content;
}

.popup-image-stack {
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
}

.popup-item-image-container {
    position: relative;
    z-index: 1;
    margin-left: -30px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.popup-item-image-container:first-child {
    margin-left: 0;
}

.popup-product-image {
    max-width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
}

.popup-header {
    flex-shrink: 0;
    margin-left: 15px;
    text-align: center;
    align-self: center;
}

.popup-header h4 {
    font-size: 16px;
    font-weight: bold;
    color: #E8ECD7;
    margin: 0;
}

.popup-icon {
    font-size: 2rem;
    font-weight: 700;
    color: #E8ECD7;
    padding: 0 15px;
    background-color: #1A312C;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    align-self: center;
    margin-left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-icon:hover {
    transform: scale(1.1);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes slideUp {
    0% { opacity: 0; bottom: -70px; }
    100% { opacity: 1; bottom: 65px; }
}

@keyframes slideOutToLeft {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-100%); }
}

@keyframes slideInFromRight {
    0% { opacity: 0; transform: translateX(100%); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes shiftLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-30px); }
}

/* Legacy / Extra Classes */
.cart-popup.first-show {
    animation: slideUp 0.5s ease forwards;
}

.popup-item-image-container.new-item:not(:first-child) {
    animation: fadeIn 0.5s ease forwards;
}

.popup-item-image-container.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

.popup-item-image-container.removed {
    animation: slideOutToLeft 0.8s ease forwards;
}

.popup-item-image-container.new-item {
    animation: slideInFromRight 1.2s ease;
}

.popup-item-image-container.shift-item {
    animation: shiftLeft 1.2s ease;
}

.popup-product-title {
    font-size: 14px;
    font-weight: bold;
}

.navCartBtn {
    background: none;
    border: none;
    color: #FFECB3;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background-color: transparent;
    transition: transform 0.3s ease, color 0.3s ease;
}

.navCartBtn i {
    font-size: 1.4rem;
}

.badge {
    font-size: 12px;
}

/* ============================================
   MEDIA QUERIES (Kept exactly as you had)
 

/* Extra small screens */
@media (max-width: 414px) {
    .cart-popup {
        padding: 3px 5px;
        font-size: 0.80rem;
    }
    .cart-popup.show {
        bottom: 65px;
        height: 40px;
    }
    .popup-icon {
        font-size: 0.90rem;
        height: 35px;
        width: 35px;
    }
    .popup-header h4 {
        font-size: 0.70rem;
    }
    .popup-item-image-container {
        margin-left: -40px;
        height: 35px;
    }
    .popup-product-image {
        max-width: 35px;
        height: 35px;
    }
}



/* 415px - 720px */
@media (min-width: 415px) and (max-width: 720px) {
    .cart-popup {
        left: 50%;
        padding: 3px 5px;
        width: 220px;
        font-size: 0.80rem;
    }
    .cart-popup.show {
        visibility: visible;
        opacity: 1;
        width: auto;
        height: 40px;
        width: 220px;
    }
    .popup-item-image-container {
        position: relative;
        z-index: 1;
        margin-left: -25px;
        height: 35px;
    }
    .popup-product-image {
        max-width: 35px;
        height: 35px;
    }
    .popup-icon {
        font-size: 0.90rem;
        height: 35px;
        width: 35px;
    }
    .popup-header h4 {
        font-size: 0.70rem;
    }
    .desktop-footer {
        height: 50px;
    }
}
