/* ===== TOPBAR ===== */
.topbar {
    background: linear-gradient(135deg, #014421, #0b7a3b);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

    .topbar a {
        color: white;
        margin-left: 12px;
        text-decoration: none;
        transition: 0.3s;
    }

        .topbar a:hover {
            color: #ffd700;
        }

/* ===== NAV MENU ===== */
.navbar {
    border-bottom: 1px solid #eee;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    color: #333 !important;
    transition: 0.3s;
}

    .nav-link:hover {
        color: #014421 !important;
    }

/* ===== CART ===== */
.cart-icon {
    position: relative;
    font-size: 22px;
    cursor: pointer;
}

    .cart-icon span {
        position: absolute;
        top: -6px;
        right: -10px;
        background: red;
        color: white;
        font-size: 12px;
        padding: 4px 6px;
        border-radius: 50%;
        font-weight: bold;
    }

/* ===== FLOAT CONTACT ===== */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 999;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 12px;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

    .float-btn:hover {
        transform: scale(1.1);
    }

/* ===== TOAST ===== */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-item {
    background: #014421;
    color: white;
    padding: 12px 18px;
    margin-top: 10px;
    border-radius: 10px;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.4s ease;
    font-size: 14px;
}

/* 🔥 animation chuẩn (KHÔNG LỖI) */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .nav-link {
        margin: 5px 0;
    }

    .floating-contact {
        bottom: 60px;
        right: 10px;
    }

    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
