body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #FFECB3;
}

/* ===== Desktop Footer ===== */
.desktop-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1D1616;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #34495e;
    z-index: 1000;
    transition: transform 0.3s ease;
    height: 55px;
    width: 100%;
    padding: 20px 0;
}
.desktop-footer .footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 90%;
    max-width: 1000px;
    padding: 0 5px;
}
.footer-link {
    color: #FFECB3;
    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: 5px;
    color: #FFECB3;
    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 Button ===== */
.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;
    transition: transform 0.3s ease, color 0.3s ease;
}
.navCartBtn i {
    font-size: 1.4rem;
}
.badge {
    font-size: 12px;
}

/* ===== Cart Popup — fade in place (NO slide from bottom) ===== */
/* ===== Cart Popup — listView style (fade, no slide-up) ===== */
.cart-popup {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background-color: #D84040;
    padding: 5px 10px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 220px;
    bottom: 75px;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.cart-popup.show {
    opacity: 1;
    visibility: visible;
    width: auto;
    height: 60px;
    max-width: 300px;
    display: flex;
}
/* Soft appear (same on every page) */
.cart-popup.first-show {
    animation: popupFadeIn 0.35s ease forwards;
}
/* Footer hidden on scroll — only nudge bottom, no “rise from below” */
.cart-popup.show.footer-hidden {
    bottom: 10px;
    transition: opacity 0.35s ease, visibility 0.35s ease, bottom 0.3s ease;
}

.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 ===== */
.popup-image-stack {
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
}
.popup-item-image-container {
    position: relative;
    z-index: 1;
    margin-left: -350px;
    opacity: 1;
    transition: opacity 0.5s ease;
}
.popup-item-image-container:first-child {
    margin-left: 0;
}
.popup-item-image-container.new-item:not(:first-child) {
    animation: fadeIn 0.5s ease forwards;
}
.popup-item-image-container.fade-out,
.popup-item-image-container.removed {
    animation: fadeOut 0.5s ease forwards;
}
.popup-product-image {
    max-width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
  
}
.popup-product-title {
    font-size: 14px;
    font-weight: bold;
}

/* ===== Popup Header & Icon ===== */
.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: #8E1616;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    align-self: center;
    margin-left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.popup-icon:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* ===== Keyframes — fade only ===== */
@keyframes popupFadeIn {
    0% {
        opacity: 0;
        visibility: visible;
        transform: translateX(-50%) scale(0.96);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) scale(1);
    }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideOutToLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-40px);
    }
}
@keyframes shiftLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-30px); }
}

/* ===== Responsive: ≤ 414px ===== */
@media (max-width: 414px) {
    .cart-popup {
        padding: 3px 5px;
        font-size: 0.80rem;
        font-weight: 800;
        bottom: 65px;
    }
    .cart-popup.show {
        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: -30px;
        height: 35px;
    }
    .popup-product-image {
        max-width: 35px;
        height: 35px;
    }
    .desktop-footer {
        height: 50px;
    }
}

/* ===== Responsive: 415px – 576px ===== */
@media (min-width: 415px) and (max-width: 576px) {
    .cart-popup {
        padding: 3px 5px;
        font-size: 0.80rem;
        width: 220px;
        bottom: 65px;
    }
    .cart-popup.show {
        height: 40px;
        width: auto;
    }
    .popup-icon {
        font-size: 0.90rem;
        height: 35px;
        width: 35px;
    }
    .popup-header h4 {
        font-size: 0.70rem;
    }
    .popup-item-image-container {
        margin-left: -25px;
        height: 35px;
    }
    .popup-product-image {
        max-width: 35px;
        height: 35px;
    }
    .desktop-footer {
        height: 50px;
    }
}

/* ===== Responsive: 577px – 720px ===== */
@media (min-width: 577px) and (max-width: 720px) {
    .cart-popup {
        padding: 3px 5px;
        font-size: 0.80rem;
        width: 220px;
        bottom: 65px;
    }
    .cart-popup.show {
        height: 40px;
        width: 220px;
    }
    .popup-icon {
        font-size: 0.90rem;
        height: 35px;
        width: 35px;
    }
    .popup-header h4 {
        font-size: 0.70rem;
    }
    .popup-item-image-container {
        margin-left: -25px;
        height: 35px;
    }
    .popup-product-image {
        max-width: 35px;
        height: 35px;
    }
    .desktop-footer {
        height: 50px;
    }
}